/* ==========================================================================
   ArcadeGameSpot — "Spot Color" design prototype
   One stylesheet, no build step, no JavaScript.

   The system in one paragraph: the site is printed in ink on paper. Colour
   is never used for text; it is used for shape. The brand owns one spot
   colour (vermilion) and every game owns one of its own. The spot in the
   wordmark takes the colour of whichever game you are on, or pointing at.

    1. Fonts            6. Home: hero           11. Footer
    2. Tokens           7. Plates (game cards)  12. Motion, transitions,
    3. Base             8. Home: pledge, story      forced colours
    4. Primitives       9. Game page
    5. Header          10. Game page: content
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Expanded";
  src: url("../fonts/archivo-expanded-latin.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* stock and ink */
  --paper: #f3efe6;
  --paper-deep: #e7e1d3;
  --sheet: #fbf9f4;
  --ink: #16150f;
  --ink-soft: #4a463c;
  --ink-quiet: #bdb7a8;          /* secondary text on ink */
  --hair: rgba(22, 21, 15, 0.2);

  /* spot colours: one for the brand, one per game */
  --spot-brand: #e2412b;
  --lights: #f2b32b;
  --take: #1f7a64;
  --hemmed: #3346b0;
  --spot: var(--spot-brand);

  --display: "Archivo Expanded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 60px);
  --wrap: 1320px;
}

/* Game pages take their game's colour; the stage gets that game's own mat. */
[data-game="lights-on"]   { --spot: var(--lights); --stage-mat: #241a2b; }
[data-game="double-take"] { --spot: var(--take);   --stage-mat: #0f3d33; }
[data-game="hemmed-in"]   { --spot: var(--hemmed); --stage-mat: #1e2550; }

.c-lights { --c: var(--lights); }
.c-take   { --c: var(--take); }
.c-hemmed { --c: var(--hemmed); }

/* 3. Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
table { border-spacing: 0; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.on-ink :focus-visible { outline-color: var(--paper); }

.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip:focus { top: 8px; outline-color: var(--spot-brand); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 4. Primitives ----------------------------------------------------------- */

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

/* Small expanded capitals: section labels, meta, table heads. */
.label {
  font: 700 0.6875rem/1.4 var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* A spot. On paper it carries an ink keyline, like a printed dot. */
.dot {
  display: inline-block;
  flex: none;
  width: 0.72em;
  height: 0.72em;
  border-radius: 50%;
  background: var(--c, var(--spot));
  box-shadow: 0 0 0 1.5px var(--ink);
}
.on-ink .dot { box-shadow: 0 0 0 1.5px var(--paper); }

.icon {
  flex: none;
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  transition: transform 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  min-height: 48px;
  padding: 0 1.25em;
  background: var(--ink);
  color: var(--paper);
  font: 700 0.75rem/1 var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.on-ink .btn { background: var(--paper); color: var(--ink); }
.on-ink .btn .dot { box-shadow: 0 0 0 1.5px var(--ink); }

kbd {
  display: inline-block;
  padding: 0.1em 0.5em;
  border: 1.5px solid var(--ink);
  border-bottom-width: 3px;
  border-radius: 4px;
  background: var(--sheet);
  color: var(--ink);
  font: 600 0.8125em/1.5 var(--text);
  white-space: nowrap;
}

/* The wordmark. Real text ("ArcadeGameSpot") set in capitals; the O of SPOT
   is replaced by a disc in the current spot colour. Measured widths, in em,
   of Archivo Expanded 900: ARCADEGAME 9.587, SP 1.747, T 0.877; capital
   height 0.686. One line renders 13.22em wide including the disc and gaps. */
.wm {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
  white-space: nowrap;
}
.wm__w + .wm__w { margin-left: 0.1em; }
.wm__o {
  position: relative;
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin: 0 0.07em;
  border-radius: 50%;
  background: var(--spot);
  vertical-align: baseline;
  transition: background-color 0.3s ease;
}
/* the letter itself stays in the document for copying and reading aloud */
.wm__o > span { position: absolute; inset: 0; overflow: hidden; opacity: 0; }

/* Prototype notice. Not part of the design; remove for production. */
.proto {
  background: var(--ink);
  color: var(--paper);
  font: 600 0.75rem/1.35 var(--text);
}
.proto__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem 1.25rem;
  min-height: 32px;
  padding-block: 6px;
}
.proto__in ul { display: flex; gap: 1rem; }
.proto a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  text-underline-offset: 0.2em;
}
.proto b { font-weight: 700; }
@media (max-width: 760px) {
  .proto p {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* 5. Header --------------------------------------------------------------- */

.site-header {
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
}
.site-header__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 64px;
}

/* Reflow enlarged text instead of clipping links or shrinking their type.
   Keep the wordmark intact unless its three words need another line. */
.site-header .brand { max-width: 100%; }
.site-header .brand:focus-visible { outline-offset: -3px; }
.site-header .wm { white-space: normal; }
.site-header .wm__w { display: inline-block; }
.nav { min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.0625rem;
  text-decoration: none;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem clamp(1rem, 2vw, 1.75rem);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.nav__link[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
}

@media (max-width: 879px) {
  .site-header__in {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
  }
  .brand { min-height: 48px; font-size: 1rem; }
  .nav {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    border-top: 1px solid var(--hair);
  }
  /* The small inset lets the standard 320px row retain its four links;
     enlarged text wraps deliberately into additional 44px target rows. */
  .nav ul { justify-content: space-between; gap: 0.5rem; margin-inline: -0.25rem; }
  .nav__item--site { display: none; }
  .nav__link { font-size: clamp(0.75rem, 3.5vw, 0.9375rem); }
}

/* 6. Home: hero ----------------------------------------------------------- */

.hero { padding-block: clamp(14px, 1.8vw, 24px) clamp(18px, 2.4vw, 32px); }
.hero__in { container-type: inline-size; }

.hero__ears {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(10px, 1.2vw, 16px);
  color: var(--ink-soft);
}

/* The nameplate fills the measure exactly: size = width / em-width. */
.hero__lockup { --np: min(6.5vw, 96px); }
@supports (width: 1cqi) {
  .hero__lockup { --np: calc(100cqi / 13.26); }
}

.np {
  display: block;
  font-size: var(--np);
}

.hero__lede {
  max-width: 34em;
  margin-top: clamp(12px, 1.5vw, 22px);
  font: 500 clamp(1.125rem, 1.7vw, 1.5rem)/1.3 var(--text);
  text-wrap: balance;
}

/* Small screens: two rows. ARCADEGAME fills the width; SPOT sits below it
   with the one-line pitch tucked in beside it. */
@media (max-width: 640px) {
  .hero__ear-r { display: none; }
  .hero__lockup {
    --np: calc((100vw - 2 * var(--gutter)) / 9.85);
    display: grid;
    grid-template-columns: calc(var(--np) * 3.62) minmax(0, 1fr);
    grid-template-rows: calc(var(--np) * 0.88) auto;
    column-gap: 0.5rem;
  }
  @supports (width: 1cqi) {
    .hero__lockup { --np: calc(100cqi / 9.85); }
  }
  .np { grid-column: 1 / -1; grid-row: 1 / 3; }
  .np .wm__w:nth-child(3) { display: block; margin: 0.06em 0 0; }
  .hero__lede {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
    padding-top: 0.1em;
    font-size: 0.875rem;
    line-height: 1.35;
    text-wrap: wrap;
  }
}

/* 7. Plates (game cards) -------------------------------------------------- */

.bill { padding-bottom: clamp(36px, 4.6vw, 64px); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem 0.9rem;
  border-top: 1.5px solid var(--ink);
}
.section-head > :first-child { white-space: nowrap; }
.section-head > :last-child { color: var(--ink-soft); text-align: right; }

.bill__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: clamp(18px, 2.2vw, 32px);
}

.plate {
  position: relative;
  display: grid;
  min-width: 0;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
}

/* The art sits on a block of the game's own colour. At rest only an edge of
   it shows; on hover the sheet slips and the colour shows beneath it. */
.plate__art {
  position: relative;
  min-height: 8.5rem;
  background: var(--c);
}
.plate__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.plate__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: clamp(14px, 1.5vw, 22px);
}
.plate__kind {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--ink-soft);
}
.plate__title {
  font: 800 clamp(1.25rem, 1.75vw, 1.625rem)/1.05 var(--display);
  letter-spacing: -0.01em;
}
.plate__title a { text-decoration: none; }
/* one link per card, stretched over all of it */
.plate__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.plate__title a:focus-visible { outline: none; }
.plate__title a:focus-visible::after {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
.plate__desc {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.plate__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.35rem;
}
.plate__go {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font: 700 0.75rem/1 var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Featured: the poster over a block of ink. */
.plate--feature {
  grid-row: 1 / 3;
  grid-template-rows: 1fr auto;
  background: var(--ink);
  color: var(--paper);
}
.plate--feature .plate__art {
  min-height: clamp(220px, 24vw, 380px);
  border-bottom: 6px solid var(--c);
}
.plate--feature .plate__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 2rem;
  align-items: end;
  padding: clamp(16px, 1.9vw, 28px);
}
.plate--feature .plate__kind,
.plate--feature .plate__title,
.plate--feature .plate__desc { grid-column: 1; }
.plate--feature .plate__kind,
.plate--feature .plate__desc { color: var(--ink-quiet); }
.plate--feature .plate__title {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 900;
  line-height: 0.95;
}
.plate--feature .plate__desc { max-width: 34em; font-size: 1.0625rem; }
.plate--feature .plate__foot {
  grid-column: 2;
  grid-row: 1 / 4;
  flex-direction: column;
  align-items: flex-end;
  align-self: end;
  margin: 0;
  padding: 0;
  color: var(--ink-quiet);
}
.plate--feature .btn { color: var(--ink); }
.plate--feature .plate__title a:focus-visible::after { outline-color: var(--ink); }

/* Compact: art beside the text. */
.plate--compact { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
.plate--compact .plate__art { border-right: 6px solid var(--c); }

/* Catalog: responsive poster cards with uncropped 3:2 artwork. */
.catalog-head {
  padding-block: clamp(8px, 1.2vw, 16px) clamp(14px, 2vw, 28px);
}
.catalog-head h1 {
  margin-block: 0.25rem 0.5rem;
}
.catalog-head p {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.45;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}
.catalog-grid .plate--compact {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
}
.catalog-grid .plate--compact .plate__art {
  aspect-ratio: 3 / 2;
  min-height: 0;
  border-right: 0;
  border-bottom: 6px solid var(--c);
}

@media (hover: hover) {
  .plate:hover .plate__art img { transform: translate(-6px, -6px); }
  .plate:hover .plate__title a {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
  }
  .plate:hover .icon { transform: translateX(4px); }
}
.plate:focus-within .plate__art img { transform: translate(-6px, -6px); }

@media (max-width: 900px) {
  .bill__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .plate--feature { grid-column: 1 / -1; grid-row: auto; }
  .plate--feature .plate__art { min-height: clamp(200px, 40vw, 420px); }
}

@media (max-width: 760px) {
  .bill__grid { grid-template-columns: minmax(0, 1fr); }
  .plate--feature .plate__art { min-height: 50vw; }
  .plate--feature .plate__body { grid-template-columns: minmax(0, 1fr); }
  .plate--feature .plate__desc { font-size: 0.9375rem; }
  .plate--feature .plate__foot {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
    padding-top: 0.4rem;
  }
  .plate--compact { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
}

/* 8. Home: pledge and story ---------------------------------------------- */

.pledge { border-block: 1.5px solid var(--ink); }
.pledge__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pledge__list li {
  padding: clamp(18px, 2.2vw, 30px) clamp(16px, 2vw, 28px);
  border-left: 1.5px solid var(--ink);
}
.pledge__list li:first-child { padding-left: 0; border-left: 0; }
.pledge__list strong {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.3rem;
  font: 800 1.0625rem/1.2 var(--display);
}
.pledge__list span:not(.dot) {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .pledge__list { grid-template-columns: minmax(0, 1fr); }
  .pledge__list li {
    padding: 0.9rem 0;
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .pledge__list li:first-child { border-top: 0; }
}

.story {
  padding-block: clamp(44px, 6vw, 96px);
  background: var(--paper-deep);
}
.story__in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
/* "2005" is 3.24em wide; 13vw keeps it inside its column at every width. */
.story__year {
  font: 900 min(13vw, 190px)/0.8 var(--display);
  letter-spacing: -0.02em;
  text-shadow: 0.045em 0.045em 0 var(--spot);
  white-space: nowrap;
}
.story__text > .label { color: var(--ink-soft); }
.story__text h2 {
  margin: 0.5rem 0 1rem;
  font: 800 clamp(1.5rem, 2.9vw, 2.5rem)/1.08 var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.story__text p { max-width: 34em; }
.story__text p + p { margin-top: 0.85em; }

.timeline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 1.5rem;
  border-top: 1.5px solid var(--ink);
}
.timeline dt,
.timeline dd {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hair);
}
.timeline dt {
  padding-right: 1.5rem;
  font: 800 0.9375rem/1.6 var(--display);
}

@media (max-width: 760px) {
  .story__in { grid-template-columns: minmax(0, 1fr); }
  .story__year { font-size: 25vw; }
}

/* 9. Game page ------------------------------------------------------------ */

.game__head {
  display: grid;
  grid-template-columns: minmax(min-content, max-content) minmax(min-content, 1fr);
  align-items: end;
  gap: 0.25rem 2rem;
  padding-block: clamp(8px, 1.2vw, 16px) clamp(14px, 1.8vw, 24px);
}

.crumbs { grid-column: 1 / -1; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
}
.crumbs li + li::before { content: "/"; opacity: 0.6; }
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-underline-offset: 0.2em;
}
@media (pointer: coarse) {
  .crumbs li,
  .crumbs a { min-height: 44px; }
  .crumbs a { min-width: 44px; }
}

.game__title {
  font: 900 clamp(2.125rem, 5.6vw, 5.25rem)/0.92 var(--display);
  letter-spacing: -0.015em;
}
.game__tag {
  margin-top: 0.5rem;
  font: 500 clamp(1.0625rem, 1.5vw, 1.375rem)/1.3 var(--text);
}
.game__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}
.game__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.55em 0.8em;
  border: 1.5px solid var(--ink);
  white-space: nowrap;
}

/* The stage: a neutral frame the site owns, around a mount the game owns.
   The site supplies the border, the label bar and the trim marks. The mat
   colour, and everything inside the mount, belongs to the game. */
.stage { margin-bottom: clamp(20px, 2.4vw, 32px); }
.stage__frame {
  position: relative;
  border: 1.5px solid var(--ink);
  background: var(--ink);
}
/* printer's trim marks at the four corners, drawn in the gutter */
.stage__frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  pointer-events: none;
  background:
    linear-gradient(var(--ink) 0 0) 0 14px / 9px 1.5px,
    linear-gradient(var(--ink) 0 0) 14px 0 / 1.5px 9px,
    linear-gradient(var(--ink) 0 0) 100% 14px / 9px 1.5px,
    linear-gradient(var(--ink) 0 0) calc(100% - 14px) 0 / 1.5px 9px,
    linear-gradient(var(--ink) 0 0) 0 calc(100% - 14px) / 9px 1.5px,
    linear-gradient(var(--ink) 0 0) 14px 100% / 1.5px 9px,
    linear-gradient(var(--ink) 0 0) 100% calc(100% - 14px) / 9px 1.5px,
    linear-gradient(var(--ink) 0 0) calc(100% - 14px) 100% / 1.5px 9px;
  background-repeat: no-repeat;
}
.stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  padding: 0 0.875rem;
  color: var(--paper);
}
.stage__bar .label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.stage__bar .label + .label { color: var(--ink-quiet); }

/* "fill" suits a canvas game that takes whatever shape it is given.
   "flow" suits a game built from page elements, which sets its own height. */
.stage__mount {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: end;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 340px;
  max-height: min(70vh, 760px);
  max-height: min(70svh, 760px);
  padding: clamp(12px, 1.6vw, 22px);
  background: var(--stage-mat, var(--ink));
}
.stage__mount[data-stage="flow"] {
  aspect-ratio: auto;
  min-height: clamp(420px, 62vh, 640px);
  max-height: none;
}
.stage__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage__note {
  position: relative;
  max-width: 27rem;
  padding: 0.9rem 1.1rem 1rem;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  box-shadow: 6px 6px 0 var(--spot);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.stage__note .label { color: var(--ink-soft); }
.stage__note strong {
  display: block;
  margin: 0.2rem 0 0.3rem;
  font: 800 1.125rem/1.15 var(--display);
}

.keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.keys li {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
}

@media (max-width: 760px) {
  .game__head { grid-template-columns: minmax(0, 1fr); }
  .game__meta { display: none; } /* repeated in Game details below the stage */
  /* the stage runs edge to edge on a phone */
  .stage.wrap { width: 100%; }
  .stage__frame { border-inline: 0; }
  .stage__frame::before { display: none; }
  .stage__mount {
    aspect-ratio: 4 / 5;
    min-height: 0;
    max-height: 76vh;
    max-height: 76svh;
  }
  .stage__mount[data-stage="flow"] { min-height: 440px; }
  .keys { padding-inline: var(--gutter); }
}

/* 10. Game page: content -------------------------------------------------- */

.game__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(12px, 1.6vw, 24px) clamp(48px, 6vw, 88px);
}
.game__main { max-width: 46rem; }

.block + .block { margin-top: clamp(32px, 3.6vw, 52px); }
.block h2 {
  margin-bottom: 1rem;
  padding-top: 0.9rem;
  border-top: 1.5px solid var(--ink);
  font: 800 clamp(1.25rem, 1.9vw, 1.625rem)/1.1 var(--display);
  letter-spacing: -0.01em;
}
.block h3 {
  margin: 1.4rem 0 0.35rem;
  font: 700 1.0625rem/1.3 var(--text);
}
.block p + p { margin-top: 0.85em; }

/* numbered steps: each number is a spot */
.steps {
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--sheet);
  font: 800 0.75rem/1 var(--display);
}
.steps li > span { padding-top: 0.15rem; }

.ctl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.ctl th,
.ctl td {
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}
.ctl thead th {
  padding-top: 0;
  border-bottom: 1.5px solid var(--ink);
  color: var(--ink-soft);
  font: 700 0.6875rem/1.4 var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.ctl tbody th { font-weight: 700; }

/* Narrow screens: each action becomes a short labelled list. The table,
   row and cell roles are stated in the markup so they survive this. */
@media (max-width: 640px) {
  .ctl thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .ctl,
  .ctl tbody,
  .ctl tr,
  .ctl th,
  .ctl td { display: block; }
  .ctl tr {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--hair);
  }
  .ctl tbody th,
  .ctl td { padding: 0.15rem 0; border: 0; }
  .ctl td {
    display: grid;
    grid-template-columns: 5.75rem minmax(0, 1fr);
    gap: 0.75rem;
  }
  .ctl td::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    color: var(--ink-soft);
    font: 700 0.6875rem/1.95 var(--display);
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
}

.side-block + .side-block { margin-top: 2.25rem; }
.side-block h2 {
  margin-bottom: 0.25rem;
  padding-top: 0.9rem;
  border-top: 1.5px solid var(--ink);
}
.details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  font-size: 0.9375rem;
}
.details dt,
.details dd {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hair);
}
.details dt { padding-right: 1.25rem; color: var(--ink-soft); }
.details dd { font-weight: 600; }

.more { display: grid; gap: 14px; margin-top: 0.75rem; }

@media (max-width: 960px) {
  .game__body { grid-template-columns: minmax(0, 1fr); }
  .game__main { max-width: none; }
}

/* 11. Footer -------------------------------------------------------------- */

/* A printer's colour bar: every colour the site uses, in one strip. */
.colorbar {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 12px;
}
.colorbar span:nth-child(1) { background: var(--spot-brand); }
.colorbar span:nth-child(2) { background: var(--lights); }
.colorbar span:nth-child(3) { background: var(--take); }
.colorbar span:nth-child(4) { background: var(--hemmed); }
.colorbar span:nth-child(5) { background: var(--paper); }
.colorbar span:nth-child(6) { background: var(--ink-quiet); }
.colorbar span:nth-child(7) { background: #7a7568; }
.colorbar span:nth-child(8) { background: var(--ink-soft); }

.site-footer {
  background: var(--ink);
  color: var(--paper);
}
.site-footer__in {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(24px, 4vw, 64px);
  padding-block: clamp(32px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
}
.site-footer .brand { font-size: clamp(1.125rem, 2vw, 1.625rem); }
.site-footer p {
  max-width: 26em;
  margin-top: 0.5rem;
  color: var(--ink-quiet);
  font-size: 0.9375rem;
}
.site-footer h2 { margin-bottom: 0.3rem; color: var(--ink-quiet); }
.site-footer li a {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.site-footer li a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 1rem 1.5rem;
  border-top: 1px solid rgba(243, 239, 230, 0.22);
}
.site-footer__legal p { max-width: none; margin: 0; font-size: 0.8125rem; }

@media (max-width: 700px) {
  .site-footer__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* 12. Motion, transitions, forced colours --------------------------------- */

/* The spot takes the colour of the game being pointed at or focused. */
@media (hover: hover) {
  body:has(.c-lights:hover) { --spot: var(--lights); }
  body:has(.c-take:hover)   { --spot: var(--take); }
  body:has(.c-hemmed:hover) { --spot: var(--hemmed); }
}
body:has(.c-lights:focus-within) { --spot: var(--lights); }
body:has(.c-take:focus-within)   { --spot: var(--take); }
body:has(.c-hemmed:focus-within) { --spot: var(--hemmed); }

/* Page-to-page: a game's poster travels from its card to its stage.
   Progressive enhancement; browsers without it simply load the page. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .c-lights .plate__art img,
  [data-game="lights-on"] .stage__poster { view-transition-name: art-lights; }
  .c-take .plate__art img,
  [data-game="double-take"] .stage__poster { view-transition-name: art-take; }
  .c-hemmed .plate__art img,
  [data-game="hemmed-in"] .stage__poster { view-transition-name: art-hemmed; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .plate:hover .plate__art img,
  .plate:focus-within .plate__art img,
  .plate:hover .icon { transform: none; }
}

@media (forced-colors: active) {
  .wm__o,
  .dot { background: CanvasText; forced-color-adjust: none; }
  .plate__art,
  .plate--feature .plate__art,
  .plate--compact .plate__art { border-color: CanvasText; }
  .stage__frame::before { display: none; }
}

@media print {
  .proto { display: none; }
}
