/* Hillmade Games: the shared design system ("The Map").
   Every page links this one file. The rules for using it are in design/README.md (not deployed).
   Sections: 1 fonts, 2 tokens, 3 base, 4 layout, 5 header and nav, 6 buttons, chips and labels,
   7 panels and cards, 8 forms and notices, 9 the trail, 10 parallax characters, 11 sections, 12 footer,
   13 motion and print. */

/* ---------- 1. Fonts: self-hosted (SIL OFL, see /fonts/OFL.txt). No request leaves the site. ---------- */
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("../fonts/alegreya-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Alegreya";
  font-style: italic;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/alegreya-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alegreya-sans-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/alegreya-sans-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/alegreya-sans-800-latin.woff2") format("woff2");
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Colour. Ink is the game's own outline colour; panels are the in-game cream cards. */
  --ink: #2a1d12;
  --ink-soft: #5a4532;       /* secondary text on light grounds (7:1 on --sage) */
  --paper: #fff8e7;          /* panels, cards, buttons */
  --paper-deep: #f4e9cc;     /* footer, pressed states */
  --gold: #ffc23a;           /* the primary action */
  --gold-deep: #b9770a;      /* decoration only: not for text */
  --meadow: #3c7a20;         /* free / open (5:1 on --paper) */
  --sky: #35a4fe;
  --sage: #e3edd0;           /* the default page ground */
  --moss: #d6e4c4;
  --ice: #e2eef5;
  --lake: #245271;           /* map section ground: light text on it */
  --ember: #d9461f;          /* flags and pins: decoration, not body text */
  --ember-text: #a8321a;     /* ember for text (6:1 on --paper) */
  --later: #7e9bb0;          /* coming later */
  --crag: #2b1916;
  --dusk: #2a2443;
  --night: #150f1e;
  --on-dark: #fff8e7;
  --on-dark-soft: #e9e2cf;
  --focus: #1d3fbf;

  /* Type */
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.95rem;                          /* small print */
  --step-0: 1.125rem;                          /* body (18px) */
  --step-1: 1.4rem;                            /* lede, card titles */
  --step-2: clamp(1.6rem, 5vw, 2.2rem);        /* h3 */
  --step-3: clamp(2.2rem, 7vw, 3.6rem);        /* h2 */
  --step-4: clamp(2.9rem, 12vw, 6.6rem);       /* display h1 */
  --leading: 1.5;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.8rem;
  --space-4: 1.2rem;
  --space-5: 1.6rem;
  --space-6: 2.2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --gutter: 16px;            /* side padding: 16px on phones */
  --lane: 40px;              /* the trail runs down this lane, left of the content */
  --wrap: 1180px;
  --measure: 60ch;

  /* Shape: dark outlines, round corners, chunky drop shadows */
  --line-w: 3px;
  --line: var(--line-w) solid var(--ink);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-pill: 999px;
  --shadow-s: 0 3px 0 var(--ink);
  --shadow-m: 0 5px 0 var(--ink);
  --shadow-l: 0 6px 0 var(--ink);
}
@media (min-width: 760px) {
  :root { --gutter: 32px; --lane: 88px; }
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--sage);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: var(--leading);
  overflow-x: hidden;
  position: relative;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 900; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); letter-spacing: -0.015em; margin-bottom: var(--space-4); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { font-weight: 700; }
ul, ol { padding-left: 1.3em; }
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--focus);
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--paper); color: var(--ink);
  padding: 0.6em 1em; border: var(--line); border-radius: var(--radius-s);
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { left: 8px; }
.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 4. Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.wrap--narrow { max-width: 760px; }
.col { padding-left: var(--lane); }       /* content that sits right of the trail */
.measure { max-width: var(--measure); }
.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.small { font-size: var(--step--1); color: var(--ink-soft); }
.lede { font-family: var(--serif); font-weight: 800; font-size: var(--step-1); line-height: 1.2; }

/* ---------- 5. Header and nav ---------- */
.site-header { position: relative; z-index: 30; background: var(--sage); border-bottom: 2px dashed rgba(42, 29, 18, 0.25); }
.site-header--over { position: absolute; inset: 0 0 auto 0; background: transparent; border-bottom: 0; }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--space-3) var(--space-4); padding-top: 12px; padding-bottom: 12px;
}
.site-mark { display: inline-flex; align-items: center; flex: none; border-radius: var(--radius-s); }
.site-mark img { width: auto; height: 36px; }
@media (min-width: 760px) { .site-mark img { height: 40px; } }
/* Over painted art (the --over header) the lockup always sits on a cream plate, so the green "Games" never
   fights the hills. Same plate on every such page. On a flat dark ground use img/mark/hillmade-games-dark.svg. */
.site-header--over .site-mark {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-m);
  padding: 4px 8px; box-shadow: 0 3px 0 var(--ink);
}
@media (min-width: 760px) { .site-header--over .site-mark { padding: 5px 12px; } }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.site-nav a:not(.btn) { font-weight: 700; text-decoration: none; padding: 0.3em 0.1em; border-radius: 4px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { text-decoration: underline; }
.site-nav a[aria-current="page"]:not(.btn) { text-decoration-style: wavy; }
.nav-toggle { display: none; }
/* Without JS the links simply wrap under the mark. With JS (html.js), phones get a Menu button. */
@media (max-width: 899px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.45em;
    font: 800 1rem/1 var(--sans); color: var(--ink);
    padding: 0.55em 0.9em; min-height: 44px;
    background: var(--paper); border: var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-s);
    cursor: pointer;
  }
  .nav-toggle svg { width: 1.1em; height: 1.1em; }
  .js .site-nav { display: none; flex-basis: 100%; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border: var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-m);
    padding: var(--space-2) var(--space-4) var(--space-4);
  }
  .js .site-nav li { border-bottom: 2px dashed rgba(42, 29, 18, 0.18); }
  .js .site-nav li:last-child { border-bottom: 0; padding-top: var(--space-3); }
  .js .site-nav a:not(.btn) { display: block; padding: 0.75em 0.2em; }
  .js .site-nav .btn { width: 100%; }
}

/* ---------- 6. Buttons, chips and labels ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 800; font-size: 1.08rem; line-height: 1.2; text-align: center;
  padding: 0.8em 1.25em; min-height: 48px;
  border: var(--line); border-radius: var(--radius-m);
  background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-m);
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: var(--shadow-s); }
.btn--gold { background: var(--gold); }
.btn--small { font-size: 0.95rem; padding: 0.5em 0.9em; min-height: 40px; box-shadow: var(--shadow-s); }
.btn--small:hover { box-shadow: 0 5px 0 var(--ink); }
.btn--dark { background: #2b2140; color: #fff; border-color: var(--on-dark); box-shadow: 0 5px 0 var(--on-dark); }
.btn--dark:hover { box-shadow: 0 7px 0 var(--on-dark); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); margin: var(--space-4) 0 var(--space-3); }
/* Plain text link with an arrow, for secondary actions */
.go { font-weight: 800; }
.go::after { content: " \2192"; }

/* Status chips: the map key */
.chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 700; font-size: 0.9rem; line-height: 1.2; white-space: nowrap;
  padding: 0.25em 0.65em; border-radius: var(--radius-pill);
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
}
.chip::before { content: ""; width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--dot, var(--ink-soft)); border: 2px solid var(--ink); }
.chip--free { --dot: var(--meadow); }
.chip--founders { --dot: var(--gold); }
.chip--later { --dot: var(--later); }
.chip--demo { --dot: var(--ember); }

/* Place labels: italic map lettering above a heading */
.place {
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.15rem;
  display: inline-flex; align-items: center; gap: 0.45em; margin: 0 0 0.6rem;
}
.place svg { width: 1.05em; height: 1.05em; }

/* Outlined display lettering, like the game's titles */
.outlined {
  color: #fff;
  -webkit-text-stroke: 0.09em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--ink);
}

/* ---------- 7. Panels and cards ---------- */
.panel {
  background: var(--paper); color: var(--ink);
  border: var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  padding: 1.2rem 1.25rem 1.1rem;
}
@media (min-width: 760px) { .panel { padding: 1.4rem 1.6rem 1.3rem; } }
.panel > :last-child { margin-bottom: 0; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); color: var(--ink);
  border: var(--line); border-radius: 16px; box-shadow: var(--shadow-l);
  transition: transform 0.2s;
}
.card__media { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--line); background: var(--gold); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1rem 1.15rem 1.2rem; }
.card__body > :last-child { margin-bottom: 0; }
.card h3 { font-size: 1.45rem; line-height: 1.15; margin-bottom: 0.4rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole card is the link */
.card:hover, .card:focus-within { transform: translateY(-3px); }
.card--tilt-l { transform: rotate(-1.1deg); }
.card--tilt-r { transform: rotate(0.8deg); }
.card--tilt-l:hover, .card--tilt-r:hover, .card--tilt-l:focus-within, .card--tilt-r:focus-within { transform: rotate(0) translateY(-3px); }
.cards { list-style: none; margin: var(--space-6) 0 var(--space-5); padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 860px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Round icon badge used in lists of perks */
.perks { list-style: none; margin: var(--space-5) 0; padding: 0; display: grid; gap: var(--space-4); }
.perks li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.perks .badge { width: 52px; height: 52px; border-radius: 50%; background: var(--paper); border: var(--line); display: grid; place-items: center; }
.perks .badge svg { width: 28px; height: 28px; }
.perks strong { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.2rem; }
.perks p { margin: 0; }

/* ---------- 8. Forms and notices ---------- */
.field { display: grid; gap: 0.35rem; margin: 0 0 var(--space-4); }
.field label, .label { font-weight: 800; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.65em 0.8em; min-height: 48px;
  background: #fff; border: var(--line); border-radius: var(--radius-m);
  box-shadow: inset 0 3px 0 rgba(42, 29, 18, 0.08);
}
.field textarea { min-height: 8em; resize: vertical; }
.input:focus-visible, .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-radius: var(--radius-m); }
.field [aria-invalid="true"] { border-color: var(--ember-text); box-shadow: 0 0 0 3px rgba(168, 50, 26, 0.25); }
.tick { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; margin: 0 0 var(--space-3); cursor: pointer; }
.tick input { width: 26px; height: 26px; margin: 0.05em 0 0; accent-color: var(--meadow); cursor: pointer; }
.tick small { display: block; color: var(--ink-soft); font-size: var(--step--1); }
.notice {
  border: var(--line); border-radius: var(--radius-m); padding: 0.8rem 1rem;
  background: var(--paper); box-shadow: var(--shadow-s); margin: 0 0 var(--space-4);
  border-left-width: 10px;
}
.notice > :last-child { margin-bottom: 0; }
.notice--good { background: #eaf6dc; border-left-color: var(--meadow); }
.notice--bad { background: #fde7df; border-left-color: var(--ember-text); }
.notice--info { background: var(--ice); border-left-color: var(--lake); }
.notice[hidden] { display: none; }
/* Long-form text: legal pages, devlog posts */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); margin: var(--space-6) 0 var(--space-3); }
.prose h3 { font-size: 1.4rem; margin: var(--space-5) 0 var(--space-2); }
.prose li + li { margin-top: 0.4em; }
.prose table { border-collapse: collapse; width: 100%; background: var(--paper); border: var(--line); border-radius: var(--radius-s); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.55em 0.75em; border-bottom: 2px solid rgba(42, 29, 18, 0.15); }
.prose th { font-family: var(--sans); font-weight: 800; }
.table-wrap { overflow-x: auto; }

/* ---------- 9. The trail: the game's dotted flight arc, drawn down the page by js/site.js ---------- */
.trail-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 8; }
.trail { position: absolute; left: 0; top: 0; overflow: visible; }
.trail .dots-under { stroke: var(--ink); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 21; fill: none; }
.trail .dots { stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0 21; fill: none; }
.trail-ball { position: absolute; left: 0; top: 0; z-index: 9; width: 36px; height: 36px; margin: -18px 0 0 -18px; pointer-events: none; will-change: transform; }
@media (min-width: 760px) { .trail-ball { width: 52px; height: 52px; margin: -26px 0 0 -26px; } }
/* Waypoints: the dots the trail passes through, one per section heading */
.wp {
  position: absolute; left: calc(var(--lane) / 2); top: 0.35em;
  width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: var(--paper); border: var(--line); z-index: 9;
}
.wp::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ember); }
.wp--free::after { background: var(--meadow); }
.wp--founders::after { background: var(--gold); }
.wp--later::after { background: var(--later); }
.has-wp { position: relative; }
/* No JS, or no trail: waypoints still read as little map pins. */

/* ---------- 10. Parallax characters (js/site.js: data-parallax, data-depth, data-react) ---------- */
/* A scene is a stage with the art's own aspect ratio; every layer fills it and moves by its depth.
   --px and --py run from -0.5 to 0.5 (mouse) or follow the scroll (touch); 0 when motion is off. */
.parallax { --px: 0; --py: 0; --amp-x: 46px; --amp-y: 22px; position: relative; overflow: hidden; }
.parallax__stage { position: absolute; }
.parallax__layer, .char {
  --depth: 0;
  transform: translate3d(calc(var(--px) * var(--depth) * var(--amp-x) * -1), calc(var(--py) * var(--depth) * var(--amp-y) * -1), 0);
}
.parallax__layer { position: absolute; inset: -3% -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; pointer-events: none; user-select: none; }
.parallax__layer--fore { z-index: 5; }
/* A character: two or more real frames from the game, stacked; the rest frame shows until it reacts. */
.char {
  position: absolute; z-index: 3;
  left: var(--x, 50%); bottom: var(--y, 30%); width: var(--w, 15%);
  aspect-ratio: var(--ar, 1);
  -webkit-tap-highlight-color: transparent;
}
.char__body { position: absolute; inset: 0; transform-origin: 50% 100%; }
.char img { position: absolute; bottom: 0; left: 50%; width: auto; height: 100%; max-width: none; transform: translateX(-50%); pointer-events: none; user-select: none; }
.char img.char__act { height: var(--act-h, 100%); opacity: 0; }
.char.is-acting img.char__rest { opacity: 0; }
.char.is-acting img.char__act { opacity: 1; }
/* Late art: the ground, the foreground and the cast are lazy images that stay hidden until js/site.js has
   let the first paint happen and marks the scene .is-ready, so a phone fetches the sky and hills first and
   the rest straight after. Without script (no .js class) nothing is hidden. */
.js .parallax:not(.is-ready) .char, .js .parallax:not(.is-ready) .is-late, .js .trail-layer:not(.is-ready) .trail-ball { display: none; }
.motion .parallax.is-ready .char, .motion .parallax.is-ready .is-late { animation: late-in 0.45s ease-out both; }
@keyframes late-in { from { opacity: 0; } to { opacity: 1; } }
.char--flip img { transform: translateX(-50%) scaleX(-1); }
.char--flip img.char__act[data-noflip] { transform: translateX(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .motion .char__body { animation: char-breathe 3.4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
  .motion .char.is-acting .char__body { animation: var(--react, char-hop) 0.9s cubic-bezier(.3, 1.4, .5, 1) both; }
  .motion .char[data-react="windup"] { --react: char-windup; }
  .motion .char[data-react="flinch"] { --react: char-flinch; }
  .motion .char[data-react="roar"] { --react: char-roar; }
  .motion .char[data-react="bounce"] { --react: char-bounce; }
  .motion .char[data-react="creak"] { --react: char-creak; }
  .motion .char.is-hit .char__body { animation: char-hit 0.5s ease-out; }
}
@keyframes char-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 0.985); } }
@keyframes char-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-8%); } 100% { transform: translateY(0); } }
@keyframes char-windup {
  0% { transform: scale(1, 1) rotate(0); }
  30% { transform: scale(1.08, 0.86) rotate(-5deg) translateX(-4%); }
  55% { transform: scale(0.94, 1.08) rotate(3deg) translateX(3%); }
  100% { transform: scale(1, 1) rotate(0); }
}
@keyframes char-flinch {
  0% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(5%, -10%) rotate(6deg); }
  45% { transform: translate(-2%, 0) rotate(-3deg); }
  70% { transform: translate(1%, -3%) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
@keyframes char-roar {
  0% { transform: scale(1); }
  25% { transform: scale(1.06, 0.95); }
  45% { transform: scale(0.98, 1.05) translateX(-1%); }
  60% { transform: scale(1.02) translateX(1%); }
  75% { transform: scale(1) translateX(-1%); }
  100% { transform: scale(1); }
}
@keyframes char-bounce { 0%, 100% { transform: translateY(0) scale(1, 1); } 25% { transform: translateY(0) scale(1.1, 0.88); } 55% { transform: translateY(-14%) scale(0.95, 1.06); } 80% { transform: translateY(0) scale(1.04, 0.96); } }
@keyframes char-creak { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 50% { transform: rotate(2.5deg); } 75% { transform: rotate(-1.5deg); } }
@keyframes char-hit { 0% { transform: rotate(0); } 25% { transform: rotate(-6deg) translateX(4%); } 55% { transform: rotate(3deg); } 100% { transform: rotate(0); } }

/* ---------- 11. Sections ---------- */
.sec { position: relative; padding: var(--space-8) 0; }
.sec--sky { background: linear-gradient(#35a4fe, #3aa7fd); }
.sec--sage { background: var(--sage); }
.sec--moss { background: var(--moss); }
.sec--lake { background: linear-gradient(#245271, #1f4a66 60%, #224f6c); color: var(--on-dark); }
.sec--lake a:not(.btn) { color: var(--on-dark); }
.sec--dusk { background: linear-gradient(var(--crag), var(--dusk) 180px); color: #efe9f7; }
.sec--dusk a:not(.btn) { color: #ffd27a; }
.sec--dark .place, .sec--lake .place { color: var(--on-dark-soft); }

/* Page header used by inner pages (founders, other games, devlog, accounts, legal) */
.page-head { padding: var(--space-7) 0 var(--space-5); }
.page-head h1 { font-size: clamp(2.4rem, 9vw, 4.4rem); margin-bottom: var(--space-3); }
.page-head .lede { max-width: 40ch; }

/* ---------- 12. Footer ---------- */
.site-footer { position: relative; z-index: 10; background: var(--paper-deep); color: var(--ink); border-top: var(--line); padding: var(--space-7) 0 var(--space-5); font-size: 1rem; }
.site-footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 0.8fr; } }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; margin: 0 0 0.7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer .site-mark img { height: 40px; }
.site-footer__about p { max-width: 36ch; margin: 1rem 0 0; }
.doors a, .doors .door { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.doors a:hover span, .doors a:focus-visible span { text-decoration: underline; }
.doors svg { width: 32px; height: 32px; flex: none; }
.doors small { display: block; color: var(--ink-soft); font-size: 0.9rem; }
.site-footer__base { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 2px dashed rgba(42, 29, 18, 0.25); }
.site-footer__base p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- 13. Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover, .card:focus-within { transform: none; }
}
@media print {
  .site-header, .site-footer, .trail-layer, .parallax, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
