/* 88 Land — black, sharp yellow and white.
   Layout: a single reading column (max ~72ch) on warm paper, broken by full-bleed navy
   "plan" bands that carry the survey-drawing artwork and the deal sheets. */
:root {
  --navy: #0a0a0a;
  --navy-2: #161616;
  --charcoal: #222222;
  --ink: #0a0a0a;
  --muted: #555555;
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --rule: #e3e3e0;
  --gold: #f5c400;
  --gold-soft: #ffd633;
  --on-navy: #ffffff;
  --on-navy-muted: #b5b5b5;

  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.1rem);

  --wrap: 72rem;
  --read: 42rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; color: inherit; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--body); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 0; }
.prose li + li { margin-top: 0.45em; }
.lede { font-family: var(--display); font-size: var(--step-1); line-height: 1.5; color: var(--charcoal); }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--on-navy); padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.read { max-width: var(--read); }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band { background: var(--navy); color: var(--on-navy); }
.band .muted, .band .lede { color: var(--on-navy-muted); }
.band-2 { background: var(--paper-2); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy); color: var(--on-navy); border-bottom: 1px solid rgba(245, 196, 0, 0.18); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: baseline; gap: 0.5rem; text-decoration: none; }
.brand-mark { font-family: var(--display); font-size: 1.7rem; color: var(--gold-soft); line-height: 1; }
.brand-word { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase; }
.nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--on-navy); opacity: 0.86; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--gold); }
.nav .btn { opacity: 1; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, 0.35); color: var(--on-navy); font: inherit; font-size: 0.85rem; padding: 0.45rem 0.8rem; border-radius: 2px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 1px solid rgba(245, 196, 0, 0.25); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem max(20px, env(safe-area-inset-right, 0px)) 1.25rem max(20px, env(safe-area-inset-left, 0px)); }
  .nav li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 1.05rem; }
  .nav li:last-child a { margin-top: 1rem; text-align: center; border-bottom: 0; }
}

/* Buttons */
.btn { display: inline-block; font-family: var(--body); font-size: 0.95rem; font-weight: 500; text-decoration: none; padding: 0.8rem 1.3rem; border-radius: 2px; border: 1px solid var(--gold); background: var(--gold); color: var(--navy); cursor: pointer; transition: background 0.2s, color 0.2s; }
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: transparent; border-color: var(--gold); color: inherit; }
.nav .btn { padding: 0.55rem 1rem; color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); padding-block: clamp(3rem, 7vw, 6rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.hero h1 { margin-top: 1rem; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lede { margin-top: 1.5rem; color: var(--on-navy-muted); max-width: 34rem; }
.hero-copy { padding-bottom: clamp(3rem, 6vw, 5rem); min-width: 0; }
.hero-plan { align-self: stretch; display: flex; align-items: flex-end; min-width: 0; }
.hero-plan img { width: 100%; }
.plan-caption { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--on-navy-muted); padding-block: 0.8rem 1.2rem; border-top: 1px solid rgba(245, 196, 0, 0.2); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-copy { padding-bottom: 0; } }

.page-head { background: var(--navy); color: var(--on-navy); padding-block: clamp(3rem, 7vw, 5rem); }
.page-head h1 { font-size: var(--step-4); margin-top: 0.9rem; max-width: 20ch; }
.page-head .lede { color: var(--on-navy-muted); margin-top: 1.25rem; max-width: 38rem; }
.crumbs { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--on-navy-muted); }
.crumbs a { color: var(--on-navy-muted); }

/* Section heading row */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 4rem; align-items: start; margin-bottom: 3rem; }
.sec-head h2 { margin-top: 0.7rem; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

/* Principles list (governance first) */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.principle { padding: 2rem 2rem 2.2rem 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 1rem; }
.principle:nth-child(odd) { border-right: 1px solid var(--rule); }
.principle:nth-child(even) { padding-left: 2rem; }
.principle .tag { font-family: var(--mono); font-size: 0.75rem; color: var(--gold); padding-top: 0.45rem; }
.principle h3 { font-size: var(--step-2); }
.principle p { margin-top: 0.7rem; color: var(--charcoal); }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { padding: 1.6rem 0; border-right: 0; }
  .principle:nth-child(odd) { border-right: 0; }
}

/* Stage sequence */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: stage; }
.stage { padding: 1.4rem 1.2rem 1.6rem 0; border-top: 2px solid var(--gold); position: relative; min-width: 0; }
.stage + .stage { padding-left: 1.2rem; border-left: 1px solid rgba(245, 196, 0, 0.18); }
.stage .num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--gold-soft); }
.stage h3 { font-size: 1.35rem; margin-top: 0.6rem; }
.stage p { font-size: 0.93rem; margin-top: 0.6rem; color: var(--on-navy-muted); }
.stage .gate { display: block; margin-top: 0.9rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--gold-soft); }
.band-light .stage p { color: var(--charcoal); }
.band-light .stage .num, .band-light .stage .gate { color: var(--gold); }
.band-light .stage + .stage { border-left-color: var(--rule); }
@media (max-width: 960px) {
  .stages { grid-template-columns: 1fr; }
  .stage, .stage + .stage { padding: 1.2rem 0 1.4rem 1.2rem; border-top: 0; border-left: 2px solid var(--gold); }
}

/* Deal sheet */
.deal { background: var(--paper); color: var(--ink); border: 1px solid var(--rule); min-width: 0; }
.band .deal { border-color: transparent; }
.deal-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.6rem 1.5rem; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--rule); }
.deal-top h3 { font-size: var(--step-2); }
.deal-id { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); }
.deal-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.deal-body > div { padding: 1.4rem 1.6rem; min-width: 0; }
.deal-body > div + div { border-left: 1px solid var(--rule); }
@media (max-width: 760px) { .deal-body { grid-template-columns: 1fr; } .deal-body > div + div { border-left: 0; border-top: 1px solid var(--rule); } }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.kv dt, .kv dd { padding: 0.55rem 0; border-bottom: 1px dotted var(--rule); margin: 0; font-size: 0.93rem; }
.kv dt { color: var(--muted); padding-right: 1rem; }
.kv dd { font-family: var(--mono); font-size: 0.85rem; text-align: right; font-variant-numeric: tabular-nums; }
.deal h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px dotted var(--rule); font-size: 0.93rem; }
.timeline .when { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.deal-foot { padding: 1rem 1.6rem; border-top: 1px solid var(--rule); font-size: 0.82rem; color: var(--muted); }
.deal-grid { display: grid; gap: 2rem; }

/* Placeholder marker: deliberately obvious so nothing unconfirmed ships by accident */
.ph { display: inline; font-family: var(--mono); font-size: 0.82em; background: rgba(245, 196, 0, 0.13); border: 1px dashed var(--gold); color: inherit; padding: 0.05em 0.4em; border-radius: 2px; white-space: normal; }
.ph-block { border: 1px dashed var(--gold); background: rgba(245, 196, 0, 0.08); padding: 1rem 1.2rem; font-size: 0.92rem; }
.band .ph { background: rgba(245, 196, 0, 0.12); }

/* Tables */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 34rem; }
th, td { text-align: left; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
td:first-child { font-weight: 600; }

/* Two column content */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem 4rem; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.aside-note { border-left: 2px solid var(--gold); padding-left: 1.2rem; color: var(--charcoal); font-size: 0.95rem; }
.sticky-side { position: sticky; top: 6rem; align-self: start; }
@media (max-width: 860px) { .sticky-side { position: static; } }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 3rem; }
.checks li { break-inside: avoid; padding: 0.7rem 0 0.7rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; font-size: 0.97rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: 0.7rem; height: 0.7rem; border: 1px solid var(--gold); }
@media (max-width: 760px) { .checks { columns: 1; } }

/* Article / insight cards */
.reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.read-item { padding: 1.6rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.read-item + .read-item { padding-left: 1.6rem; border-left: 1px solid var(--rule); }
.read-item h3 { font-size: 1.45rem; }
.read-item p { color: var(--charcoal); font-size: 0.95rem; }
.read-item .more { margin-top: auto; font-size: 0.9rem; text-decoration: underline; text-decoration-color: var(--gold); }
.read-item:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; }
@media (max-width: 860px) { .reads { grid-template-columns: 1fr; } .read-item, .read-item + .read-item { padding: 1.4rem 0; border-left: 0; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.2rem 1.2rem 0; font-family: var(--display); font-size: 1.3rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 1.05rem; font-family: var(--mono); color: var(--gold); font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding-bottom: 1.4rem; color: var(--charcoal); }
.faq .answer > * + * { margin-top: 0.8em; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group > .eyebrow { display: block; margin-bottom: 1rem; }

/* Compare */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); margin-top: 1.5rem; }
.compare > div { padding: 1.4rem 1.5rem; min-width: 0; }
.compare > div + div { border-left: 1px solid var(--rule); }
.compare ul { padding-left: 1.1em; margin: 0.6rem 0 0; }
.compare li + li { margin-top: 0.4rem; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid var(--rule); } }

/* Forms */
.form { display: grid; gap: 1.2rem; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
label { font-size: 0.88rem; font-weight: 500; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 2px; padding: 0.75rem 0.85rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
textarea { min-height: 8rem; resize: vertical; }
.check-row { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; }
.check-row input { width: auto; margin-top: 0.3rem; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 1rem 1.2rem; border-left: 2px solid var(--gold); background: var(--paper-2); }

/* Callout band */
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; }
.cta-band h2 { max-width: 22ch; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--on-navy-muted); font-size: 0.9rem; padding-block: 3.5rem 2rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-grid h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.9rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.foot-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; line-height: 1.6; display: grid; gap: 0.8rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

.preview-note { background: var(--gold); color: var(--navy); font-size: 0.8rem; text-align: center; padding: 0.4rem max(16px, env(safe-area-inset-right, 0px)) 0.4rem max(16px, env(safe-area-inset-left, 0px)); }

/* v2: yellow is too light for text on white, so on light grounds labels are black with a yellow marker */
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; }
.eyebrow::before { content: ""; width: 0.9rem; height: 0.9rem; background: var(--gold); flex: none; }
section:not(.band):not(.hero):not(.page-head) .eyebrow { color: var(--ink); }
.principle .tag, .band-light .stage .num, .band-light .stage .gate, .deal h4 { color: var(--ink); }
.principle .tag { background: var(--gold); width: 2rem; height: 2rem; display: grid; place-items: center; padding: 0; font-weight: 500; }
.stage { border-top-width: 3px; }
.stage .gate { font-family: var(--body); font-size: 0.85rem; font-weight: 500; letter-spacing: 0; color: var(--gold); }
.stages-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stages-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; } .stages-6 .stage:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 960px) { .stages-6 { grid-template-columns: 1fr; row-gap: 0; } .stages-6 .stage:nth-child(4) { padding-left: 1.2rem; border-left: 2px solid var(--gold); } }
.vision { font-family: var(--display); font-size: var(--step-3); line-height: 1.25; text-wrap: balance; border-left: 6px solid var(--gold); padding-left: 1.5rem; }
.hero h1 em { color: var(--gold); }
.compare h4 { display: inline-block; background: var(--gold); padding: 0.15rem 0.5rem; }
.faq summary::after { color: var(--ink); background: var(--gold); width: 1.6rem; height: 1.6rem; display: grid; place-items: center; font-size: 1rem; top: 1.15rem; }
.checks li::before { background: var(--gold); border-color: var(--gold); }
.aside-note, .vision { border-color: var(--gold); }
a { text-decoration-thickness: 2px; }
.site-footer { background: var(--navy); border-top: 4px solid var(--gold); }
.foot-grid h4 { color: var(--gold); }
.site-header { border-bottom: 3px solid var(--gold); }
