/* LIL METEORS — the shell is quiet because the content is 111 saturated characters.
   Palette measured off the moodboard: the ground is a WARM near-black (#191816), never #000 —
   pure black is exactly what makes the reference orbit plates read cold. */

:root {
  --void:   #191816;
  --void-2: #201E1B;
  --void-3: #292723;
  --line:   #35322C;
  --dust:   #8E887C;
  --bone:   #E4DCCB;
  --flare:  #E0A64B;
  --impact: #D0654F;
  --museum: #276391;

  --w: min(1240px, 100% - 3rem);
  --r: 10px;

  --f-disp: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@font-face {
  font-family: "Archivo"; src: url(font/archivo.woff2) format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono"; src: url(font/mono.woff2) format("woff2-variations");
  font-weight: 300 700; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--void); color: var(--bone);
  font-family: var(--f-disp); font-weight: 380;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem); line-height: 1.62;
  font-variant-numeric: tabular-nums;
  /* a flat near-black bands in 8-bit; a very low-amplitude grain gives it something to dither */
  background-image: radial-gradient(circle at 22% 12%, #21201C 0%, transparent 55%),
                    radial-gradient(circle at 82% 78%, #1E1D1A 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--f-disp); line-height: 1.02; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.6rem); font-weight: 860; font-stretch: 112%;
     letter-spacing: -.028em; }
h1 em { font-style: normal; color: var(--flare); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.85rem); font-weight: 800; font-stretch: 108%;
     letter-spacing: -.02em; display: flex; align-items: baseline; gap: .7rem; }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.4rem); font-weight: 700; margin-top: 2.2rem; }
.num { font-family: var(--f-mono); font-size: .78rem; font-weight: 500; color: var(--flare);
       letter-spacing: .1em; }
p { margin: 0 0 1.1rem; max-width: 62ch; }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: #CFC7B6; max-width: 58ch; }
.note { color: var(--dust); font-size: .92rem; }
em { color: var(--bone); }
a { color: var(--flare); text-underline-offset: .18em; }
b { font-weight: 660; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--flare); color: #17150F;
        padding: .7rem 1.1rem; z-index: 99; border-radius: 0 0 var(--r) 0; font-weight: 600; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; border-radius: 4px; }

/* ── bar ───────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1.5rem;
       padding: .7rem max(1.5rem, calc((100% - var(--w)) / 2));
       background: rgba(25,24,22,.88); backdrop-filter: blur(14px);
       border-bottom: 1px solid var(--line); }
.bar__mark { display: flex; align-items: center; gap: .55rem; font-weight: 780;
             font-stretch: 108%; letter-spacing: -.01em; font-size: .95rem; }
.mark { width: 17px; height: 17px; border-radius: 50%; background: var(--flare);
        box-shadow: 0 0 0 3px var(--void), 0 0 0 4px var(--line); flex: none; }
.bar__nav { display: flex; gap: 1.15rem; margin-inline-start: auto; font-size: .9rem; }
.bar__nav a { color: var(--dust); text-decoration: none; }
.bar__nav a:hover, .bar__nav a:focus-visible { color: var(--bone); }
.bar__state { display: flex; align-items: center; gap: .45rem; font-family: var(--f-mono);
              font-size: .75rem; color: var(--dust); border: 1px solid var(--line);
              padding: .3rem .6rem; border-radius: 100px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dust); flex: none; }
@media (max-width: 860px) { .bar__nav { display: none; } .bar__state { margin-inline-start: auto; } }

/* ── map ───────────────────────────────────────────────────────────── */
.map { width: var(--w); margin: clamp(2.5rem, 5vw, 5rem) auto clamp(3rem, 6vw, 6rem);
       display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .map { grid-template-columns: minmax(340px, 1fr) 1.25fr;
                                    align-items: center; } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem;
         margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em;
            text-transform: uppercase; color: var(--dust); margin-bottom: .3rem; }
.stats dd { margin: 0; font-family: var(--f-mono); font-size: clamp(1.1rem, .9rem + .7vw, 1.5rem);
            font-weight: 600; }
.stats div:nth-child(2) dd { color: var(--impact); }

.orrery { margin: 0; position: relative; }
/* reserve the box before the canvas paints, or the whole page jumps on load */
.orrery canvas { display: block; width: 100%; aspect-ratio: 1; max-height: 78vh;
                 margin-inline: auto; touch-action: manipulation; }
.orrery__hint { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
                font-family: var(--f-mono); font-size: .8rem; color: var(--dust);
                margin-top: .4rem; }
.ghost { background: none; border: 1px solid var(--line); color: var(--dust);
         font: inherit; padding: .3rem .7rem; border-radius: 100px; cursor: pointer; }
.ghost:hover { color: var(--bone); border-color: var(--dust); }

/* ── bands ─────────────────────────────────────────────────────────── */
.band { width: var(--w); margin: 0 auto clamp(3.5rem, 7vw, 7rem); }
.band > h2 { margin-bottom: 1rem; }

.flow { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
        overflow: hidden; counter-reset: f; }
.flow li { background: var(--void-2); padding: 1.4rem 1.3rem; counter-increment: f; }
.flow > li > b { display: block; font-size: 1.05rem; font-weight: 720; margin-bottom: .35rem; }
.flow > li > b::before { content: counter(f, decimal-leading-zero); font-family: var(--f-mono);
                  font-size: .78rem; color: var(--flare); display: block; margin-bottom: .5rem;
                  letter-spacing: .1em; }
.flow span { color: var(--dust); font-size: .93rem; }
.flow span b { color: var(--bone); font-weight: 640; }

.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.6rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.15fr; align-items: center; } }
.curve { margin: 0; }
.curve canvas { display: block; width: 100%; aspect-ratio: 16/10; background: var(--void-2);
                border: 1px solid var(--line); border-radius: var(--r); }
.curve figcaption { font-family: var(--f-mono); font-size: .8rem; color: var(--dust);
                    margin-top: .6rem; }

.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: clamp(2rem,5vw,3.5rem);
         text-align: center; background: var(--void-2); }
.empty b { display: block; font-size: 1.25rem; margin-bottom: .5rem; }
.empty p { margin-inline: auto; }

.facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .1rem; }
.facts li { padding: .95rem 0; border-top: 1px solid var(--line); color: var(--dust);
            max-width: 70ch; }
.facts b { color: var(--bone); }

/* ── the 111 ───────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin: 1.8rem 0 1.6rem;
           padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.field { display: grid; gap: .35rem; }
.field span { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em;
              text-transform: uppercase; color: var(--dust); }
.field input, .field select { font: inherit; font-size: .92rem; background: var(--void-2);
  color: var(--bone); border: 1px solid var(--line); border-radius: 7px; padding: .5rem .7rem;
  min-width: 9.5rem; }
.count { font-family: var(--f-mono); font-size: .75rem; color: var(--dust);
         margin: 0 0 .1rem auto; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(.6rem, 1.4vw, 1rem);
        grid-template-columns: repeat(auto-fill, minmax(clamp(118px, 15vw, 168px), 1fr)); }
.card { border: 0; padding: 0; background: none; cursor: pointer; display: block; width: 100%;
        text-align: start; color: inherit; font: inherit; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 9px;
            border: 1px solid var(--line); background: var(--void-2); }
.card:hover img, .card:focus-visible img { border-color: var(--flare); }
.card__n { display: flex; justify-content: space-between; gap: .5rem; font-family: var(--f-mono);
           font-size: .78rem; color: var(--dust); margin-top: .4rem; }
.card__t { color: var(--flare); }
.card__t[data-tier="GRAIL"] { color: var(--impact); font-weight: 600; }

/* ── token dialog ──────────────────────────────────────────────────── */
.tok { border: 1px solid var(--line); background: var(--void-2); color: var(--bone);
       border-radius: 14px; padding: 0; max-width: min(760px, 94vw); width: 100%; }
.tok::backdrop { background: rgba(10,10,9,.72); backdrop-filter: blur(4px); }
.tok__wrap { display: grid; gap: clamp(1rem, 3vw, 2rem); padding: clamp(1.1rem, 3vw, 1.9rem); }
@media (min-width: 660px) { .tok__wrap { grid-template-columns: 260px 1fr; } }
.tok img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.tok__x { position: absolute; top: .6rem; right: .6rem; background: none; border: 0;
          color: var(--dust); font-size: 1.1rem; cursor: pointer; padding: .4rem .6rem;
          line-height: 1; }
.tok__x:hover { color: var(--bone); }
.tok__rank { font-family: var(--f-mono); font-size: .8rem; color: var(--flare); margin: 0 0 .3rem;
             letter-spacing: .06em; }
.tok__meta h3 { margin: 0 0 .2rem; font-size: 1.6rem; font-weight: 800; font-stretch: 108%; }
.tok__title { font-family: var(--f-mono); font-size: .8rem; color: var(--impact);
              letter-spacing: .09em; margin: 0 0 1rem; }
.tok__traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
               gap: .1rem .9rem; margin: 0; }
.tok__traits > div { padding: .5rem 0; border-top: 1px solid var(--line); }
.tok__traits dt { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .09em;
                  text-transform: uppercase; color: var(--dust); }
.tok__traits dd { margin: .1rem 0 0; font-size: .92rem; }
.tok__landed { margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line);
               font-size: .88rem; color: var(--dust); }

.foot { width: var(--w); margin: 0 auto; padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--line); }
.foot p { max-width: 70ch; }

/* ── film ──────────────────────────────────────────────────────────── */
.film { margin: 2rem 0 0; }
/* width/height on the element reserve the box, and aspect-ratio keeps it correct while
   scaling. Per feedback_img_dimension_attrs_defeat_aspect_ratio the pair needs height:auto,
   or the fixed height attribute wins and the ratio is ignored. */
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16/9;
              border: 1px solid var(--line); border-radius: var(--r); background: var(--void-2); }
.film figcaption { font-family: var(--f-mono); font-size: .78rem; color: var(--dust);
                   margin-top: .7rem; max-width: 62ch; }
