/* "Night map" (content-pack/design/brief.md, pack 0.2.0). Values come from tokens.css, which is
   generated from design/tokens.json and also carries the hashed media URLs (--media-*) and the
   bento crop classes. Breakpoints mirror tokens.layout.breakpoints (md 720, lg 1024) plus 900 for
   the 12-column split, because media queries can't read custom properties. */

/* --col resolves 68ch once at the band's body font size, then inherits as a fixed length.
   initial-value must be computationally independent (px, not rem). */
@property --col { syntax: "<length>"; inherits: true; initial-value: 672px; }

:root {
  --gap: 1.25rem;
  --pix: 3px;                       /* window rim (brief §4: 3px outer rim) */
  --win-text: #e7eaf0;              /* game windows are night-coloured in both themes */
  --win-muted: #aeb6c7;
  --win-link: #b9c5ff;
  --win-lantern: #f0b45a;
  --steps: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 4' shape-rendering='crispEdges'%3E%3Cpath d='M0 3h2v1H0zM2 2h1v2H2zM3 1h2v3H3zM5 0h2v4H5zM7 1h1v3H7zM8 2h2v2H8zM10 3h1v1h-1zM11 2h1v2h-1zM12 1h1v3h-1zM13 0h1v4h-1zM14 2h1v2h-1zM15 3h1v1h-1z'/%3E%3C/svg%3E");
  --tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1h1v1h1v1h1v1H3v1H2v1H1v1H0z'/%3E%3C/svg%3E");
  --down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h8v1H7v1H6v1H5v1H3V3H2V2H1V1H0z'/%3E%3C/svg%3E");
  --grid-paper: linear-gradient(color-mix(in srgb, var(--color-border) 40%, transparent) 1px, transparent 1px),
                linear-gradient(90deg, color-mix(in srgb, var(--color-border) 40%, transparent) 1px, transparent 1px);
  --planks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='96' shape-rendering='crispEdges'%3E%3Cg fill='%235a3c1e' fill-opacity='.22'%3E%3Crect y='46' width='192' height='2'/%3E%3Crect y='94' width='192' height='2'/%3E%3Crect x='120' width='2' height='46'/%3E%3Crect x='24' y='48' width='2' height='46'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root { --planks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='96' shape-rendering='crispEdges'%3E%3Cg fill='%23000' fill-opacity='.4'%3E%3Crect y='46' width='192' height='2'/%3E%3Crect y='94' width='192' height='2'/%3E%3Crect x='120' width='2' height='46'/%3E%3Crect x='24' y='48' width='2' height='46'/%3E%3C/g%3E%3C/svg%3E"); }
}
@media (min-width: 720px) { :root { --gap: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 400 var(--step-body)/var(--lh-body) var(--font-body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
code, kbd, samp { font-family: var(--font-mono); font-size: .92em; }
.small { font-size: var(--step-small); line-height: var(--lh-small); }
a { color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Two voices (brief §1): pixel font for game UI and headings, Fraunces for writerly leads, Inter for body. */
h1, h2, h3 { margin: 0 0 var(--space-5); font-style: normal; overflow-wrap: break-word; }
h1 { font: 400 var(--step-h1)/1.25 var(--font-pixel); }
h2 { font: 400 var(--step-h2)/1.3 var(--font-pixel); letter-spacing: .01em; }
h3 { font: 600 var(--step-h3)/var(--lh-h3) var(--font-body); }
p, ul, ol, table, figure { margin: 0 0 var(--space-4); }

/* ---------- game windows ---------- */
.window {
  position: relative; background: var(--color-win-fill); color: var(--win-text);
  border: var(--pix) solid var(--color-win-rim);
  box-shadow: inset 0 0 0 2px var(--color-win-fill), inset 0 0 0 3px var(--color-win-inner);
  padding: 1.25rem 1.5rem;
}
.window a { color: var(--win-link); }
.window.system { padding: .5rem 1rem; }
.cursor::before {
  content: ""; display: inline-block; flex: none; width: 8px; height: 14px; margin-right: .65rem; background: var(--win-lantern);
  -webkit-mask: var(--tri) center/contain no-repeat; mask: var(--tri) center/contain no-repeat; opacity: 0;
}
a.cursor:hover::before, a.cursor:focus-visible::before, a.cursor[aria-current]::before { opacity: 1; }
.next {
  position: absolute; right: 1.25rem; bottom: .9rem; width: 16px; height: 10px; background: var(--win-lantern);
  -webkit-mask: var(--down) center/contain no-repeat; mask: var(--down) center/contain no-repeat;
  animation: bob 1s steps(2, jump-none) infinite; /* 2 frames x 500ms (tokens.motion.cursor_bob) */
}
@keyframes bob { to { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .next { animation: none; } }

/* choice window: the first item carries ▶ until focus or hover moves it (brief §4) */
.choice ul { list-style: none; margin: 0; padding: 0; font: 400 1.15rem/1.2 var(--font-pixel); }
.choice li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--win-text); text-decoration: none; }
.choice li a:hover, .choice li a:focus-visible { text-decoration: underline; text-underline-offset: .3em; }
.choice a.first::before { opacity: 1; }
.choice:hover a.first:not(:hover)::before, .choice:focus-within a.first:not(:focus-visible)::before { opacity: 0; }
.choice-inline a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-pixel); font-size: 1.15rem; color: var(--win-text); }

.chip {
  display: inline-block; margin: 2px; padding: .2rem .7rem; font: 400 .95rem/1.3 var(--font-pixel);
  background: var(--color-lantern-soft); color: var(--color-lantern);
  box-shadow: -2px 0 0 0 var(--color-lantern-soft), 2px 0 0 0 var(--color-lantern-soft), 0 -2px 0 0 var(--color-lantern-soft), 0 2px 0 0 var(--color-lantern-soft);
}

/* ---------- header ---------- */
.bar { max-width: calc(var(--wide-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; position: relative; z-index: 5; }
.wordmark { font: 600 1.3rem/1 var(--font-display); color: var(--color-text); text-decoration: none; }
.site-header ul { list-style: none; margin: 0; }
.nav-wide { display: none; }
.nav-wide, .nav-narrow ul { font: 400 1rem/1.2 var(--font-pixel); }
.site-header nav a { color: var(--win-text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-header summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: 44px; font: 400 1rem/1 var(--font-pixel); color: var(--win-text); }
.site-header summary::-webkit-details-marker { display: none; }
.site-header summary::after { content: ""; width: 8px; height: 5px; margin-left: .5rem; background: var(--win-lantern); -webkit-mask: var(--down) center/contain no-repeat; mask: var(--down) center/contain no-repeat; }
.m-title { display: block; }
.m-sum { display: block; font: 400 var(--step-small)/var(--lh-small) var(--font-body); color: var(--win-muted); }
.nav-narrow { position: relative; }
.nav-narrow > summary.window { padding: 0 1rem; }
.nav-narrow > ul { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 10; width: min(22rem, calc(100vw - 2 * var(--gutter))); padding: .5rem 1rem; }
.nav-narrow .menu ul { position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
.nav-narrow .menu li a { padding-block: .35rem; }
@media (min-width: 900px) {
  .nav-narrow { display: none; }
  .nav-wide { display: flex; align-items: center; gap: .25rem 1.4rem; }
  .has-menu { position: relative; }
  .has-menu .menu > ul { position: absolute; right: -1rem; top: calc(100% + .75rem); z-index: 10; width: 23rem; padding: .5rem; }
  .has-menu .menu li a { display: flex; padding: .5rem .75rem; align-items: flex-start; }
  .has-menu .menu li a::before { margin-top: .3rem; }
}

/* ---------- bands (brief §2): full bleed, pixel-stepped top edges ---------- */
.band { position: relative; background: var(--band-bg, var(--color-bg)); color: var(--band-text, var(--color-text)); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; background: var(--band-bg, var(--color-bg));
  -webkit-mask: var(--steps) repeat-x left bottom / 64px 16px; mask: var(--steps) repeat-x left bottom / 64px 16px; }
.band-night { --band-bg: var(--color-bg); background-image: var(--grid-paper); background-size: 48px 48px; }
.band-dusk { --band-bg: var(--color-dusk); }
.band-amber { --band-bg: var(--color-amber-band); --band-text: var(--color-amber-ink); --color-text: var(--color-amber-ink); --color-accent: var(--color-amber-ink); --color-focus: var(--color-amber-ink); }
.band-wood { --band-bg: var(--color-wood); background: var(--planks) 0 0 / 192px 96px repeat, var(--color-wood); }
.band-plain { padding-block: 2rem 5rem; }
.band-plain::before { display: none; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  max-width: calc(var(--wide-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band-inner { --col: var(--text-max); }
.band-inner > * { grid-column: 1 / -1; max-width: var(--col); }
.band-inner > .sec-cards, .band-inner > .sec-steps, .band-inner > figure, .band-inner > .cascade { max-width: none; }
.band-inner > h2 { margin-top: var(--space-7); }
.band-inner > h2:first-child { margin-top: 0; }
.sec { margin-block: var(--space-6); }
.sec > :last-child, .window > :last-child { margin-bottom: 0; }
@media (min-width: 720px) { .grid, .bar { padding-inline: var(--gutter-desktop); } }

/* ---------- home hero: the game screen, pixel art at integer scale only (brief §1) ---------- */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(810px, 92vh); padding-top: 6rem;
  background: var(--hero-fill) var(--media-hero-map) center top / 1440px 810px no-repeat; /* x3 */
  image-rendering: pixelated; color: var(--win-text);
}
@media (min-width: 1441px) { .hero { background-size: 1920px 1080px; min-height: min(1080px, 92vh); } } /* x4 */
@media (min-width: 1921px) { .hero { background-size: 2400px 1350px; } }                                  /* x5 */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--color-bg);
  -webkit-mask: var(--steps) repeat-x left bottom / 64px 16px; mask: var(--steps) repeat-x left bottom / 64px 16px; }
.hero-stage { width: 100%; padding-block: 2rem 4rem; row-gap: 3.5rem; align-items: end; }
.hero .msg { grid-column: 1 / -1; padding: 1.6rem 2rem 2.2rem; }
.hero .msg h1 { font: 400 var(--step-hero)/1.25 var(--font-pixel); margin: 0; max-width: 20ch; text-wrap: balance; }
.nametag { position: absolute; bottom: calc(100% + var(--pix) + 4px); left: .5rem; margin: 0; padding: .3rem .9rem; font: 400 1rem/1.3 var(--font-pixel); }
.hero .choice { grid-column: 1 / -1; padding: .75rem 1.25rem; }
@media (min-width: 900px) { .hero .msg { grid-column: 1 / 9; } .hero .choice { grid-column: 9 / 13; } }
.tpl-home .site-header { position: absolute; top: 0; left: 0; right: 0; }
.tpl-home .wordmark { color: var(--win-text); text-shadow: 0 2px 0 #000; }

/* home intro: Fraunces lead + "the problem", with the decorative stack of message windows */
.lede { font: 600 clamp(1.2rem, 1.05rem + .7vw, 1.55rem)/1.45 var(--font-display); margin-bottom: var(--space-7); }
.intro .band-inner > .cascade { display: none; }
@media (min-width: 900px) {
  .intro .band-inner > * { grid-column: 1 / 8; }
  .intro .band-inner > .cascade { display: block; grid-column: 8 / 13; grid-row: 1 / span 6; position: relative; min-height: 420px; }
}
.cw { position: absolute; width: 82%; padding: .9rem 1rem; display: grid; grid-template-columns: 52px 1fr; gap: .9rem; }
.cw .face { width: 52px; height: 52px; background: #3a4770; box-shadow: inset 0 0 0 2px #5d6c99, inset 0 0 0 14px #3a4770, inset 0 0 0 26px var(--color-win-fill); }
.cw .bars { display: grid; gap: .5rem; align-content: center; }
.cw .bars i { display: block; height: 9px; background: color-mix(in srgb, var(--win-muted) 45%, transparent); }
.cw .bars i:nth-child(2) { width: 72%; } .cw .bars i:nth-child(3) { width: 46%; }
.cw:nth-child(1) { left: 18%; top: 0;     opacity: .35; } .cw:nth-child(2) { left: 14%; top: 54px;  opacity: .45; }
.cw:nth-child(3) { left: 10%; top: 108px; opacity: .58; } .cw:nth-child(4) { left: 7%;  top: 162px; opacity: .72; }
.cw:nth-child(5) { left: 3%;  top: 216px; opacity: .86; } .cw:nth-child(6) { left: 0;   top: 270px; }

/* ---------- title block (product / standard / roadmap): first screenshot bleeds right ---------- */
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: var(--space-5); }
.title-row h1 { margin: 0; }
.title-copy .sec-hero { margin: 0; }
.title-copy .sec-hero p { font: 600 1.15rem/1.5 var(--font-display); }
.title-copy .sec-hero p > strong:first-child { display: block; margin-bottom: .6rem; font-size: var(--step-h2); line-height: 1.22; }
.band-title { padding-top: 2rem; }
.title-only .band-inner > .title-copy { max-width: var(--col); }
.band-title .split { display: grid; align-items: center; row-gap: 2.5rem;
  grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, calc(var(--wide-max) * 5 / 12)) minmax(0, calc(var(--wide-max) * 7 / 12)) minmax(var(--gutter), 1fr); }
.band-title .title-copy { grid-column: 2; padding-right: var(--gap); }
.band-title figure.bleed { grid-column: 3 / 5; margin: 0; max-width: none; width: auto; border-right: 0; border-radius: var(--radius-md) 0 0 var(--radius-md); padding-right: 0; }
.band-title figure.bleed img { width: 100%; border-radius: 4px 0 0 4px; }
/* Platform: lead diagram beside the title (4 + 8 columns, framed, never bleeding). */
.band-title .split-diagram { grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, calc(var(--wide-max) * 4 / 12)) minmax(0, calc(var(--wide-max) * 8 / 12)) minmax(var(--gutter), 1fr); }
.band-title .split-diagram > figure.diagram { grid-column: 3; margin: 0; }
@media (max-width: 899px) {
  .band-title .split-diagram > figure.diagram { grid-column: 2; }
  .band-title .split { grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); }
  .band-title .title-copy { grid-column: 2; padding: 0; }
  .band-title figure.bleed { grid-column: 2 / 4; }
}
@media (min-width: 720px) and (max-width: 899px) { .band-title .split { grid-template-columns: var(--gutter-desktop) minmax(0, 1fr) var(--gutter-desktop); } }

/* ---------- screenshots + diagrams ---------- */
figure.shot { width: fit-content; max-width: min(100%, var(--wide-max)); margin-block: var(--space-6); padding: 12px;
  background: var(--color-shot-frame); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-shot); }
figure.shot img { border-radius: 4px; }
/* Diagrams: inline SVG in a system window with space.4 padding (brief §4). The frame is night-coloured in
   both themes, so the drawing gets the night values of the custom properties it reads (light-theme
   --color-win-rim on the night fill would make its boxes vanish). */
figure.diagram.window { margin-block: var(--space-6); padding: var(--space-4); max-width: var(--wide-max); overflow-x: auto; }
.dg { display: block; width: 100%; height: auto; --win-rim: #dfe4ee; --lantern: var(--win-lantern); }
@media (max-width: 719px) { .dg { min-width: 640px; } } /* scroll sideways rather than shrink text below ~10px */

/* ---------- bento cards (dusk band) ---------- */
.sec-cards ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.sec-cards li.tile { grid-column: 1 / -1; padding: 0 1.5rem 1.5rem; color: var(--win-muted); display: flex; flex-direction: column; }
.sec-cards li.tile::before { content: ""; display: block; height: clamp(160px, 18vw, 240px); margin: 0 -1.5rem 1.1rem;
  /* longhands only: the image itself comes from the generated .crop-<route>::before rules in tokens.css */
  background-color: #05070b; background-position: left top; background-size: cover; background-repeat: no-repeat;
  border-bottom: var(--pix) solid var(--color-win-rim); }
.sec-cards li.tile > strong:first-child { display: block; margin-bottom: .4rem; font: 400 clamp(1.2rem, 1.05rem + .6vw, 1.5rem)/1.25 var(--font-pixel); }
.sec-cards li.tile a { color: var(--win-text); text-decoration: none; }
.sec-cards li.tile a::after { content: ""; position: absolute; inset: 0; } /* the whole card is one link */
.sec-cards li.tile:hover, .sec-cards li.tile:focus-within { border-color: var(--win-lantern); }
.sec-cards li.tile:hover a { text-decoration: underline; text-underline-offset: .25em; }
@media (min-width: 900px) {
  .sec-cards li.tile:nth-child(1) { grid-column: 1 / 9; }  .sec-cards li.tile:nth-child(2) { grid-column: 9 / 13; }
  .sec-cards li.tile:nth-child(3) { grid-column: 1 / 6; }  .sec-cards li.tile:nth-child(4) { grid-column: 6 / 13; }
  .sec-cards li.tile:nth-child(1)::before { height: clamp(220px, 24vw, 320px); }
}

/* ---------- steps: pixel tiles on a dotted route (amber band) ---------- */
.sec-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); counter-reset: s; }
.sec-steps li { counter-increment: s; position: relative; padding-left: 5.25rem; min-height: 66px; color: var(--color-amber-ink); }
.sec-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 66px; height: 66px; display: grid; place-items: center;
  font: 400 1.8rem/1 var(--font-pixel); background: var(--color-win-fill); color: var(--win-lantern); border: var(--pix) solid var(--color-amber-ink); }
.sec-steps li:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 74px; bottom: calc(-1 * var(--gap) + 8px); width: 4px;
  background: repeating-linear-gradient(var(--color-amber-ink) 0 6px, transparent 6px 14px); }
.sec-steps li > strong:first-child { display: block; margin-bottom: .3rem; font: 400 1.3rem/1.2 var(--font-pixel); }
@media (min-width: 1024px) {
  .sec-steps ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sec-steps li { padding: 5.5rem 0 0; }
  .sec-steps li:not(:last-child)::after { left: 82px; right: calc(-1 * var(--gap) + 10px); top: 31px; bottom: auto; width: auto; height: 4px;
    background: repeating-linear-gradient(90deg, var(--color-amber-ink) 0 6px, transparent 6px 14px); }
}

/* ---------- features, callout, status, cta ---------- */
.sec-features ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4) var(--space-6); }
@media (min-width: 720px) { .band-inner > .sec-features { max-width: none; } .sec-features ul { grid-template-columns: 1fr 1fr; max-width: 1000px; } }
.sec-callout { border-color: var(--win-lantern); --color-win-inner: #8a6324; padding: 1.75rem 2rem; }
.sec-callout p { font: 600 1.15rem/1.5 var(--font-display); color: var(--win-text); }
.sec-callout strong { display: block; color: #f6c46e; font-size: 1.4rem; margin-bottom: .35rem; }
.sec-status > .chip { margin-bottom: .9rem; }
.sec-status.window { padding: 1.25rem 1.5rem; }
.sec-cta.window { width: fit-content; padding: .75rem 1.5rem; }
.choice-list > p { margin: .25rem 0 .5rem; color: var(--win-text); }
.choice-list ul { display: grid; gap: 0 2rem; }
@media (min-width: 720px) { .choice-list ul { grid-template-columns: repeat(2, auto); } }
@media (min-width: 900px) {
  .band-wood .band-inner > .sec-callout { grid-column: 1 / 8; grid-row: 1; margin: 0; align-self: start; }
  .band-wood .band-inner > .sec-status { grid-column: 8 / 13; grid-row: 1; margin: 4rem 0 0; }
}

/* ---------- roadmap: section headings are system windows with a lamp marker ---------- */
.tpl-roadmap .band-inner > h2.window { width: fit-content; display: flex; align-items: center; gap: .9rem; padding: .5rem 1.25rem .5rem .9rem; }
.tpl-roadmap h2.window::before { content: ""; flex: none; width: 24px; height: 44px; background: var(--media-lamp) center / 24px 44px no-repeat; image-rendering: pixelated; }
.tpl-roadmap h2.rm-1::before { filter: grayscale(.55) brightness(.85); }              /* half-lit: In development */
.tpl-roadmap h2.rm-2::before { filter: grayscale(1) brightness(.55); opacity: .75; }  /* unlit: Planned */

/* ---------- contact: centred message + choice windows ---------- */
.contact-inner .band-inner { justify-items: center; text-align: center; --col: 46ch; }
.contact-inner .sec-hero.window { padding: 1.75rem 2rem; text-align: left; }
.contact-inner .sec-cta.window { margin-inline: auto; }
.contact-inner .sec-cta a { font-size: clamp(1.1rem, .95rem + .8vw, 1.5rem); overflow-wrap: anywhere; }

/* ---------- legal: plain, Inter only ---------- */
.tpl-legal h1, .tpl-legal h2 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.tpl-legal h1 { font-size: var(--step-h1); } .tpl-legal h2 { font-size: var(--step-h3); margin-top: var(--space-6); }
.tpl-legal table { width: 100%; border-collapse: collapse; font-size: var(--step-small); display: block; overflow-x: auto; }
.tpl-legal th, .tpl-legal td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border); }

/* ---------- footer: ground strip above the ground colour ---------- */
.site-footer { position: relative; background: var(--color-ground); color: #c9c4d6; padding-block: 2.5rem 3rem; margin-top: 36px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 36px;
  background: var(--media-ground) repeat-x left bottom / 192px 36px; image-rendering: pixelated; } /* 64x12 at x3 */
.site-footer p { margin-bottom: var(--space-2); }
.site-footer a { color: var(--win-link); }
.footer-links { list-style: none; padding: 0; margin: var(--space-4) 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Preview-only: unresolved placeholders are visible, never silent. */
mark.ph { background: #ffe066; color: #000; outline: 2px dashed #c00; padding: 0 .2em; }

/* ---------- refinements after visual review ---------- */
/* A night band that follows another night band continues it: no second edge, no doubled padding. */
.band-night + .band-night { padding-top: 0; }
.band-night + .band-night::before { display: none; }
.band-title { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
/* Portrait screenshots (e.g. light-cost, 770x1207) are capped in height; width follows the aspect ratio. */
figure.shot:not(.bleed) img { max-height: min(78vh, 760px); width: auto; }
/* Phones: keep the town and its lamps visible above the dialogue windows. */
@media (max-width: 899px) { .hero { min-height: 0; padding-top: 31rem; } } /* reveals the lamps and the character by the well */

/* ---------- nav alignment (fix 2026-10-07) ----------
   The ▶ cursor lives in a fixed gutter left of each nav item (absolutely positioned), so it never shifts
   text. Menu items stack title over summary, so every title and summary starts at the same x. */
.site-header nav a.cursor { position: relative; }
.site-header nav a.cursor::before { position: absolute; left: -1.05rem; top: 50%; margin: 0; transform: translateY(-50%); }
.site-header .menu li a { display: block; padding: .45rem .75rem .45rem 1.6rem; }
.site-header .menu li a::before { left: .55rem; top: .8rem; transform: none; }
.site-header .m-sum { margin-top: .15rem; }
.nav-narrow > ul { padding: .5rem 1rem .5rem 1.9rem; }
.nav-narrow .menu ul { padding-left: 0; }
