/* ==========================================================
   Pitchfork Math: site styles
   Colors and fonts come from the game's interface.
   Texts live in the HTML files, settings in assets/js/config.js.
   ========================================================== */

@font-face {
  font-family: "Grandstander";
  src: url("../fonts/grandstander-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/firasans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F3EAD0;
  --paper-hi: #FBF6E6;
  --paper-edge: #DCCDA4;
  --ink: #1D1612;
  --ink-soft: #5E4F41;
  --gold: #8A6100;
  --felt: #2F5D3A;
  --felt-deep: #21452A;
  --red: #D94D40;
  --red-deep: #C13F30;
  --red-edge: #8C2B20;
  --ochre: #B07A1E;
  --brick: #B5402F;

  --title: "Grandstander", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --text: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --plain: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Paper grain and hand-cut edges, drawn as tiny inline pictures. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .27 0 0 0 0 .12 0 0 0 .5 -.17'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .05 0 0 0 0 .12 0 0 0 0 .06 0 0 0 .6 -.2'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --edge-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V21c55-13 108 9 168-1s118-17 188-6 131 15 201 3 149-17 219-5 141 13 211 1 129-11 213 3V40z'/%3E%3C/svg%3E");
  --edge-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M7 0C3 9 8 19 5 31s4 21 1 33 5 22 2 36h92V0z'/%3E%3C/svg%3E");

  --cut: 16px 20px 14px 18px / 18px 14px 20px 16px;
  --cut-in: 10px 13px 9px 12px / 12px 9px 13px 10px;
  --shadow-cut: 0 2px 0 rgba(94, 79, 65, .2), 0 14px 26px -12px rgba(60, 40, 20, .45);
  --shadow-felt: 0 3px 0 rgba(0, 0, 0, .25), 0 18px 28px -16px rgba(0, 0, 0, .6);
  --gutter: 16px;
  --wide: 1240px;
}

@media (min-width: 860px) {
  :root {
    --gutter: clamp(24px, 4vw, 48px);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 700 1.0625rem/1.55 var(--text);
  overflow-x: clip;
}

img,
picture,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--title);
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}

p {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.band--felt :focus-visible,
.band--deep :focus-visible,
.foot :focus-visible,
.stick :focus-visible {
  outline-color: var(--paper-hi);
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper-hi);
  font-family: var(--title);
  border-radius: 10px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
}

.top--page {
  max-width: 980px;
  margin-inline: auto;
}

/* ---------- Top bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font: 800 1.4rem/1 var(--title);
  letter-spacing: -.01em;
  text-decoration: none;
  view-transition-name: brand;
}

.brand img {
  width: 39px;
  height: 44px;
}

.top__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font: 800 1rem/1 var(--title);
}

@media (min-width: 860px) {
  .top {
    padding-block: 14px;
  }

  .brand {
    font-size: 1.6rem;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 24px;
  font: 800 1.15rem/1.1 var(--title);
  text-decoration: none;
  text-align: center;
  border: 0;
  border-radius: 15px 18px 14px 19px / 18px 14px 19px 15px;
  cursor: pointer;
  transition: translate .12s ease, box-shadow .12s ease;
}

.btn--primary {
  background: var(--red-deep);
  color: var(--paper-hi);
  box-shadow: 0 4px 0 var(--red-edge), 0 14px 20px -12px rgba(90, 30, 20, .7);
}

.btn--paper {
  background: var(--paper-hi);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--paper-edge), 0 14px 20px -12px rgba(60, 40, 20, .5);
}

.btn:hover {
  translate: 0 -1px;
}

.btn:active {
  translate: 0 3px;
  box-shadow: 0 1px 0 var(--red-edge);
}

.btn--paper:active {
  box-shadow: 0 1px 0 var(--paper-edge);
}

/* ---------- First screen ---------- */

.home .top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
}

/* With the clip playing in the first picture, the title and the link sit on paper tags:
   the clip under them is busy, not a calm sky like the picture. The negative margins keep
   the words where they were, so nothing jumps when the tags appear. */

.clip-on .home .top .brand,
.clip-on .home .top .top__link {
  background: var(--paper-hi);
  border-radius: var(--cut);
  box-shadow: var(--shadow-cut);
}

.clip-on .home .top .brand {
  margin-left: -8px;
  padding: 0 14px 0 8px;
}

.clip-on .home .top .top__link {
  margin-right: -8px;
  padding: 0 14px;
}

.hero {
  display: grid;
  grid-template-areas: "art" "h" "cta" "lead" "note";
  padding: 0 0 44px;
  view-timeline: --hero block;
}

.hero > :not(.hero__media) {
  margin-inline: var(--gutter);
}

.hero h1 {
  grid-area: h;
  margin: 8px 0 0;
  font-size: clamp(2.05rem, 1.1rem + 4.4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.012em;
}

.hero__lead {
  grid-area: lead;
  margin-block: 20px 0;
  max-width: 34rem;
  color: var(--ink-soft);
}

.hero__cta {
  grid-area: cta;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.hero__cta .btn {
  flex: 1 1 100%;
}

.hero__note {
  grid-area: note;
  margin-block: 10px 0;
  color: var(--ink-soft);
  font-size: .9375rem;
}

.hero__media {
  grid-area: art;
  position: relative;
}

.hero__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 26px;
  background: var(--paper) var(--grain);
  -webkit-mask: var(--edge-top) center / 100% 100% no-repeat;
  mask: var(--edge-top) center / 100% 100% no-repeat;
  pointer-events: none;
}

.hero__art {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.hero__art img,
.hero__clip {
  width: 100%;
  aspect-ratio: 1180 / 1160;
  object-fit: cover;
  object-position: 100% 100%;
}

/* Layers added by the scripts: the same picture without pupils, the pupils, the clip. */

.scene__bare,
.hero__clip,
.eyes {
  position: absolute;
  inset: 0;
  height: 100%;
}

/* The fight in the clip happens in the right part of the frame, so a narrow box keeps that part.
   The clip is invisible until it really plays; the picture under it shows until then. */

.hero__art .hero__clip {
  object-position: 100% 50%;
  opacity: 0;
  transition: opacity .5s ease;
}

.hero__art .hero__clip--on {
  opacity: 1;
}

.scene__bare,
.eyes {
  visibility: hidden;
}

.scene--live .scene__bare,
.scene--live .eyes {
  visibility: visible;
}

.eyes {
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.pupil,
.puff {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
}

.pupil {
  border-radius: 50%;
  background: #17110E;
  transition: translate .34s cubic-bezier(.34, 1.56, .64, 1), scale .2s ease-out;
}

.eyes--still .pupil {
  transition: none;
}

.puff {
  opacity: 0;
  aspect-ratio: 130 / 98;
  background:
    radial-gradient(closest-side, #E3EAB2 97%, transparent) 4% 74% / 48% 56% no-repeat,
    radial-gradient(closest-side, #E3EAB2 97%, transparent) 48% 22% / 58% 72% no-repeat,
    radial-gradient(closest-side, #E3EAB2 97%, transparent) 96% 70% / 50% 60% no-repeat,
    radial-gradient(closest-side, #E3EAB2 97%, transparent) 52% 96% / 72% 48% no-repeat;
  filter: drop-shadow(0 1px 0 rgba(94, 79, 65, .4));
}

.puff--go {
  animation: puff 2.4s ease-out forwards;
}

@keyframes puff {
  0% {
    opacity: 0;
    scale: .35;
    translate: var(--x) var(--y);
  }

  15% {
    opacity: .95;
    scale: 1.1;
  }

  50% {
    opacity: .95;
  }

  100% {
    opacity: 0;
    scale: 1.1;
    translate: calc(var(--x) + var(--dx)) calc(var(--y) + var(--dy));
  }
}

/* Pause and play, drawn with two bars or a triangle; the name comes from aria-label. */
.scene__toggle {
  position: absolute;
  right: 8px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0;
  cursor: pointer;
}

.scene__toggle::before {
  content: "";
  grid-area: 1 / 1;
  width: 34px;
  height: 34px;
  border-radius: 50% 46% 52% 48%;
  background: rgba(251, 246, 230, .9);
  box-shadow: 0 2px 0 rgba(94, 79, 65, .35);
}

.scene__toggle::after {
  content: "";
  grid-area: 1 / 1;
  width: 12px;
  height: 13px;
  border-inline: 4px solid var(--ink);
}

/* Two rings, light and dark, so the focus shows on any part of the picture. */
.scene__toggle:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--paper-hi);
}

.scene__toggle[data-state="paused"]::after {
  width: 13px;
  height: 14px;
  border: 0;
  background: var(--ink);
  clip-path: polygon(8% 0, 100% 50%, 8% 100%);
}

@media (min-width: 560px) {
  .hero__cta .btn {
    flex: 0 1 auto;
  }
}

@media (min-width: 700px) {
  .hero__art img,
  .hero__clip {
    aspect-ratio: auto;
    height: min(62svh, 620px);
  }
}

@media (min-width: 1200px) {
  .home .top {
    padding-inline: clamp(24px, 5vw, 72px);
  }

  /* On wide screens the title stands on the paper beside the picture and needs no tag. */
  .clip-on .home .top .brand {
    margin-left: 0;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .hero {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 31rem);
    grid-template-areas: "h" "lead" "cta" "note";
    align-content: center;
    min-height: clamp(580px, 88svh, 820px);
    padding: 112px clamp(24px, 5vw, 72px) 88px;
  }

  .hero > :not(.hero__media) {
    margin-inline: 0;
  }

  .hero h1 {
    margin-top: 0;
  }

  .hero__lead {
    margin-top: 22px;
  }

  .hero__cta {
    margin-top: 26px;
  }

  .hero__note {
    margin-top: 16px;
  }

  .hero__media {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: min(62vw, 1180px);
    filter: drop-shadow(-8px 0 14px rgba(60, 40, 20, .28));
  }

  .hero__media::after {
    content: none;
  }

  .hero__art,
  .hero__art picture {
    height: 100%;
    overflow: visible;
  }

  .hero__art img,
  .hero__clip {
    height: 100%;
    -webkit-mask: var(--edge-left) center / 100% 100% no-repeat;
    mask: var(--edge-left) center / 100% 100% no-repeat;
  }

  .scene__toggle {
    right: 16px;
    bottom: 16px;
  }
}

/* ---------- Paper cards used across the page ---------- */

.snap {
  margin: 0;
  padding: 7px;
  background: var(--paper-hi);
  border-radius: var(--cut);
  box-shadow: var(--shadow-cut);
}

.snap img {
  width: 100%;
  border-radius: var(--cut-in);
}

/* ---------- Story ---------- */

.story {
  display: grid;
  gap: 26px;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 20px var(--gutter) 76px;
}

.story .snap {
  rotate: -1.5deg;
  margin-inline: 4px;
}

.story p {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.story .story__punch {
  margin-top: 16px;
  max-width: 14em;
  color: var(--ink);
  font: 800 clamp(1.7rem, 1.2rem + 2.4vw, 2.9rem)/1.08 var(--title);
  letter-spacing: -.01em;
  text-wrap: balance;
}

@media (min-width: 860px) {
  .story {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(36px, 6vw, 96px);
    padding-block: 64px 108px;
  }
}

/* ---------- Bands ---------- */

.band {
  position: relative;
  padding: 52px var(--gutter) 76px;
  background: var(--paper) var(--grain);
}

.band--felt {
  background: var(--felt) var(--grain-dark);
  color: var(--paper-hi);
}

.band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -23px;
  height: 24px;
  background: inherit;
  -webkit-mask: var(--edge-top) center / 100% 100% no-repeat;
  mask: var(--edge-top) center / 100% 100% no-repeat;
}

.band--deep {
  background: var(--felt-deep) var(--grain-dark);
  color: var(--paper-hi);
}

.band--light {
  background: var(--paper-hi) var(--grain);
}

.band > h2,
.band > p {
  max-width: var(--wide);
  margin-inline: auto;
}

/* ---------- Three steps ---------- */

.steps__list {
  display: grid;
  gap: 24px;
  max-width: var(--wide);
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  padding: 9px 9px 22px;
  background: var(--paper-hi) var(--grain);
  color: var(--ink);
  border-radius: var(--cut);
  box-shadow: var(--shadow-felt);
}

.step:nth-child(1) {
  rotate: -.9deg;
}

.step:nth-child(2) {
  rotate: .7deg;
}

.step:nth-child(3) {
  rotate: -.5deg;
}

.step img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--cut-in);
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 10px 6px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.step h3::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50% 46% 52% 48%;
  background: var(--gold);
  color: var(--paper-hi);
  font-size: 1.25rem;
}

.step p {
  margin: 0 10px;
  color: var(--ink-soft);
}

@media (min-width: 720px) {
  .steps__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 720px) and (max-width: 999px) {
  .step h3 {
    font-size: 1.2rem;
  }

  .step h3::before {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }

  .step p {
    font-size: .975rem;
  }
}

@media (min-width: 860px) {
  .steps__list {
    gap: 30px;
    margin-top: 40px;
  }
}

/* ---------- Four tiles ---------- */

.features {
  max-width: var(--wide);
  margin-inline: auto;
}

.tiles {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  padding: 9px 9px 24px;
  background: var(--paper-hi);
  border-radius: var(--cut);
  box-shadow: var(--shadow-cut);
}

.tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--cut-in);
}

.tile--monsters img {
  aspect-ratio: 3 / 2;
}

.tile h3 {
  margin: 18px 12px 6px;
  font-size: 1.5rem;
  line-height: 1.1;
}

.tile p {
  margin: 0 12px;
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .tiles {
    grid-template-columns: repeat(12, 1fr);
    gap: 28px;
  }

  .tile {
    grid-column: span 7;
  }

  .tile--names,
  .tile--world {
    grid-column: span 5;
  }

  .tile--names img,
  .tile--world img {
    aspect-ratio: 5 / 4;
  }

  .tile--devil {
    grid-column: span 12;
  }

  .tile--devil img {
    aspect-ratio: 3 / 1;
  }

  .tile--village {
    rotate: -.5deg;
  }

  .tile--monsters {
    rotate: .4deg;
  }
}

/* ---------- Villagers ---------- */

.villagers {
  padding-inline: 0;
}

.villagers > h2 {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  padding-inline: var(--gutter);
}

.cards-scroller {
  margin-top: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
}

.cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(70vw, 248px);
  gap: 16px;
  width: max-content;
  margin: 0;
  padding: 6px var(--gutter) 28px;
  list-style: none;
}

.card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--cut);
  box-shadow: var(--shadow-cut);
}

.card__art {
  display: grid;
  place-items: end center;
  height: 236px;
  padding: 16px 10px 0;
  background: var(--felt) var(--grain-dark);
}

.card--craft .card__art {
  background-color: var(--ochre);
}

.card--army .card__art {
  background-color: var(--brick);
}

.card__art img {
  width: auto;
  height: 214px;
  max-width: 100%;
  object-fit: contain;
  object-position: 50% 100%;
}

.card h3 {
  margin: 14px 16px 4px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.card p {
  margin: 0 16px 18px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.45;
}

@media (min-width: 860px) {
  .cards-scroller {
    overflow: visible;
    margin-top: 38px;
  }

  .cards {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 26px;
    width: auto;
    max-width: calc(var(--wide) + 2 * var(--gutter));
    margin-inline: auto;
    padding-bottom: 0;
  }
}

/* ---------- Screenshots ---------- */

/* Phones: one row that scrolls sideways, so nine pictures do not make the page nine pictures longer.
   From 700 px: a grid. */

.shots {
  padding-inline: 0;
}

.shots > h2 {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  padding-inline: var(--gutter);
}

.shots__scroller {
  margin-top: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
}

.shots__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84vw, 420px);
  gap: 14px;
  width: max-content;
  margin: 0;
  padding: 6px var(--gutter) 26px;
  list-style: none;
}

.shot {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 6px;
  scroll-snap-align: start;
  background: var(--paper-hi);
  color: var(--ink);
  border-radius: var(--cut);
  box-shadow: var(--shadow-felt);
}

.shot a {
  display: block;
  border-radius: var(--cut-in);
}

.shot a:focus-visible {
  outline-color: var(--ink);
  outline-offset: 2px;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--cut-in);
}

.shot p {
  margin: 0;
  padding: 10px 8px 6px;
  font-size: .98rem;
  line-height: 1.4;
}

@media (max-width: 699.98px) {
  /* In the sideways row the rise effect would follow the wrong scroller, so the pictures just stand there. */
  .shot.rise {
    animation: none;
  }
}

@media (min-width: 700px) {
  .shots__scroller {
    overflow: visible;
    margin-top: 38px;
    padding-inline: var(--gutter);
  }

  .shots__grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    width: auto;
    max-width: var(--wide);
    margin-inline: auto;
    padding: 0;
  }

  /* Nine pictures in two columns: the first one takes a whole row, so no picture is left alone at the end. */
  .shot:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 1100px) {
  .shots__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }

  .shot:first-child {
    grid-column: auto;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
  margin-inline: auto;
}

.faq details {
  margin-top: 12px;
  background: var(--paper-hi);
  border-radius: var(--cut);
  box-shadow: 0 2px 0 var(--paper-edge);
}

.faq h2 + details {
  margin-top: 26px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 18px;
  font: 800 1.15rem/1.2 var(--title);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--ink-soft);
}

/* ---------- Trailer ---------- */

.film > h2 {
  text-align: center;
}

.film__frame {
  position: relative;
  max-width: 960px;
  margin: 26px auto 0;
  padding: 6px;
  background: var(--paper-hi);
  border-radius: var(--cut);
  box-shadow: var(--shadow-felt);
}

.film__frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--cut-in);
  background: var(--ink);
}

.film__frame video:focus-visible {
  outline-color: var(--ink);
  outline-offset: -3px;
}

.film__play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  min-height: 56px;
  padding: 14px 28px;
  border: 0;
  border-radius: 15px 18px 14px 19px / 18px 14px 19px 15px;
  background: var(--red-deep);
  color: var(--paper-hi);
  font: 800 1.25rem/1 var(--title);
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--red-edge), 0 14px 24px -10px rgba(0, 0, 0, .7);
  cursor: pointer;
}

.film__play:focus-visible {
  outline-color: var(--ink);
}

/* ---------- Wishlist ---------- */

.wish {
  text-align: center;
}

.wish__lead {
  margin-block: 14px 0;
  color: var(--ink-soft);
}

.wish .steam {
  display: none;
}

.wish__cta {
  margin-block: 26px 0;
}

@media (min-width: 700px) {
  .wish .steam {
    display: flex;
    justify-content: center;
    margin-top: 28px;
  }
}

/* ---------- Follow ---------- */

.follow > * {
  max-width: var(--wide);
  margin-inline: auto;
}

.profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.profiles:empty {
  display: none;
}

.steam iframe {
  display: block;
  width: 646px;
  height: 190px;
  border: 0;
}

.follow__cta {
  margin-block: 26px 0;
}

.follow__note {
  margin-block: 22px 0;
  color: #DDE6CF;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-block: 14px 0;
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 800 1.2rem/1.2 var(--title);
  overflow-wrap: anywhere;
}

.copy {
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid currentColor;
  border-radius: 14px 16px 13px 15px / 15px 13px 16px 14px;
  background: transparent;
  color: inherit;
  font: 800 1rem/1 var(--title);
  cursor: pointer;
}

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

.foot {
  padding: 26px var(--gutter) 32px;
  background: var(--ink);
  color: var(--paper);
  font-size: .95rem;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Bar with the main button (phones, after the first screen) ---------- */

.stick {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--felt-deep) var(--grain-dark);
  box-shadow: 0 -8px 20px -10px rgba(0, 0, 0, .55);
  translate: 0 110%;
  visibility: hidden;
}

.stick .btn {
  flex: 1;
  min-height: 50px;
}

.stick--on {
  translate: 0 0;
  visibility: visible;
  transition: translate .25s ease-out;
}

@supports (animation-timeline: view()) {
  body {
    timeline-scope: --hero;
  }

  .stick {
    animation: stick-in linear both;
    animation-timeline: --hero;
    animation-range: exit 55% exit 100%;
  }

  @keyframes stick-in {
    from {
      translate: 0 110%;
      visibility: hidden;
    }

    to {
      translate: 0 0;
      visibility: visible;
    }
  }

  /* Less motion: the bar appears in place instead of sliding in. */
  @media (prefers-reduced-motion: reduce) {
    .stick {
      translate: 0 0;
      animation-name: stick-show;
      animation-range: exit 90% exit 100%;
    }

    @keyframes stick-show {
      from {
        visibility: hidden;
      }

      to {
        visibility: visible;
      }
    }
  }
}

@media (max-width: 859px) {
  .home .foot {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 860px) {
  .stick {
    display: none;
  }
}

/* ---------- Press kit and privacy pages ---------- */

.page {
  max-width: 980px;
  margin-inline: auto;
  padding: 12px var(--gutter) 88px;
}

.page h1 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
  line-height: 1.05;
}

.page h2 {
  margin-top: 52px;
  font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem);
}

.page h3 {
  margin: 26px 0 0;
  font-size: 1.2rem;
}

.prose {
  font: 400 1.0625rem/1.65 var(--plain);
}

.prose p,
.prose ul {
  margin: 14px 0 0;
  max-width: 44rem;
}

.prose li + li {
  margin-top: 6px;
}

.page__lead {
  margin: 16px 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.facts {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 6px 20px;
  background: var(--paper-hi);
  border-radius: var(--cut);
  box-shadow: var(--shadow-cut);
}

.facts > div {
  display: grid;
  gap: 2px 18px;
  padding: 12px 0;
  border-bottom: 2px dotted var(--paper-edge);
}

.facts > div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--ink-soft);
  font-size: .95rem;
}

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

.facts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .facts > div {
    grid-template-columns: 11rem 1fr;
  }
}

.copyblock {
  margin: 14px 0 0;
  padding: 18px 20px;
  background: var(--paper-hi);
  border-radius: var(--cut);
  box-shadow: 0 2px 0 var(--paper-edge);
}

.copyblock p:first-child {
  margin-top: 0;
}

.kit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.kit-grid {
  display: grid;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.kit-grid a {
  display: block;
  padding: 6px;
  background: var(--paper-hi);
  border-radius: var(--cut);
  box-shadow: var(--shadow-cut);
  text-decoration: none;
}

.kit-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--cut-in);
}

.kit-grid span {
  display: block;
  padding: 10px 8px 6px;
  font-size: .95rem;
}

@media (min-width: 620px) {
  .kit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
}

.logos {
  display: grid;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.logos a {
  display: grid;
  gap: 10px;
  padding: 22px 20px 14px;
  border-radius: var(--cut);
  box-shadow: var(--shadow-cut);
  background: var(--paper-hi);
  font-size: .95rem;
  text-decoration: none;
}

.logos .logos--dark {
  background: var(--felt) var(--grain-dark);
  color: var(--paper-hi);
}

.logos img {
  width: min(100%, 300px);
  margin-inline: auto;
}

@media (min-width: 620px) {
  .logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Motion ---------- */

@view-transition {
  navigation: auto;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    @keyframes rise {
      from {
        opacity: .2;
        translate: 0 28px;
      }

      to {
        opacity: 1;
        translate: 0 0;
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  @view-transition {
    navigation: none;
  }

  .btn,
  .pupil,
  .stick--on,
  .hero__art .hero__clip {
    transition: none;
  }
}
