/* =====================================================================
   BELTANE -- site stylesheet
   ---------------------------------------------------------------------
   Every color, font and spacing value lives in :root below. Change a
   value there and the whole site follows.

   The palette is the in-game Hoard UI (Source/LyraGame/UI/BeltaneUILook.h):
     frame gold  #C48A2A   window border
     lit gold    #DDA944   hover / selected outline
     panel       black at 85 percent, 6 px corner radius, Cinzel titles
   Text white is the Teni prompt white (0.96).
   ===================================================================== */

:root {
  /* --- Hoard UI palette ------------------------------------------- */
  --gold: #C48A2A;
  --gold-lit: #DDA944;
  --gold-soft: rgba(196, 138, 42, 0.35);
  --gold-faint: rgba(196, 138, 42, 0.14);
  --panel: rgba(0, 0, 0, 0.85);
  --panel-light: rgba(0, 0, 0, 0.62);

  /* --- World colors ----------------------------------------------- */
  --bg: #0b0a09;
  --bg-2: #13110e;
  --night: #0c1220;
  --moss: #16211a;
  --ember: #f0702a;
  --ember-deep: #a8380f;

  /* --- Text --------------------------------------------------------- */
  --text: #f5f3ee;
  --text-dim: #bdb5a6;
  --text-faint: #8a8275;

  /* --- Type --------------------------------------------------------- */
  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", Georgia, serif;
  --font-body: "Inter", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-hero: clamp(2.6rem, 7vw, 5.5rem);
  --fs-h1: clamp(2.1rem, 4.6vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 3.4vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  /* --- Frame (the Hoard window) ------------------------------------ */
  --frame-w: 3px;
  --radius: 6px;

  /* --- Spacing ------------------------------------------------------ */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;
  --container: 1200px;
  --header-h: 72px;

  /* --- Motion ------------------------------------------------------- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.6s;
}

/* =====================================================================
   Base
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--gold-lit); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--gold-lit);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--space-2); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-2); top: -100px;
  z-index: 1000;
  padding: var(--space-1) var(--space-2);
  background: var(--panel); color: var(--text);
  border: var(--frame-w) solid var(--gold); border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-2); }

.container {
  width: min(100% - 2 * var(--space-3), var(--container));
  margin-inline: auto;
}
.container-narrow { width: min(100% - 2 * var(--space-3), 760px); margin-inline: auto; }

/* Small-caps gold label above headings. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-1);
}

.lede { font-size: 1.2rem; color: var(--text-dim); max-width: 62ch; }

/* =====================================================================
   Hoard panel -- the in-game window, reused for cards and frames
   ===================================================================== */

.hoard-panel {
  background: var(--panel);
  border: var(--frame-w) solid var(--gold);
  border-radius: var(--radius);
}

/* An image framed like an in-game window. */
.frame {
  position: relative;
  margin: 0;
  border: var(--frame-w) solid var(--gold);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  /* Inner lit line, like the Hoard row ring. */
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
  pointer-events: none;
}

/* =====================================================================
   Buttons -- the gather prompt
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.55rem 1.4rem 0.55rem 0.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { color: var(--text); transform: translateY(-1px); }

/* Primary: black panel, gold frame, key cap on the left. */
.btn-prompt {
  background: var(--panel);
  border: var(--frame-w) solid var(--gold);
}
.btn-prompt:hover,
.btn-prompt:focus-visible {
  border-color: var(--gold-lit);
  box-shadow: 0 0 0 1px var(--gold-lit), 0 0 28px rgba(221, 169, 68, 0.35);
}

/* Secondary: no fill. */
.btn-ghost {
  background: var(--panel-light);
  border: 1px solid var(--gold-soft);
  padding-left: 1.4rem;
}
.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--gold-lit); }

/* The key cap inside a prompt button. */
.key {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border: 2px solid var(--gold-lit);
  border-radius: 5px;
  background: linear-gradient(#1b1711, #050403);
  color: var(--gold-lit);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.6);
}
.key svg { width: 18px; height: 18px; }

.btn-sm { min-height: 40px; font-size: 0.8rem; padding: 0.35rem 1rem 0.35rem 0.4rem; }
.btn-sm .key { width: 28px; height: 28px; }
.btn-sm .key svg { width: 15px; height: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* =====================================================================
   Header and navigation
   ===================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.page-solid .site-header {
  background: rgba(8, 7, 6, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--gold-faint);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 42px; width: auto; }
.wordmark {
  display: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
}
.brand.no-logo .brand-logo { display: none; }
.brand.no-logo .wordmark { display: inline; }

.site-nav { display: flex; align-items: center; gap: var(--space-3); }
.site-nav ul { display: flex; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  padding: 0.4rem 0;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  background: var(--panel);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute; left: 12px; right: 12px;
  height: 2px; background: var(--gold-lit);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before { content: ""; left: 0; right: 0; top: -7px; }
.nav-toggle-bars::after { content: ""; left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-3);
    background: rgba(5, 4, 3, 0.97);
    border-bottom: var(--frame-w) solid var(--gold);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: var(--space-2); }
  .site-nav a:not(.btn) { font-size: 1.05rem; }
  .site-nav .btn { justify-content: center; }
}

/* =====================================================================
   Hero
   ===================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media picture,
.hero-media img,
.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media { z-index: -3; will-change: transform; }
.hero-media video { z-index: 1; }

/* Darken the edges so the title always reads, whatever the screenshot. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 35%, transparent 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.75) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 22%, transparent 50%, var(--bg) 100%);
}

.embers {
  position: absolute; inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  padding: calc(var(--header-h) + var(--space-5)) 0 var(--space-6);
}
.hero-title { margin: 0 auto var(--space-2); max-width: 760px; }
.hero-logo {
  width: min(86vw, 720px);
  margin-inline: auto;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.8));
}
.hero-title .wordmark-hero {
  display: none;
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}
.hero-title.no-logo .hero-logo { display: none; }
.hero-title.no-logo .wordmark-hero { display: block; }

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  letter-spacing: 0.08em;
  color: var(--text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
  margin-bottom: var(--space-4);
}
.hero .btn-row { justify-content: center; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: var(--space-3);
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--gold-soft);
  border-radius: 14px;
}
.scroll-cue::after {
  content: "";
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-lit);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* Short hero for inner pages. */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + var(--space-5)) 0 var(--space-5);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 112, 42, 0.16), transparent 60%),
    linear-gradient(var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--gold-faint);
}
.page-hero .lede { margin-inline: auto; }

/* =====================================================================
   Ticker -- the scrolling verb band
   ===================================================================== */

.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--gold-soft);
  background: linear-gradient(90deg, #000, var(--bg-2), #000);
  padding: 1.1rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker ul {
  display: flex;
  margin: 0; padding: 0;
  list-style: none;
}
.ticker li {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.ticker li::after {
  content: "";
  width: 10px; height: 10px;
  margin: 0 2.2rem;
  transform: rotate(45deg);
  border: 2px solid var(--ember);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* =====================================================================
   Sections
   ===================================================================== */

.section { padding: var(--space-6) 0; position: relative; }
.section-tight { padding: var(--space-5) 0; }
.section-night { background: linear-gradient(var(--bg), var(--night) 30%, var(--night) 70%, var(--bg)); }
.section-moss { background: linear-gradient(var(--bg), var(--moss) 30%, var(--moss) 70%, var(--bg)); }

.section-head { text-align: center; margin-bottom: var(--space-5); }
.section-head .lede { margin-inline: auto; }

/* Celtic knot divider. */
.knot {
  display: block;
  width: min(420px, 80%);
  height: 48px;
  margin: 0 auto var(--space-3);
  background: url("../assets/svg/knot.svg") center / contain no-repeat;
}

.intro { text-align: center; }
.intro blockquote {
  margin: var(--space-4) auto 0;
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  color: var(--text);
}
.intro blockquote::before,
.intro blockquote::after { color: var(--gold); }
.intro blockquote::before { content: "\201C"; }
.intro blockquote::after { content: "\201D"; }

/* --- Feature rows ---------------------------------------------------- */

.features { display: grid; gap: var(--space-6); }

.feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media .frame { aspect-ratio: 16 / 9; }
.feature-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--ember);
  margin-bottom: var(--space-1);
}
.feature-text p { color: var(--text-dim); }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: var(--space-3); }
  .feature:nth-child(even) .feature-media { order: 0; }
}

.note {
  margin-top: var(--space-5);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

/* --- Biome cards ----------------------------------------------------- */

.biomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.biome {
  position: relative;
  aspect-ratio: 3 / 4;
  transition: transform 0.35s var(--ease), border-color 0.25s;
}
.biome:hover { transform: translateY(-4px); border-color: var(--gold-lit); }
.biome img { transition: transform 0.8s var(--ease); }
.biome:hover img { transform: scale(1.05); }
.biome figcaption {
  position: absolute; inset: auto 0 0 0;
  z-index: 2;
  padding: var(--space-4) var(--space-2) var(--space-2);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}
.biome h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.biome p { margin: 0; font-size: var(--fs-small); color: var(--text-dim); }

@media (max-width: 1000px) { .biomes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .biomes { grid-template-columns: 1fr; }
  .biome { aspect-ratio: 4 / 3; }
}

/* --- Full-bleed band with parallax image ---------------------------- */

.band {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.band-media {
  position: absolute; inset: -12% 0;
  z-index: -2;
  will-change: transform;
}
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--bg), transparent 25%, transparent 75%, var(--bg)),
    rgba(0, 0, 0, 0.45);
}
.band-content { padding: var(--space-6) 0; }
.band h2 { font-size: clamp(2rem, 5vw, 3.8rem); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9); }
.band p { font-size: 1.2rem; color: var(--text); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); max-width: 46ch; margin-inline: auto; }

/* --- Split (text + image) for The World ----------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.split .frame { aspect-ratio: 16 / 10; }
.split h3 { margin-top: var(--space-3); }
.split p { color: var(--text-dim); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* =====================================================================
   Gallery
   ===================================================================== */

/* Filter tabs: the build-UI tab, top corners rounded, lit when selected. */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--gold);
  padding: 0 var(--space-2);
}
.filter {
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  margin-bottom: -2px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--panel);
  border: 2px solid var(--gold-soft);
  border-bottom-color: var(--gold);
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
}
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--gold-lit);
  border-bottom-color: var(--bg);
  background: linear-gradient(#1c160d, var(--bg));
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.gallery-item {
  display: block;
  padding: 0;
  border: 2px solid var(--gold-soft);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 16 / 9;
  position: relative;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.gallery-item:hover,
.gallery-item:focus-visible { border-color: var(--gold-lit); transform: translateY(-2px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item[hidden] { display: none; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.clips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.clips .frame { aspect-ratio: 16 / 9; }
.clips video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .clips { grid-template-columns: 1fr; } }

/* =====================================================================
   Lightbox and trailer dialogs
   ===================================================================== */

.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.8); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-stage {
  position: relative;
  width: min(92vw, 1600px);
  display: grid;
  gap: var(--space-2);
}
.lightbox-stage img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: var(--frame-w) solid var(--gold);
  border-radius: var(--radius);
  background: #000;
}
.lightbox-stage.ph { min-height: 60vh; border: var(--frame-w) solid var(--gold); border-radius: var(--radius); }
.lightbox-caption { text-align: center; color: var(--text-dim); font-size: var(--fs-small); }
.lightbox-btn {
  position: absolute;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--panel);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold-lit);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-btn:hover { border-color: var(--gold-lit); color: var(--text); }
.lightbox-close { top: var(--space-2); right: var(--space-2); }
.lightbox-prev { left: var(--space-2); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-2); top: 50%; transform: translateY(-50%); }

.trailer-frame {
  width: min(92vw, 1400px);
  aspect-ratio: 16 / 9;
  border: var(--frame-w) solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.trailer-frame iframe { width: 100%; height: 100%; border: 0; }

.trailer-inline { max-width: 1000px; margin: 0 auto var(--space-5); aspect-ratio: 16 / 9; }
.trailer-inline iframe { width: 100%; height: 100%; border: 0; }

/* =====================================================================
   News
   ===================================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.news-card:hover,
.news-card:focus-visible { border-color: var(--gold-lit); transform: translateY(-3px); color: var(--text); }
.news-card .news-thumb { aspect-ratio: 16 / 9; position: relative; background: #000; border-bottom: 1px solid var(--gold-soft); }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.news-card time,
.news-card .news-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.news-card h3 { margin: 0; font-size: 1.2rem; }
.news-card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
.news-card .more { margin-top: auto; padding-top: var(--space-1); color: var(--gold-lit); font-size: var(--fs-small); letter-spacing: 0.1em; text-transform: uppercase; }
.news-list { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .news-grid, .news-list { grid-template-columns: 1fr; } }

.section-foot { text-align: center; margin-top: var(--space-4); }

/* =====================================================================
   Wishlist call to action, signup, community
   ===================================================================== */

.cta {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(240, 112, 42, 0.28), transparent 60%),
    var(--panel);
}
.cta .btn-row { justify-content: center; margin-top: var(--space-3); }

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: center;
  margin-top: var(--space-3);
}
.signup input[type="email"] {
  flex: 1 1 260px;
  max-width: 380px;
  min-height: 48px;
  padding: 0 1rem;
  font: inherit;
  color: var(--text);
  background: #000;
  border: 2px solid var(--gold-soft);
  border-radius: var(--radius);
}
.signup input[type="email"]:focus { border-color: var(--gold-lit); outline: none; box-shadow: 0 0 0 2px var(--gold-faint); }
.signup-note { margin-top: var(--space-2); font-size: var(--fs-small); color: var(--text-faint); }
.signup-status { min-height: 1.5em; margin-top: var(--space-1); color: var(--gold-lit); font-size: var(--fs-small); }

.community {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}
.community a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.community a:hover,
.community a:focus-visible { border-color: var(--gold-lit); transform: translateY(-3px); color: var(--text); }
.community svg { width: 34px; height: 34px; color: var(--gold-lit); }
.community small { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0; text-transform: none; color: var(--text-faint); }
@media (max-width: 900px) { .community { grid-template-columns: repeat(2, 1fr); } }

.steam-widget { max-width: 646px; margin: var(--space-4) auto 0; }
.steam-widget iframe { width: 100%; height: 190px; border: 0; }

/* =====================================================================
   Footer
   ===================================================================== */

.site-footer {
  border-top: 1px solid var(--gold-soft);
  background: #050403;
  padding: var(--space-5) 0 var(--space-3);
  font-size: var(--fs-small);
  color: var(--text-faint);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}
.studio { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--text); }
.studio-logo { height: 64px; width: auto; }
.studio-name { display: none; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.2em; }
.studio.no-logo .studio-logo { display: none; }
.studio.no-logo .studio-name { display: inline; }
.footer-grid h2 {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-grid a { color: var(--text-dim); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.social-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-2); }
.social-row a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--gold-lit);
}
.social-row a:hover { border-color: var(--gold-lit); color: var(--text); }
.social-row svg { width: 20px; height: 20px; }
.footer-legal {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gold-faint);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Long-form text (news posts, privacy, about)
   ===================================================================== */

.prose { color: var(--text-dim); }
.prose h2 { margin-top: var(--space-5); font-size: 1.6rem; }
.prose h3 { margin-top: var(--space-4); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .frame { margin: var(--space-4) 0; aspect-ratio: 16 / 9; }
.post-meta { font-family: var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold); }

.review {
  /* Marks text the site owner must check before launch. */
  background: rgba(240, 112, 42, 0.15);
  border-left: 3px solid var(--ember);
  padding: 0.1rem 0.5rem;
  color: var(--text);
}

/* =====================================================================
   Press kit
   ===================================================================== */

.press-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-5);
  align-items: start;
}
.factsheet { padding: var(--space-3); position: sticky; top: calc(var(--header-h) + var(--space-2)); }
.factsheet dl { margin: 0; display: grid; gap: var(--space-2); }
.factsheet dt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.factsheet dd { margin: 0.15rem 0 0; color: var(--text); }
.press-block { margin-bottom: var(--space-5); }
.press-block h2 { font-size: 1.6rem; }
.press-block p, .press-block li { color: var(--text-dim); }
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.asset {
  display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-1);
  text-decoration: none; color: var(--text);
  font-size: var(--fs-small);
}
.asset:hover { border-color: var(--gold-lit); color: var(--text); }
.asset .asset-thumb { aspect-ratio: 16 / 9; position: relative; background: #000; border-radius: 3px; overflow: hidden; }
.asset .asset-thumb img { width: 100%; height: 100%; object-fit: contain; }
.asset span { padding: 0 0.3rem 0.3rem; }
@media (max-width: 1000px) {
  .press-grid { grid-template-columns: 1fr; }
  .factsheet { position: static; }
}
@media (max-width: 640px) { .asset-grid { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================================
   Placeholders -- shown automatically when an image file is missing.
   Drop the real file in with the same name and this disappears.
   ===================================================================== */

/* Every placeholder host is already positioned (frame, thumb, hero layer),
   so .ph must not set position or it breaks the absolute hero/band layers. */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(196, 138, 42, 0.05) 0 12px, transparent 12px 24px),
    #0d0c0a !important;
}
.ph > img,
.ph > picture,
.ph > video { visibility: hidden; }
.ph::before {
  content: attr(data-ph);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: var(--space-2);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  z-index: 1;
}

/* =====================================================================
   Scroll reveal
   ===================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .embers { display: none; }
}

/* 404 */
.notfound {
  min-height: 100vh;
  display: grid; place-items: center;
  text-align: center;
  padding: var(--header-h) var(--space-3) var(--space-4);
  background: radial-gradient(ellipse at 50% 70%, rgba(240, 112, 42, 0.22), transparent 55%), var(--bg);
}
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(240, 112, 42, 0.45);
}
