@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../assets/fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../assets/fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07060f;
  --bg2: #140c28;
  --ink: #f6f3ff;
  --mute: #d8d3f0;
  --line: #463e68;
  --mint: #5eead4;
  --lav: #c4b5fd;
  --peach: #ffb26b;
  --butter: #ffd166;
  --pink: #f0abfc;
  --sky: #7dd3fc;
  --accent: var(--mint);
  --font: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Atkinson Hyperlegible", sans-serif;
  --max: 1080px;
}

body[data-accent="sky"] { --accent: var(--sky); }
body[data-accent="peach"] { --accent: var(--peach); }
body[data-accent="mint"] { --accent: var(--mint); }
body[data-accent="lavender"] { --accent: var(--lav); }
body[data-accent="butter"] { --accent: var(--butter); }
body[data-accent="pink"] { --accent: var(--pink); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; max-width: 100%; }
body {
  font: 18px/1.55 var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 10% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%),
    radial-gradient(700px 420px at 110% 20%, #2a1860, transparent 55%),
    var(--bg);
  min-height: 100dvh;
}
img, svg, video { max-width: 100%; }
p, li, h1, h2, h3 { overflow-wrap: anywhere; }
a { color: var(--mint); }
a:hover { color: var(--butter); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.6rem; }
p { margin: 0 0 0.8rem; }

.vh, .skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip:focus {
  position: fixed;
  z-index: 80;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  clip: auto;
  background: var(--butter);
  color: #1a1300;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 3px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  background: #07060fe6;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.primary { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.primary a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.primary a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.theme-btn {
  margin-left: auto;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 700 0.95rem var(--display);
  cursor: pointer;
}
.theme-btn[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding-bottom: 48px; }
.hero { padding: 28px 0 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 22px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.lede { font-size: 1.15rem; color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
}
.btn.pri { background: var(--butter); color: #1a1300; }
.btn.sec { background: transparent; color: var(--ink); border-color: var(--accent); }
.btn.pri:hover, .btn.sec:hover { color: #1a1300; background: var(--mint); border-color: var(--mint); }

.hero-art {
  position: relative;
  height: 280px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120px 80px at 50% 50%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
    #100c22;
  overflow: hidden;
}
.hero-art svg { width: 100%; height: 100%; display: block; }
.globe-slot { position: absolute; inset: 0; }
.spin { transform-origin: 200px 150px; animation: spin 36s linear infinite; }
.pulse { animation: pulse 4.5s ease-in-out infinite; }

.panel {
  margin: 22px 0;
  padding: 18px 18px 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg2) 82%, transparent);
}
.path { list-style: none; margin: 0; padding: 0; }
.path li {
  position: relative;
  padding: 0 0 16px 46px;
  min-height: 48px;
}
.path li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.path li:last-child::before { display: none; }
.step {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1a1333;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
}
.learn, .eco, .counts { padding-left: 1.1rem; }
.learn li, .eco li, .counts li { margin: 0 0 0.55rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; list-style: none; }
.chips a, .chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: #120d24;
}
.callout {
  border-left: 4px solid var(--butter);
  padding: 8px 12px;
  background: #241c08;
  border-radius: 0 12px 12px 0;
}
.quiet { color: var(--mute); }
.bar {
  border-top: 1px solid var(--line);
  padding: 18px 16px 28px;
}
.bar ul { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 0; margin: 0; list-style: none; }
.door-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.door {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #120d24;
  text-decoration: none;
  color: var(--ink);
}
.door strong { font-family: var(--display); font-size: 1.15rem; }
.door span { color: var(--mute); }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 200px; }
  body { font-size: 17px; }
}
@media (max-height: 520px) {
  .hero-art { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin, .pulse { animation: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.55; } }
html[data-theme="dawn"] {
  color-scheme: light;
  --bg: #f6f3ff;
  --bg2: #ffffff;
  --ink: #1b1530;
  --mute: #3d3458;
  --line: #d5cce8;
}
html[data-theme="dawn"] .top { background: #f6f3ffe6; }
html[data-theme="dawn"] .door,
html[data-theme="dawn"] .chips a,
html[data-theme="dawn"] .chip,
html[data-theme="dawn"] .step,
html[data-theme="dawn"] .callout,
html[data-theme="dawn"] .hero-art { background: #fff; color: var(--ink); }
html[data-theme="dawn"] .callout { background: #fff6d8; }

@media (forced-colors: active) {
  .btn, .door, .panel, .chip, .chips a { border: 1px solid ButtonText; }
}
