:root {
  color-scheme: dark;
  --void: #030609;
  --bg: #05090d;
  --surface: #091119;
  --surface-2: #0b1620;
  --surface-3: #0f1c27;
  --text: #eaf1ff;
  --muted: #8da0b5;
  --subtle: #5d7186;
  --line: #1b2c38;
  --line-bright: #29475c;
  --ice: #5d7fa6;
  --blue: #79b9d7;
  --amber: #ff9a3c;
  --gold: #ffd27a;
  --green: #67cf9a;
  --danger: #e56c55;
  --radius: 3px;
  --shadow: 0 18px 60px rgba(0, 0, 0, .38);
  --max: 1480px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 0%, rgba(30, 67, 92, .16), transparent 34rem),
    radial-gradient(circle at 12% 24%, rgba(20, 48, 67, .11), transparent 30rem),
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.009) 1px, transparent 1px),
    var(--void);
  background-size: auto, auto, 80px 80px, 80px 80px, auto;
  color: var(--text);
  font: 400 16px/1.65 "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  letter-spacing: .015em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.48));
}

a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--text); }

img { max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 50;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  color: var(--void);
  background: var(--gold);
}
.skip-link:focus { transform: none; }

.site-shell {
  width: min(calc(100% - 24px), var(--max));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  border: 1px solid var(--line-bright);
  background: rgba(4, 9, 13, .82);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.018);
}

.site-header {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(420px, 2fr) minmax(150px, .6fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 10, .92);
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem 1rem;
  color: var(--text);
  text-decoration: none;
}

.brand-emblem {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(234, 241, 255, .8);
  border-radius: 50%;
}
.brand-emblem::before {
  content: "";
  position: absolute;
  left: -9px;
  right: -9px;
  top: 50%;
  border-top: 1px solid rgba(121, 185, 215, .65);
}
.brand-emblem::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 8px 2px var(--amber), 0 0 20px 5px rgba(255,154,60,.38);
}
.brand-emblem span {
  position: absolute;
  left: 50%;
  top: -8px;
  bottom: -8px;
  border-left: 1px solid rgba(234, 241, 255, .5);
}

.brand-copy { display: grid; line-height: 1; }
.brand-copy strong {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .36em;
  text-transform: uppercase;
}
.brand-copy small {
  margin-top: .42rem;
  color: var(--muted);
  font-size: .57rem;
  letter-spacing: .29em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}
.primary-nav a {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 1.35rem;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
  background: linear-gradient(180deg, rgba(93,127,166,.08), transparent);
  border-color: rgba(41,71,92,.45);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { border-color: var(--blue); }

.header-status {
  display: grid;
  align-content: center;
  justify-items: end;
  padding: .7rem 1rem;
  border-left: 1px solid var(--line);
  text-transform: uppercase;
}
.header-status span { color: var(--subtle); font-size: .57rem; letter-spacing: .18em; }
.header-status strong { color: var(--green); font-size: .65rem; font-weight: 500; letter-spacing: .2em; }

main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.1rem, 2vw, 2rem);
}

main > * { max-width: 1180px; margin-inline: auto; }
main > .hero,
main > .cards,
main > section { max-width: 1320px; }

h1, h2, h3, h4 {
  margin-top: 0;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .11em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.3rem, 6vw, 5.7rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 2rem); }
h3 { font-size: 1rem; }

p { color: #b8c5d2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--blue);
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  border-top: 1px solid currentColor;
}

.hero {
  position: relative;
  min-height: clamp(420px, 58vh, 660px);
  display: grid;
  align-content: center;
  overflow: hidden;
  padding: clamp(2rem, 7vw, 7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(4,9,13,.97) 0%, rgba(4,9,13,.78) 45%, rgba(4,9,13,.18) 100%),
    radial-gradient(circle at 76% 44%, rgba(102,145,176,.22), transparent 18rem),
    linear-gradient(135deg, #0b1822, #05090d 72%);
  box-shadow: inset 0 0 90px rgba(0,0,0,.52);
}
.hero::before {
  content: "";
  position: absolute;
  width: min(54vw, 720px);
  aspect-ratio: 1;
  right: -8%;
  top: -20%;
  border: 1px solid rgba(121,185,215,.18);
  border-radius: 50%;
  box-shadow: inset -70px -60px 100px rgba(0,0,0,.85), inset 20px 10px 34px rgba(121,185,215,.12), 0 0 80px rgba(53,99,126,.13);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(3,6,9,.74));
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { margin: .18em 0; text-shadow: 0 0 26px rgba(121,185,215,.12); }
.hero p { max-width: 58ch; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  margin: .55rem .5rem .55rem 0;
  padding: .82rem 1.2rem;
  border: 1px solid #88aabb;
  border-radius: var(--radius);
  color: #071016;
  background: #9ab5c2;
  font-size: .63rem;
  letter-spacing: .17em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 1px rgba(255,255,255,.22);
}
.button:hover { color: #020506; background: #c3d3da; }
.button.secondary { color: var(--blue); background: rgba(5,12,17,.65); border-color: var(--line-bright); }
.button.secondary:hover { color: var(--text); border-color: var(--blue); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-top: 12px;
}

.card,
section article,
.facts {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(13,26,36,.92), rgba(6,13,18,.94));
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}
.card::before,
section article::before,
.facts::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  border-top: 1px solid var(--blue);
}
.card:hover { border-color: var(--line-bright); transform: translateY(-1px); }

.prose { max-width: 820px; }
.prose > p:first-of-type { font-size: 1.12rem; color: #cfdae4; }
.prose p { margin: 1.15rem 0; }
.prose blockquote {
  margin: 2rem 0;
  padding: 1rem 1.4rem;
  border-left: 2px solid var(--amber);
  background: rgba(255,154,60,.045);
}
.prose pre {
  overflow-x: auto;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 5, 8, .74);
}
.prose code { color: var(--gold); }
.prose pre code {
  color: #d8e4ef;
  white-space: pre;
}
.prose strong { color: var(--text); font-weight: 600; }

.facts { display: grid; gap: .3rem; }
dt { color: var(--subtle); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
dd { margin: 0 0 .8rem; }

.prevnext {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.timeline { list-style: none; padding: 0; }
.timeline li {
  position: relative;
  margin: 0;
  padding: 1rem 1rem 1rem 1.6rem;
  border-left: 1px solid var(--line-bright);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 1.5rem;
  width: 7px;
  height: 7px;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255,154,60,.65);
}
.timeline span { display: block; color: var(--muted); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 92px;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(3,7,10,.88);
}
.site-footer p { margin: 0; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p:last-child { text-align: right; }
.footer-mark { display: flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; letter-spacing: .24em; text-transform: uppercase; }
.footer-mark .brand-emblem { width: 28px; height: 28px; flex-basis: 28px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; justify-content: flex-start; border-top: 1px solid var(--line); }
  .primary-nav a { min-height: 48px; white-space: nowrap; }
  .header-status { grid-column: 2; grid-row: 1; }
  .hero::before { right: -28%; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .site-shell { width: 100%; margin: 0; border-left: 0; border-right: 0; }
  .header-status { display: none; }
  .site-header { grid-template-columns: 1fr; }
  .brand-copy strong { font-size: .92rem; }
  main { padding: .75rem; }
  .hero { min-height: 520px; padding: 2rem 1.35rem; }
  .hero::before { width: 430px; right: -58%; top: -8%; }
  .button { width: 100%; margin-right: 0; }
  .prevnext { flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .site-footer p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: no-preference) {
  .card, .button, .primary-nav a { transition: .18s ease; }
}
