/* rowantonkin.ai, The Dossier design system.
   Source of truth: Rowan's "Dossier" system (Claude Design export, 2026-07-02),
   superseding the earlier paper/ink system. Tokens verbatim from tokens/*.css. */

/* ---------- tokens: color ---------- */
:root {
  --paper: #FCFBF9;
  --ink: #131210;
  --body: #3A362F;
  --muted: #6C685F;
  --faint: #A8A399;
  --hairline: #DDD9D0;
  --wash: #F4F2ED;

  --vermilion: #DE3A16;

  --panel: #131210;
  --panel-deep: #0E0D0B;
  --panel-hairline: #211F1A;
  --panel-rule: #3A362F;
  --panel-text: #FCFBF9;
  --panel-body: #B8B4AB;
  --panel-muted: #8C8578;

  /* type */
  --font-display: 'Archivo', sans-serif;
  --font-voice: 'Instrument Serif', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* layout */
  --page-max: 1440px;
  --pad-x: 64px;
  --col-number: 96px;
  --rule-section: 2px solid var(--ink);
  --rule-hairline: 1px solid var(--hairline);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
p, h1, h2, h3, li { overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
::selection { background: var(--wash); }

/* ---------- the bound document ---------- */
.frame {
  max-width: var(--page-max);
  margin: 0 auto;
  border-left: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

/* ---------- type ---------- */
h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 26px;
  max-width: 15ch;
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -1px;
  line-height: 1.0;
  color: var(--ink);
  margin: 0 0 36px;
}
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0 0 10px;
}
p { margin: 0 0 16px; max-width: 68ch; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.75; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 2px; }
strong { font-weight: 700; color: var(--ink); }

.lede { font-size: 20px; line-height: 1.5; color: var(--body); max-width: 54ch; }
.voice {
  font-family: var(--font-voice);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 66ch;
}
.mono { font-family: var(--font-mono); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--pad-x);
  border-bottom: var(--rule-section);
  background: var(--paper);
  flex-wrap: wrap;
}
.wordmark { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.wordmark:hover { opacity: 1; }
.wordmark .name { font-weight: 800; font-size: 22px; letter-spacing: -0.4px; color: var(--ink); }
.wordmark .tag { font-family: var(--font-mono); font-size: 11px; color: var(--vermilion); letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-family: var(--font-mono); font-size: 13px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
}
.btn:hover { opacity: 1; }
.btn-primary { background: var(--vermilion); color: var(--paper); font-weight: 700; font-size: 16px; padding: 14px 26px; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); font-weight: 600; font-size: 16px; padding: 12px 24px; }
.btn-ghost:hover { background: var(--wash); }
.btn-ink { background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; padding: 10px 16px; }
.btn-ink:hover { background: var(--vermilion); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 30px 0 34px; align-items: center; }

/* ---------- kicker strip ---------- */
.kicker {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px var(--pad-x);
  border-bottom: var(--rule-hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.kicker .lbl { letter-spacing: 1.5px; text-transform: uppercase; }
.kicker .note { color: var(--vermilion); }

/* ---------- hero ---------- */
.hero { padding: 72px var(--pad-x) 56px; border-bottom: var(--rule-section); }

/* press strip: mono line, vermilion separators */
.pressline {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  padding-top: 26px; border-top: var(--rule-hairline);
}
.pressline a { color: var(--muted); text-decoration: none; }
.pressline a:hover { color: var(--ink); opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.pressline .sep { color: var(--vermilion); }

/* ---------- numbered sections ---------- */
.sec {
  display: grid;
  grid-template-columns: var(--col-number) 1fr;
  border-bottom: var(--rule-section);
}
.sec .num {
  border-right: var(--rule-hairline);
  padding: 60px 0 0 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--vermilion);
}
.sec .sec-body { padding: 60px 56px; min-width: 0; }

/* claims + record rows: date column, ruled */
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: var(--rule-hairline);
}
.rows .row:last-child { border-bottom: 1px solid var(--ink); }
.row .key { font-family: var(--font-mono); font-size: 12px; color: var(--vermilion); padding-top: 6px; }
.row .rtitle { font-weight: 700; font-size: 28px; letter-spacing: -0.6px; color: var(--ink); margin: 0 0 12px; }
.row .rsub { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.row p { max-width: 72ch; }
.row p:last-child { margin-bottom: 0; }

/* ---------- dark panel (one per page, reserved for the work) ---------- */
.panel {
  background: var(--panel);
  color: var(--panel-text);
  border-bottom: var(--rule-section);
  padding: 60px var(--pad-x);
}
.panel .plabel { font-family: var(--font-mono); font-size: 12px; color: var(--vermilion); margin-bottom: 18px; letter-spacing: 1.5px; text-transform: uppercase; }
.panel h2 { color: var(--panel-text); margin-bottom: 22px; }
.panel p { color: var(--panel-body); font-size: 18px; max-width: 62ch; }
.panel .voice { color: var(--panel-text); font-size: 26px; max-width: 40ch; margin-top: 34px; }
.panel .btn-ghost { border-color: var(--panel-text); color: var(--panel-text); }
.panel .btn-ghost:hover { background: var(--panel-hairline); }

/* ---------- footer ---------- */
.footer { border-top: var(--rule-section); }
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px var(--pad-x);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.footer .fname { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -0.4px; margin-bottom: 8px; }
.footer .fright { text-align: right; line-height: 1.9; }
.footer .fright a { color: var(--ink); text-decoration: none; }
.footer .fright a:hover { text-decoration: underline; text-underline-offset: 3px; opacity: 1; }
.footer .colophon { color: var(--faint); max-width: 44ch; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --pad-x: 24px; }
  .sec { grid-template-columns: 1fr; }
  .sec .num { border-right: none; border-bottom: var(--rule-hairline); padding: 18px var(--pad-x); }
  .sec .sec-body { padding: 36px var(--pad-x); }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .row .key { padding-top: 0; }
  .row .rtitle { font-size: 24px; }
  .hero { padding: 48px var(--pad-x) 40px; }
  .panel { padding: 44px var(--pad-x); }
  .footer .fright { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding: 14px var(--pad-x); gap: 10px 16px; }
  .nav-links { gap: 14px 20px; width: 100%; }
  .nav-links .btn { margin-left: auto; }
  .btn { display: block; text-align: center; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .lede { font-size: 18px; }
  .pressline { gap: 10px 14px; }
  .panel .voice { font-size: 22px; }
}
