/* Dead Next Door: the site in the game's own board look.
   The boards, paper tag, tape, sticky paper and town map are the game's UI art
   (assets/img/ui); the photos are frames from the game (assets/img/shots). */

@font-face { font-family: "Anton"; src: url("../assets/fonts/Anton-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("../assets/fonts/Kalam-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("../assets/fonts/Kalam-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #0e1119;
  --night-2: #141823;
  --char: #1c1814;
  --char-2: #241f19;
  --orange: #f36e06;      /* MenuStyle accent */
  --orange-deep: #7a3204; /* the mastheads' shadow copy */
  --cream: #f1e6cf;
  --cream-dim: #c9bda5;
  --tan: #a98559;         /* the boards' worn rim */
  --ink: #2a1f15;         /* MenuStyle.OnPaper */
  --red: #b3231a;         /* marker red */
  --hood: #6fae5c;        /* the end screen's side colours */
  --committee: #c9332a;
  --unhinged: #a46fd0;
  --pad-yellow: #f2dc78;
  --pad-pink: #f1b2bd;
  --pad-blue: #b4d3e6;
  --pad-green: #c3dda6;
  --wrap: 1180px;
  /* one side margin for every section: 20px on a small phone, 64px on a wide screen */
  --gutter: clamp(20px, 5vw, 64px);
  --sans: "Barlow", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --heavy: "Anton", Impact, "Arial Narrow", sans-serif;
  --hand: "Kalam", "Segoe Print", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
main, .foot { overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 500 1.0625rem/1.6 var(--sans);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--cream); color: var(--ink); font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

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

/* ---------- type ---------- */
.kicker {
  font: 500 0.8125rem/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.head {
  font: 400 clamp(2.2rem, 5.6vw, 4.6rem)/0.98 var(--heavy);
  font-style: oblique 9deg;
  font-synthesis: style;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: 0.055em 0.055em 0 var(--orange-deep);
  letter-spacing: 0.005em;
  margin-bottom: 28px;
  text-wrap: balance;
}

/* ---------- the game's boards as buttons ---------- */
.btn-paint, .btn-wood, .chip {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; white-space: nowrap;
  transition: transform .14s ease, filter .14s ease;
}
.btn-paint {
  min-height: 66px; padding: 0 30px;
  border-style: solid; border-width: 0 36px;
  border-image: url("../assets/img/ui/board-paint-631.png") 0 66 0 66 fill / 0 36px stretch;
  font: 400 1.75rem/1 var(--heavy); font-style: oblique 9deg; font-synthesis: style;
  text-transform: uppercase; color: #2b1404;
  transform: rotate(-0.8deg);
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.45));
}
.btn-wood {
  min-height: 56px; padding: 0 10px;
  border-style: solid; border-width: 0 18px 0 14px;
  border-image: url("../assets/img/ui/board-wood-634.png") 0 34 0 26 fill / 0 18px 0 14px stretch;
  font: 500 1.0625rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream);
  filter: drop-shadow(0 5px 5px rgba(0,0,0,.4));
}
.chip {
  min-height: 38px; padding: 0 8px;
  border-style: solid; border-width: 0 10px 0 8px;
  border-image: url("../assets/img/ui/board-chip-248.png") 0 16 0 12 fill / 0 10px 0 8px stretch;
  font: 500 .8125rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cream);
}
.btn-paint:hover, .btn-wood:hover, .chip:hover { transform: translateY(-2px) rotate(-0.8deg); filter: drop-shadow(0 9px 8px rgba(0,0,0,.5)) brightness(1.06); }
.btn-wood:hover, .chip:hover { transform: translateY(-2px); }
.btn-paint:active, .btn-wood:active, .chip:active { transform: translateY(1px); }

/* ---------- top bar ---------- */
.top {
  position: absolute; z-index: 10; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 28px;
  padding: 18px max(var(--gutter), calc((100% - var(--wrap)) / 2));
}
.top__home { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.top__emblem { width: 44px; height: 44px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.top__name { font: 400 1.25rem/1 var(--heavy); text-transform: uppercase; letter-spacing: .03em; color: var(--cream); text-shadow: 0 2px 4px rgba(0,0,0,.6); }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { font: 500 .8125rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--cream); text-shadow: 0 1px 3px rgba(0,0,0,.8); padding: 6px 0; border-bottom: 2px solid transparent; }
.top__nav a:hover { border-bottom-color: var(--orange); }

/* ---------- hero: dusk on the square, everything centred over it ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 100vh, 980px);
  min-height: clamp(620px, 100svh, 980px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(96px, 13vh, 140px) var(--gutter) clamp(88px, 12vh, 132px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__shot { position: absolute; inset: 0; z-index: -1; background: #2a2622; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero__shot::after { /* a pool of shade behind the words; the officer and the body stay lit */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 33% 47% at 50% 46%, rgba(9,11,17,.74) 0, rgba(9,11,17,.52) 50%, rgba(9,11,17,0) 100%),
    radial-gradient(ellipse 120% 95% at 50% 50%, rgba(9,11,17,0) 55%, rgba(9,11,17,.55) 100%),
    linear-gradient(to bottom, rgba(14,17,25,.62) 0, rgba(14,17,25,.14) 15%, rgba(14,17,25,0) 30%, rgba(14,17,25,0) 86%, var(--night) 100%);
}
.hero__body { width: min(960px, 100%); display: flex; flex-direction: column; align-items: center; margin-top: -2vh; }
.hero__logo { width: clamp(420px, 44vw, 780px); max-width: 90vw; }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)); }
.hero__tag {
  display: inline-block; margin-top: 4px;
  padding: 8px 18px 10px;
  border-style: solid; border-width: 0 40px;
  border-image: url("../assets/img/ui/tag-paper-341.png") 0 48 0 48 fill / 0 40px stretch;
  transform: rotate(-1.6deg);
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.45));
  white-space: nowrap;
}
.hero__tag span { font: 700 clamp(1.2rem, 1.75vw, 1.95rem)/1.2 var(--hand); color: var(--ink); }
.hero__tag-short { display: none; }
.hero__lede { max-width: 33em; margin: clamp(20px, 3vh, 30px) 0 clamp(26px, 4vh, 38px); font-size: clamp(1.1875rem, 1.3vw, 1.5rem); line-height: 1.5; text-shadow: 0 1px 10px rgba(0,0,0,.9), 0 1px 2px rgba(0,0,0,.9); text-wrap: balance; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; }
@media (min-width: 601px) { /* the hero's pair, one height, sized up with the logo */
  .hero__ctas .btn-paint { min-height: clamp(66px, 5.6vw, 84px); padding: 0 clamp(30px, 2.6vw, 44px); font-size: clamp(1.75rem, 2.1vw, 2.4rem); }
  .hero__ctas .btn-wood { min-height: clamp(58px, 4.6vw, 70px); padding: 0 clamp(14px, 1.4vw, 24px); font-size: clamp(1.0625rem, 1.05vw, 1.25rem); }
}
.hero__note { margin-top: 18px; font-size: .9375rem; color: var(--cream-dim); text-shadow: 0 1px 4px rgba(0,0,0,.9); min-height: 1.6em; }
.hero__note.is-said { color: var(--cream); }
.hero__credit {
  position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); bottom: 22px;
  font: 400 1rem/1.3 var(--hand); color: var(--cream-dim); text-align: left; max-width: 22em;
  transform: rotate(-1deg); opacity: .85; text-shadow: 0 1px 4px rgba(0,0,0,.9);
}
.foot .hero__ctas { justify-content: flex-start; }

/* ---------- paper and tape ---------- */
.photo { position: relative; background: #ece4d2; padding: 9px 9px 11px; box-shadow: 0 14px 26px rgba(0,0,0,.5), 0 2px 3px rgba(0,0,0,.35); }
.photo img { width: 100%; }
/* tape is sized from what it holds, so a small photo gets a small strip */
.photo::before, .photo::after, .polaroid::before, .note::before, .mapslip::before, .card::before {
  content: ""; position: absolute; z-index: 2; width: clamp(54px, 20%, 110px); height: auto; aspect-ratio: 5 / 2;
  background: url("../assets/img/ui/tape-200.png") center / 100% 100% no-repeat;
  pointer-events: none;
}
.photo::before { top: -14px; left: 4%; transform: rotate(-24deg); }
.photo::after { top: -12px; right: 3%; transform: rotate(21deg) scaleX(-1); }

.note {
  position: relative;
  padding: 26px 22px 22px;
  background-color: var(--pad-yellow);
  background-image: url("../assets/img/ui/sticky.webp");
  background-size: 256px 256px;
  background-blend-mode: multiply;
  color: var(--ink);
  font: 400 1.125rem/1.38 var(--hand);
  box-shadow: 2px 12px 18px -6px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.3);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9% 100%, 0 93%);
}
/* the note's tape sits above its first line, never on it (clip-path would cut it, so it hangs from the photo side) */
.note::before { display: none; }
.note h3 { font: 700 1.5rem/1.1 var(--hand); margin-bottom: 6px; }
.note--yellow { background-color: var(--pad-yellow); }
.note--pink { background-color: var(--pad-pink); }
.note--blue { background-color: var(--pad-blue); }
.note--green { background-color: var(--pad-green); }

/* no two pieces of tape land the same way */
.day__item--b .photo::before { left: 34%; top: -14px; transform: rotate(-6deg); }
.day__item--b .photo::after { display: none; }
.day__item--c .photo::before { left: 2%; transform: rotate(-38deg); }
.day__item--c .photo::after { top: -12px; right: 6%; transform: rotate(14deg); }
.day__item--d .photo::after { right: 40%; top: -16px; transform: rotate(4deg); }
.day__item--d .photo::before { display: none; }
.ev--limb .photo::after { display: none; }
.ev--limb .photo::before { left: 40%; top: -16px; transform: rotate(3deg); }
.ev--saw .photo::before { left: 6%; transform: rotate(-16deg); }
.ev--saw .photo::after { display: none; }
.ev--voice .photo::after { right: 8%; transform: rotate(9deg); }
.between__casino .photo::before { left: 40%; top: -14px; transform: rotate(-3deg); }
.between__casino .photo::after { display: none; }
.role:nth-child(2) .polaroid::before { left: 12%; transform: rotate(-12deg); }
.role:nth-child(4) .polaroid::before { left: auto; right: 8%; transform: rotate(10deg); }
.role:nth-child(5) .polaroid::before { transform: rotate(5deg); }

/* ---------- how it plays ---------- */
.street { padding: 40px 0 120px; }
.street__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 60px; align-items: center; }
.street__text p { max-width: 34em; margin-bottom: 16px; }
.street__aside { font: 400 1.125rem/1.4 var(--hand); color: var(--cream-dim); margin-top: 22px; }
.mapslip {
  position: relative; justify-self: center;
  width: min(460px, 100%);
  padding: 14px 14px 64px;
  background: #efe7d6 url("../assets/img/ui/sticky.webp") 0 0 / 256px;
  background-blend-mode: multiply;
  box-shadow: 0 22px 34px rgba(0,0,0,.55), 0 2px 4px rgba(0,0,0,.4);
  transform: rotate(2.4deg);
}
.mapslip::before { top: -18px; left: calc(50% - 13%); width: clamp(70px, 26%, 120px); transform: rotate(-2deg); }
.mapslip__img { width: 100%; }
.mapslip__ring { position: absolute; left: 14px; top: 14px; width: calc(100% - 28px); aspect-ratio: 1; overflow: visible; }
.mapslip__ring path { fill: none; stroke: var(--red); stroke-width: 1.15; stroke-linecap: round; opacity: .92; }
.mapslip__note { position: absolute; left: 22px; right: 22px; bottom: 12px; font: 700 1.3rem/1.15 var(--hand); color: var(--ink); transform: rotate(-1.5deg); }

/* ---------- a day ---------- */
.day { padding: 110px 0 120px; background: var(--char); border-block: 1px solid #2c261f; }
.day__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 150px 30px; margin-top: 50px; padding-bottom: 150px; }
.day__item { position: relative; }
.day__item .note { position: absolute; z-index: 3; width: min(300px, 70%); }
.day__item--a { grid-column: 1 / span 7; transform: rotate(-1.2deg); }
.day__item--a .note { right: 24px; bottom: -112px; transform: rotate(2deg); }
.day__item--b { grid-column: 9 / span 4; margin-top: 70px; transform: rotate(1.8deg); }
.day__item--b .note { left: -20px; bottom: -118px; transform: rotate(-3deg); width: min(260px, 85%); }
.day__item--c { grid-column: 2 / span 5; transform: rotate(1deg); }
.day__item--c .note { left: -20px; bottom: -150px; transform: rotate(-2deg); width: min(300px, 78%); }
.day__item--d { grid-column: 8 / span 5; margin-top: 70px; transform: rotate(-1.6deg); }
.day__item--d .note { right: -12px; bottom: -104px; transform: rotate(1.5deg); width: min(270px, 66%); }

/* ---------- the sides: case files on the game's reveal paper ---------- */
.sides { padding: 120px 0 110px; }
.file { margin-top: 56px; }
.files-pair { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 56px; }
.file__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px;
  padding-bottom: 14px; margin-bottom: 34px;
  border-bottom: 3px solid currentColor;
}
.file--hood { color: var(--hood); }
.file--committee { color: var(--committee); }
.file--unhinged { color: var(--unhinged); }
.file__head h3 { font: 400 clamp(1.8rem, 3.6vw, 2.9rem)/1 var(--heavy); font-style: oblique 9deg; font-synthesis: style; text-transform: uppercase; text-shadow: 0.05em 0.05em 0 rgba(0,0,0,.6); }
.file__head p { font: 400 1.25rem/1.2 var(--hand); color: var(--cream-dim); }
/* rows are centred, so a short last row sits in the middle instead of hanging off the left;
   --cols sets how many fit, every card is the same width in every file */
.roles { --cols: 5; --rg: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 48px var(--rg); color: var(--cream); }
.role { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--rg)) / var(--cols)); max-width: 224px; min-width: 0; }
.file--committee .roles { --cols: 3; }
.file--unhinged .roles { --cols: 2; }
.role > p { font-size: .9688rem; line-height: 1.5; margin-top: 18px; color: var(--cream-dim); }
.role:nth-child(odd) .polaroid { transform: rotate(-2.2deg); }
.role:nth-child(even) .polaroid { transform: rotate(1.7deg); }
.role:nth-child(3n) .polaroid { transform: rotate(-0.6deg); }
.polaroid {
  position: relative;
  padding: 10px 10px 0;
  background: #f3eee3 url("../assets/img/ui/sticky.webp") 0 0 / 256px;
  background-blend-mode: multiply;
  box-shadow: 0 16px 24px rgba(0,0,0,.5), 0 2px 3px rgba(0,0,0,.35);
}
.polaroid::before { top: -14px; left: calc(50% - 20%); width: 40%; max-width: 92px; transform: rotate(-4deg); }
.polaroid img { width: 100%; aspect-ratio: 552 / 609; object-fit: cover; }
.polaroid figcaption { font: 700 1.3rem/1 var(--hand); color: var(--ink); padding: 12px 4px 14px; }
.sides__more { margin-top: 64px; font: 400 1.25rem/1.3 var(--hand); color: var(--cream-dim); text-align: center; }

/* ---------- evidence: a case board in the game's torn-cardboard panel ---------- */
.evidence { padding: 110px 0 130px; background: var(--night-2); }
.board {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 104px 34px;
  padding: 70px 54px 80px;
  border-style: solid; border-width: 28px;
  border-image: url("../assets/img/ui/board-frame-377.png") 34 fill / 28px stretch;
}
.ev { position: relative; }
.ev .note { position: absolute; z-index: 3; }
.ev--limb { grid-column: 1 / span 4; transform: rotate(-2deg); }
.ev--limb .note { left: 30px; right: -40px; bottom: -78px; transform: rotate(2.5deg); }
.ev--trail { grid-column: 6 / span 7; transform: rotate(1.2deg); margin-top: 26px; }
.ev--trail .note { right: 24px; bottom: -64px; width: min(310px, 60%); transform: rotate(-2deg); }
.ev--saw { grid-column: 1 / span 6; margin-top: 50px; transform: rotate(1.4deg); }
.ev--saw .note { right: -18px; bottom: -78px; width: min(280px, 60%); transform: rotate(-2.5deg); }
.ev--voice { grid-column: 7 / span 6; margin-top: 90px; transform: rotate(-1.3deg); }
.ev--voice .note { right: -14px; bottom: -86px; width: min(320px, 70%); transform: rotate(2deg); }
/* the Theater has no clean picture yet: a wide index card across the foot of the board */
.ev--theater { grid-column: 2 / span 10; margin-top: 70px; }
.card {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 36px; align-items: center;
  padding: 30px 40px 32px;
  background: #f5f0e6 url("../assets/img/ui/card-512.png") center / cover;
  color: var(--ink);
  box-shadow: 0 16px 24px rgba(0,0,0,.5);
  transform: rotate(-.8deg);
}
.card::before { top: -16px; left: 40px; width: clamp(70px, 14%, 104px); transform: rotate(-8deg); }
.card h3 { font: 400 clamp(2rem, 3.4vw, 2.75rem)/1 var(--heavy); font-style: oblique 9deg; font-synthesis: style; text-transform: uppercase; color: var(--red); }
.card p { font: 400 1.3rem/1.4 var(--hand); max-width: 34em; }

/* ---------- between matches ---------- */
.between { padding: 120px 0; }
.between__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 60px 34px; align-items: start; }
.between__intro { grid-column: 1 / span 5; padding-top: 10px; }
.between__intro p:not(.kicker) { max-width: 30em; }
.between__casino { grid-column: 6 / span 7; transform: rotate(1.3deg); }
.between__store { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 34px; align-items: center; margin-top: 30px; }
.between__store .frame {
  grid-column: 1 / span 8;
  border-style: solid; border-width: 22px;
  border-image: url("../assets/img/ui/board-frame-377.png") 34 fill / 22px stretch;
  box-shadow: 0 20px 30px rgba(0,0,0,.45);
}
.between__store .frame img { width: 100%; }
.between__store figcaption { grid-column: 9 / span 4; }
.between__store h3 { font: 400 clamp(2.2rem, 4.4vw, 3.4rem)/1 var(--heavy); font-style: oblique 9deg; font-synthesis: style; text-transform: uppercase; color: var(--orange); text-shadow: 0.05em 0.05em 0 var(--orange-deep); margin-bottom: 14px; }
.between__store p { margin-bottom: 14px; }
.between__store .quote { font: 400 1.3rem/1.3 var(--hand); color: var(--cream-dim); }
.between__store .quote::before { content: "\201C"; color: var(--orange); font: 400 2rem/0 var(--heavy); margin-right: 6px; vertical-align: -0.3em; }

/* ---------- film ---------- */
.film { padding: 110px 0 130px; background: var(--char); border-top: 1px solid #2c261f; }
.film__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 54px; align-items: center; }
.film__text p:not(.kicker) { max-width: 26em; }
.film__screen {
  padding: 0;
  border-style: solid; border-width: 24px;
  border-image: url("../assets/img/ui/board-frame-377.png") 34 fill / 24px stretch;
  box-shadow: 0 24px 40px rgba(0,0,0,.55);
  transform: rotate(-.6deg);
}
.film__screen video { width: 100%; background: #000; }

/* ---------- footer ---------- */
.foot { padding: 90px 0 60px; background: #0a0c12; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px 60px; align-items: center; }
.foot__line { font: 400 clamp(2rem, 4vw, 3rem)/1 var(--heavy); font-style: oblique 9deg; font-synthesis: style; text-transform: uppercase; color: var(--cream); margin-bottom: 12px; }
.foot__soon { color: var(--cream-dim); margin-bottom: 26px; max-width: 32em; }
.foot__soon.is-said { color: var(--cream); }
.foot__studio { display: flex; align-items: center; gap: 20px; justify-self: end; color: var(--cream-dim); }
.foot__emblem { width: 110px; height: 110px; }
.foot__studio strong { color: var(--cream); font-weight: 500; }
.foot__small { grid-column: 1 / -1; font-size: .8125rem; color: #8c836f; border-top: 1px solid #262119; padding-top: 22px; }
.foot__small a { color: var(--cream-dim); }

/* ---------- narrower screens ---------- */
@media (max-width: 1179px) {
  /* five across no longer fits: three, then two centred; the Committee and the Unhinged stack as full rows */
  .roles { --cols: 3; }
  .files-pair { grid-template-columns: 1fr; }
  .file--unhinged .roles { --cols: 3; }
}
@media (max-width: 1080px) {
  .top__nav { display: none; }
  .top .chip { margin-left: auto; }
  .day__item--a { grid-column: 1 / span 8; }
  .day__item--b { grid-column: 9 / span 4; }
  .day__item--c { grid-column: 1 / span 6; }
  .day__item--d { grid-column: 7 / span 6; }
  .day__item--c .note { left: 0; }
  .day__item--a .note { bottom: -132px; }
  .board { padding: 60px 34px 70px; }
  .ev--saw .note { right: -8px; }
  .ev--theater { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .street__grid, .film__grid, .foot__grid { grid-template-columns: 1fr; }
  .foot__studio { justify-self: start; }
  .day__grid, .board, .between__grid, .between__store { grid-template-columns: 1fr; }
  .day__item--a, .day__item--b, .day__item--c, .day__item--d { grid-column: auto; margin-top: 0; width: min(560px, 100%); }
  .day__item--b, .day__item--d { justify-self: end; }
  .day__grid { gap: 72px; padding-bottom: 0; }
  .day__item .note, .ev .note { position: relative; left: auto !important; right: auto !important; bottom: auto !important; width: min(330px, 88%) !important; margin: -22px 0 0 auto; }
  .day__item--b .note, .day__item--d .note, .ev--trail .note, .ev--voice .note { margin: -22px auto 0 -4px; }
  .board { gap: 72px; padding: 54px 26px 60px; }
  .ev--limb, .ev--trail, .ev--saw, .ev--voice, .ev--theater { grid-column: auto; margin-top: 0; width: min(560px, 100%); }
  .ev--limb { width: min(400px, 92%); }
  .ev--trail, .ev--voice { justify-self: end; }
  .ev--theater { width: 100%; }
  .card { grid-template-columns: 1fr; padding: 28px 26px 28px; }
  .between__intro, .between__casino, .between__store .frame, .between__store figcaption { grid-column: auto; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .top { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .top__name { display: none; }
  .top__emblem { width: 38px; height: 38px; }

  /* the picture fills the first screen, cut round the officer and the body; the words sit above them */
  .hero { min-height: 100vh; min-height: 100svh; padding: 66px var(--gutter) 28px; }
  .hero__img { object-position: 33% 50%; }
  .hero__shot::after {
    background:
      linear-gradient(to bottom, rgba(9,11,17,.8) 0, rgba(9,11,17,.66) 34%, rgba(9,11,17,.38) 50%, rgba(9,11,17,0) 64%, rgba(9,11,17,0) 94%, var(--night) 100%);
  }
  .hero__logo { width: min(300px, 82vw); }
  .hero__tag { border-width: 0 22px; border-image-width: 0 22px; padding: 5px 4px 7px; margin-top: 2px; }
  .hero__tag-long { display: none; }
  .hero__tag-short { display: inline; }
  .hero__tag span { font-size: clamp(.95rem, 4.4vw, 1.125rem); }
  .hero__lede { font-size: clamp(.9375rem, 4vw, 1rem); line-height: 1.45; margin: 14px 0 18px; max-width: 24em; }
  .hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(100%, 360px); }
  .hero__ctas .btn-paint, .hero__ctas .btn-wood { width: 100%; min-height: 52px; padding: 0 4px; }
  .btn-paint { font-size: 1.375rem; border-width: 0 18px; border-image-width: 0 18px; }
  .btn-wood { font-size: .875rem; letter-spacing: .1em; }
  .wide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero__note { font-size: .875rem; margin-top: 10px; }
  .hero__credit { display: none; }

  .head { margin-bottom: 22px; }
  .street, .day, .sides, .evidence, .between, .film { padding-block: 76px; }
  .street { padding-top: 64px; }
  .street__grid { gap: 48px; }
  .mapslip { width: 90%; padding: 10px 10px 54px; }
  .mapslip__ring { left: 10px; top: 10px; width: calc(100% - 20px); }
  .mapslip__note { font-size: 1.125rem; }
  .day__grid { margin-top: 36px; gap: 60px; }
  .day__item { width: 94% !important; }
  .roles, .file--committee .roles, .file--unhinged .roles { --cols: 2; --rg: 18px; row-gap: 40px; }
  .file { margin-top: 48px; }
  .file__head { margin-bottom: 28px; }
  .file__head p { font-size: 1.0625rem; }
  .polaroid { padding: 7px 7px 0; }
  .polaroid figcaption { font-size: 1.05rem; padding: 9px 2px 11px; }
  .role > p { font-size: .875rem; margin-top: 14px; }
  .sides__more { margin-top: 48px; font-size: 1.125rem; }
  .board { border-width: 16px; border-image-width: 16px; padding: 40px 14px 44px; gap: 60px; }
  .note { font-size: 1rem; padding: 18px 16px 18px; }
  .note h3 { font-size: 1.25rem; }
  .photo { padding: 6px 6px 8px; }
  .card { padding: 24px 20px 22px; }
  .card p { font-size: 1.125rem; }
  .between__grid { gap: 48px; }
  .between__store .frame { border-width: 14px; border-image-width: 14px; }
  .film__grid { gap: 36px; }
  .film__screen { border-width: 14px; border-image-width: 14px; }
  .foot { padding: 72px 0 44px; }
  .foot__studio { gap: 16px; }
  .foot__emblem { width: 84px; height: 84px; }
}
@media (max-width: 360px) {
  .btn-paint { font-size: 1.2rem; }
  .btn-wood { font-size: .8125rem; letter-spacing: .06em; }
  .roles, .file--committee .roles, .file--unhinged .roles { --rg: 14px; }
  .polaroid figcaption { font-size: .95rem; }
}

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