/* Typing Warrior website */

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

:root {
  color-scheme: dark;

  --bg: #0c0806;
  --surface: rgba(255, 246, 230, 0.055);
  --surface-strong: rgba(255, 246, 230, 0.1);
  --well: rgba(0, 0, 0, 0.3);
  --hairline: rgba(255, 246, 230, 0.12);

  --text: #fff6e6;
  --text-2: rgba(255, 246, 230, 0.72);
  --text-3: rgba(255, 246, 230, 0.54);

  --gold: #f2c879;
  --title: #ffd23f;
  --teal: #6fe3ea;
  --teal-deep: #3fc1c9;
  --orange: #e8743b;
  --purple: #6b3fa0;
  --purple-line: #b79be0;
  --key: #f6ebd6;
  --ink: #2a1e16;
  --red: #d2382a;

  --display: "TW Display", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --gutter: 1.25rem;
  --radius: 1.75rem;
  --nav-h: 3.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--teal);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 30;
  background: var(--text);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Header: a translucent bar that content scrolls under ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: rgba(12, 8, 6, 0.62);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto 0;
  height: 0.9rem;
  background: linear-gradient(180deg, rgba(12, 8, 6, 0.4), rgba(12, 8, 6, 0));
  pointer-events: none;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.0625rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand img {
  width: 1.75rem;
  height: 1.75rem;
}

.brand span b {
  font-weight: 400;
  color: var(--title);
}

.nav {
  display: flex;
  gap: 0.15rem;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.005em;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: color 150ms ease, background-color 150ms ease, transform 100ms ease-out;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-strong);
}

.nav a:active {
  transform: scale(0.96);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-h) + 4.5rem) 0 5rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/hero-desert-town.webp") center top / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90rem 44rem at 50% 16%, rgba(12, 8, 6, 0.42), rgba(12, 8, 6, 0.84) 72%),
    linear-gradient(180deg, rgba(12, 8, 6, 0.45) 0%, rgba(12, 8, 6, 0.3) 35%, var(--bg) 96%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.logo-keys {
  display: flex;
  gap: clamp(0.25rem, 0.7vw, 0.45rem);
}

.logo-keys span {
  width: clamp(2.25rem, 5vw, 3.25rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 24%;
  background: var(--teal);
  color: #0e3a3d;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.1vw, 2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 0.12em 0 #120a06, 0 0.3em 0.7em rgba(0, 0, 0, 0.45);
}

.logo-word {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.5rem, 9.5vw, 6.25rem);
  line-height: 0.95;
  color: var(--title);
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.09em #1a0d05;
  paint-order: stroke fill;
  text-shadow: 0 0.06em 0 #1a0d05;
}

.headline {
  margin-top: 1.75rem;
  font-size: clamp(2rem, 5.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.pitch {
  margin-top: 1.1rem;
  max-width: 35em;
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  line-height: 1.45;
  color: var(--text-2);
}

.cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.cta-note {
  flex-basis: 100%;
  font-size: 0.875rem;
  color: var(--text-3);
}

/* Buttons respond on press, not on release */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.6rem 1.75rem;
  border-radius: 999px;
  background: var(--gold);
  color: #1e1410;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color 150ms ease, transform 100ms ease-out;
}

a.btn:hover {
  background: #ffdc96;
  color: #1e1410;
}

a.btn:active {
  transform: scale(0.97);
}

.btn.secondary {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

a.btn.secondary:hover {
  background: rgba(255, 246, 230, 0.16);
  color: var(--text);
}

/* A status capsule, not a button: it is not clickable, so it does not look like one */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.5rem 1.5rem 0.5rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 246, 230, 0.1);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 246, 230, 0.22), inset 0 0 0 1px rgba(255, 246, 230, 0.1);
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
}

.soon svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  color: var(--gold);
}

.soon span {
  display: block;
}

.soon small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  margin: 0;
  width: 100%;
  padding: 0.45rem;
  border-radius: 2.3rem;
  background: #050302;
  box-shadow:
    0 0 0 1px rgba(255, 246, 230, 0.18),
    0 2.5rem 5rem rgba(0, 0, 0, 0.6);
}

.phone img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 1.85rem;
  background: #17100b;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  margin: 3.75rem auto 0;
  width: clamp(14.5rem, 27vw, 19rem);
}

.hero-stage .side {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: -1;
  filter: brightness(0.55) saturate(0.9);
  box-shadow: 0 0 0 1px rgba(255, 246, 230, 0.1), 0 2rem 4rem rgba(0, 0, 0, 0.5);
}

.hero-stage .side.left {
  transform: translateX(-80%) scale(0.86);
}

.hero-stage .side.right {
  transform: translateX(80%) scale(0.86);
}

/* ---------- Sections ---------- */

.section {
  padding: 6.5rem 0;
  scroll-margin-top: var(--nav-h);
}

.section.tight {
  padding-top: 1rem;
}

.section-head {
  max-width: 56rem;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  font-size: clamp(2.125rem, 5.4vw, 3.5rem);
}

.section-head p:not(.eyebrow) {
  margin: 1.1rem auto 0;
  max-width: 36em;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.45;
  color: var(--text-2);
}

/* ---------- How to play ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
}

.step-demo {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
  padding: 0.75rem 0.5rem;
  border-radius: calc(var(--radius) - 0.6rem);
  background: var(--well);
}

.tile {
  width: 2.4rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--text);
  color: #3b2a1e;
  border: 2px solid #c9a46a;
}

.tile.done {
  background: var(--teal-deep);
  border-color: #9deff3;
  color: #0e3a3d;
}

.tile.cur {
  border: 3px solid var(--orange);
}

.tile.cap {
  background: var(--purple);
  border-color: var(--purple-line);
  color: #fff;
}

.tile.wrong {
  background: #ffd0c8;
  border: 3px solid var(--red);
  color: #9a1b10;
}

.chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.8rem;
  background: #3b2a1e;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.chip small {
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

.chip.teal {
  border-color: var(--teal);
  color: var(--teal);
}

.step h3,
.step p {
  padding: 0 0.5rem;
}

.step h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.step h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

.step p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ---------- Screenshots: native scrolling gives momentum, snap and edge resistance ---------- */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12.5rem, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.25rem var(--gutter) 1.5rem;
  margin: 0 calc(var(--gutter) * -1);
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.shots::-webkit-scrollbar {
  display: none;
}

.shot {
  margin: 0;
  scroll-snap-align: start;
}

.shot .phone {
  padding: 0.35rem;
  border-radius: 1.8rem;
  box-shadow: 0 0 0 1px rgba(255, 246, 230, 0.16), 0 1.25rem 2.5rem rgba(0, 0, 0, 0.5);
}

.shot .phone img {
  border-radius: 1.45rem;
}

.shot figcaption {
  margin-top: 1rem;
  padding: 0 0.25rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-2);
  text-wrap: balance;
}

/* ---------- Places ---------- */

.places {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.place {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #17100b;
}

.place img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.place span {
  position: absolute;
  inset: auto 0.5rem 0.5rem 0.5rem;
  padding: 0.6rem 0.9rem 0.7rem;
  border-radius: calc(var(--radius) - 0.5rem);
  background: rgba(12, 8, 6, 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 246, 230, 0.14);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.place span small {
  display: block;
  margin-bottom: 0.1rem;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Monsters ---------- */

.roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.roster.creeps {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.roster.bosses {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.roster li {
  padding: 1.1rem 0.6rem 0.95rem;
  border-radius: 1.35rem;
  background: var(--surface);
  text-align: center;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25;
  color: var(--text);
}

.roster img {
  width: 100%;
  height: 6rem;
  object-fit: contain;
  margin-bottom: 0.7rem;
  filter: drop-shadow(0 0.5rem 0.5rem rgba(0, 0, 0, 0.45));
  transition: transform 500ms var(--ease-out);
}

.roster.bosses li {
  padding: 1.75rem 0.75rem 1.4rem;
  border-radius: var(--radius);
  background:
    radial-gradient(110% 70% at 50% 0%, rgba(242, 200, 121, 0.16), rgba(242, 200, 121, 0) 70%),
    var(--surface);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.roster.bosses img {
  height: 11rem;
  margin-bottom: 1rem;
}

.roster small {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.sub-head {
  margin: 3rem 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-3);
}

.sub-head:first-of-type {
  margin-top: 0;
}

/* ---------- Features ---------- */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.features li {
  padding: 1.75rem 1.75rem 1.9rem;
  border-radius: var(--radius);
  background: var(--surface);
}

.stat {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--gold);
  background: linear-gradient(100deg, var(--title) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features h3 {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.features li > p:not(.stat) {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ---------- Closing call ---------- */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 7rem 0 0;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/sandstorm.webp") center / cover no-repeat;
}

.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 8, 6, 0.6) 40%, rgba(12, 8, 6, 0.8) 100%);
}

.closing h2 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  letter-spacing: -0.03em;
}

.closing p {
  margin: 1.1rem auto 0;
  max-width: 30em;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-2);
}

.closing-heroes {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.75rem, 5vw, 3.75rem);
}

.closing-heroes img {
  height: clamp(12rem, 30vw, 19rem);
  width: auto;
  filter: drop-shadow(0 0.75rem 0.9rem rgba(0, 0, 0, 0.5));
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg);
  padding: 1.5rem 0 2.25rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Document pages ---------- */

.page-top {
  position: relative;
  isolation: isolate;
  padding: calc(var(--nav-h) + 5rem) 0 3rem;
  text-align: center;
}

.page-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60rem 22rem at 50% 0%, rgba(232, 116, 59, 0.2), rgba(232, 116, 59, 0) 70%);
}

.page-top h1 {
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  letter-spacing: -0.03em;
}

.page-top p {
  margin: 1rem auto 0;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-2);
}

.doc {
  max-width: calc(44rem + var(--gutter) * 2);
  padding-top: 1.5rem;
  padding-bottom: 6rem;
}

.doc h2 {
  margin: 3rem 0 0.8rem;
  font-size: 1.625rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.doc h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.doc p,
.doc li {
  color: var(--text-2);
}

.doc p + p,
.doc ul + p,
.doc p + ul {
  margin-top: 0.9rem;
}

.doc ul {
  margin: 0;
  padding-left: 1.35rem;
}

.doc li + li {
  margin-top: 0.5rem;
}

.doc li::marker {
  color: var(--gold);
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.card {
  padding: 1.75rem 2rem 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 246, 230, 0.1);
}

.card > h2:first-child {
  margin-top: 0;
}

.contact-line {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 3.4vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.contact-line a {
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

.faq {
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  position: relative;
  padding: 1.15rem 2.75rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--text);
  transition: color 150ms ease;
}

.faq summary:hover {
  color: var(--gold);
}

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

/* A plus that turns into a cross when the answer is open */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.95rem;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 350ms var(--ease-out);
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::before {
  transform: rotate(45deg);
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq details > *:not(summary) {
  margin: 0 0 1.25rem;
  max-width: 38em;
}

.center-page {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
}

.center-page h1 {
  font-size: clamp(3.25rem, 12vw, 7rem);
  letter-spacing: -0.035em;
}

.center-page p {
  margin: 1rem 0 2rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-2);
}

/* ---------- Pointer hover: small, quick, never required ---------- */

@media (hover: hover) {
  .place:hover img {
    transform: scale(1.05);
  }

  .roster li:hover img {
    transform: translateY(-0.25rem) scale(1.04);
  }
}

/* ---------- Motion that follows the scroll position 1:1 ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.75rem);
  }
}

@keyframes fan-left {
  from {
    transform: translateX(-34%) scale(0.8);
  }
}

@keyframes fan-right {
  from {
    transform: translateX(34%) scale(0.8);
  }
}

@keyframes key-in {
  from {
    background: var(--key);
    color: var(--ink);
    transform: translateY(0);
  }
  40% {
    background: var(--teal);
    color: #0e3a3d;
    transform: translateY(0.2rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .logo-keys span {
    animation: key-in 320ms ease-out backwards;
  }

  .logo-keys span:nth-child(1) { animation-delay: 350ms; }
  .logo-keys span:nth-child(2) { animation-delay: 500ms; }
  .logo-keys span:nth-child(3) { animation-delay: 650ms; }
  .logo-keys span:nth-child(4) { animation-delay: 800ms; }
  .logo-keys span:nth-child(5) { animation-delay: 950ms; }
  .logo-keys span:nth-child(6) { animation-delay: 1100ms; }

  @supports (animation-timeline: view()) {
    .section-head,
    .step,
    .shots,
    .place,
    .roster li,
    .features li,
    .closing h2 {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }

    .hero-stage .side.left {
      animation: fan-left linear both;
      animation-timeline: scroll(root);
      animation-range: 0 26rem;
    }

    .hero-stage .side.right {
      animation: fan-right linear both;
      animation-timeline: scroll(root);
      animation-range: 0 26rem;
    }
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 60rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roster.creeps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 47.5rem) {
  .nav a:not(.keep) {
    display: none;
  }

  .hero {
    padding: calc(var(--nav-h) + 3rem) 0 3.5rem;
  }

  .hero-stage {
    margin-top: 3rem;
    width: min(16.5rem, 72vw);
  }

  .hero-stage .side {
    display: none;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section.tight {
    padding-top: 0.5rem;
  }

  .section-head {
    margin-bottom: 2.25rem;
  }

  .shots {
    grid-auto-columns: 64%;
    gap: 1rem;
    scroll-snap-type: x mandatory;
  }

  .shot {
    scroll-snap-align: center;
  }

  .places {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .place span {
    inset: auto 0.35rem 0.35rem 0.35rem;
    padding: 0.5rem 0.7rem 0.55rem;
    font-size: 0.9375rem;
  }

  .roster.creeps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .roster.bosses {
    gap: 0.6rem;
  }

  .roster.bosses li {
    padding: 1rem 0.4rem 0.9rem;
    border-radius: 1.35rem;
    font-size: 0.875rem;
  }

  .roster.bosses img {
    height: 6rem;
    margin-bottom: 0.7rem;
  }

  .roster img {
    height: 4.75rem;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing {
    padding-top: 5rem;
  }

  .closing .btn {
    width: 100%;
  }

  .page-top {
    padding: calc(var(--nav-h) + 3.25rem) 0 2.25rem;
  }

  .card {
    padding: 1.4rem 1.35rem 1.6rem;
  }
}

@media (max-width: 32.5rem) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Accessibility preferences ---------- */

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

  .place img,
  .roster img,
  .faq summary::before,
  .faq summary::after {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .place span {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .soon {
    background: #2b1d14;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-2: #fff6e6;
    --text-3: #e9dccb;
    --surface: #1e140e;
    --surface-strong: #2b1d14;
    --hairline: rgba(255, 246, 230, 0.5);
  }

  .site-header,
  .place span {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header {
    border-bottom: 1px solid var(--hairline);
  }

  .step,
  .roster li,
  .features li,
  .card,
  .soon {
    box-shadow: inset 0 0 0 1px var(--hairline);
  }
}
