/* CAD on Chain — Design Passport landing page
   Palette and faces shared with the 2026-08-24 decision memo (drafting-sheet identity):
   Barlow Semi Condensed (display) · Source Serif 4 (body) · IBM Plex Mono (marks) · verdigris #0F6E6E. */

:root {
  --paper: #F3F5F7;
  --sheet: #FBFCFD;
  --ink: #1B2430;
  --ink-2: #4A5563;
  --ink-3: #7A8592;
  --line: #CBD3DB;
  --line-2: #E2E7EC;
  --grid: rgba(27,36,48,0.045);
  --accent: #0F6E6E;
  --accent-ink: #0B5656;
  --accent-wash: #E3F0EF;
  --accent-contrast: #FFFFFF;
  --dead: #A63D2F;
  --font-display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1418;
    --sheet: #141B21;
    --ink: #E6EBEF;
    --ink-2: #B4BEC8;
    --ink-3: #7F8B97;
    --line: #2B3944;
    --line-2: #1F2A33;
    --grid: rgba(230,235,239,0.05);
    --accent: #3FB8B0;
    --accent-ink: #7AD6CF;
    --accent-wash: #16302F;
    --accent-contrast: #0E1418;
    --dead: #E07A6A;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1418;
  --sheet: #141B21;
  --ink: #E6EBEF;
  --ink-2: #B4BEC8;
  --ink-3: #7F8B97;
  --line: #2B3944;
  --line-2: #1F2A33;
  --grid: rgba(230,235,239,0.05);
  --accent: #3FB8B0;
  --accent-ink: #7AD6CF;
  --accent-wash: #16302F;
  --accent-contrast: #0E1418;
  --dead: #E07A6A;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font-family: var(--font-mono); font-size: 0.86em; background: var(--accent-wash); padding: 1px 5px; border-radius: 3px; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); min-width: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-contrast); padding: 8px 12px; font-family: var(--font-display); z-index: 10; }
.skip:focus { left: 8px; }

/* ---- header ---- */
.top { border-bottom: 1.5px solid var(--ink); background: var(--sheet); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.mark { width: 62px; height: 40px; object-fit: contain; flex: none; }
.mark-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark-light { display: none; } :root:not([data-theme="light"]) .mark-dark { display: block; } }
:root[data-theme="dark"] .mark-light { display: none; }
:root[data-theme="dark"] .mark-dark { display: block; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.01em; line-height: 1; white-space: nowrap; }
.wordmark-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.2; }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.theme { font: 18px/1 var(--font-mono); width: 40px; height: 40px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink); border-radius: 4px; cursor: pointer; }
.theme:hover { border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 560px) {
  .wordmark-tag, .top-actions .btn-sm { display: none; }
  .mark { width: 47px; height: 30px; }
  .wordmark { font-size: 20px; }
}

/* ---- buttons ---- */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0.03em;
  color: var(--accent-contrast); background: var(--accent); border: 1.5px solid var(--accent);
  padding: 12px 22px; border-radius: 4px; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent-contrast); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 18px; }

/* ---- hero ---- */
.hero { background: var(--sheet); border-bottom: 1.5px solid var(--ink); padding: 56px 0 60px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 7vw, 76px); line-height: 1.0; letter-spacing: -0.01em;
  margin: 0 0 22px; max-width: 14ch; text-wrap: balance;
}
.lede { font-size: clamp(18px, 2.3vw, 22px); line-height: 1.5; max-width: 34em; color: var(--ink-2); margin: 0 0 30px; }
.hero-cta { margin: 0; }
@media (min-width: 900px) { .hero { padding: 96px 0 100px; } }

/* ---- sections ---- */
main > section { padding: 56px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { main > section { padding: 80px 0; } }
.sec-head { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: baseline; margin-bottom: 20px; }
.sec-head .n { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); letter-spacing: 0.08em; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.08; margin: 0; text-wrap: balance; }
.intro { font-size: clamp(18px, 2vw, 20px); max-width: 36em; color: var(--ink-2); margin: 0 0 28px; padding-left: 58px; }
@media (max-width: 560px) { .intro { padding-left: 0; } .sec-head { grid-template-columns: 34px 1fr; gap: 10px; } }

/* what: five stamps */
.stamps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .stamps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
.stamps li { background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 18px 18px 20px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); min-width: 0; position: relative; }
.stamps li b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.stamp-n { position: absolute; top: 12px; right: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* why: three flows */
.flows { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .flows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.flows p { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); position: relative; min-width: 0; }
.flow-n { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); letter-spacing: 0.08em; margin-bottom: 8px; }

/* who: four audiences */
.audiences { display: grid; gap: 18px 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.audiences p { margin: 0; background: var(--sheet); border: 1px solid var(--line); padding: 20px 22px; min-width: 0; }
.audiences b, .nots b { font-family: var(--font-display); font-weight: 700; font-size: 20px; display: block; margin-bottom: 4px; color: var(--ink); }

/* not: three ruled statements */
.nots { display: grid; gap: 0; max-width: 62em; }
.nots p { margin: 0; padding: 18px 0 18px 22px; border-left: 3px solid var(--dead); border-bottom: 1px solid var(--line-2); }
.nots p:last-child { border-bottom: none; }
.nots b { color: var(--dead); }

/* waitlist */
.waitlist { background: var(--sheet); border-bottom: 1.5px solid var(--ink); }
.waitlist h2 { max-width: 16ch; margin-bottom: 26px; }
.wl-form { max-width: 560px; }
.wl-label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.wl-row { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .wl-row { grid-template-columns: minmax(0, 1fr) auto; } }
.wl-row input {
  width: 100%; min-width: 0; font: 17px/1.3 var(--font-body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 4px; padding: 12px 14px;
}
.wl-row input:focus { border-color: var(--accent); }
.wl-row .btn { width: 100%; }
@media (min-width: 560px) { .wl-row .btn { width: auto; } }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 12px 0 0; min-height: 1.4em; }
.form-msg.ok { color: var(--accent-ink); }
.form-msg.err { color: var(--dead); }
.done .wl-row { display: none; }
.privacy { color: var(--ink-2); font-size: 15px; margin: 14px 0 0; max-width: 34em; }

/* ---- footer: a single title-block strip ---- */
.titleblock { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); padding: 18px 0 28px; }
.titleblock p { margin: 0; line-height: 1.9; }
.titleblock a { color: var(--ink); }
