/* Reveries: colours are Glimmerdeep's master palette (design/palette.json). */
:root {
  --void: #07060b;        /* 0 */
  --deep-night: #0d0c16;  /* 1 */
  --shadow-blue: #151626; /* 2 */
  --stone-dark: #1f2235;  /* 3 */
  --stone-mid: #2c3148;   /* 4 */
  --stone-light: #3e4660; /* 5 */
  --ember-black: #2a140c; /* 17 */
  --root-lit: #a4501e;    /* 19 */
  --flame: #ff8a2a;       /* 20 */
  --lamp: #ffb347;        /* 21 */
  --hot-core: #ffe7a3;    /* 22 */
  --heron-grey: #8a93a8;  /* 27 */
  --moon: #d8dde6;        /* 28 */
  --bone: #f4f1ea;        /* 29 */

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --measure: 38rem;
  color-scheme: dark;
}

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

html { background: var(--void); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--moon);
  background:
    radial-gradient(ellipse 70rem 40rem at 50% -10rem, var(--shadow-blue), transparent 70%),
    var(--void);
  overflow-x: hidden;
}

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

.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: var(--lamp); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover, a:focus-visible { color: var(--hot-core); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: normal; color: var(--bone); line-height: 1.2; }
h2 { font-size: 1.5rem; margin: 0 0 1rem; letter-spacing: 0.02em; }
h3 { font-size: 1.15rem; margin: 0 0 0.25rem; }

.wrap { width: 100%; max-width: 60rem; margin: 0 auto; padding: 0 1rem; }
.prose { max-width: var(--measure); }
.muted { color: var(--heron-grey); }

section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--stone-dark); }

/* Header */
.site-head { padding: 1.25rem 0; }
.site-head .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--bone);
  text-decoration: none;
}
.wordmark:hover { color: var(--hot-core); }
.site-head nav a { color: var(--heron-grey); text-decoration: none; font-size: 0.95rem; }
.site-head nav a:hover { color: var(--lamp); }

/* Studio intro */
.intro { padding: 5rem 0 3rem; }
.intro h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin: 0 0 1.25rem; letter-spacing: 0.04em; }
.intro p { font-size: 1.15rem; margin: 0 0 1rem; }

/* Game card */
.card {
  display: block;
  border: 1px solid var(--stone-dark);
  background: var(--deep-night);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s;
}
.card:hover, .card:focus-visible { border-color: var(--root-lit); color: inherit; }
.card-body { padding: 1.25rem 1.25rem 1.5rem; }
.card-body p { margin: 0.25rem 0 0; }
.card .more { color: var(--lamp); font-size: 0.95rem; margin-top: 0.75rem; }

/* Glimmerdeep hero */
.hero { padding: 1rem 0 0; text-align: center; }
.hero img { width: 100%; max-width: 1280px; margin: 0 auto; }
.hero .tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--heron-grey);
  font-size: 1.15rem;
  margin: 1.5rem 0 0;
}
.hero h1 {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.pitch p { font-size: 1.15rem; margin: 0 auto; }
.pitch .prose { margin: 0 auto; }

/* Media */
.media { display: grid; gap: 2.5rem; }
figure { margin: 0; }
figure img, figure video { width: 100%; aspect-ratio: 16 / 9; background: var(--void); border: 1px solid var(--stone-dark); }
figcaption { color: var(--heron-grey); font-size: 0.95rem; margin-top: 0.6rem; }
.pair { display: grid; gap: 2.5rem; }
@media (min-width: 46rem) { .pair { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

/* Features */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.features li { padding-left: 1.4rem; position: relative; }
.features li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.62em;
  width: 6px; height: 6px; background: var(--flame);
  box-shadow: 0 0 8px 2px rgba(255, 138, 42, 0.45);
}

/* Download */
.download { text-align: center; }
.download .label {
  display: inline-block;
  color: var(--lamp);
  border: 1px solid var(--root-lit);
  padding: 0.2rem 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.75rem;
}
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 0 0 1.75rem; }
.btn {
  display: inline-flex; flex-direction: column; align-items: center;
  min-width: 11rem;
  padding: 0.85rem 1.5rem;
  background: var(--ember-black);
  border: 1px solid var(--root-lit);
  color: var(--hot-core);
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn small { color: var(--heron-grey); font-size: 0.85rem; }
.btn:hover, .btn:focus-visible {
  background: #3a1c10;
  color: var(--bone);
  box-shadow: 0 0 24px rgba(255, 179, 71, 0.25);
}
.download .notes { max-width: var(--measure); margin: 0 auto; font-size: 0.95rem; }
.download .notes p { margin: 0 0 0.5rem; }
.steam { margin-top: 2rem; color: var(--heron-grey); font-style: italic; }

/* Footer */
.site-foot { padding: 3rem 0 2.5rem; text-align: center; color: var(--heron-grey); font-size: 0.9rem; border-top: 1px solid var(--stone-dark); }
.site-foot .candle { width: 128px; margin: 0 auto 1rem; }
.site-foot p { margin: 0.25rem 0; }
.site-foot a { color: var(--heron-grey); }
.site-foot a:hover { color: var(--lamp); }

/* 404 */
.lost { padding: 6rem 0; text-align: center; }
.lost .candle { width: 128px; margin: 0 auto 2rem; }
.lost h1 { font-size: 2.2rem; margin: 0 0 1rem; }

@media (prefers-reduced-motion: reduce) {
  .card, .btn { transition: none; }
}
