/* Palette borrowed from FAA VFR sectional charts: chart paper, airspace magenta, chart blue. */
:root {
  --paper: #edf1f2;
  --paper-2: #e1e8eb;
  --ink: #1a2430;
  --muted: #56656f;
  --rule: #c3cdd2;
  --magenta: #9e1f68;
  --blue: #1f4e99;
  --ring: rgba(158, 31, 104, 0.35);
  --path: rgba(31, 78, 153, 0.45);

  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;

  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1820;
    --paper-2: #16222c;
    --ink: #e2e9ed;
    --muted: #93a3ad;
    --rule: #2a3a46;
    --magenta: #e27fb6;
    --blue: #8db1ef;
    --ring: rgba(226, 127, 182, 0.35);
    --path: rgba(141, 177, 239, 0.45);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-stretch: 75%;
  margin-bottom: 0.6em;
}
h3 { font-size: 1.25rem; font-stretch: 85%; margin-bottom: 0.3em; }

/* ---------- Header ---------- */
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  font-family: var(--display);
  font-size: 0.95rem;
}
.wordmark { font-weight: 700; font-stretch: 80%; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.site-head nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .site-head { flex-direction: column; gap: 0.4rem; }
  .site-head nav { gap: 1rem; font-size: 0.9rem; }
}

/* ---------- Hero: the airspace rings ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero .rings {
  position: absolute;
  right: -18vw;
  top: 50%;
  width: min(900px, 120vw);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}
.rings circle { fill: none; stroke: var(--ring); stroke-width: 2; }
.rings .inner { stroke-dasharray: none; stroke-width: 3; }
.rings .mid { stroke-dasharray: 10 8; }
.rings .outer { stroke-dasharray: 2 7; }
.rings .flight { fill: none; stroke: var(--path); stroke-width: 1.5; stroke-dasharray: 14 10; }
.rings .flight-anim { animation: fly 2.4s ease-out 0.2s both; }
@keyframes fly { from { stroke-dashoffset: 600; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rings .flight-anim { animation: none; } }

.hero-inner { position: relative; padding-top: clamp(3rem, 9vw, 7rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 6.25rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.95;
  max-width: 13ch;
}
.hero .lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 52ch; margin: 1.5rem 0 0; }
.hero .stamp {
  margin-top: 2rem;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--muted);
}
.hero .stamp strong { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.section-intro { color: var(--muted); margin: -0.2em 0 1.5rem; max-width: var(--measure); }

/* ---------- Tracker table ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; font-family: var(--display); }
.filters button {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.filters + .filters { margin-top: -0.25rem; }
.filters button[data-filter-status] { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tracker {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--display);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  min-width: 640px;
}
.tracker th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 2px solid var(--ink);
}
.tracker td { padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tracker td.metro { font-weight: 600; }
.tracker td.metro small { display: block; font-weight: 400; color: var(--muted); }
.tracker td.src a { white-space: nowrap; }
.tracker tr[hidden] { display: none; }

.status { display: inline-block; font-size: 0.8rem; padding: 0.1rem 0.5rem; border-radius: 3px; white-space: nowrap; }
.status-live { background: var(--blue); color: var(--paper); }
.status-announced { border: 1px dashed var(--magenta); color: var(--magenta); }
.status-paused, .status-ended { border: 1px solid var(--rule); color: var(--muted); }

.table-note { font-size: 0.95rem; color: var(--muted); margin-top: 1rem; max-width: var(--measure); }

/* ---------- Operators ---------- */
.operators { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 2rem 3rem; }
.operator { border-top: 3px solid var(--blue); padding-top: 0.9rem; scroll-margin-top: 1.5rem; }
.operator h3 a { color: inherit; text-decoration-color: var(--muted); }
.operator h3 a:hover { text-decoration-color: currentColor; }
.operator .who { font-family: var(--display); color: var(--muted); font-size: 0.95rem; margin: 0 0 0.5rem; }
.operator p { margin: 0 0 0.6rem; }
.operator .facts { font-family: var(--display); font-size: 0.95rem; margin: 0; padding: 0; list-style: none; }
.operator .facts li { padding: 0.15rem 0; }

/* ---------- Regulation timeline (a real sequence) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.timeline time { font-family: var(--display); font-weight: 600; color: var(--magenta); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0.2rem 0 0; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- FAQ ---------- */
.faq { max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--rule); padding: 0.9rem 0; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 1.15rem; cursor: pointer; list-style-position: outside; }
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq details p { margin: 0 0 0.6rem; }

/* ---------- Domain note + contact ---------- */
.acquire { margin-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--rule); padding-top: 2.5rem; padding-bottom: 2rem; }
.acquire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; }
@media (max-width: 760px) { .acquire-grid { grid-template-columns: 1fr; } }
.acquire h2 { font-size: 1.6rem; }
.acquire p { margin-top: 0; }

form.contact { display: grid; gap: 0.9rem; font-family: var(--display); }
form.contact label { display: grid; gap: 0.25rem; font-size: 0.95rem; }
form.contact input, form.contact textarea, form.contact select {
  font: inherit;
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink);
}
form.contact textarea { min-height: 7rem; resize: vertical; }
form.contact .hp { position: absolute; left: -9999px; }
form.contact button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: 4px;
  background: var(--magenta);
  color: var(--paper);
  cursor: pointer;
}
form.contact button[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; font-size: 0.95rem; min-height: 1.5em; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding-top: 1.5rem; padding-bottom: 2.5rem; font-family: var(--display); font-size: 0.9rem; color: var(--muted); }
.site-foot p { margin: 0.25rem 0; max-width: 80ch; }

.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-items: baseline; }
.link-button {
  font: inherit;
  color: var(--blue);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

/* ---------- Analytics consent banner ---------- */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border-top: 3px solid var(--magenta);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  padding: 40px 24px;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.6;
}
.consent-inner { width: 100%; max-width: 960px; margin: 0 auto; text-align: left; }
.consent-title { font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.consent p { margin: 0 0 24px; color: var(--muted); }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.consent-actions button {
  font: inherit;
  font-size: 16px;
  min-width: 160px;
  padding: 14px 40px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.consent-actions button[data-consent="granted"] { font-weight: 600; background: var(--ink); color: var(--paper); }

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(2rem, 6vw, 4rem); padding-bottom: 3rem; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); font-stretch: 70%; font-weight: 800; }
.legal h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.4rem; }
.legal-updated { font-family: var(--display); color: var(--muted); margin-top: 0.5rem; }
.legal code { font-size: 0.9em; }
.legal ul { padding-left: 1.2rem; }
