/* Locally hosted Latin webfonts. Each family's OFL is in fonts/. */
@font-face {
  font-family: 'Archivo Black'; src: url('fonts/archivoblack-400.woff2') format('woff2');
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed'; src: url('fonts/barlowcondensed-700.woff2') format('woff2');
  font-style: normal; font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'PT Sans'; src: url('fonts/ptsans-400.woff2') format('woff2');
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'PT Sans'; src: url('fonts/ptsans-700.woff2') format('woff2');
  font-style: normal; font-weight: 700; font-display: swap;
}
:root {
  --press-ink: #201e19;
  --press-paper: #f3e8cd;
  --press-red: #aa2b1c;
  --press-fire: #cf3d25;
  --press-yellow: #edba68;
  --poster-face: 'Archivo Black', 'Arial Black', sans-serif;
  --condensed: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --scene: #26241f; --ink: #24221c; --accent: var(--press-red); --gold: var(--press-yellow);
}
body {background:var(--scene)}
.ndg-nav {
  background:#211f1b; border-bottom:3px solid var(--press-fire);
  padding:9px max(22px,calc((100vw - 1350px)/2)); font:700 17px/1.35 var(--condensed);
}
.ndg-nav a {color:#f3e8cd}
.ndg-nav .sound-switch, .cinema-controls .sound-switch, .plan-report .sound-switch {
  border:1px solid #baae93; border-radius:2px; padding:6px 10px; min-height:40px;
  background:var(--press-ink); color:var(--press-paper); font:700 16px/1.2 var(--condensed); cursor:pointer;
}
.sound-switch[aria-pressed="false"] {border-style:dashed}
.sound-switch:focus-visible {outline:3px solid var(--press-yellow); outline-offset:2px}
.cinema-controls {flex-wrap:wrap}
.report-open .ndg-nav .sound-switch {display:none}
.report-sound {display:flex; align-items:center; justify-content:space-between; gap:.75rem}
.plan-report .report-sound .sound-switch {margin:0; flex-shrink:0}
.landing, .cinema, .ndg-hall {--print-rule:3px solid var(--press-ink)}
.landing-hero {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.97fr); gap:clamp(10px,3vw,60px);
  align-items:center; isolation:isolate; padding:clamp(42px,5vw,78px) max(5vw,calc((100vw - 1290px)/2));
  min-height:clamp(560px,77svh,735px); background:var(--press-paper); color:var(--press-ink);
  border-bottom:8px solid var(--press-ink);
}
.landing-hero::before {
  content:''; position:absolute; inset:0; z-index:-1; background:var(--press-fire);
  clip-path:polygon(65% 0,100% 0,100% 100%,41% 100%);
}
.landing-language {top:15px; right:max(20px,calc((100vw - 1370px)/2)); z-index:4}
.landing-language .lang {background:var(--press-ink); border:1px solid var(--press-paper)}
.landing-language .lang button {color:var(--press-paper)}
.landing-language .lang .on {background:var(--press-paper); color:var(--press-ink)}
.landing-copy {width:100%; max-width:660px; padding:6px 0}
.landing-copy .eyebrow, .cinema-year, .game-heading .eyebrow {
  font:700 clamp(15px,1.45vw,20px)/1.12 var(--condensed); letter-spacing:.09em;
}
.landing-copy .eyebrow {color:var(--press-red); margin:0 0 18px; display:flex; align-items:center; gap:10px}
.landing-copy .eyebrow::before {content:''; width:31px; border-top:5px solid currentColor}
.landing .landing-copy h1 {
  color:var(--press-ink); font:400 clamp(50px,6.9vw,103px)/.93 var(--poster-face);
  letter-spacing:-.065em; text-transform:uppercase; margin:0 0 22px;
}
.landing-copy h1 small {display:block; font:700 .44em/.98 var(--condensed); letter-spacing:-.015em; margin:0 0 2px}
.landing-copy h1 span {display:block}
.landing-copy h1 span:last-child {color:var(--press-red)}
.landing .lead {font:700 clamp(23px,2.45vw,36px)/1.06 var(--condensed); color:var(--press-ink); max-width:23ch; margin:17px 0 14px}
.landing-copy>p:not(.eyebrow):not(.lead) {max-width:49ch; font-size:17px; line-height:1.46}
.landing-copy .landing-actions {display:flex; gap:10px; margin:23px 0 11px}
.landing-actions button, .archive-gallery-head button, .cinema button, .plan-report button {
  font:700 18px/1.2 var(--condensed); border-radius:0; letter-spacing:.014em;
}
.landing-actions button {padding:12px 17px; border:2px solid var(--press-ink)}
.landing-actions .primary {background:var(--press-ink)!important; border-color:var(--press-ink)!important; box-shadow:3px 3px 0 var(--press-fire)}
.landing-actions .primary:hover {background:#4a3528!important}
.landing-actions .secondary {background:var(--press-paper); color:var(--press-ink)}
.landing-copy>p.small-print:not(.lead) {color:#4c4437; font-size:13px; max-width:57ch; margin:11px 0 0}
.poster-montage {position:relative; min-width:0; width:100%; padding:12px 5% 28px 2%; align-self:center}
.poster-montage figure {margin:0}
.montage-main {
  background:var(--press-ink); color:var(--press-paper); border:5px solid var(--press-ink);
  transform:rotate(-3deg); box-shadow:8px 9px 0 #6a2419;
}
.montage-main .archive-zoom {width:100%; height:clamp(245px,31vw,450px); background:var(--press-ink)}
.montage-main .archive-zoom img {object-position:32% 55%!important}
.montage-main figcaption {min-height:40px; padding:7px 30% 4px 7px; font-size:13px; line-height:1.25}
.montage-main figcaption a {color:var(--press-paper); text-decoration:none}
.montage-inset {
  position:absolute; width:27%; max-width:153px; bottom:0; right:0; padding:4px;
  background:var(--press-paper); border:1px solid #706148; transform:rotate(6deg); box-shadow:3px 4px 0 #35261d99;
}
.montage-inset .archive-zoom {height:auto; aspect-ratio:547/783; min-height:0}
.montage-inset .archive-zoom img {object-fit:contain}
.montage-inset figcaption {position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%)}
.montage-inset:focus-within, .montage-main:focus-within {z-index:2}
.montage-inset:focus-within figcaption {position:static; width:auto; height:auto; clip-path:none; font-size:12px; line-height:1.25}
.montage-inset figcaption a {color:var(--press-ink)}
.landing .landing-brief {margin:35px auto 50px; gap:clamp(20px,5vw,90px); color:var(--press-paper); align-items:center}
.landing-brief .eyebrow {color:var(--press-yellow); font-family:var(--condensed); font-size:17px}
.landing h2, .ending h1, .ndg-hall h2 {
  font:400 clamp(30px,3.3vw,48px)/1.03 var(--poster-face); letter-spacing:-.045em;
}
.landing-brief h2 {max-width:13ch}
.landing-brief p:last-child {margin-bottom:0}
.archive-gallery-head {padding:16px 0; border-top:5px solid var(--press-fire); border-bottom:1px solid #b59b77}
.archive-gallery-head h2 {color:var(--press-paper); font-size:clamp(27px,3.1vw,41px)}
.archive-gallery-head .secondary,.cinema-top button,.cinema-controls button {background:var(--press-ink); color:var(--press-paper); border:1px solid #baae93}
.archive-print {background:var(--press-paper); border:none; border-radius:0; color:var(--press-ink)}
.archive-print figcaption {padding:10px 13px 12px; font-size:15px; line-height:1.3; border-top:3px solid var(--press-fire)}
.archive-print figcaption a {color:var(--press-ink)}
.archive-print[data-document=poster] .archive-zoom {background:#302d26}
.archive-print[data-document=poster] img {object-fit:contain}
.archive-credits {border-color:#746c58}.archive-credits summary,.archive-credits a {color:#e7c38b}
.author-credit,.archive-credits {color:#dad3c3}
.ndg-hall {background:#302e27; color:var(--press-paper); border-top:6px solid var(--press-fire)}
.ndg-hall details,.ndg-hall .ndg-comment {background:#211f1a}

/* Project the complete frame, with the caption and narration outside the image. */
.cinema {
  min-height:100svh; padding:clamp(13px,2.2vw,30px) max(5vw,calc((100vw - 1400px)/2));
  display:flex; gap:clamp(12px,2.3vh,30px); background:var(--press-ink); color:var(--press-paper);
}
.cinema::before {
  content:''; position:absolute; z-index:-1; inset:0; background:#7f291d;
  clip-path:polygon(0 8%,48% 0,25% 100%,0 88%);
}
.cinema-top {font:700 19px/1.15 var(--condensed); text-transform:uppercase; color:var(--press-paper)}
.cinema .cinema-skip {font-size:16px; min-height:42px; padding:7px 12px; white-space:normal}
.film-frame {display:grid; grid-template-columns:minmax(0,1.22fr) minmax(0,1fr); gap:clamp(24px,4vw,72px); align-items:center; width:100%; margin:auto 0}
.film-document {margin:0; min-width:0; border:1px solid #68604f; background:#131311}
.film-document .cinema-photo {
  position:static; z-index:auto; display:block; width:100%; height:clamp(205px,51svh,600px);
  object-fit:contain; object-position:center!important; filter:none; animation:none;
}
.film-document figcaption {color:#efe4ca; padding:10px 14px; line-height:1.35; font-size:14px; background:#24221c; border-top:1px solid #5d5649}
.film-document figcaption span {display:block; font-size:12px; color:#c2b9a4; margin-top:3px}
.film-document figcaption a {color:inherit; text-decoration:underline; text-decoration-color:#91836c; text-underline-offset:2px}
.cinema-copy {padding:7px 0; max-width:53ch; min-width:0}
.cinema-copy .cinema-year {
  display:inline-block; padding:5px 9px; margin:0 0 18px; background:var(--press-red); color:white; font-size:clamp(16px,1.55vw,23px);
}
.cinema-copy h1 {
  color:var(--press-paper); font:400 clamp(34px,4.6vw,74px)/1.03 var(--poster-face);
  letter-spacing:-.055em; margin:0 0 20px; overflow-wrap:break-word; text-wrap:balance;
}
.cinema-copy p.narration {font:400 clamp(18px,1.65vw,24px)/1.48 'PT Sans',Arial,sans-serif; margin:0; max-width:43ch}
.cinema-controls {gap:10px}
.cinema-bottom .scene-progress {gap:5px; margin-top:12px}
.scene-progress span {height:4px; background:#635d50}.scene-progress .seen {background:#ee754d}
.film-source {display:inline-block; color:#e8c794; font-size:15px; margin-top:16px; text-underline-offset:3px}
.witness-scene::before {display:none}
.witness-scene .cinema-year {background:transparent; border-left:3px solid #d5c7af; color:#d5c7af; padding:2px 9px}
.witness-scene .cinema-copy {animation:none}
@media(prefers-reduced-motion:no-preference) {
  .cinema:not(.witness-scene) .film-document {animation:film-cut .65s ease-out both}
  @keyframes film-cut {from {opacity:.3; transform:translateX(-8px)} to {opacity:1; transform:none}}
}

/* Office of the plan. Keep the resource colours and the guide's highlighted cells. */
.game-heading {border-left:8px solid var(--press-fire); padding:4px 0 4px clamp(11px,1.2vw,22px)}
.game-heading h1 {font:400 clamp(22px,2.45vw,38px)/1.1 var(--poster-face); color:var(--press-paper); letter-spacing:-.045em}
.game-heading .eyebrow {color:var(--press-yellow); font-size:15px}
.game-header-actions button, .guide-actions button, .plan-timeline {font-family:var(--condensed); font-weight:700}
.plan-timeline {text-transform:uppercase; letter-spacing:.045em; font-size:16px; border-color:#786c55}
.plan-timeline .current {border-color:#ee754d; color:#f0c987}
.io-board {--sheet:#f3ecdc; --rule:#c6bba2; --pen:#25231d; border-top:6px solid var(--press-fire); border-radius:0}
.io-heading h2,.sector-dossiers-title,.inv-heading h3,.decision-content h2,.guide h2,.plan-report h2,.ndg-result h2 {
  font-family:var(--condensed); font-weight:700; letter-spacing:-.012em; line-height:1.06;
}
.io-heading h2,.inv-heading h3,.sector-dossiers-title {text-transform:uppercase}
.io-date {font:700 15px/1 var(--condensed); color:var(--press-red)}
.io-table thead th {background:#34312a}
.io-table thead .io-active-axis {background:#564232}
.io-table tfoot th,.io-table tfoot td {background:#403a31}
.io-table .io-import-head {background:#294854}
.game-shell .io-guide {background:#f2ddab; border-left:5px solid #9c481d}
.game-shell .io-guide-number {font:700 17px/1.1 var(--condensed); color:#62371d}
.game-shell .io-editor,.decision-panel,.resource-strip,.guide,.plan-report,.ndg-result {border-radius:0}
.guide {background:#38332b; border-top-color:#e2ab55}
.goals>div {background:#322f29}
.game-shell .io-guide-buttons button:last-child {background:#443526; border-color:#443526}
.historical-inset {margin:18px 0; padding:13px 15px 14px; border-left:4px solid #78694e; background:#ede7d8}
.historical-inset h3 {margin:0; font:700 21px/1.15 var(--condensed); color:#433728}
.historical-inset p {margin:5px 0; font-size:15px; line-height:1.45}
.game-shell .grain-document {border-top:2px solid #9b8465}
.grain-document a {display:inline-block; color:#6d3b26; margin:8px 0; font-size:14px}
.grain-document .archive-button {display:block; background:#f0eadb; border:1px solid #88775f; color:#352d21; padding:7px 12px}
.historical-inset .archive-button {color:#382c1d; background:transparent; border:1px solid #827058; min-height:38px; margin:4px 0 0; padding:6px 12px}
#photo-dialog {background:#282620; border:2px solid #ac9573; color:var(--press-paper)}
#photo-dialog .photo-full {background:#141410; filter:none}
#photo-dialog button {background:#38352b; color:var(--press-paper); border-radius:0}
.ending h1 {color:var(--press-paper)}
.ending .endt {border-top:7px solid var(--press-fire); padding-top:16px}

@media(max-width:800px) {
  .landing-hero {grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); gap:18px; padding:54px 23px 40px; min-height:0}
  .landing .landing-copy h1 {font-size:clamp(42px,7vw,62px)}
  .landing-copy>p:not(.eyebrow):not(.lead) {font-size:16px}
  .landing-copy>p.small-print:not(.lead) {font-size:13px}
  .poster-montage {padding:8px 6% 24px 0}
  .montage-main .archive-zoom {height:clamp(190px,28vw,260px)}
  .film-frame {gap:22px}
  .cinema {padding:16px 22px; gap:13px}
  .cinema-copy h1 {font-size:clamp(32px,5vw,46px)}
}
@media(max-width:600px) {
  .ndg-nav {gap:9px 14px; padding:9px 13px; font-size:15px}
  .ndg-nav a:first-child {width:auto}
  .landing-hero {grid-template-columns:1fr; gap:14px; padding:48px 19px 24px}
  .landing-hero::before {display:none}
  .landing-language {top:8px; right:14px}
  .landing-copy .eyebrow {font-size:15px; margin-bottom:11px}
  .landing .landing-copy h1 {font-size:clamp(45px,11.4vw,67px); margin-bottom:12px}
  .landing-copy h1 small {display:inline; margin-right:.15em; vertical-align:top; line-height:1.2}
  .landing-copy h1 small+span {display:inline}
  .landing .lead {margin:11px 0; font-size:25px; max-width:27ch}
  .landing-copy>p {margin:9px 0}
  .landing-copy .landing-actions {gap:8px; margin:16px 0 10px}
  .landing-actions button {font-size:16px; padding:10px 12px}
  .poster-montage {width:min(100%,450px); padding:7px 11% 10px 1%; justify-self:center; isolation:isolate}
  .poster-montage::before {
    content:''; position:absolute; z-index:-1; inset:-12px -35vw -27px; background:var(--press-fire);
    clip-path:polygon(100% 0,100% 100%,0 100%,0 88%);
  }
  .montage-main .archive-zoom {height:clamp(140px,42vw,205px)}
  .montage-main figcaption {padding:5px 14% 3px 5px; min-height:0; font-size:11px}
  .montage-inset {right:2%; bottom:1%; width:20%; padding:3px}
  .landing .landing-brief {gap:12px; margin:14px auto 28px; padding:15px 19px}
  .landing-brief .eyebrow {margin-bottom:8px}
  .landing-brief h2 {max-width:18ch}
  .archive-gallery-head button {font-size:16px; min-height:39px}
  .archive-print figcaption {font-size:13px; padding:7px 8px 9px}
  .cinema {padding:11px 14px 15px; gap:12px; justify-content:flex-start}
  .cinema-top {font-size:16px; gap:8px}
  .cinema .cinema-skip {font-size:14px; min-height:36px}
  .film-frame {grid-template-columns:1fr; gap:13px; margin:auto 0}
  .film-document .cinema-photo {height:clamp(132px,28svh,245px)}
  .film-document figcaption {padding:6px 9px; font-size:12px}
  .film-document figcaption span {font-size:11px; margin-top:2px}
  .cinema-copy {padding:0}
  .cinema-copy .cinema-year {font-size:15px; margin-bottom:9px}
  .cinema-copy h1 {font-size:clamp(30px,8vw,44px); margin:0 0 9px}
  .cinema-copy p.narration {font-size:17px; line-height:1.36}
  .film-source {font-size:14px; margin-top:8px}
  .cinema-controls {justify-content:flex-start; gap:6px}
  .cinema-controls button {min-height:40px; padding:6px 10px; font-size:15px}
  .cinema-bottom .scene-progress {margin-top:9px}
  .game-heading {border-left-width:5px; padding-left:9px; align-items:center}
  .game-heading .eyebrow {font-size:13px}
  .plan-timeline {font-size:14px}
}
