/*
 * ironatlas.bind.games, part 1 of 3: type, tokens, the printed objects and the chrome.
 * build.mjs joins base.css, home.css and pages.css into one hashed stylesheet.
 *
 * Direction A of WEB-REDESIGN-1116, "Cover": the site is printed in the game's own language, the
 * arrival screen Birol approved (ADR-11925) and the Running Foot bar. Margin paper, iron-gall ink,
 * dark bronze plates, one brass rule; engravings printed into the paper with a multiply, captures
 * mounted as prints. Colours are the game's (packages/app/src/hud/running-foot-layout.ts RF_COLOURS,
 * docs/ART/STYLE.md section 4). Light only, like the game (app.config.ts userInterfaceStyle 'light').
 * Motion follows the studio law: 100 / 150 / 240 / 400 ms, ease-out, no bounce, nothing loops.
 */

@font-face {
  font-family: "Atlas Serif";
  src: url("/assets/fonts/atlas-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atlas Serif";
  src: url("/assets/fonts/atlas-serif-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* Italics: Georgia's own where it is installed (it is the face the game sets italics in on iOS),
   otherwise Gelasio Italic, drawn on Georgia's metrics. */
@font-face {
  font-family: "Atlas Serif";
  src: local("Georgia Italic"), local("Georgia-Italic"), url("/assets/fonts/atlas-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atlas Serif";
  src: local("Georgia Italic"), local("Georgia-Italic"), url("/assets/fonts/atlas-serif-400-italic-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* The board's count chits: Barlow Condensed SemiBold, digits only. */
@font-face {
  font-family: "Atlas Count";
  src: url("/assets/fonts/atlas-count-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #F8EEDC;
  --cream: #FCF4E6;
  --ink: #16120D;
  --iron: #2B2620;
  --faded: #6E6455;
  --brass: #B08D3E;
  --plate: #33291D;
  --plate-lit: #42362A;
  --plate-edge: #1E1710;
  --teal: #196D65;
  --brick: #A8412F;
  --sea: #C9D6D3;
  --rule: rgb(43 38 32 / 0.16);
  --rule-strong: rgb(43 38 32 / 0.32);
  /* Shadows are tinted to the paper's own brown, never grey or black. */
  --shade: 52 38 20;
  --lift: 0 1px 1px rgb(var(--shade) / 0.14), 0 10px 18px -10px rgb(var(--shade) / 0.3), 0 36px 60px -30px rgb(var(--shade) / 0.42);
  --lift-small: 0 1px 1px rgb(var(--shade) / 0.16), 0 6px 12px -6px rgb(var(--shade) / 0.32);
  /* Ink pressed into paper: a hair of spread, and the paper's lip catching the light below. */
  --pressed: 0 0 1px rgb(22 18 13 / 0.25), 0 1px 0 rgb(255 251 243 / 0.7);
  --paper-tile: url("/assets/art/paper-tile.webp");

  --serif: "Atlas Serif", Georgia, "Times New Roman", serif;
  --count: "Atlas Count", "Barlow Condensed", "Arial Narrow", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 66ch;
  --bar-h: 56px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-press: 100ms;
  --t-hover: 150ms;
  --t-state: 240ms;
  --t-layout: 400ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-bottom: calc(var(--bar-h) + 24px);
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper) var(--paper-tile) repeat;
  background-size: 512px 512px;
  color: var(--iron);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  font-kerning: normal;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}

h1,
h2 {
  text-shadow: var(--pressed);
}

h2 {
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
  text-wrap: pretty;
}

/* German compounds and Turkish suffixes run long; let running text break them properly. */
:lang(de) p,
:lang(de) li,
:lang(de) dd,
:lang(tr) p,
:lang(tr) li,
:lang(tr) dd {
  hyphens: auto;
}

a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgb(176 141 62 / 0.8);
  transition: text-decoration-color var(--t-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    text-decoration-color: var(--ink);
  }
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--plate);
  color: #FCF0E0;
}

.skip-link:focus {
  top: 12px;
}

/* The page's measure: one sheet, centred, with the gutters the game's large windows keep. */
.sheet {
  width: 100%;
  max-width: calc(1320px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- The printed objects ---------- */

/* The game's brass rule under a title. */
.brass-rule {
  width: 44px;
  height: 2px;
  margin: 0;
  border: 0;
  background: var(--brass);
}

/* An engraving printed in ink straight into the page's paper: white drops out, the ink stays. */
.ink {
  mix-blend-mode: multiply;
}

/* The filled bronze plate (Continue on the arrival screen) and its outlined twin (New campaign). */
.plate-button,
.twin-button {
  display: inline-grid;
  align-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 11px 22px 11px;
  border-radius: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}

.plate-button {
  background: var(--plate);
  color: #FCF0E0;
  box-shadow: 0 1px 0 rgb(255 248 236 / 0.35) inset, 0 2px 0 var(--plate-edge), 0 6px 12px -6px rgb(var(--shade) / 0.6);
}

.twin-button {
  border: 1px solid var(--iron);
  color: var(--ink);
}

.plate-button b,
.twin-button b {
  font-weight: 600;
}

.twin-button b {
  font-weight: 400;
}

/* The plate's second line, in italic, as Continue carries the last campaign's nation and date. */
.plate-button i {
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgb(252 240 224 / 0.84);
}

@media (hover: hover) and (pointer: fine) {
  .plate-button:hover {
    background: var(--plate-lit);
  }

  .twin-button:hover {
    background: rgb(43 38 32 / 0.05);
  }
}

.plate-button:active,
.twin-button:active {
  transform: translateY(1px) scale(0.985);
}

/* A capture mounted as a print: cream board, a brass hairline inside the edge, a paper shadow. */
.print {
  margin: 0;
}

.print .mount,
.page-art .mount {
  padding: clamp(6px, 0.8vw, 12px);
  background: var(--cream);
  box-shadow: var(--lift);
  outline: 1px solid rgb(176 141 62 / 0.55);
  outline-offset: -4px;
}

.print img,
.page-art img {
  width: 100%;
}

.print--tilt-left {
  rotate: -0.5deg;
}

.print--tilt-right {
  rotate: 0.5deg;
}

figcaption {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--faded);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
}

/* The board's count chit: Barlow digits in a ruled cardboard box. */
.chit {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.2em 0.34em 0.14em;
  border: 1px solid var(--iron);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--count);
  font-size: 0.95em;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  vertical-align: 0.06em;
  box-shadow: 0 1px 0 rgb(var(--shade) / 0.28);
}

/* The game's own wording, quoted: set as the game sets it, in its serif, slightly inked. */
.ui-word {
  color: var(--ink);
  font-style: italic;
}

/* The research files' stamp. */
.stamp {
  display: inline-block;
  padding: 1px 8px;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  rotate: -3deg;
}

/* ---------- The Running Foot ---------- */

.running-foot {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--brass);
  background: var(--paper) var(--paper-tile) repeat;
  background-size: 512px 512px;
  box-shadow: 0 -10px 22px -18px rgb(var(--shade) / 0.4);
}

.rf-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  max-width: calc(1320px + 2 * var(--gutter));
  height: var(--bar-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rf-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.0625rem;
  text-decoration: none;
  white-space: nowrap;
}

.rf-desks {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 12px);
  margin: 0 auto 0 clamp(4px, 1.4vw, 20px);
  padding: 0;
  list-style: none;
}

.rf-desks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 2px;
  color: var(--iron);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .rf-desks a:hover {
    color: var(--ink);
    background: linear-gradient(rgb(43 38 32 / 0.07), rgb(43 38 32 / 0.07)) center / 100% 30px no-repeat;
  }
}

/* The lit item: a dark bronze plate inside the 44 pt hit, as on the game's bar. */
.rf-desks a[aria-current="page"] {
  color: #FCF0E0;
  background: linear-gradient(var(--plate), var(--plate)) center / 100% 30px no-repeat;
}

.rf-readout {
  margin: 0;
  color: var(--faded);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rf-follow {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.72rem;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(96px, 12vw, 168px);
  padding-block: 36px 40px;
  border-top: 1px solid var(--brass);
  color: var(--faded);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  gap: 24px clamp(24px, 4vw, 56px);
}

.footer-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.375rem;
  line-height: 1.3;
}

.footer-title span {
  display: block;
  color: var(--faded);
  font-size: 0.9375rem;
  font-style: italic;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.footer-notes p {
  margin: 0 0 8px;
}

/* Language switch: the three languages in tracked capitals, the current one inked and unlinked. */
.language-switch ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.language-switch a,
.language-switch span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.language-switch span[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Motion: the title prints once; prints settle as they come into view ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .print-in {
    animation: ink-in var(--t-layout) var(--ease-out) both;
  }

  .print-in--2 {
    animation-delay: 70ms;
  }

  .print-in--3 {
    animation-delay: 140ms;
  }

  .print-in--4 {
    animation-delay: 210ms;
  }

  /* Prints further down fade up as they come into view, where the browser can tie that to the
     scroll itself. It follows the reader's scrolling, so it never runs on its own. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@keyframes ink-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Narrower windows (chrome) ---------- */

@media (max-width: 1199px) {
  .rf-readout {
    display: none;
  }
}

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-notes {
    grid-column: 1 / -1;
  }
}

@media (max-width: 819px) {
  .rf-desk {
    display: none;
  }

  .rf-desks {
    margin-left: auto;
    margin-right: 0;
  }
}

/* The German desk names and "Entwicklung verfolgen" need about 80 px more than the English. */
@media (min-width: 820px) and (max-width: 979px) {
  :lang(de) .rf-desk {
    display: none;
  }

  :lang(de) .rf-desks {
    margin-left: auto;
    margin-right: 0;
  }
}

@media (max-width: 759px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  figcaption {
    font-size: 0.9rem;
  }
}

@media (max-width: 419px) {
  .rf-mark {
    font-size: 0.9375rem;
  }

  .rf-follow {
    padding: 0 12px;
    letter-spacing: 0.08em;
  }
}

/*
 * ironatlas.bind.games, part 2 of 3: the home page, direction A "Cover".
 * The arrival screen first, then the box opened: the seven prints in a strip, the board as a mounted
 * print with its key, the desks under one sharp capture, the world plate edge to edge, the file card
 * and the sitters, the roll of years, the ledger of what is in. Each section keeps its own layout.
 */

.page-home main > section,
.page-home main > figure {
  margin-top: clamp(104px, 12vw, 184px);
}

/* ---------- The cover: the arrival screen inside the game's brass frame ---------- */

.cover {
  margin: clamp(10px, 1.5vw, 22px);
  padding: 7px;
  border: 1.5px solid var(--brass);
}

.cover-frame {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  min-height: calc(100svh - var(--bar-h) - 2 * clamp(10px, 1.5vw, 22px) - 18px);
  padding: clamp(24px, 6svh, 80px) clamp(20px, 5.4vw, 96px);
  outline: 1px solid rgb(176 141 62 / 0.55);
}

.cover-title {
  font-size: clamp(3.75rem, min(2rem + 8.4vw, 14.5svh), 10.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.cover-title span {
  display: block;
}

.cover .brass-rule {
  margin: clamp(20px, 3svh, 34px) 0 18px;
}

.cover-line {
  margin-bottom: clamp(16px, 3svh, 26px);
  color: var(--faded);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  font-style: italic;
}

.cover-lede {
  hyphens: manual;
  max-width: 30ch;
  margin-bottom: clamp(18px, 3svh, 30px);
  color: var(--iron);
  font-size: clamp(1.06rem, 0.98rem + 0.3vw, 1.25rem);
}

.cover-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: clamp(16px, 3svh, 26px);
}

.cover-actions .plate-button,
.cover-actions .twin-button {
  min-width: 264px;
}

.cover-actions .plate-button {
  min-height: 58px;
}

.cover-facts {
  margin: 0;
  color: var(--faded);
  font-size: 0.95rem;
  font-style: italic;
}

.cover-art {
  justify-self: end;
  width: 100%;
  max-width: 768px;
  margin: 0 -1.5vw 0 0;
}

/* ---------- Seven powers: the New campaign prints in a strip you swipe ---------- */

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  max-width: 16ch;
  margin-bottom: 18px;
}

.section-head p {
  color: var(--faded);
  font-size: 1.12rem;
}

.powers-strip {
  display: grid;
  grid-auto-columns: min(460px, 78vw);
  grid-auto-flow: column;
  gap: clamp(20px, 3vw, 48px);
  margin: 0;
  padding: 0 max(var(--gutter), calc((100vw - 1320px) / 2)) 22px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1320px) / 2));
  scrollbar-color: var(--brass) transparent;
  scrollbar-width: thin;
}

.power {
  scroll-snap-align: start;
}

.power h3 {
  margin: 8px 0 6px;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.power p {
  max-width: 34ch;
  color: var(--faded);
  font-style: italic;
}

/* ---------- The board: a mounted print with its key beside it ---------- */

.board {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4.5vw, 80px);
  align-items: start;
}

.board-text h2 {
  margin-bottom: 22px;
}

.key {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.key li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

/* ---------- Five desks: one sharp capture, the desks named beneath it ---------- */

.desks h2 {
  margin-bottom: 36px;
}

.desk-ledger {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 48px 0 0;
  border-top: 2px solid var(--brass);
}

.desk-ledger div {
  padding: 18px 20px 0 0;
}

.desk-ledger div + div {
  padding-left: 20px;
  border-left: 1px solid var(--rule);
}

.desk-ledger dt {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.desk-ledger dt .ui-word {
  font-style: normal;
}

.desk-ledger dd {
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- The world plate, edge to edge ---------- */

.world {
  margin-inline: 0;
}

.world img {
  width: 100%;
}

.world figcaption {
  max-width: none;
}

.world figcaption .chit {
  font-size: 0.9em;
}

/* ---------- History: the ledger and a file card, then the cabinet's sitters ---------- */

.history {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 96px);
}

.history h2 {
  margin-bottom: 24px;
}

.lede {
  font-size: 1.2rem;
  color: var(--iron);
}

.ledger {
  font-size: 1.12rem;
  line-height: 1.95;
}

.file-card {
  align-self: start;
  padding: 28px 30px 24px;
  border-top: 3px double var(--brass);
  background: var(--cream);
  box-shadow: var(--lift);
  rotate: 0.8deg;
}

.file-kind {
  color: var(--faded);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.file-kind span {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.file-card h3 {
  font-size: 2.1rem;
  font-weight: 400;
}

.file-post {
  color: var(--faded);
  font-style: italic;
}

.file-card dl {
  margin: 18px 0;
  border-top: 1px solid var(--rule-strong);
}

.file-card dl div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}

.file-card dt {
  color: var(--faded);
}

.file-card dd {
  margin: 0;
}

.file-sources {
  font-size: 0.9rem;
}

.file-sources span {
  margin-right: 6px;
  color: var(--faded);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.file-caption {
  margin: 0;
  color: var(--faded);
  font-size: 0.92rem;
  font-style: italic;
}

.sitters {
  grid-column: 1 / -1;
  margin: 16px 0 0;
}

.sitters ul {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitters li {
  padding: 6px;
  background: var(--cream);
  box-shadow: var(--lift-small);
}

.sitters li:nth-child(odd) {
  rotate: -0.7deg;
}

.sitters li:nth-child(even) {
  rotate: 0.6deg;
  translate: 0 10px;
}

.sitters figcaption {
  margin-top: 28px;
}

/* ---------- Scenarios: the aims print beside a roll of years ---------- */

.scenarios h2 {
  max-width: 18ch;
  margin-bottom: 44px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}

.roll {
  margin: 0;
  padding: 0;
  list-style: none;
}

.roll li {
  display: grid;
  grid-template-columns: 4.4em minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--rule-strong);
}

/* The years not yet drawn print in outline; the playable one in solid ink. */
.roll .year {
  margin: 0;
  color: transparent;
  font-family: var(--count);
  font-size: 2.6rem;
  line-height: 0.95;
  -webkit-text-stroke: 1px var(--iron);
}

.roll .roll-live .year {
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.roll h3 {
  font-size: 1.3rem;
}

.tag {
  margin: 2px 0 6px;
  color: var(--faded);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.roll-live .tag {
  color: var(--teal);
}

.roll li p:last-child {
  margin: 0;
}

/* ---------- Where it stands ---------- */

.standing {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 96px);
}

.standing h2 {
  margin-bottom: 20px;
}

.standing .plate-button {
  margin-top: 12px;
}

.standing-ledger h3 {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brass);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.standing-ledger ul + h3 {
  margin-top: 28px;
}

.standing-ledger ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

.standing-ledger li {
  position: relative;
  padding: 6px 0 6px 22px;
  break-inside: avoid;
}

/* Shipped items carry a filled counter, the rest an empty one, as on the old status ledger. */
.standing-ledger li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--iron);
}

.standing-ledger .is-out li::before {
  border: 1px solid var(--iron);
  background: transparent;
}

/* ---------- Narrower windows ---------- */

@media (max-width: 1099px) {
  .desk-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
  }

  .desk-ledger div,
  .desk-ledger div + div {
    padding: 16px 20px 16px 0;
    border-left: 0;
    border-top: 1px solid var(--rule-strong);
  }
}

@media (max-width: 899px) {
  .cover-frame {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 36px 22px 30px;
  }

  .cover-text {
    display: contents;
  }

  .cover-title {
    order: 1;
  }

  .cover .brass-rule {
    order: 2;
    margin: 22px 0 14px;
  }

  .cover-line {
    order: 3;
    margin-bottom: 10px;
  }

  .cover-art {
    order: 4;
    justify-self: center;
    margin: 0 -10px 12px;
    width: auto;
  }

  .cover-lede {
    order: 5;
  }

  .cover-actions {
    order: 6;
    justify-items: stretch;
  }

  .cover-actions .plate-button,
  .cover-actions .twin-button {
    min-width: 0;
  }

  .cover-facts {
    order: 7;
  }

  .board,
  .history,
  .scenario-grid,
  .standing {
    grid-template-columns: minmax(0, 1fr);
  }

  .print--tilt-left,
  .print--tilt-right,
  .file-card {
    rotate: none;
  }

  .sitters ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .standing-ledger ul {
    columns: 1;
  }
}

@media (max-width: 599px) {
  .desk-ledger {
    grid-template-columns: minmax(0, 1fr);
  }

  .power h3 {
    font-size: 1.7rem;
  }

  .file-card {
    padding: 22px 20px 18px;
  }

  .file-card dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/*
 * ironatlas.bind.games, part 3 of 3: support, the privacy policy, the Impressum and the 404.
 * Each opens as a sheet of the game does: the title, the brass rule, the italic line, and one of the
 * game's engraved plates beside it. Below, working documents: a neatline, one slip on the table.
 */

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
  padding-top: clamp(40px, 8vh, 96px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.page-title {
  font-size: clamp(3.25rem, 1.6rem + 5.4vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.page-head .brass-rule {
  margin: clamp(20px, 2.4vw, 30px) 0 16px;
}

.page-line {
  margin: 0;
  color: var(--faded);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.45rem);
  font-style: italic;
  line-height: 1.35;
}

.page-art {
  justify-self: end;
  width: 100%;
  max-width: 440px;
  margin: 0;
  rotate: 0.6deg;
}

.support-layout,
.legal-layout {
  position: relative;
  padding-top: clamp(36px, 4.5vw, 56px);
  padding-bottom: clamp(80px, 10vw, 136px);
}

/* The neatline runs across the content, not into the gutters. */
.support-layout::before,
.legal-layout::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: var(--gutter);
  height: 6px;
  border-top: 2px solid var(--brass);
  border-bottom: 1px solid var(--brass);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 3fr) minmax(0, 9fr);
  gap: clamp(32px, 5vw, 80px);
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-top: 8px;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--iron);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color var(--t-hover) var(--ease-out);
}

.toc a:hover {
  color: var(--ink);
}

.support-body {
  max-width: 46rem;
  padding-top: 8px;
}

/* The contact slip: the one card on the page, on top of a second sheet. */
.contact-slip {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 2px;
  background: var(--cream) var(--paper-tile);
  background-size: 512px 512px;
  rotate: -0.4deg;
  box-shadow:
    0 0 0 1px rgb(var(--shade) / 0.14),
    inset 0 2px 0 var(--brass),
    6px 7px 0 -1px var(--cream),
    6px 7px 0 0 rgb(var(--shade) / 0.18),
    0 28px 44px -26px rgb(var(--shade) / 0.5);
}

.contact-slip h2 {
  color: var(--faded);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-shadow: none;
  text-transform: uppercase;
}

.contact-address {
  margin: 12px 0 14px;
}

.contact-link {
  font-size: clamp(1.625rem, 1.15rem + 2vw, 2.75rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-shadow: var(--pressed);
}

.contact-slip p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: clamp(64px, 8vw, 96px) 0 20px;
  font-size: clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);
}

.prose h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.prose ul,
.prose ol {
  max-width: var(--measure);
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 6px;
}

.qa {
  padding-block: 24px 8px;
  border-top: 1px solid var(--rule);
}

.legal {
  max-width: 46rem;
}

.legal address {
  font-style: normal;
}

.legal h2:first-of-type {
  margin-top: 48px;
}

.legal h3 {
  margin-top: 28px;
}

.legal-facts {
  margin: 0;
}

.legal-facts div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.legal-facts dt {
  color: var(--faded);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
  line-height: 2.2;
  text-transform: uppercase;
}

.legal-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-note {
  margin-top: 48px;
  color: var(--faded);
  font-size: 0.9375rem;
}

.draft-banner {
  max-width: 46rem;
  margin-bottom: 32px;
  padding: 14px 18px;
  border: 1px solid var(--brick);
  border-top-width: 3px;
  background: var(--cream);
}

.draft-banner p {
  margin: 0;
}

.draft-banner strong,
.todo strong,
.todo-block strong {
  color: var(--brick);
  font-weight: 600;
}

.todo,
.todo-block {
  padding: 10px 14px;
  border: 1px dashed var(--brick);
  background: rgb(168 65 47 / 0.06);
}

.todo-block {
  margin-top: 56px;
}

.todo-block p {
  margin-bottom: 8px;
}

.todo-block ol {
  margin-bottom: 0;
}

/* ---------- 404: off the map ---------- */

.not-found {
  min-height: 70vh;
  padding-bottom: clamp(56px, 8vw, 104px);
}

/* The convoy is an ink engraving: it prints into the paper, with no mount. */
.not-found .page-art {
  max-width: 520px;
  rotate: none;
}

.not-found .lede {
  margin-top: 1.4em;
}

.not-found .plate-button {
  margin-top: 8px;
}

/* The German and Turkish lines on the one 404 page Vercel serves. */
.elsewhere {
  max-width: 44rem;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--brass);
  list-style: none;
}

.elsewhere li {
  margin: 0 0 10px;
}

.elsewhere-lang {
  display: inline-block;
  min-width: 6rem;
  color: var(--faded);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Narrower sheets ---------- */

@media (max-width: 899px) {
  .page-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-art {
    justify-self: start;
    max-width: 360px;
    rotate: none;
  }
}

@media (max-width: 759px) {
  .support-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
  }

  .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .legal-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
