/* ═══════════════════════════════════════════════════════════════════
   Isentroth — isentroth.com
   Option A (Store-Mirror) core + Option D (Game-UI-as-Web) chrome.
   Tokens are BRAND-KIT.md §3 verbatim — sampled from the shipped game,
   not chosen here. `ember` is the only warm colour in the system and is
   spent once per surface (the CTA); its scarcity is what makes it read
   as heat. Mobile-first, no external requests, no framework.
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Cinzel Decorative";
  src: url("assets/fonts/cinzel-decorative.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink:   #000000;
  --iron:  #201820;
  --stone: #484850;
  --mist:  #c8d0d8;
  --dawn:  #e8e0d8;
  --ember: #eb9642;

  /* the locked heading token — mid warm gold + angled letterpress core with
     an 80%-strength diffusion falloff (Jesse-approved 2026-07-06) */
  --gold: #efdaaf;
  --gold-shadow: 0.8px 0.8px 0 rgba(0,0,0,.8), 1.4px 1.4px 3.2px rgba(0,0,0,.48);

  --bg:    #0b090b;
  --panel: #141014;

  --display: "Cinzel Decorative", Georgia, serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;

  --measure: 68ch;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --band-y: clamp(3.5rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--mist);
  font-family: var(--body);
  font-size: clamp(1.05rem, 0.55vw + 0.95rem, 1.25rem);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--gold);
  text-shadow: var(--gold-shadow);
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.5rem, 2.4vw + 1rem, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.45rem);
     text-shadow: 0.4px 0.4px 0 rgba(0,0,0,.8), 0.8px 0.8px 2.4px rgba(0,0,0,.43); }

p { margin: 0 0 1.1em; }
strong { color: var(--dawn); font-weight: 700; }

a { color: var(--dawn); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--iron); color: var(--dawn); padding: 0.7em 1.1em;
}
.skip:focus { left: 0; }

/* ── hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(88vh, 46rem);
  display: grid;
  align-items: center;
  padding: clamp(4rem, 12vh, 8rem) var(--gap) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--stone);
}
.hero__art {
  position: absolute; inset: 0;
  background-image: image-set(url("assets/hero-1200.webp") 1x, url("assets/hero-1920.webp") 2x);
  background-image: url("assets/hero-1920.webp");
  background-size: cover;
  background-position: center 42%;
}
/* scrim: the key art is the ground, the type is the message */
.hero__art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(11,9,11,.20) 0%, rgba(11,9,11,.72) 62%, rgba(11,9,11,.94) 100%),
    linear-gradient(to bottom, rgba(11,9,11,.55) 0%, rgba(11,9,11,0) 22%, rgba(11,9,11,.85) 88%, var(--bg) 100%);
}
.hero__inner {
  position: relative;
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
}
.hero__mark { margin: 0 0 clamp(1rem, 3vh, 1.9rem); }
.hero__mark img {
  width: min(100%, 30rem);
  margin: 0 auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.65));
}
.hero__tagline {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw + 0.85rem, 2.05rem);
  line-height: 1.3;
  color: var(--gold);
  text-shadow: 0.9px 0.9px 0 rgba(0,0,0,.85), 1.6px 1.6px 4px rgba(0,0,0,.6);
  margin: 0 0 clamp(1.4rem, 4vh, 2.2rem);
  text-wrap: balance;
}
.hero__cta { margin: 0 0 1.15em; }
.hero__sub {
  color: var(--mist);
  font-size: 1.02rem;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
  text-wrap: balance;
}

/* ── the one warm element on the page ───────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1208;
  background: linear-gradient(to bottom, #f6ab5c 0%, var(--ember) 100%);
  border: 1px solid #7a4a18;
  border-radius: 2px;
  padding: 0.72em 1.6em;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 2px 14px rgba(235,150,66,.22),
              inset 0 1px 0 rgba(255,255,255,.35);
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.09); color: #1a1208; }
.btn:active { transform: translateY(1px); }
.btn--sm { font-size: 0.92rem; padding: 0.55em 1.2em; }

/* ── bands ──────────────────────────────────────────────────────── */
.band {
  padding: var(--band-y) var(--gap);
  max-width: 74rem;
  margin: 0 auto;
}
.band--craft, .band--disclosure, .band--signup { max-width: 62rem; }

.rule {
  border: 0;
  height: 1px;
  max-width: 74rem;
  margin: 0 auto;
  background: linear-gradient(to right, transparent, var(--stone) 22%, var(--stone) 78%, transparent);
}

/* ── features (D chrome: iron panels) ───────────────────────────── */
.features {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
@media (min-width: 46rem) {
  .features { grid-template-columns: 1fr 1fr; }
}
.panel {
  background: linear-gradient(to bottom, var(--panel), #100c10);
  border: 1px solid var(--stone);
  border-radius: 2px;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: inset 0 1px 0 rgba(200,208,216,.06), 0 1px 0 rgba(0,0,0,.5);
}
.panel p:last-child { margin-bottom: 0; }

/* ── gallery ────────────────────────────────────────────────────── */
.gallery {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}
@media (min-width: 52rem) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; }
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  border: 1px solid var(--stone);
  border-radius: 2px;
  background: var(--ink);
}
.gallery figcaption {
  margin-top: 0.6em;
  font-size: 0.97rem;
  color: var(--mist);
  font-style: italic;
}

/* ── world / atmosphere ─────────────────────────────────────────── */
.atmos {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(70vh, 34rem);
  padding: clamp(3.5rem, 10vw, 7rem) var(--gap);
  overflow: hidden;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}
.atmos__art {
  position: absolute; inset: 0;
  background-image: url("assets/atmosphere-1920.webp");
  background-size: cover;
  background-position: center 38%;
}
.atmos__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,9,11,.86), rgba(11,9,11,.72) 45%, rgba(11,9,11,.9));
}
.atmos__text {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  font-size: clamp(1.1rem, 0.7vw + 1rem, 1.35rem);
  line-height: 1.7;
  color: var(--dawn);
  text-shadow: 0 1px 6px rgba(0,0,0,.85);
  text-wrap: pretty;
}

/* ── craft band ─────────────────────────────────────────────────── */
.craft { display: grid; gap: clamp(1.2rem, 3vw, 2.2rem); }
@media (min-width: 50rem) {
  .craft { grid-template-columns: auto 1fr; align-items: start; }
}
/* the mark IS authored pixel art, so it keeps `pixelated` — but only at an
   integer division of its 512 source (512/4). A fluid size would decimate to
   a fractional grid and shimmer, which on an animated GIF is very visible. */
.craft__mark {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  justify-self: center;
  opacity: .95;
}
.craft__body { max-width: var(--measure); }
.craft__close {
  color: var(--dawn);
  font-size: 1.08em;
  border-left: 2px solid var(--stone);
  padding-left: 1em;
  margin-bottom: 0;
}

/* ── disclosure (compliance register: quietest on the page) ─────── */
/* craft → disclosure → signup are one continuous "how this is made and how
   to hear more" run; full band padding on each stacked into a dead zone */
.band--disclosure { padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: 0; }
.band--signup { padding-top: clamp(2.5rem, 6vw, 4rem); }
.disclosure {
  max-width: var(--measure);
  font-size: 0.95rem;
  color: #a8b0ba;
}
.disclosure h2 { font-size: clamp(1.15rem, 1vw + 0.95rem, 1.4rem); }

/* ── signup ─────────────────────────────────────────────────────── */
.signup { max-width: var(--measure); }
.signup__lede { color: var(--mist); }
.signup__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 0.8em;
}
.signup__form input {
  flex: 1 1 16rem;
  min-width: 0;
  background: #0d0a0d;
  border: 1px solid var(--stone);
  border-radius: 2px;
  color: var(--dawn);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
}
.signup__form button {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mist);
  background: transparent;              /* ghost — the Steam CTA is the CTA */
  border: 1px solid var(--stone);
  border-radius: 2px;
  padding: 0.7em 1.4em;
  cursor: pointer;
}
.signup__form button:hover:not(:disabled) { color: var(--gold); border-color: var(--gold); }
.signup__form.is-pending input,
.signup__form.is-pending button { opacity: .45; cursor: not-allowed; }
.signup__pending {
  font-size: 0.92rem;
  color: var(--stone);
  color: #7d848e;
  margin-bottom: 1em;
}
.signup__consent { font-size: 0.88rem; color: #838a94; margin-bottom: 0; }

/* ── footer ─────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--stone);
  padding: clamp(2.5rem, 6vw, 4rem) var(--gap) clamp(4.5rem, 8vw, 5rem);
  max-width: 62rem;
  margin: 0 auto;
  font-size: 0.86rem;
  color: #767d87;
  text-align: center;
}
.age {
  display: inline-block;
  border: 1px solid var(--stone);
  border-radius: 2px;
  padding: 0.15em 0.5em;
  font-family: var(--display);
  color: var(--mist);
  letter-spacing: 0.04em;
}
.foot__legal { max-width: 46rem; margin: 1.2em auto; line-height: 1.55; }
.foot__links { margin: 1.4em 0 1em; }
.foot__links .sep { color: var(--stone); margin: 0 0.5em; }
.foot .pending { color: var(--stone); cursor: default; }
.foot__copy { margin: 0; color: var(--stone); }

/* ── sticky CTA ─────────────────────────────────────────────────── */
.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0.7rem var(--gap);
  background: linear-gradient(to top, rgba(11,9,11,.97), rgba(11,9,11,.86));
  border-top: 1px solid var(--stone);
  backdrop-filter: blur(6px);
}
.sticky[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
