/* Jobbing public site. "Record, muted blue" (DESIGN.md, decision 0028).
   Values mirror the tokens in DESIGN.md; this static site has no build step, so they are restated here once. */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900; src: url("fonts/source-serif-4-latin-standard-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-display: swap; font-weight: 200 900; src: url("fonts/source-serif-4-latin-standard-italic.woff2") format("woff2-variations"); }

:root {
  --navy-950: #0d1724;
  --navy-900: #14253a;
  --navy-800: #1d3450;
  --navy-700: #2b4a6f;
  --harbor-700: #33577b;
  --harbor-600: #3d6690;
  --harbor-500: #5a82ab;
  --harbor-400: #7fa3c8;
  --harbor-300: #a3c3e4;
  --sky-200: #dce8f5;
  --sky-100: #e9f1f9;
  --dawn-300: #f3d59f;
  --paper: #f4f7fa;
  --paper-2: #e8eef4;
  --white: #ffffff;

  --bg: var(--white);
  --surface: var(--white);
  --surface-2: var(--paper);
  --surface-3: var(--paper-2);
  --text: var(--navy-900);
  --text-muted: #4c5d70;
  --placeholder: #66778a;
  --rule: #d8e0e8;
  --rule-strong: var(--navy-900);
  --action: var(--harbor-600);
  --action-hover: var(--harbor-700);
  --on-action: var(--white);
  --accent-ink: #2e5a86;
  --selected: var(--sky-200);
  --focus: var(--navy-900);
  --danger: #a5352b;
  --shadow: 0 1px 2px rgb(20 37 58 / 6%), 0 12px 32px -12px rgb(20 37 58 / 18%);
  --mark-tile: var(--navy-900);
  --mark-j: var(--harbor-300);
  --mark-dot: var(--dawn-300);

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 8px;
  --radius-sheet: 3px;
  --tap: 44px;
  --page: 1280px;
  --gutter: clamp(20px, 5.5vw, 80px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy-950);
    --surface: #121f30;
    --surface-2: #162536;
    --surface-3: #1c2e43;
    --text: #e8eef5;
    --text-muted: #a6b5c5;
    --placeholder: #8798ab;
    --rule: #293b51;
    --rule-strong: #e8eef5;
    --action: #93b6db;
    --action-hover: #b0cbe6;
    --on-action: var(--navy-950);
    --accent-ink: var(--harbor-300);
    --selected: #1f3550;
    --focus: var(--harbor-300);
    --danger: #f19a8e;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -12px rgb(0 0 0 / 60%);
    --mark-tile: var(--sky-100);
    --mark-j: #2e5a86;
    --mark-dot: var(--navy-900);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; }
::selection { background: var(--sky-200); color: var(--navy-900); }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
[hidden] { display: none !important; }
.wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; }
.skip:focus { left: 16px; }

/* type */
.display-hero { font: 400 clamp(44px, 6.6vw, 92px)/1.03 var(--serif); letter-spacing: -0.022em; }
.display { font: 400 clamp(34px, 4.3vw, 60px)/1.08 var(--serif); letter-spacing: -0.018em; }
.lead { font: 400 clamp(18px, 1.5vw, 21px)/1.6 var(--sans); max-width: 34em; }
.small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--text-muted); }
.path { font: 400 12.5px/1.4 var(--mono); letter-spacing: 0; color: var(--text-muted); }
em.turn { font-style: italic; font-weight: 400; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--sans); letter-spacing: -0.035em; color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.mark-tile { fill: var(--mark-tile); }
.mark-dot { fill: var(--mark-dot); }
.mark-j { fill: none; stroke: var(--mark-j); stroke-width: 5.5; }
.brand-plain { font-size: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap); padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface); color: var(--text); font: 600 15px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease; }
.btn:hover { background: var(--surface-2); border-color: var(--rule-strong); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--action); border-color: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-ink { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-ink:hover { background: var(--text-muted); border-color: var(--text-muted); }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 16px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn:hover .arr { transform: translateX(3px); }

/* form */
.field { display: grid; gap: 6px; }
.field label { font: 600 14px/1.4 var(--sans); }
.input { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: 400 16px/1 var(--sans); caret-color: var(--accent-ink); }
.input::placeholder { color: var(--placeholder); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.help { font-size: 14px; color: var(--text-muted); margin: 0; }
.error-text { font-size: 14px; color: var(--danger); font-weight: 500; margin: 0; }
.signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; max-width: 520px; }
.signup .field { grid-column: 1; }
.signup .help, .signup .error-text { grid-column: 1 / -1; }
.signup .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .signup { grid-template-columns: 1fr; } .signup .btn { width: 100%; } }
.confirm { max-width: 520px; padding: 18px 20px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--selected); color: var(--text); }
.confirm strong { display: block; font: 500 22px/1.25 var(--serif); margin-bottom: 4px; }
.confirm:focus { outline: 2px solid var(--focus); outline-offset: 3px; }

/* chip */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); font: 600 12.5px/1.4 var(--sans); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--action); box-shadow: 0 0 0 3px var(--selected); }

/* sheet and history rail */
.sheet { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius-sheet); box-shadow: var(--shadow); }
.sheet-tab { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule); font: 400 12px/1.4 var(--mono); color: var(--text-muted); }
.sheet-body { padding: 16px 14px 18px; }
.sheet h4 { font: 500 19px/1.25 var(--serif); margin-bottom: 6px; }
.sheet .line { height: 7px; border-radius: 2px; background: var(--surface-3); margin: 8px 0; }
.sheet .w60 { width: 60%; } .sheet .w85 { width: 85%; } .sheet .w75 { width: 75%; }
.front { margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px dashed var(--rule); font: 400 12.5px/1.75 var(--mono); color: var(--text); white-space: pre-wrap; }
.front .k { color: var(--text-muted); }
.front .v-hot { background: var(--selected); color: var(--text); padding: 1px 4px; border-radius: 2px; }
.rail { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); }
.rail li { position: relative; padding: 0 0 14px 22px; font-size: 14px; line-height: 1.45; }
.rail li::before { content: ""; position: absolute; left: 4px; top: 7px; bottom: -7px; width: 1px; background: var(--rule); }
.rail li:last-child::before { display: none; }
.rail li::after { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1px solid var(--text-muted); }
.rail li[data-current]::after { background: var(--action); border-color: var(--action); }
.rail .when { display: block; font: 400 12px/1.4 var(--mono); color: var(--text-muted); }

/* ledger */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.ledger > li { display: grid; grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1.2fr) minmax(0, 1.6fr); gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.ledger h3 { font: 500 clamp(22px, 2.2vw, 28px)/1.2 var(--serif); letter-spacing: -0.012em; }
.ledger p { margin: 0; color: var(--text-muted); }
@media (max-width: 760px) { .ledger > li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; } }

/* night band: the same ground in both themes */
.band, .site-footer { background: var(--navy-900); color: var(--sky-100); --text: var(--sky-100); --text-muted: var(--harbor-300); --rule: var(--navy-700); --rule-strong: var(--sky-100); --focus: var(--harbor-300); --surface: var(--navy-800); --accent-ink: var(--harbor-300); --action: var(--harbor-300); --action-hover: var(--sky-200); --on-action: var(--navy-900); --selected: var(--navy-800); --danger: #f19a8e; --placeholder: #4c5d70; }
.band ::selection { background: var(--harbor-300); color: var(--navy-900); }
.band .input { background: var(--sky-100); color: var(--navy-900); border-color: var(--sky-100); caret-color: var(--navy-900); }
.band .input[aria-invalid="true"] { border-color: #a5352b; box-shadow: inset 0 0 0 1px #a5352b; }
.band .brand { color: var(--sky-100); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-flush-top { padding-top: 0; }
.section-flush-bottom { padding-bottom: 0; }
.section-head { max-width: 860px; margin-bottom: clamp(32px, 4.5vw, 64px); }
.section-head .lead { margin-top: 24px; color: var(--text-muted); }

/* page chrome */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--rule); }
.nav-links { display: flex; align-items: center; gap: 30px; font: 600 14px/1 var(--sans); }
.nav-links a { text-decoration: none; }
.nav-links a:not(.btn) { padding-block: 14px; }
.nav-links a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero h1 { margin: 22px 0 26px; }
.hero .lead { margin-bottom: 34px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }

/* the stack: five versions of one record, the newest one open */
.stack-scene { position: relative; width: 100%; max-width: 560px; margin-inline: auto; padding: 21% 0 0 34%; }
.pane { position: absolute; width: 64%; height: 76%; border-radius: var(--radius-sheet); border: 1px solid var(--navy-900); transform-origin: 50% 100%; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pane span { position: absolute; left: 12px; top: 9px; font: 400 11px/1 var(--mono); color: var(--sky-100); }
.pane.p1 { left: 0; top: 0; background: var(--navy-700); }
.pane.p2 { left: 8%; top: 5%; background: var(--harbor-700); }
.pane.p3 { left: 16%; top: 10%; background: var(--harbor-600); }
.pane.p4 { left: 24%; top: 15%; background: var(--sky-200); }
.pane.p4 span { color: var(--navy-900); }
.stack-scene .sheet { position: relative; }
.stack-scene:hover .p1 { transform: translate(-10px, -6px) rotate(-1.2deg); }
.stack-scene:hover .p2 { transform: translate(-6px, -4px) rotate(-0.8deg); }
.stack-scene:hover .p3 { transform: translate(-3px, -2px) rotate(-0.4deg); }
@media (max-width: 520px) { .stack-scene { padding-left: 24%; } .front { font-size: 11px; } }

.promises, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 58px); margin: 0; padding: 0; }
.promises > div, .steps > li { list-style: none; border-top: 1px solid var(--rule-strong); padding-top: 22px; }
.promises h3 { font: 600 24px/1.2 var(--sans); letter-spacing: -0.02em; margin: 14px 0 12px; }
.steps h3 { font: 500 26px/1.2 var(--serif); margin: 0 0 10px; }
.promises p, .steps p { color: var(--text-muted); margin: 0; }
@media (max-width: 860px) { .promises, .steps { grid-template-columns: 1fr; } }

.shot { margin: 0; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--harbor-400); }
.shot-bar span { margin-left: 10px; font: 400 12px var(--mono); color: var(--text-muted); }
.shot img { display: block; width: 100%; height: auto; }
.shot-note { margin-top: 12px; }

.close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
@media (max-width: 860px) { .close { grid-template-columns: 1fr; } }
.site-footer { background: var(--navy-900); }
.site-footer .footer { margin-top: 0; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule); font-size: 14px; color: var(--text-muted); }
.footer nav { display: flex; gap: 24px; }
.footer nav a { padding-block: 12px; }

/* plain pages: privacy, thanks, removed */
.doc { max-width: 720px; padding-block: clamp(48px, 7vw, 96px); }
.doc h1 { margin-bottom: 28px; }
.doc h2 { font: 500 26px/1.2 var(--serif); margin: 44px 0 12px; }
.doc p, .doc li { color: var(--text); max-width: 65ch; }
.doc ul { padding-left: 1.2em; }
.doc .signup { margin-top: 20px; }
.footer-plain { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
