/* FAROS — shared styles for the information pages.
   The homepage is deliberately self-contained: it is a full-viewport canvas
   piece and shares nothing here but the palette and the type. */

:root {
  --ink:      #04070f;
  --deep:     #070c17;
  --band:     #0a1120;
  --line:     rgba(150, 180, 214, 0.14);
  --line-dim: rgba(150, 180, 214, 0.10);
  --paper:    #f2ede1;
  --bright:   #fbf7ee;
  --body:     #a3aebf;
  --muted:    #8794a8;
  --faint:    #6b7789;
  --gold:     #ffd79a;
  --gold-dim: #c9a961;

  --serif: Spectral, Georgia, "Times New Roman", serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(24px, 6vw, 96px);
  --maxw:   1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* the lamp is just off the top-left of every page */
body::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 420px;
  pointer-events: none;
  background: radial-gradient(70% 100% at 12% 0%, rgba(255, 215, 154, 0.10) 0%, rgba(255, 215, 154, 0) 62%);
}

p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; }
strong { font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.lbl {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.mono { font-family: var(--mono); }
.rule { height: 1px; background: var(--line); }

/* ---------------- nav ---------------- */
.nav {
  border-bottom: 1px solid var(--line-dim);
  position: relative; z-index: 2;
}
.nav__in {
  max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.wordmark { display: flex; align-items: center; gap: 12px; }
.wordmark span {
  font-size: 16px; font-weight: 600; letter-spacing: .2em; color: var(--paper);
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a[aria-current="page"] { color: var(--gold); }
.btn {
  display: inline-block; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: .04em; color: var(--ink); background: var(--gold);
  padding: 10px 18px; white-space: nowrap;
}
.btn:hover { background: #fff; color: var(--ink); }

/* ---------------- hero ---------------- */
.hero { padding: clamp(52px, 8vw, 86px) 0 clamp(44px, 6vw, 72px); }
.hero h1 {
  margin-top: 26px; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.16;
  letter-spacing: -.01em; max-width: 940px; color: var(--bright); text-wrap: pretty;
}
.hero__bar { width: 120px; height: 2px; background: var(--gold); margin-top: 34px; }
.hero__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); margin-top: 34px;
}
.hero__cols p { font-size: 17px; line-height: 1.78; font-weight: 300; color: var(--body); }

/* ---------------- band ---------------- */
.band {
  background: var(--band); padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--line-dim); border-bottom: 1px solid var(--line-dim);
  position: relative; z-index: 1;
}
.band__big {
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.55; font-weight: 300;
  color: var(--paper); max-width: 940px; text-wrap: pretty;
}
.band__big em { font-style: normal; color: var(--gold); font-weight: 600; }

/* ---------------- pillars ---------------- */
.section { padding: clamp(46px, 7vw, 76px) 0; }
.section--tight { padding: 0 0 clamp(40px, 6vw, 68px); }
/* A flag box sits between sections, so a tight section right after one has no gap of its own. */
.wrap:has(> .flag) + .section--tight { padding-top: 34px; }
.pillars { margin-top: 32px; }
.pillar {
  display: grid; grid-template-columns: 36px 240px 1fr; gap: 32px;
  align-items: start; padding: 30px 0; border-top: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__n { font-style: italic; font-size: 17px; color: var(--gold); }
.pillar__t { font-size: 21px; font-weight: 600; color: var(--paper); }
.pillar p { font-family: var(--mono); font-size: 14px; line-height: 1.78; color: var(--body); }

/* ---------------- cards / steps ---------------- */
.grid { display: grid; gap: 30px; margin-top: 30px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border-top: 2px solid var(--gold); padding-top: 22px; }
.card h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; color: var(--paper); }
.card p { margin-top: 12px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--muted); }
.card__n { font-style: italic; font-size: 16px; color: var(--gold); margin-bottom: 10px; }

/* ---------------- stats ---------------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 72px); margin-top: 34px; }
.stat {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid rgba(150, 180, 214, 0.12);
}
.stat dt { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.stat dd { margin: 0; font-size: 18px; font-weight: 600; color: var(--paper); white-space: nowrap; }
.sources { margin-top: 26px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--faint); }

/* ---------------- unresolved decisions ---------------- */
.flag { border: 1px dashed #7d6a34; background: #12182a; padding: 20px 24px; margin-top: 34px; }
.flag p { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #d8c48a; }

/* ---------------- events ---------------- */
.evt {
  display: grid; grid-template-columns: 170px 330px 1fr; gap: 34px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.evt:last-child { border-bottom: 1px solid var(--line); }
.evt__d { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--gold); }
.evt__n { font-size: 21px; font-weight: 600; color: var(--paper); }
.evt p { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--muted); }

/* two-column split that actually collapses; an inline grid here overflowed
   the viewport on phones because no media query could reach it */
.split { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 5vw, 72px); }

/* ---------------- footer ---------------- */
.foot { background: var(--deep); border-top: 1px solid var(--line-dim); padding: clamp(42px, 6vw, 62px) 0 46px; }
.foot__in { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 72px); }
.foot__tag { margin-top: 18px; font-style: italic; font-size: 16px; color: var(--gold); }
.foot p.body { margin-top: 16px; font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--muted); }

.cta-wrap { padding: 8px 0 clamp(56px, 8vw, 84px); }
.cta {
  display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  background: var(--gold); color: var(--ink); padding: 16px 32px;
}
.cta:hover { background: #fff; color: var(--ink); }

/* ---------------- waitlist (Beam) ---------------- */
.teaser {
  display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 5vw, 72px);
  align-items: center; margin-top: 34px;
}
.teaser__map { position: relative; width: 100%; aspect-ratio: 430 / 240; }
.teaser__map svg { width: 100%; height: 100%; display: block; }
.teaser__dot { fill: var(--gold); opacity: 0.85; transition: r 0.6s ease; }
.teaser__land { fill: rgba(255, 215, 154, 0.07); stroke: rgba(150, 180, 214, 0.28); stroke-width: 1; stroke-linejoin: round; }
.teaser__glow { fill: var(--gold); opacity: 0.22; filter: blur(6px); transition: r 0.6s ease; }
.teaser__label {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  fill: var(--muted);
}
.teaser__stats { display: grid; gap: 18px; }
.teaser__stat { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.teaser__stat dt { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.teaser__stat dd { margin: 0; font-size: 26px; font-weight: 600; color: var(--gold); }

.wl-form { max-width: 520px; margin-top: 34px; display: grid; gap: 18px; }
.wl-form[hidden] { display: none; }  /* display: grid would otherwise override [hidden] */
.wl-field { display: grid; gap: 8px; }
.wl-field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.wl-field input, .wl-field select {
  font-family: var(--serif); font-size: 16px; color: var(--paper); background: var(--band);
  border: 1px solid var(--line); padding: 12px 14px;
}
.wl-field input::placeholder { color: var(--faint); }
.wl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wl-submit {
  justify-self: start; font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  background: var(--gold); color: var(--ink); border: none; padding: 14px 28px; cursor: pointer;
}
.wl-submit:hover { background: #fff; }
.wl-submit:disabled { opacity: 0.5; cursor: default; }
.wl-error {
  font-family: var(--mono); font-size: 13px; color: #e8a76a; border: 1px dashed #7d6a34;
  background: #12182a; padding: 14px 18px;
}
.wl-success { max-width: 520px; margin-top: 34px; }
.wl-position { margin-top: 10px; font-size: 20px; color: var(--bright); }
.wl-share { display: flex; gap: 10px; margin-top: 14px; }
.wl-share input {
  flex: 1; font-family: var(--mono); font-size: 13px; color: var(--paper); background: var(--band);
  border: 1px solid var(--line); padding: 12px 14px;
}
.wl-copy {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink);
  background: var(--gold); border: none; padding: 0 20px; cursor: pointer;
}
.wl-copy:hover { background: #fff; }

@media (max-width: 820px) {
  .teaser { grid-template-columns: 1fr; }
  .wl-row { grid-template-columns: 1fr; }
}
/* The map scales with the viewport but its labels are in the map's own units, so on a phone they
   shrink to ~6px. Bump them so the district names stay readable. */
@media (max-width: 480px) {
  .teaser__label { font-size: 12px; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats   { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 11.5px; }
}
@media (max-width: 640px) {
  .nav__links a:not(.btn) { display: none; }
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .hero__cols { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 28px 1fr; }
  .pillar__t { grid-column: 2; }
  .pillar p { grid-column: 2; }
  .grid--3 { grid-template-columns: 1fr; }
  .evt { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
}
