:root {
  --primary: #087A5B;
  --primary-ink: #065844;
  --accent: #E28222;
  --accent-ink: #5c3108;
  --background: #F2FAF6;
  --surface: #FFFFFF;
  --surface-2: #DCF3E8;
  --ink: #12322B;
  --muted: #3d5c54;
  --border: #BFE2D4;
  --rule: #8fc9b4;
  --danger: #8b2e2e;
  --focus: #065844;
  --header-h: 68px;
  --ticker-h: 34px;
  --sticky-cta: 72px;
  --radius: 4px;
  --shadow: 0 10px 28px rgba(18, 50, 43, 0.08);
  --font-display: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
}

@font-face declarations moved to variables.css.

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  min-width: 0;
}

body.nav-open { overflow: hidden; }

img, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: var(--primary-ink); }
a:hover { color: var(--primary); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 400;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}

.container-narrow { width: min(760px, calc(100% - 32px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 320;
  background: rgba(242, 250, 246, 0.96);
  border-bottom: 1px solid var(--border);
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 15px;
  white-space: nowrap;
}
.brand-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.main-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav a[aria-current="page"] {
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #1a1208;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  min-height: 44px;
}
.header-cta:hover { color: #1a1208; filter: brightness(0.96); }

.hamburger {
  display: none;
  position: relative;
  z-index: 300;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--ticker-h);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker b { color: var(--primary); font-weight: 700; }
.ticker-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: ticker 36s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(18, 50, 43, 0.28);
}
.mobile-drawer.is-open { display: block; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 100%);
  height: 100%;
  background: var(--surface);
  padding: 20px 20px 96px;
  overflow: auto;
  border-left: 1px solid var(--border);
}
.drawer-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius);
}
.drawer-panel ul { list-style: none; margin: 20px 0 0; padding: 0; }
.drawer-panel li { border-bottom: 1px solid var(--border); }
.drawer-panel a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
}

.page-index {
  position: sticky;
  top: calc(var(--header-h) + var(--ticker-h) + 16px);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 12px;
  font-size: 13px;
}
.page-index ol { margin: 8px 0 0; padding-left: 18px; }
.page-index a { text-decoration: none; color: var(--ink); }

section[id] { scroll-margin-top: 120px; }

.band { padding: 56px 0; }
.band-mint { background: var(--surface-2); }
.band-paper { background: var(--surface); }
.band-ink {
  background: var(--ink);
  color: #e8f6f0;
}
.band-ink a { color: #b7ebcf; }
.band-ink .muted { color: #c5ddd4; }

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
h1 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 14px; }
h3 { font-size: 22px; margin: 0 0 10px; }
h4 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 14px; max-width: var(--measure); }
.lede { font-size: 20px; line-height: 1.45; max-width: 42ch; }
.muted { color: var(--muted); }

.cover {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
  padding: 28px 0 40px;
}
.cover-copy { min-width: 0; }
.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-play {
  background: var(--accent);
  color: #1a1208;
}
.btn-play:hover { color: #1a1208; }
.band-ink .btn-play { color: #1a1208; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.frame {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-2);
}
.frame figcaption,
.caption {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 4px 2px;
}

.compliance,
.disclaimer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--muted);
  border-block: 1px solid var(--border);
  padding: 12px 0;
}
.compliance span::before { content: "• "; color: var(--primary); }

.ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.ledger-cell {
  background: var(--surface);
  padding: 18px 16px;
  min-width: 0;
}
.ledger-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}

.rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.rail article {
  min-width: 0;
  border-top: 3px solid var(--primary);
  padding-top: 12px;
}
.rail time { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.choice {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 24px;
}
.choice fieldset {
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 0;
  padding: 8px;
}
.choice label {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.choice label:last-child { border-bottom: 0; }
.choice input { margin-right: 8px; }
.choice-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  min-width: 0;
}

.score-list { list-style: none; margin: 0; padding: 0; }
.score-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.score-list b {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--primary);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.split > * { min-width: 0; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { background: var(--surface-2); font-weight: 700; }

.timeline { border-left: 2px solid var(--primary); padding-left: 20px; }
.timeline article { margin: 0 0 22px; }
.timeline h3 { margin-bottom: 6px; }

.shelf {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.shelf .wide { grid-row: span 2; }
.shelf article {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  min-width: 0;
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  max-width: 22ch;
}
.quote footer { font-family: var(--font-body); font-size: 14px; color: var(--muted); margin-top: 12px; }

.feed { display: grid; gap: 0; }
.feed a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.feed img { width: 96px; height: 64px; object-fit: cover; }

.defs {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: 8px 20px;
}
.defs dt { font-weight: 700; }
.defs dd { margin: 0 0 10px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.step {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 16px;
  min-width: 0;
}
.step-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--primary);
}

.inventory { columns: 2; gap: 28px; }
.inventory p { break-inside: avoid; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-top: 1px solid var(--border); }
.link-list a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  font-weight: 650;
}

.manifesto { counter-reset: man; }
.manifesto li {
  list-style: none;
  counter-increment: man;
  padding: 10px 0 10px 42px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.manifesto li::before {
  content: counter(man, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--primary);
  font-family: var(--font-display);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.prose a { text-decoration: underline; text-underline-offset: 2px; }

.hero, #hero {
  min-height: 480px;
}
.page-hero {
  padding: 28px 0 12px;
}
.page-hero .frame img { aspect-ratio: 16 / 7; }

.inline-image-row {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 20px;
  align-items: center;
  margin: 22px 0;
}
.inline-image-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
}

.card,
.data-card,
.step-card,
.loose-card {
  border: 1px solid var(--border);
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
}
.faq-grid { display: grid; gap: 0; }

.site-footer {
  background: var(--ink);
  color: #d7eee6;
  padding: 40px 0 120px;
}
.site-footer a { color: #d7eee6; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.site-footer h2 {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ed4c0;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.fineprint { font-size: 13px; color: #b7cfc6; margin-top: 24px; }

.mobile-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 260;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.mobile-sticky .btn-play {
  width: 100%;
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .masthead { grid-template-columns: minmax(0, 1fr) auto auto; }
  .page-index { display: none; }
  .cover,
  .choice,
  .split,
  .shelf,
  .cta-band,
  .inline-image-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .ledger,
  .rail,
  .steps,
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory { columns: 1; }
  .defs { grid-template-columns: minmax(0, 1fr); }
  .mobile-drawer { z-index: 360; }
  .mobile-drawer .drawer-panel { z-index: 361; }
  .mobile-drawer .drawer-close { position: relative; z-index: 362; }
}

@media (max-width: 899px) {
  .hero, #hero, .cover {
    min-height: 480px !important;
    max-height: 720px !important;
    padding: 20px 0 28px !important;
  }
  .cover .frame img { height: 220px; }
  h1, #hero-h { font-size: 32px !important; line-height: 1.12 !important; }
  .lede { font-size: 16px !important; }
  .ticker { display: none; }
}

@media (max-width: 640px) {
  .ledger,
  .rail,
  .steps,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .feed a { grid-template-columns: 72px minmax(0, 1fr); }
  .mobile-sticky { display: block; }
  body { padding-bottom: calc(var(--sticky-cta) + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-transparency: reduce) {
  .ticker, .page-index, .site-header { background: var(--background); backdrop-filter: none; }
}
