/* Rookwright splash page */
:root {
  --slate: #1E3A46;
  --keep: #173039;
  --slate-2: #2A4B56;
  --teal: #3B6670;
  --brass: #A8864F;
  --brass-light: #C9A66B;
  --parchment: #F3EFE6;
  --parchment-2: #EAE5D9;
  --lichen: #8FA39E;
  --ink: #1E3A46;
  --ink-muted: #4F6166;
  --rule: rgba(30, 58, 70, 0.14);
  --rule-dark: rgba(243, 239, 230, 0.14);
  --display: 'Barlow', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--slate); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 16px;
}
h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 20px; }
h3 { font-size: 22px; margin-bottom: 8px; }
p { margin: 0 0 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 6px;
  font-family: var(--body); font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--slate); color: var(--parchment); }
.btn-primary:hover { background: var(--keep); }
.btn-ghost { color: var(--slate); border: 1.5px solid var(--slate); }
.btn-ghost:hover { background: var(--slate); color: var(--parchment); }
.btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header .logo img { height: 34px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a.link { text-decoration: none; font-size: 15px; color: var(--ink-muted); }
.site-header nav a.link:hover { color: var(--slate); }
.site-header .btn { min-height: 42px; padding: 0 18px; font-size: 15px; white-space: nowrap; }

/* Hero */
.hero { padding: 96px 0 104px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); margin-bottom: 24px; }
.hero h1 .accent { color: var(--teal); }
.hero .lede { font-size: 20px; color: var(--ink-muted); max-width: 560px; margin-bottom: 36px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .mark { display: flex; justify-content: center; }
.hero .mark img { width: min(340px, 100%); height: auto; }

/* Hero graph illustration */
.hero-graph svg { display: block; width: 100%; max-width: 460px; height: auto; }
.hg-panel { fill: var(--parchment-2); }
.hg-caption text { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--ink-muted); }
.hg-edge path { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.hg-edge.hg-inner path { stroke: rgba(30, 58, 70, 0.22); }
.hg-flow path { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 14; animation: hg-flow 1.6s linear infinite; }
.hg-source rect { fill: var(--parchment); stroke: var(--rule); }
.hg-source text { font-family: var(--mono); font-size: 10.5px; fill: var(--slate); text-anchor: middle; }
.hg-node circle { fill: var(--slate); stroke: var(--parchment-2); stroke-width: 2; }
.hg-hub { fill: var(--teal); }
.hg-hub-ring { fill: none; stroke: var(--teal); stroke-width: 1.5; opacity: 0.35; }
.hg-control text { font-family: var(--mono); font-size: 10px; fill: var(--ink-muted); }
.hg-gate rect { fill: var(--slate); }
.hg-gate circle { fill: var(--brass-light); }
.hg-gate text { font-family: var(--mono); font-size: 10px; fill: var(--parchment); }
.hg-shield { fill: var(--slate); }
.hg-check { fill: none; stroke: var(--brass-light); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.hg-artifact-label { font-family: var(--mono); font-size: 11px; fill: var(--slate); }
@keyframes hg-flow { to { stroke-dashoffset: -34; } }
@media (prefers-reduced-motion: reduce) { .hg-flow { display: none; } }

/* Problem */
.problem { background: var(--keep); color: var(--parchment); padding: 96px 0; }
.problem .eyebrow { color: var(--lichen); }
.problem .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; }
.problem p { color: #D9DED8; font-size: 18px; }
.problem p.strong { color: var(--parchment); font-size: 20px; }

/* How it works */
.how { padding: 104px 0 96px; }
.how .intro { max-width: 640px; margin-bottom: 56px; }
.pipeline {
  display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.1fr) 40px minmax(0, 1fr);
  align-items: center; gap: 12px; margin-bottom: 72px;
  background: var(--parchment-2); border-radius: 14px; padding: 36px;
}
.pipeline .col-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.chips { display: flex; flex-direction: column; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 13px; padding: 9px 12px; border-radius: 6px;
  background: var(--parchment); border: 1px solid var(--rule); color: var(--slate);
}
.chip.live { background: var(--slate); color: var(--parchment); border-color: var(--slate); }
.chip.next { border-style: dashed; color: var(--ink-muted); }
.chip .tag { float: right; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.arrow { display: flex; justify-content: center; color: var(--teal); }
.graph { display: flex; flex-direction: column; gap: 5px; }
.graph span { display: block; height: 18px; border-radius: 3px; margin: 0 auto; }
.graph span:nth-child(1) { width: 78%; background: var(--slate); }
.graph span:nth-child(2) { width: 86%; background: #243F4B; }
.graph span:nth-child(3) { width: 82%; background: #294551; }
.graph span:nth-child(4) { width: 88%; background: #2F4B56; }
.graph span:nth-child(5) { width: 94%; background: #34505B; }
.graph span:nth-child(6) { width: 100%; background: var(--teal); }
.graph-label { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--slate); margin-top: 12px; line-height: 1.5; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { border-top: 2px solid var(--slate); padding-top: 20px; }
.step .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--brass); margin-bottom: 10px; display: block; }
.step p { color: var(--ink-muted); font-size: 16px; }

/* Assessors */
.assessors { padding: 96px 0; border-top: 1px solid var(--rule); }
.assessors .intro { max-width: 640px; margin-bottom: 48px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #FAF8F3; border: 1px solid var(--rule); border-radius: 12px; padding: 32px; }
.card .icon { width: 40px; height: 40px; border-radius: 8px; background: var(--slate); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card p { color: var(--ink-muted); font-size: 16px; margin: 0; }

/* Story */
.story { background: var(--slate); color: var(--parchment); padding: 104px 0; }
.story .eyebrow { color: var(--lichen); }
.story .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: center; }
.story .mark img { width: min(300px, 100%); height: auto; margin: 0 auto; }
.story p { color: #DCE2DD; font-size: 18px; }
.story .def { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--rule-dark); }
.story .def:last-of-type { border-bottom: 1px solid var(--rule-dark); margin-bottom: 28px; }
.story .def .term { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--parchment); line-height: 1.3; }
.story .def p { margin: 0; font-size: 17px; }
.story .coda { color: var(--parchment); font-size: 19px; }
.story .coda .brass { color: var(--brass-light); }

/* Closing */
.closing { padding: 112px 0; text-align: center; }
.closing h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }
.closing p { color: var(--ink-muted); font-size: 19px; margin-bottom: 36px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer img { height: 26px; width: auto; }
.site-footer small { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); letter-spacing: 0.04em; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap, .problem .wrap, .story .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero .mark { order: -1; justify-content: flex-start; }
  .hero .mark.hero-graph { order: 0; justify-content: center; }
  .hero .mark img { width: 140px; }
  .story .mark img { width: 160px; margin: 0; }
  .pipeline { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .arrow { transform: rotate(90deg); height: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header nav a.link { display: none; }
  .site-header .logo img { height: 26px; }
  .site-header .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .story .def { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .problem, .how, .assessors, .story, .closing { padding: 72px 0; }
}
