/* Sorting Table — public frontdoor.
   Self-contained: fonts are local, no external requests of any kind.
   Serif is the voice, mono is the machine, sans carries the plain copy. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/fraunces-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/jetbrainsmono-normal-latin.woff2") format("woff2");
}

:root {
  --coal-0: #0f0d0a;
  --coal-1: #17140f;
  --coal-2: #1e1a14;
  --coal-3: #262019;
  --coal-4: #322a20;
  --paper: #eee6d8;
  --paper-soft: #d7cebf;
  --paper-muted: #9f978b;
  --paper-faint: #8a8175;
  --amber: #d79535;
  --amber-bright: #eca64a;
  --amber-wash: rgba(215, 149, 53, .12);
  --moss: #8aa86b;
  --clay: #c4744a;
  --line: rgba(216, 182, 132, .12);
  --line-strong: rgba(216, 182, 132, .21);
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-ui: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1100px;
  --gutter: 28px;

  /* The workshop is lamplit. This page commits to that one look on purpose:
     every commissioned illustration is painted on a dark ground, so a light
     theme would sit them in a hole. */
  color-scheme: dark;
  font-synthesis: none;
  accent-color: var(--amber);
  scrollbar-color: var(--coal-4) transparent;
}

* { box-sizing: border-box; }

html {
  background: var(--coal-1);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--coal-1);
  color: var(--paper-soft);
  font-family: var(--font-ui);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

::selection { background: var(--amber); color: var(--coal-0); }

:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

a { color: var(--amber-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px; left: 12px;
  transform: translateY(-160%);
  padding: 9px 13px;
  border-radius: 5px;
  background: var(--amber);
  color: var(--coal-0);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -.018em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}

[id] { scroll-margin-top: 84px; }

h1 { font-size: clamp(2.4rem, 6.4vw, 4rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); margin-bottom: .7em; }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }

h1 em {
  font-style: normal;
  color: var(--amber-bright);
}

p { margin: 0 0 1.05em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1em;
}

/* a short amber tick leads each section eyebrow — the card-slot ruling motif */
.wrap > .eyebrow::before,
.split > div:not(.rule-card) > .eyebrow::before,
.hero-copy > .eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--amber);
  opacity: .65;
  vertical-align: middle;
  margin-right: 12px;
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  line-height: 1.52;
  color: var(--paper);
  max-width: 54ch;
}

.section-lead { max-width: 68ch; margin-bottom: 2.6em; }

.note { color: var(--paper-faint); font-size: .92rem; }
.small { font-size: .88rem; color: var(--paper-faint); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 20, 15, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  letter-spacing: -.01em;
}
.mark img { width: 32px; height: 32px; border-radius: 7px; }

.pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-wash);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.topnav { display: flex; gap: clamp(16px, 2.4vw, 28px); }
.topnav a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-muted);
  text-decoration: none;
  padding: 4px 0;
}
.topnav a:hover { color: var(--amber-bright); }
@media (max-width: 800px) {
  .topnav { display: none; }
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 108px) 0 clamp(40px, 6vw, 72px);
  background:
    repeating-linear-gradient(-45deg, rgba(238, 230, 216, .016) 0 1px, transparent 1px 8px),
    radial-gradient(ellipse 70% 52% at 22% 8%, rgba(215, 149, 53, .11), transparent 68%),
    var(--coal-1);
}

.hero-copy { max-width: 60ch; }
.hero-copy .lead { margin-top: 1.1em; }
.hero-copy .note { margin-top: 1.4em; }

.hero-art {
  margin: clamp(38px, 6vw, 62px) 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* the three-act spine */

.acts {
  list-style: none;
  margin: clamp(40px, 6vw, 60px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 4vw, 44px);
}
.acts li {
  position: relative;
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
}
.acts li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--amber);
}
.act-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .7em;
}
.act-t {
  display: block;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: 1.28rem;
  letter-spacing: -.012em;
  color: var(--paper);
  margin-bottom: .35em;
}
.acts p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--paper-muted);
  max-width: 36ch;
}
@media (max-width: 700px) {
  .acts { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- bands ---------- */

.band { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--coal-2); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.fig {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* the vintage-spread card */

.rule-card {
  background: var(--coal-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: clamp(22px, 3vw, 32px);
}
.band.alt .rule-card { background: var(--coal-3); }

.rule-lead {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.4;
  color: var(--paper);
  margin-bottom: 1.2em;
}

table.spread {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4em;
}
table.spread th {
  text-align: left;
  font-weight: 400;
  color: var(--paper-muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
table.spread td {
  text-align: right;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--amber-bright);
  font-size: .95rem;
}
table.spread tr:last-child th,
table.spread tr:last-child td { border-bottom: 0; }

/* ---------- pipeline stages ---------- */

.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.stages li {
  background: var(--coal-1);
  padding: clamp(22px, 3vw, 30px);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 6px 20px;
  align-items: baseline;
}
.band.alt .stages li { background: var(--coal-2); }

.step {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--amber);
  opacity: .75;
  letter-spacing: -.03em;
}
.stage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: .35em;
}
.stages h3 { margin: 0; }

.stage-act {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: .8;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.stages p { margin: 0; color: var(--paper-muted); max-width: 66ch; }

@media (max-width: 560px) {
  .stages li { grid-template-columns: 1fr; }
  .step { grid-row: auto; font-size: 1.1rem; }
}

/* ---------- destinations ---------- */

.dests {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.dests li {
  background: var(--coal-2);
  border: 1px solid var(--line);
  border-top-width: 2px;
  border-radius: 10px;
  padding: 24px 22px 26px;
}
.band.alt .dests li { background: var(--coal-3); }

/* each destination carries its own accent along the top edge */
.dests li.d-bulk  { border-top-color: var(--paper-faint); }
.dests li.d-lot   { border-top-color: var(--amber); }
.dests li.d-list  { border-top-color: var(--amber-bright); }
.dests li.d-grade { border-top-color: var(--moss); }
.dests li.d-hold  { border-top-color: var(--clay); }
.dests li.d-grade .num { color: var(--moss); }
.dests li.d-hold .num  { color: var(--clay); }

.dests img {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  margin-bottom: 16px;
  opacity: .95;
}
.dests h3 { margin-bottom: .15em; }
.dests .num {
  color: var(--amber-bright);
  font-size: .88rem;
  margin-bottom: .9em;
}
.dests p:last-child {
  color: var(--paper-faint);
  font-size: .9rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- scan stream ---------- */

.stream-card {
  margin: 0;
  background: var(--coal-3);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: clamp(22px, 3vw, 32px);
}
.stream-card > .eyebrow { margin-bottom: 1.3em; }

.stream-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stream-steps li {
  display: grid;
  grid-template-columns: 16px 160px 1fr;
  gap: 6px 14px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.stream-steps li:first-child { border-top: 0; padding-top: 0; }
.stream-steps li:last-child { padding-bottom: 0; }

.stream-steps .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper-faint);
  align-self: center;
}
.stream-steps .dot-amber { background: var(--amber); }
.stream-steps .dot-moss {
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(138, 168, 107, .16);
}

.stream-steps .state {
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--paper);
}
.stream-steps .is-verified .state { color: var(--moss); }
.stream-steps .desc {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--paper-muted);
}

@media (max-width: 560px) {
  .stream-steps li { grid-template-columns: 16px 1fr; }
  .stream-steps .desc { grid-column: 2; }
}

/* ---------- fact sheet ---------- */

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.facts > div {
  background: var(--coal-1);
  padding: 26px 24px 28px;
}
.band.alt .facts > div { background: var(--coal-2); }

.facts dt {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--amber-bright);
  margin-bottom: .45em;
}
.facts dd {
  margin: 0;
  color: var(--paper-muted);
  font-size: .93rem;
  line-height: 1.55;
}

/* ---------- status ---------- */

.status-cards { display: grid; gap: 16px; }

.status-cards .card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--paper-faint);
  border-radius: 8px;
  background: var(--coal-2);
  padding: 22px 24px 24px;
}
.band.alt .status-cards .card { background: var(--coal-1); }
.status-cards .card h3 { margin-bottom: .5em; }
.status-cards .card p {
  margin: 0;
  color: var(--paper-muted);
  font-size: .95rem;
}
.card.is-built { border-left-color: var(--moss); }
.card.is-spec  { border-left-color: var(--amber); }
.card.is-never { border-left-color: var(--clay); }

/* ---------- closing ---------- */

.closing {
  background:
    repeating-linear-gradient(-45deg, rgba(238, 230, 216, .016) 0 1px, transparent 1px 8px),
    radial-gradient(ellipse 60% 60% at 78% 100%, rgba(215, 149, 53, .10), transparent 70%),
    var(--coal-1);
}

.closing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
@media (max-width: 860px) {
  .closing-inner { grid-template-columns: 1fr; }
}
.closing h2 { max-width: 18ch; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--coal-0);
  padding: 40px 0 56px;
}
.foot-inner p { color: var(--paper-faint); }
.foot-inner p:first-child {
  font-family: var(--font-serif);
  color: var(--paper-muted);
  font-size: 1rem;
  margin-bottom: .8em;
}
.foot .small { max-width: 74ch; font-size: .8rem; line-height: 1.55; }

/* ---- Waitlist (the one interactive thing on the page) ---- */

.waitlist {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-strong);
}
.waitlist p { color: var(--paper-soft); max-width: 58ch; }
#waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.1rem;
}
#waitlist-form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--paper);
  background: var(--coal-0);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: .8em 1em;
}
#waitlist-form input[type="email"]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
#waitlist-form input[type="email"]::placeholder { color: var(--paper-faint); }
#waitlist-form button {
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--coal-0);
  background: var(--amber);
  border: 0;
  border-radius: 10px;
  padding: .8em 1.4em;
  cursor: pointer;
}
#waitlist-form button:hover { background: var(--amber-bright); }
#waitlist-form button:disabled { opacity: .55; cursor: default; }
#waitlist-form .trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.waitlist-msg {
  font-family: var(--font-mono);
  font-size: .85rem;
  margin-top: .8rem;
  min-height: 1.2em;
}
.waitlist-msg[data-tone="ok"] { color: var(--moss); }
.waitlist-msg[data-tone="err"] { color: var(--clay); }
.waitlist-msg[data-tone="wait"] { color: var(--paper-muted); }
