/* Glowfield — one stylesheet, no build step, no JavaScript. Dark like the game, one typeface
   (Bricolage Grotesque, self-hosted, SIL Open Font License, see /fonts/OFL.txt), one mint accent.
   No inline styles anywhere: the CSP (style-src 'self') would drop them. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #06070f;
  --deep: #0c1020;
  --ink: #e9edf7;
  --dim: #a9b2c8;
  --mint: #78f0be;
  --cyan: #6edcff;
  --ember: #ffaa5a;
  --rule: #232a44;
  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --measure: 60ch;
  --radius: 1.4rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 50% -10%, #12304a 0%, var(--night) 60%);
}
a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: .3rem; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem); margin-top: 0; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--mint); color: var(--night); padding: .5rem 1rem; z-index: 2; }
.mt { margin-top: 1.5rem; }
.muted { color: var(--dim); }

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #fff; text-decoration: none; text-shadow: 0 0 18px rgba(120, 240, 190, .75), 0 0 2px #fff; }
nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { color: var(--dim); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: #fff; }

/* The hero: the hummingbird painting with the title over its dark half, the feature graphic made responsive. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 2rem;
  margin: .5rem 0 1rem; padding: 2rem 1.5rem; min-height: 30rem;
  display: flex; align-items: flex-end;
  background: #000;
}
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 45%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.82) 70%, rgba(0,0,0,.95) 100%);
}
.hero-copy { max-width: 36rem; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 5vw, 4.6rem); font-weight: 800; text-shadow: 0 2px 24px rgba(0,0,0,.8); }
.hero h1 span { color: var(--mint); text-shadow: 0 0 24px rgba(120, 240, 190, .55), 0 2px 24px rgba(0,0,0,.8); }
.lede { font-size: 1.25rem; color: var(--ink); text-shadow: 0 1px 12px rgba(0,0,0,.9); }
@media (min-width: 48rem) {
  .hero { min-height: 34rem; padding: 3rem 3rem; align-items: center; }
  .hero-art img { object-position: 80% 50%; }
  .hero-art::after {
    background:
      linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.88) 38%, rgba(0,0,0,.35) 62%, rgba(0,0,0,.05) 100%),
      linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.6) 100%);
  }
  .lede { color: var(--dim); }
}

.stores { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1.25rem 0 .5rem; }
.store, .btn {
  display: inline-block; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 700; text-decoration: none; line-height: 1.2;
  color: var(--night); background: var(--mint); box-shadow: 0 0 24px rgba(120, 240, 190, .35);
}
.store.alt, .btn.alt { background: rgba(6, 7, 15, .55); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); backdrop-filter: blur(6px); }
.store:hover, .btn:hover { color: var(--night); background: #fff; }
.store.alt:hover, .btn.alt:hover { color: #fff; background: var(--deep); }
.soon { font-size: .9rem; color: var(--dim); }

section { padding: 2.5rem 0; border-top: 1px solid var(--rule); }
section.first { border-top: 0; }
.steps { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--deep); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; }
.step b { display: block; color: var(--cyan); font-size: 1.1rem; margin-bottom: .25rem; }
.step p { margin: 0; color: var(--dim); font-size: 1rem; }
.step.ember b { color: var(--ember); }
.step.mint b { color: var(--mint); }

.worlds { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 40rem) { .worlds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .worlds { grid-template-columns: repeat(4, 1fr); } }
.worlds figure { margin: 0; }
.worlds img { border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.worlds figcaption { font-size: .95rem; color: var(--dim); margin-top: .5rem; }
.worlds figcaption b { color: var(--ink); }
.list { columns: 1; column-gap: 2rem; padding-left: 1.2rem; max-width: var(--measure); color: var(--dim); }
.list li { break-inside: avoid; margin-bottom: .35rem; }
.list b { color: var(--ink); }

.two { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48rem) { .two { grid-template-columns: 1fr 1fr; } }
.two img { border-radius: 1.6rem; box-shadow: 0 0 0 1px rgba(255,255,255,.1); max-width: 300px; margin-inline: auto; }
.phone { border-radius: 2.2rem; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 80px rgba(110, 220, 255, .18); margin-inline: auto; max-width: 320px; }
.quote { font-size: 1.35rem; font-weight: 500; color: var(--ink); margin: 2rem 0 0; }
.quote small { display: block; color: var(--dim); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .4rem; }

/* Platforms as a compact definition grid */
.platforms { display: grid; gap: 1rem 2rem; margin: 1rem 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .platforms { grid-template-columns: repeat(3, 1fr); } }
.platforms li { border-top: 1px solid var(--rule); padding-top: .75rem; }
.platforms b { display: block; font-weight: 700; }
.platforms span { display: block; margin-top: .2rem; color: var(--dim); font-size: 1rem; }

/* Trailer */
.trailer { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48rem) { .trailer { grid-template-columns: 1fr 1fr; } }
.trailer video { width: min(100%, 320px); margin-inline: auto; border-radius: 2rem; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 80px rgba(110, 220, 255, .14); }

/* Press kit */
.fact { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0 0 1.5rem; max-width: 48rem; }
.fact dt { color: var(--dim); }
.fact dd { margin: 0; }
.fact dd a { overflow-wrap: anywhere; }
@media (max-width: 30rem) { .fact { grid-template-columns: 1fr; gap: 0 } .fact dd { margin-bottom: .6rem; } }
.kit { display: grid; gap: 1.25rem; margin: 1rem 0 0; }
@media (min-width: 40rem) { .kit { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .kit { grid-template-columns: repeat(3, 1fr); } .kit.wide { grid-template-columns: repeat(2, 1fr); } }
.kit figure { margin: 0; background: var(--deep); border: 1px solid var(--rule); border-radius: var(--radius); padding: .75rem; }
.kit img { border-radius: calc(var(--radius) - .5rem); width: 100%; aspect-ratio: var(--ar, auto); object-fit: cover; background: #000; }
.kit .tall img { max-height: 26rem; object-fit: contain; }
.kit figcaption { padding: .6rem .25rem 0; font-size: .95rem; color: var(--dim); }
.kit figcaption b { color: var(--ink); display: block; }
.dl { list-style: none; padding: 0; margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .92rem; }
.dl a { white-space: nowrap; }
.icon-row { display: flex; gap: 1.25rem; align-items: flex-end; flex-wrap: wrap; }
.icon-row img { border-radius: 22%; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.copyblock { background: var(--deep); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; max-width: 48rem; }
.copyblock p:last-child { margin-bottom: 0; }
.press-toc { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.press-toc a { color: var(--dim); text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .8rem; font-size: .92rem; }
.press-toc a:hover { color: #fff; border-color: var(--dim); }

/* Text pages */
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose .meta { color: var(--dim); }
.prose ul { max-width: var(--measure); color: var(--dim); padding-left: 1.2rem; }
.prose ul b, .prose table b { color: var(--ink); }
dl.faq dt { font-weight: 700; margin-top: 1.2rem; }
dl.faq dd { margin: .25rem 0 0; color: var(--dim); max-width: var(--measure); }
table { border-collapse: collapse; max-width: 48rem; width: 100%; font-size: 1rem; margin: .5rem 0 1.5rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .75rem .5rem 0; border-top: 1px solid var(--rule); }
th { color: var(--dim); font-weight: 600; }

footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--dim); font-size: .95rem; }
footer ul { list-style: none; display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 0; margin: .5rem 0 0; }

/* Pre-launch gate: the coming-soon page that Glowfield/functions/_middleware.js serves until the site opens. */
.gate { padding: clamp(3rem, 10vw, 7rem) 0 4rem; display: grid; gap: 1rem; max-width: var(--measure); border-top: 0; }
.gate h1 { font-size: clamp(3.2rem, 12vw, 7rem); line-height: .9; letter-spacing: -.03em; font-weight: 800; text-shadow: 0 0 28px rgba(120, 240, 190, .45); }
.gate .lede { margin: 0; color: var(--mint); }
.gate-form { display: grid; gap: .5rem; margin-top: .5rem; }
.gate-form label { font-weight: 600; }
.gate-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.gate-row input { flex: 1 1 14rem; min-width: 0; min-height: 2.75rem; padding: .6rem .9rem; font: inherit; color: var(--ink); background: var(--deep); border: 1px solid var(--rule); border-radius: 999px; }
.gate-row input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.gate-row input[aria-invalid="true"] { border-color: var(--ember); }
.gate-row button { min-height: 2.75rem; padding: .6rem 1.2rem; font: inherit; font-weight: 700; color: var(--night); background: var(--mint); border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 0 24px rgba(120, 240, 190, .35); }
.gate-row button:hover { background: #fff; }
.gate-error { color: var(--ember); margin: 0; }
.gate-note { color: var(--dim); font-size: .95rem; }
