/* Regressors Journey — shared styles */

@font-face { font-family: Cinzel; font-weight: 500; font-display: swap; src: url(fonts/cinzel-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Cinzel; font-weight: 700; font-display: swap; src: url(fonts/cinzel-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-display: swap; src: url(fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-display: swap; src: url(fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); }

:root {
  /* The game's palette: its dark warm plates, parchment ink, the gilt of
     their rims and the forest's greens. (The accent keeps its old name.) */
  --ink: #15110c;        /* page */
  --ink-2: #221b13;      /* raised surfaces, inputs */
  --ink-3: #3d3022;      /* lines, frames */
  --parchment: #ede6d1;  /* text */
  --dust: #a99f8b;       /* secondary text */
  --lilac: #e7c47e;      /* accent: gilt */
  --lilac-ink: #23180a;  /* text on accent */
  --forest: #2f4426;     /* the forest's shade, for glows */
  --ok: #9be3b0;
  --err: #ffa3a3;

  --display: Cinzel, Georgia, serif;
  --book: "EB Garamond", Georgia, serif;
  --ui: Inter, system-ui, sans-serif;

  --nav-h: 60px;
  --bar-h: 64px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background:
    radial-gradient(120% 60% at 50% -10%, #2c3d22 0%, transparent 60%),
    var(--ink);
  background-attachment: fixed;
  color: var(--parchment);
  font-family: var(--ui);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page { padding-top: var(--nav-h); }
a { color: var(--lilac); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 720px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  view-transition-name: site-nav;
  transition: background-color .3s var(--ease), transform .35s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-nav.solid, body.page .site-nav {
  background: rgba(21, 17, 12, .84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--ink-3);
}
.nav {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav .brand {
  font-family: var(--display); font-weight: 700; letter-spacing: .06em;
  color: var(--parchment); text-decoration: none; white-space: nowrap;
}
.nav ul { list-style: none; display: flex; align-items: center; gap: 22px; }
.nav ul a:not(.btn) { color: var(--dust); text-decoration: none; font-size: .95rem; transition: color .2s; }
.nav ul a:not(.btn):hover, .nav ul a[aria-current="page"] { color: var(--parchment); }
.nav .btn { padding: 7px 14px; font-size: .9rem; }
@media (max-width: 420px) { .nav .brand { font-size: .88rem; } .nav ul { gap: 14px; } }

.nav-support a { display: inline-flex; align-items: center; gap: 6px; }
.nav-support svg { width: 15px; height: 15px; fill: var(--lilac); transition: transform .3s var(--ease); }
.nav-support a:hover svg { transform: scale(1.18); }
@media (max-width: 480px) { .nav-press, .nav-devlog { display: none; } }
@media (max-width: 360px) { .nav-support svg { display: none; } }

/* Home on phones: the demo owns the screen; nav slides in once you scroll past it */
@media (max-width: 760px) {
  body.home .site-nav:not(.solid) { transform: translateY(-100%); }
}

/* ---------- Hero: the game screen ---------- */
.hero-screen { width: 100%; padding-top: var(--nav-h); }
.screen-wrap {
  width: 100%;
  max-width: min(1400px, calc((100svh - var(--nav-h) - var(--bar-h) - 24px) * 16 / 9));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--ink-3), 0 30px 120px -20px rgba(231, 196, 126, .22);
}
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage .loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--dust); font-size: .95rem;
  transition: opacity .5s var(--ease);
}
.stage.ready .loading { opacity: 0; pointer-events: none; }

.marquee {
  min-height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0 0;
}
.marquee h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 2.6rem);
  letter-spacing: .06em; line-height: 1.1;
}
.marquee .tagline { color: var(--dust); margin-top: 4px; font-size: clamp(.85rem, 1.6vw, 1.05rem); }
.marquee .controls { display: flex; gap: 8px; flex-shrink: 0; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ink-3);
  background: var(--ink-2);
  color: var(--parchment);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--lilac); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }

/* Phones: screen fills the viewport minus the marquee bar */
@media (max-width: 760px) {
  .hero-screen { padding-top: 0; }
  .screen-wrap { max-width: none; padding: 0; }
  .stage {
    aspect-ratio: auto;
    height: calc(100svh - var(--bar-h));
    border-radius: 0;
    box-shadow: none;
  }
  .marquee { height: var(--bar-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--ink-3); }
  .marquee .tagline { display: none; }
}
@media (max-width: 760px) and (orientation: landscape) {
  .stage { height: 100svh; }
}

/* Immersive mode: CSS fallback where the Fullscreen API isn't available (e.g. iPhone) */
.stage.immersive {
  position: fixed; inset: 0; z-index: 100;
  width: 100vw; height: 100dvh; aspect-ratio: auto; border-radius: 0;
}
.stage .exit-immersive {
  position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right));
  z-index: 2; display: none;
  background: rgba(21, 17, 12, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.stage.immersive .exit-immersive { display: grid; }
body.locked { overflow: hidden; }

/* WebGPU fallback notice, inside the screen */
.toast {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  max-width: 460px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(21, 17, 12, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--ink-3);
  font-size: .85rem; color: var(--parchment);
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast a { color: var(--lilac); }

/* ---------- Sections ---------- */
.section { padding: 96px 0 0; }
@media (max-width: 760px) { .section { padding-top: 72px; } }
.section-head { margin-bottom: 28px; }
.section-head h2, h2.section-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: .04em; line-height: 1.2;
}
.section-head p, .section-intro { color: var(--dust); margin-top: 6px; }
.center { text-align: center; }

/* ---------- Story ---------- */
.story { position: relative; }
.measure { max-width: 720px; }
.story-body {
  max-width: 36em;
  font-family: var(--book);
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  line-height: 1.7;
  color: var(--parchment);
}
.story-body p + p { margin-top: 1.1em; }
.story-body h2, .story-body h3 {
  font-family: var(--display); font-weight: 500; letter-spacing: .04em;
  font-size: 1.15em; margin: 2em 0 .6em; color: var(--parchment);
}
.story-body > p:first-of-type::first-letter {
  font-family: var(--display); font-weight: 700;
  float: left; font-size: 3.4em; line-height: .85;
  padding: .06em .1em 0 0; color: var(--lilac);
}
.story-body em { color: #f4eee2; }
.story-body blockquote {
  margin: 1.6em 0; padding: 0 0 0 1em;
  border-left: 2px solid var(--lilac);
  font-style: italic; color: var(--dust);
}
.story-body hr { border: 0; text-align: center; margin: 2.2em 0; }
.story-body hr::after { content: "⟲"; color: var(--dust); font-size: 1.1rem; }
/* Memory effect: paragraphs brighten as they reach the reader */
.js .story-body.recall > * { opacity: .28; transition: opacity 1.1s var(--ease), filter 1.1s var(--ease); filter: blur(.4px); }
.js .story-body.recall > .lit { opacity: 1; filter: none; }
.placeholder-note {
  display: inline-block; margin-bottom: 20px;
  font-size: .8rem; color: var(--dust);
  border: 1px dashed var(--ink-3); border-radius: 6px; padding: 4px 10px;
}

/* ---------- Minigames ---------- */
.skills {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px 24px;
}
.skill-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid var(--ink-3);
  background: radial-gradient(circle at 30% 25%, rgba(231, 196, 126, .16), transparent 70%), var(--ink-2);
  color: var(--parchment);
  transition: color .3s, border-color .3s, transform .4s var(--ease);
}
.skill-icon svg { width: 28px; height: 28px; }
.skill:hover .skill-icon { color: var(--lilac); border-color: var(--lilac); transform: rotate(-6deg); }
.skill h3 { font-family: var(--display); font-weight: 500; font-size: 1.1rem; letter-spacing: .03em; }
.skill p { color: var(--dust); font-size: .95rem; margin-top: 4px; max-width: 26ch; }
.skills-more { margin-top: 28px; color: var(--dust); font-family: var(--book); font-style: italic; font-size: 1.15rem; }
@media (max-width: 520px) {
  .skills { grid-template-columns: 1fr; gap: 18px; }
  .skill { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center; }
  .skill-icon { grid-row: span 2; margin: 0; }
  .skill p { margin: 0; }
}

/* ---------- Screenshot reel ---------- */
.reel { position: relative; }
.reel-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--ink-3);
  touch-action: pan-y;
  cursor: zoom-in;
}
.reel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.reel-slide.active { opacity: 1; z-index: 1; }
.reel-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.0); }
@media (prefers-reduced-motion: no-preference) {
  .reel-slide.active img { animation: drift 9s linear forwards; }
}
@keyframes drift { from { transform: scale(1.0) translate(0, 0); } to { transform: scale(1.07) translate(-1.2%, -1%); } }
.reel-slide.placeholder {
  display: grid; place-items: center;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(231, 196, 126, .18), transparent 60%),
    radial-gradient(60% 60% at 80% 90%, rgba(98, 140, 80, .2), transparent 60%),
    var(--ink-2);
  color: var(--dust); font-style: italic; text-align: center; padding: 24px;
}
.reel-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  background: rgba(21, 17, 12, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s;
}
.reel-nav.prev { left: 12px; }
.reel-nav.next { right: 12px; }
.reel-stage:hover .reel-nav, .reel-nav:focus-visible { opacity: 1; }
@media (hover: none) { .reel-nav { display: none; } }
.reel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255, 255, 255, .08); }
.reel-progress span { display: block; height: 100%; width: 0; background: var(--lilac); }
.reel-caption {
  min-height: 1.6em; margin-top: 12px;
  color: var(--dust); font-size: .95rem;
  transition: opacity .4s;
}
.reel-thumbs {
  display: flex; gap: 10px; margin-top: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: thin;
}
.reel-thumbs button {
  flex: 0 0 auto; width: 120px; aspect-ratio: 16 / 9;
  border-radius: 8px; overflow: hidden; padding: 0;
  border: 2px solid transparent; background: var(--ink-2);
  opacity: .55; cursor: pointer; scroll-snap-align: start;
  transition: opacity .25s, border-color .25s;
}
.reel-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.reel-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--lilac); }
.reel-thumbs button:hover { opacity: .9; }
@media (max-width: 520px) { .reel-thumbs button { width: 88px; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  border: 0; padding: 0;
  background: rgba(10, 8, 5, .94);
  display: none; place-items: center;
  opacity: 0; transition: opacity .3s var(--ease), display .3s allow-discrete, overlay .3s allow-discrete;
}
.lightbox[open] { display: grid; opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lightbox img {
  max-width: 94vw; max-height: 86dvh; border-radius: 8px;
  transform: scale(.97); transition: transform .35s var(--ease);
}
.lightbox[open] img { transform: none; }
@starting-style { .lightbox[open] img { transform: scale(.97); } }
.lightbox .icon-btn { position: absolute; }
.lightbox .close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lightbox .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: var(--dust); font-size: .9rem; padding: 0 60px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; }
.hint { color: var(--dust); font-weight: 400; }
.field input, .field textarea, .inline-form input {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: 8px;
  color: var(--parchment);
  font: inherit; font-size: 16px; /* prevents iOS zoom on focus */
  padding: 11px 12px;
  transition: border-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .inline-form input:focus { outline: none; border-color: var(--lilac); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 0; border-radius: 8px;
  background: var(--lilac); color: var(--lilac-ink);
  font: inherit; font-weight: 500;
  cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap;
  transition: filter .2s, transform .15s var(--ease);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--parchment); border: 1px solid var(--ink-3); }
.btn.ghost:hover { border-color: var(--lilac); filter: none; }
.btn.block { width: 100%; margin-top: 8px; }

.status { margin-top: 12px; font-size: .9rem; min-height: 1.3em; transition: color .2s; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

.kind { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind label {
  border: 1px solid var(--ink-3); border-radius: 8px;
  padding: 12px; text-align: center; cursor: pointer; color: var(--dust);
  transition: border-color .2s, color .2s, background-color .2s;
}
.kind input:checked + label { border-color: var(--lilac); color: var(--parchment); background: rgba(231, 196, 126, .1); }
.kind input:focus-visible + label { outline: 2px solid var(--lilac); outline-offset: 2px; }
.collapsible { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease), opacity .3s; }
.collapsible > div { overflow: hidden; }
.collapsible.closed { grid-template-rows: 0fr; opacity: 0; }

/* ---------- Mailing list ---------- */
.signup {
  max-width: 720px;
  padding: 36px 28px;
  border-radius: 16px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(98, 140, 80, .2), transparent 60%),
    var(--ink-2);
  border: 1px solid var(--ink-3);
}
.signup h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: .04em; }
.signup > p { color: var(--dust); margin: 6px 0 20px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .inline-form { flex-direction: column; } .signup { padding: 28px 20px; } }
.fineprint { color: var(--dust); font-size: .8rem; margin-top: 4px; }

/* ---------- Donations ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.donate {
  max-width: 720px;
  padding: 36px 28px;
  border-radius: 16px;
  border: 1px solid var(--ink-3);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(231, 196, 126, .18), transparent 65%),
    var(--ink-2);
}
.donate-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: .04em; line-height: 1.2; }
h1.donate-title { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; }
.donate-pitch { color: var(--dust); margin: 8px 0 22px; max-width: 52ch; }
.amounts {
  border: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
@media (max-width: 480px) { .amounts { grid-template-columns: repeat(3, 1fr); } }
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts label {
  display: grid; place-items: center;
  min-height: 52px; padding: 8px 4px;
  border: 1px solid var(--ink-3); border-radius: 10px;
  background: rgba(21, 17, 12, .5);
  font-weight: 500; font-size: 1.05rem; color: var(--dust);
  cursor: pointer; user-select: none;
  transition: border-color .2s, color .2s, background-color .2s, transform .15s var(--ease);
}
.amounts label:hover { color: var(--parchment); border-color: #5c4a33; }
.amounts input:checked + label { border-color: var(--lilac); color: var(--parchment); background: rgba(231, 196, 126, .12); }
.amounts input:checked + label:active, .amounts label:active { transform: scale(.97); }
.amounts input:focus-visible + label { outline: 2px solid var(--lilac); outline-offset: 2px; }
.other-amount { margin-top: 14px; }
.other-amount label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; }
.money-input {
  display: flex; align-items: center;
  max-width: 220px;
  background: var(--ink); border: 1px solid var(--ink-3); border-radius: 8px;
  transition: border-color .2s;
}
.money-input:focus-within { border-color: var(--lilac); }
.money-input span { padding-left: 12px; color: var(--dust); font-size: 1.1rem; }
.money-input input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--parchment);
  font: inherit; font-size: 1.15rem; padding: 11px 12px 11px 6px; outline: none;
  -moz-appearance: textfield;
}
.money-input input::-webkit-outer-spin-button, .money-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.donate-btn { width: 100%; margin-top: 18px; padding: 14px 20px; font-size: 1.05rem; }
.donate .status { margin-top: 10px; }
.donate .fineprint { margin-top: 2px; }
.thanks-mark svg { width: 56px; height: 56px; fill: var(--lilac); margin: 0 auto 18px; }
@media (prefers-reduced-motion: no-preference) {
  .thanks-mark svg { animation: beat 1.6s var(--ease) 2; }
}
@keyframes beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.15); } 40% { transform: scale(1); } }

/* ---------- Devlog cards ---------- */
.cards { display: grid; gap: 14px; }
.card {
  display: block;
  border: 1px solid var(--ink-3); border-radius: 12px;
  background: rgba(34, 27, 19, .62);
  overflow: hidden; color: var(--parchment); text-decoration: none;
  transition: border-color .2s;
}
.card:hover { border-color: var(--lilac); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .body { padding: 18px 20px; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.2rem; letter-spacing: .02em; margin-top: 2px; }
.card p { color: var(--dust); font-size: .95rem; margin-top: 6px; }
.meta { color: var(--dust); font-size: .85rem; }
.empty { color: var(--dust); text-align: center; padding: 32px 0; }
.more { margin-top: 20px; }

/* ---------- Page header (devlog, press, privacy) ---------- */
.page-head { margin: 48px 0 32px; }
.page-head h1, .post-header h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: .05em; line-height: 1.15;
}
.page-head .tagline { color: var(--dust); margin-top: 8px; }

/* ---------- Prose (devlog posts, privacy) ---------- */
.prose { font-family: var(--book); font-size: 1.22rem; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font-family: var(--display); font-weight: 500; letter-spacing: .03em; line-height: 1.3; margin-top: 1.8em; }
.prose h2 { font-size: 1.45rem; }
.prose h3 { font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .3em; }
.prose img, .prose video { border-radius: 8px; border: 1px solid var(--ink-3); max-width: 100%; }
.prose blockquote { border-left: 2px solid var(--lilac); padding-left: 16px; color: var(--dust); font-style: italic; }
.prose code { font-family: ui-monospace, monospace; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 4px; padding: 1px 5px; font-size: .8em; }
.prose pre { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 8px; padding: 14px; overflow-x: auto; }
.prose pre code { border: 0; padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px solid var(--ink-3); margin: 2em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.post-header { margin: 48px 0 28px; }
.post-cover { border-radius: 12px; border: 1px solid var(--ink-3); margin-bottom: 28px; }
.back { display: inline-block; margin-top: 48px; color: var(--dust); text-decoration: none; }
.back:hover { color: var(--parchment); }

/* ---------- Press kit ---------- */
.press { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .press { grid-template-columns: 1fr; gap: 28px; } }
.factsheet {
  border: 1px solid var(--ink-3); border-radius: 12px;
  padding: 20px; background: rgba(34, 27, 19, .62);
  position: sticky; top: calc(var(--nav-h) + 16px);
}
@media (max-width: 800px) { .factsheet { position: static; } }
.factsheet h2 { font-family: var(--display); font-weight: 500; font-size: 1.1rem; margin-bottom: 4px; }
.factsheet dt { color: var(--dust); font-size: .82rem; margin-top: 14px; }
.factsheet dd { font-size: .95rem; overflow-wrap: anywhere; }
.press-section + .press-section { margin-top: 48px; }
.press-section h2 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; letter-spacing: .03em; margin-bottom: 14px; }
.press-section ul { padding-left: 1.3em; }
.press-section li + li { margin-top: .35em; }
.press-section .prose { font-size: 1.15rem; max-width: 38em; }
.video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--ink-3); background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--ink-3); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.logos a { display: grid; place-items: center; gap: 8px; padding: 16px; border: 1px solid var(--ink-3); border-radius: 8px; color: var(--dust); text-decoration: none; font-size: .85rem; }
.logos img { max-height: 80px; }
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; }
.credits div span { display: block; color: var(--dust); font-size: .85rem; }
.todo { color: var(--dust); font-style: italic; }

/* ---------- Footer ---------- */
footer {
  margin-top: auto;
  padding: 80px var(--gutter) 32px;
  color: var(--dust); font-size: .85rem; text-align: center;
}
footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--dust); }
footer a:hover { color: var(--parchment); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .story-body.recall > * { opacity: 1; filter: none; }
}
