:root {
  color-scheme: light dark;
  --bg: var(--brand-paper);
  --text: #182134;
  --muted: #495363;
  --panel: #fffcf4;
  --line: #ccc4b5;
  --key: var(--brand-olive);
  font-family: var(--brand-body);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: var(--brand-night); --text: var(--brand-ivory); --muted: var(--brand-steel); --panel: #1b2333; --line: #485365; --key: var(--brand-acid); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.63; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--key); outline-offset: 5px; }
img { display: block; max-width: 100%; }
.frame { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: 0; padding: .6rem; background: var(--bg); transform: translateY(-130%); }
.skip:focus { transform: translateY(0); }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: .75rem; flex-wrap: wrap; }
.top { border-bottom: 1px solid var(--line); }
.wordmark { min-width: 0; display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }
.wordmark .helmet { border-radius: .55rem; }
.wordmark .lettering { width: clamp(8rem, 25vw, 10.5rem); height: auto; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(.7rem, 4vw, 2.25rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: .08em; text-underline-offset: .32em; color: var(--text); font-weight: 600; }
.hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1.12fr 1fr;
  align-items: center; gap: 1rem; margin-block: 1rem 2rem; border-radius: 1.35rem; overflow: hidden;
  min-height: min(40rem, 84vh); padding: clamp(1.4rem, 5.1vw, 4.9rem);
  background: radial-gradient(ellipse at 76% 45%, #20334a 0%, #141e30 39%, #0b0f19 84%);
  color: var(--brand-ivory); border: 1px solid #bfff4566;
}
.hero::before {
  position: absolute; inset: 0; content: ""; pointer-events: none; z-index: -1;
  opacity: .79; background: url("./assets/teker-izi.svg") no-repeat right center / min(60%, 45rem);
}
.hero-copy { position: relative; z-index: 1; }
.status, .eyebrow { margin: 0 0 .8rem; color: var(--key); font: 400 clamp(1.05rem, 1.55vw, 1.3rem)/1.3 var(--brand-comic); letter-spacing: .07em; }
.status { color: var(--brand-acid); }
.status span { color: var(--brand-orange); margin-inline: .25rem; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0 0 .7rem; }
h1 { font: 400 clamp(3.8rem, 8.6vw, 8rem)/.84 var(--brand-brush); letter-spacing: -.015em; text-shadow: .045em .048em #080d18, .063em .071em #ff722a; }
h1 em { color: var(--brand-acid); font-style: normal; }
h2 { font: 400 clamp(2.3rem, 5vw, 4.5rem)/.99 var(--brand-comic); letter-spacing: .005em; }
h3 { font: 400 clamp(1.45rem, 2.2vw, 1.85rem)/1.05 var(--brand-comic); letter-spacing: .03em; }
p { color: var(--muted); margin: 0; }
.intro { max-width: 44ch; margin-top: 1.45rem; font-size: clamp(1rem, 1.8vw, 1.22rem); color: #e1e8f4; }
.hero-art { position: relative; aspect-ratio: 1; min-width: 0; display: grid; place-items: center; }
.hero-ring { position: absolute; inset: 10% 6% 15%; border: 3px dashed #bfff45a0; border-radius: 50%; transform: rotate(-14deg); }
.hero-sticker {
  position: absolute; z-index: 2; inset-block-start: 5%; inset-inline-start: 0;
  padding: .28em .65em .42em; color: #10131d; background: #bfff45;
  font: 400 clamp(1.25rem, 3vw, 2.2rem)/1 var(--brand-brush);
  transform: rotate(-8deg);
  clip-path: polygon(1% 20%, 45% 13%, 99% 4%, 95% 25%, 100% 35%, 96% 76%, 99% 83%, 41% 93%, 2% 98%, 5% 81%, 0 63%);
}
.hero-art img { width: 126%; max-width: none; height: auto; filter: drop-shadow(0 0 2px #bfff45) drop-shadow(0 17px 11px #080c16a5); z-index: 1; }
.primary { display: inline-flex; align-items: center; gap: 1rem; min-height: 49px; padding: .5rem 1rem; margin-top: 1.4rem; border-radius: .45rem; border: 1px solid #dcffa0; background: var(--brand-acid); color: var(--brand-night); font-weight: 600; text-decoration: none; box-shadow: 4px 4px var(--brand-orange); }
.primary:focus-visible { outline-color: var(--brand-ivory); }
.primary:active { transform: translateY(2px); box-shadow: 2px 2px var(--brand-orange); }
.check-in, .community, .faq { border-top: 1px solid var(--line); padding-block: clamp(2rem, 6vw, 5rem); scroll-margin-top: 1rem; }
.check-in { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; align-items: center; }
.check-in ol { margin: 0; padding: 1.2rem 1.2rem 1.2rem 2.65rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); }
.check-in li { padding: .5rem 0 .5rem .25rem; }
.check-in li::marker { color: var(--key); font-weight: 600; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.feature-grid article { padding: 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--brand-orange); border-radius: .65rem; background: var(--panel); }
.frame > h2, .check-in h2 { color: var(--text); }
.community .eyebrow, .check-in .eyebrow {
  display: inline-block; padding: .28em .6em .42em; color: var(--brand-night);
  background: var(--brand-acid); transform: rotate(-2deg);
  clip-path: polygon(4% 13%, 99% 1%, 96% 29%, 100% 69%, 95% 91%, 2% 100%, 4% 74%, 0 52%);
}
.feature-grid h3 { color: var(--key); }
details { max-width: 55rem; border-bottom: 1px solid var(--line); }
summary { padding: .85rem .2rem; min-height: 44px; cursor: pointer; font-weight: 600; }
details p { padding: 0 .2rem 1rem .2rem; }
.footer { border-top: 1px solid var(--line); font-size: .92rem; }
#roadmap-items img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:.55rem; margin-bottom:1rem; }
@media (max-width: 46rem) {
  .frame { width: min(100% - 1.5rem, 38rem); }
  .hero, .check-in, .feature-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-block: 1.55rem .1rem; }
  .hero::before { background-position: bottom right; background-size: 95%; }
  .hero-art { width: min(83%, 23rem); justify-self: center; }
}
@media (max-width: 23rem) {
  h1 { font-size: clamp(2.85rem, 15vw, 3.8rem); }
  nav { column-gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary:active { transform: none; }
}
