/* ==========================================================================
   RAGEQUIT RATINGS — ragequitratings.com
   Visual system: monochrome, architectural, light register.
   Ink on paper; black surfaces act as prosceniums that interrupt the page.
   No chromatic accent by conviction. No shadows — elevation is surface only.
   ========================================================================== */

:root {
  /* Surfaces & ink */
  --ink: #000000;
  --paper: #ffffff;
  --bone: #f0f0f0;
  --ash: #8f8f8f;
  --charcoal: #1f1f1f;
  --graphite: #333333;

  /* Rules (hairlines) */
  --rule: #d7d7d7;
  --rule-strong: #000000;
  --rule-dark: #333333;

  /* Type */
  --font-inter: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-caption: 10px;
  --text-mono: 12px;
  --text-body: 15px;
  --text-body-lg: 18px;
  --text-subheading: 22px;
  --text-heading: 32px;
  --text-display: 36px;
  --text-hero: clamp(38px, 6.2vw, 68px);

  --tracking-display: -0.03em;
  --tracking-heading: -0.02em;
  --tracking-subheading: -0.01em;
  --tracking-mono: 0.02em;
  --tracking-caption: 0.04em;

  /* Spacing scale (base 4) */
  --s-4: 4px;   --s-8: 8px;   --s-12: 12px; --s-16: 16px;
  --s-20: 20px; --s-24: 24px; --s-40: 40px; --s-56: 56px;
  --s-64: 64px; --s-72: 72px; --s-80: 80px; --s-96: 96px; --s-128: 128px;

  /* Radii — 8 / 32 / 40 / 56 / 200 only */
  --r-sm: 8px;
  --r-card: 32px;
  --r-icon: 40px;
  --r-pill: 56px;
  --r-full: 200px;

  /* Layout */
  --page: 1200px;
  --gutter: 24px;
  --section-gap: 96px;
  --header-h: 64px;
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; }
}

/* --------------------------------------------------------------- reset -- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-inter);
  font-size: var(--text-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

.is-dark :focus-visible { outline-color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-16); top: -100px;
  z-index: 60; background: var(--ink); color: var(--paper);
  padding: var(--s-12) var(--s-24); border-radius: var(--r-pill);
  font-size: var(--text-body); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-12); }

/* ----------------------------------------------------------- primitives -- */

.container {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--ash);
  margin: 0;
}

.label--ink { color: var(--ink); }

.caption {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--ash);
}

.h-display {
  font-size: var(--text-display);
  line-height: 1.22;
  letter-spacing: var(--tracking-display);
  font-weight: 400;
}

.h-heading {
  font-size: var(--text-heading);
  line-height: 1.36;
  letter-spacing: var(--tracking-heading);
  font-weight: 400;
}

.lede {
  font-size: var(--text-body-lg);
  line-height: 1.55;
  color: var(--charcoal);
}

.tick {
  display: inline-block;
  width: 8px; height: 1px;
  background: var(--rule-dark);
  vertical-align: middle;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  border-radius: var(--r-pill);
  padding: var(--s-12) var(--s-24);
  font-size: var(--text-body);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .18s ease;
}
.btn:hover { opacity: .7; }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); font-weight: 500; }
.btn--reverse { background: var(--paper); color: var(--ink); }
.btn--ghost-reverse { background: transparent; color: var(--paper); border-color: var(--paper); font-weight: 500; }
.btn--sm { padding: var(--s-8) var(--s-20); font-size: 14px; }

.btn__arrow { width: 14px; height: 14px; flex: none; }

/* ---------------------------------------------------------------- header -- */

.header {
  position: sticky;
  top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-24);
}

.logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.logo__soft { color: var(--ash); }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-20);
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .18s ease;
}
.nav__link:hover { opacity: .6; }

.nav__item--divided {
  display: flex;
  align-items: center;
  gap: var(--s-20);
}
.nav__item--divided::before {
  content: "";
  width: 8px; height: 1px;
  background: var(--rule-dark);
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  padding: var(--s-8) var(--s-12);
  align-items: center;
  gap: var(--s-8);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  cursor: pointer;
}
.burger__bars { width: 14px; height: 10px; display: block; }

@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: var(--s-24) var(--gutter) var(--s-40);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: var(--s-16); }
  .nav__link { font-size: var(--text-body-lg); }
  .nav__item--divided { flex-direction: column; align-items: flex-start; gap: var(--s-16); }
  .nav__item--divided::before { width: 40px; }
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-56) var(--s-96);
  border-bottom: 1px solid var(--rule);
}

/* geometric construction: column hairlines behind the grid */
.hero__grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: none;
}
.hero__grid-lines span {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--rule);
}

@media (min-width: 1024px) {
  .hero__grid-lines { display: block; }
  .hero__grid-lines span:nth-child(1) { left: 25%; }
  .hero__grid-lines span:nth-child(2) { left: 50%; }
  .hero__grid-lines span:nth-child(3) { left: 75%; }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-40);
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
    gap: var(--s-24);
  }
}

.hero__copy { display: contents; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-12);
}

.hero__title {
  font-size: var(--text-hero);
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
  font-weight: 400;
  margin-block: var(--s-24) 0;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--ash);
}

.hero__sub {
  font-size: var(--text-body-lg);
  line-height: 1.5;
  color: var(--charcoal);
  margin-top: var(--s-24);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-12);
  margin-top: var(--s-40);
}

.hero__trust {
  display: flex;
  align-items: flex-start;
  gap: var(--s-12);
  margin-top: var(--s-40);
  padding-top: var(--s-16);
  border-top: 1px solid var(--rule);
  max-width: 52ch;
}
.hero__trust svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.hero__trust p {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  line-height: 1.5;
  letter-spacing: var(--tracking-mono);
  color: var(--charcoal);
}

@media (min-width: 1024px) {
  .hero__meta    { grid-column: 1 / 8; grid-row: 1; }
  .hero__title   { grid-column: 1 / 8; grid-row: 2; }
  .hero__sub     { grid-column: 1 / 7; grid-row: 3; }
  .hero__actions { grid-column: 1 / 7; grid-row: 4; }
  .hero__trust   { grid-column: 1 / 7; grid-row: 5; }
  .hero__stage   { grid-column: 8 / 13; grid-row: 1 / 6; margin-top: var(--s-72); }
}

/* the black stage — the reveal that interrupts the paper */
.hero__stage {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-card);
  padding: var(--s-24);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero__stage { padding: var(--s-40) var(--s-24); }
}

.stage__rings {
  position: absolute;
  right: -80px; top: -60px;
  width: 320px; height: 320px;
  opacity: .5;
  pointer-events: none;
}
.stage__rings circle { fill: none; stroke: var(--graphite); stroke-width: 1; }

.stage__head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-12);
  margin-bottom: var(--s-24);
}
.stage__head .caption { color: var(--ash); }

.stage__icons {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-12);
}

.stage__icon {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  background: var(--charcoal);
}

/* broken rhythm: icons sit off the baseline */
.stage__item:nth-child(2)  { transform: translateY(20px); }
.stage__item:nth-child(4)  { transform: translateY(14px); }
.stage__item:nth-child(5)  { transform: translateY(-6px); }
.stage__item:nth-child(7)  { transform: translateY(10px); }

.stage__foot {
  position: relative;
  margin-top: var(--s-40);
  padding-top: var(--s-16);
  border-top: 1px solid var(--graphite);
  display: flex;
  justify-content: space-between;
  gap: var(--s-12);
}
.stage__foot .caption { color: var(--ash); }

/* --------------------------------------------------------------- section -- */

.section { padding-block: var(--section-gap); }
.section--tight { padding-block: var(--s-72); }
.section--bone { background: var(--bone); }
.section--ink { background: var(--ink); color: var(--paper); }

.section__head {
  display: grid;
  gap: var(--s-16);
  margin-bottom: var(--s-56);
}

@media (min-width: 900px) {
  .section__head--split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: var(--s-40);
  }
}

.section__title {
  font-size: var(--text-heading);
  line-height: 1.24;
  letter-spacing: var(--tracking-heading);
  font-weight: 400;
  max-width: 20ch;
  text-wrap: balance;
}

.section__note {
  font-size: var(--text-body);
  color: var(--charcoal);
  max-width: 54ch;
}
.section--ink .section__note { color: var(--bone); }

/* ----------------------------------------------------------------- games -- */

.games__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-24);
}

@media (min-width: 700px) {
  .games__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-40) var(--s-24); }
}

@media (min-width: 1000px) {
  .games__grid { grid-template-columns: repeat(3, 1fr); }
  /* deliberately broken rhythm — cards do not share a baseline */
  .game--2 { transform: translateY(40px); }
  .game--5 { transform: translateY(40px); }
  .game--3 { transform: translateY(16px); }
  .game--6 { transform: translateY(16px); }
  .games__grid { padding-bottom: 40px; }
}

.game {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--paper);
}

.game__shot {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
}
.game__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.game--tall .game__shot { aspect-ratio: 1 / 1; }

.game__body {
  padding: var(--s-24);
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  flex: 1;
}

.game__id {
  display: flex;
  align-items: center;
  gap: var(--s-12);
}

.game__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  flex: none;
}

.game__name {
  font-size: var(--text-subheading);
  line-height: 1.2;
  letter-spacing: var(--tracking-subheading);
  font-weight: 600;
}

.game__dev {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--ash);
  margin-top: var(--s-4);
}

.game__desc { color: var(--charcoal); }

.game__log {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-16);
  display: grid;
  gap: var(--s-8);
  margin-top: auto;
}

.game__log-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-12);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
}
.game__log-key { color: var(--ash); text-transform: uppercase; }
.game__log-val { text-align: right; }

.game__cta { margin-top: var(--s-8); align-self: flex-start; }

/* Rating ---------------------------------------------------------------- */

.rating {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.stars {
  position: relative;
  display: inline-block;
  height: 14px;
  line-height: 0;
}
.stars__row {
  display: flex;
  gap: 2px;
  height: 14px;
}
.stars__row svg { width: 14px; height: 14px; }
.stars__row--empty svg { color: var(--rule); }
.stars__row--full {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--ink);
}
.section--ink .stars__row--empty svg { color: var(--graphite); }
.section--ink .stars__row--full { color: var(--paper); }
.game--feature .stars__row--empty svg { color: var(--graphite); }
.game--feature .stars__row--full { color: var(--paper); }

.rating__num {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 600;
  letter-spacing: var(--tracking-mono);
}
.rating__src {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--ash);
}

/* Featured (7th) card — the black proscenium in the grid ------------------ */

.game--feature {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  border-radius: var(--r-card);
  display: grid;
  grid-template-columns: 1fr;
  margin-top: var(--s-40);
  overflow: hidden;
}

@media (min-width: 1000px) {
  .game--feature {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    margin-top: var(--s-80);
  }
}

.game__stage-shot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--charcoal);
  border-bottom: 1px solid var(--graphite);
}
.game__stage-shot img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1000px) {
  .game__stage-shot { border-bottom: 0; border-right: 1px solid var(--graphite); height: 100%; aspect-ratio: auto; }
}

.game--feature .game__body { padding: var(--s-24); }
@media (min-width: 1000px) {
  .game--feature .game__body { padding: var(--s-40); }
}
.game--feature .game__desc { color: var(--bone); }
.game--feature .game__log { border-top-color: var(--graphite); }
.game--feature .game__icon { background: var(--charcoal); }

/* ---------------------------------------------------------------- method -- */

.method__layout {
  display: grid;
  gap: var(--s-40);
}

@media (min-width: 900px) {
  .method__layout {
    grid-template-columns: 260px 1fr;
    gap: var(--s-80);
  }
}

.method__aside { align-self: start; }
@media (min-width: 900px) {
  .method__aside { position: sticky; top: calc(var(--header-h) + var(--s-40)); }
}

.method__aside-note {
  margin-top: var(--s-16);
  font-size: var(--text-body);
  color: var(--charcoal);
}

.steps { display: grid; }

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-16);
  padding-block: var(--s-24);
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 700px) {
  .step { grid-template-columns: 72px 1fr; gap: var(--s-24); padding-block: var(--s-40); }
}

.step__num {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 600;
  letter-spacing: var(--tracking-mono);
  color: var(--ash);
  padding-top: 4px;
}

.step__title {
  font-size: var(--text-subheading);
  line-height: 1.3;
  letter-spacing: var(--tracking-subheading);
  font-weight: 600;
  margin-bottom: var(--s-8);
}
.step__text { color: var(--charcoal); max-width: 62ch; }

.method__caveat {
  margin-top: var(--s-40);
  border: 1px solid var(--ink);
  border-radius: var(--r-card);
  padding: var(--s-24);
}
.method__caveat p { margin-top: var(--s-8); color: var(--charcoal); max-width: 60ch; }

/* ---------------------------------------------------------------- frames -- */

.frames__sheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-16);
}

@media (min-width: 760px) {
  .frames__sheet {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--s-24);
  }
}

.frame { display: flex; flex-direction: column; gap: var(--s-8); }

.frame__box {
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--paper);
  border: 1px solid var(--rule);
  aspect-ratio: 3 / 4;
}
.frame__box img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.frame--wide .frame__box { aspect-ratio: 16 / 9; }

@media (min-width: 760px) {
  .frame--a { grid-column: span 2; }
  .frame--b { grid-column: span 2; margin-top: var(--s-40); }
  .frame--c { grid-column: span 2; }
  .frame--d { grid-column: span 3; }
  .frame--e { grid-column: span 3; margin-top: var(--s-24); }
}

.frame__cap {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--ash);
  display: flex;
  justify-content: space-between;
  gap: var(--s-8);
}

.frames__note { margin-top: var(--s-40); }

/* ----------------------------------------------------------------- money -- */

.money__layout {
  display: grid;
  gap: var(--s-56);
}
@media (min-width: 900px) {
  .money__layout { grid-template-columns: 1fr 1fr; gap: var(--s-80); align-items: start; }
}

.money__title {
  font-size: var(--text-heading);
  line-height: 1.24;
  letter-spacing: var(--tracking-heading);
  font-weight: 400;
  margin-block: var(--s-16) var(--s-24);
  max-width: 16ch;
  text-wrap: balance;
}
.money__intro { color: var(--bone); max-width: 46ch; }

.money__list { display: grid; }

.money__item {
  padding-block: var(--s-24);
  border-top: 1px solid var(--graphite);
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--s-16);
}
.money__item:last-of-type { border-bottom: 1px solid var(--graphite); }
.money__item svg { width: 18px; height: 18px; margin-top: 3px; }
.money__item h3 {
  font-size: var(--text-body-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-subheading);
  margin-bottom: var(--s-4);
}
.money__item p { color: var(--ash); font-size: var(--text-body); }

.money__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  margin-top: var(--s-24);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.money__link:hover { opacity: .7; }

/* --------------------------------------------------------------- reviews -- */

.reviews__grid {
  display: grid;
  gap: var(--s-40);
}
@media (min-width: 860px) {
  .reviews__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-40) var(--s-24); }
  .reviews__item--2 { padding-top: var(--s-40); }
}

.review {
  border-top: 1px solid var(--ink);
  padding-top: var(--s-20);
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
}

.review__quote {
  font-size: var(--text-body-lg);
  line-height: 1.5;
  letter-spacing: var(--tracking-subheading);
}
.review__quote--short { font-size: var(--text-subheading); }

.review__by {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  margin-top: auto;
  padding-top: var(--s-8);
}

.avatar {
  width: 40px; height: 40px;
  border-radius: var(--r-icon);
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  flex: none;
}

.review__name { font-size: 14px; font-weight: 600; }
.review__role {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--ash);
}

/* ------------------------------------------------------------- subscribe -- */

.subscribe__layout {
  display: grid;
  gap: var(--s-40);
}
@media (min-width: 900px) {
  .subscribe__layout { grid-template-columns: 1fr 1.1fr; gap: var(--s-80); align-items: start; }
}

.subscribe__title {
  font-size: var(--text-heading);
  line-height: 1.24;
  letter-spacing: var(--tracking-heading);
  font-weight: 400;
  margin-block: var(--s-16) var(--s-16);
  max-width: 18ch;
  text-wrap: balance;
}
.subscribe__note { color: var(--charcoal); max-width: 44ch; }

.form { display: grid; gap: var(--s-20); }

.field { display: grid; gap: var(--s-8); }

.field__label {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--charcoal);
}
.field__opt { color: var(--ash); text-transform: none; }

.field__input {
  font-family: var(--font-inter);
  font-size: var(--text-body);
  padding: var(--s-12) var(--s-16);
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.field__input::placeholder { color: var(--ash); }

.field__row { display: grid; gap: var(--s-20); }
@media (min-width: 620px) { .field__row { grid-template-columns: 1fr 1fr; } }

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--s-12);
  align-items: start;
}
.consent input {
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: #000000;
}
.consent__text { font-size: 14px; color: var(--charcoal); line-height: 1.45; }
.consent__text a { text-underline-offset: 3px; }

.form__submit { justify-self: start; }

.form__msg {
  display: none;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  padding: var(--s-16);
  background: var(--paper);
  font-size: 14px;
}
.form__msg.is-visible { display: block; }
.form__msg strong { display: block; margin-bottom: var(--s-4); }

.form__error {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  display: none;
}
.form__error.is-visible { display: block; }

/* ------------------------------------------------------------------- faq -- */

.faq__layout { display: grid; gap: var(--s-40); }
@media (min-width: 900px) {
  .faq__layout { grid-template-columns: 300px 1fr; gap: var(--s-80); }
}

.faq__list { display: grid; }

.faq__item { border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }

.faq__q {
  width: 100%;
  background: none;
  border: 0;
  padding: var(--s-24) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-24);
  text-align: left;
  cursor: pointer;
  font-size: var(--text-body-lg);
  font-weight: 500;
  letter-spacing: var(--tracking-subheading);
}
.faq__q:hover { opacity: .65; }

.faq__sign { position: relative; width: 14px; height: 14px; flex: none; }
.faq__sign::before, .faq__sign::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.faq__sign::before { left: 0; top: 6px; width: 14px; height: 1px; }
.faq__sign::after { left: 6px; top: 0; width: 1px; height: 14px; }
.faq__item.is-open .faq__sign::after { transform: scaleY(0); opacity: 0; }

.faq__a {
  display: none;
  padding-bottom: var(--s-24);
  color: var(--charcoal);
  max-width: 66ch;
}
.faq__item.is-open .faq__a { display: block; }
.faq__a a { text-underline-offset: 3px; }

/* ------------------------------------------------------------------ desk -- */

.desk__layout { display: grid; gap: var(--s-56); }
@media (min-width: 940px) {
  .desk__layout { grid-template-columns: 1.2fr 1fr; gap: var(--s-80); align-items: start; }
}

.desk__story { display: grid; gap: var(--s-20); }
.desk__story p { color: var(--charcoal); max-width: 58ch; }
.desk__story p:first-of-type {
  font-size: var(--text-body-lg);
  color: var(--ink);
}

.desk__people { display: grid; gap: var(--s-24); }

.person {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-16);
  padding-top: var(--s-20);
  border-top: 1px solid var(--rule);
}
.person__name { font-size: var(--text-body); font-weight: 600; }
.person__role {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--ash);
  margin-block: 2px var(--s-8);
}
.person__note { font-size: 14px; color: var(--charcoal); }

/* ---------------------------------------------------------------- footer -- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--s-72) var(--s-40);
}

.footer__top {
  display: grid;
  gap: var(--s-40);
  padding-bottom: var(--s-56);
  border-bottom: 1px solid var(--graphite);
}
@media (min-width: 800px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-40); }
}

.footer__brand .logo { color: var(--paper); }
.footer__blurb {
  margin-top: var(--s-16);
  color: var(--ash);
  font-size: 14px;
  max-width: 34ch;
}

.footer__col h2 {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--s-16);
}

.footer__links { display: grid; gap: var(--s-8); }
.footer__links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--paper);
}
.footer__links a:hover { opacity: .65; text-decoration: underline; text-underline-offset: 3px; }

.footer__mail {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
  color: var(--paper);
  text-underline-offset: 4px;
}

.footer__bottom {
  padding-top: var(--s-24);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-12);
}
.footer__bottom p {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--ash);
}

/* ------------------------------------------------------- cookie + totop -- */

.cookie {
  position: fixed;
  left: var(--s-16); right: var(--s-16); bottom: var(--s-16);
  z-index: 55;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-card);
  padding: var(--s-24);
  display: none;
  gap: var(--s-24);
  max-width: 720px;
  margin-inline: auto;
}
.cookie.is-visible { display: grid; }
@media (min-width: 720px) {
  .cookie.is-visible { grid-template-columns: 1fr auto; align-items: center; }
}
.cookie__text { font-size: 14px; color: var(--bone); }
.cookie__text a { color: var(--paper); text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: var(--s-8); flex-wrap: wrap; }

.totop {
  position: fixed;
  right: var(--s-16); bottom: var(--s-16);
  z-index: 40;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.totop.is-visible { opacity: 1; visibility: visible; }
.totop:hover { opacity: .7; }
.totop svg { width: 16px; height: 16px; }

@media (max-width: 719px) {
  .cookie.is-visible ~ .totop { bottom: 200px; }
}

/* ------------------------------------------------------------ legal page -- */

.legal { padding-block: var(--s-72) var(--section-gap); }

.legal__head {
  padding-bottom: var(--s-40);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-56);
}
.legal__title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  font-weight: 400;
  margin-block: var(--s-16);
}
.legal__meta {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
  color: var(--ash);
  text-transform: uppercase;
}
.legal__back { margin-top: var(--s-24); }

.legal__body { max-width: 68ch; display: grid; gap: var(--s-40); }
.legal__body h2 {
  font-size: var(--text-subheading);
  line-height: 1.3;
  letter-spacing: var(--tracking-subheading);
  font-weight: 600;
  margin-bottom: var(--s-12);
}
.legal__body h3 {
  font-size: var(--text-body-lg);
  font-weight: 600;
  margin-block: var(--s-16) var(--s-8);
}
.legal__body p { color: var(--charcoal); margin-bottom: var(--s-12); }
.legal__body p:last-child { margin-bottom: 0; }
.legal__body a { text-underline-offset: 3px; }
.legal__body ul { display: grid; gap: var(--s-8); margin-top: var(--s-12); }
.legal__body li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: var(--s-12);
  color: var(--charcoal);
}
.legal__body li::before {
  content: "";
  width: 8px; height: 1px;
  background: var(--rule-dark);
  margin-top: 11px;
}

.legal__table {
  border-top: 1px solid var(--rule);
  display: grid;
}
.legal__row {
  display: grid;
  gap: var(--s-4);
  padding-block: var(--s-16);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 700px) {
  .legal__row { grid-template-columns: 200px 1fr; gap: var(--s-24); }
}
.legal__row dt {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
}
.legal__row dd { margin: 0; color: var(--charcoal); font-size: 14px; }

/* ------------------------------------------------------------------- 404 -- */

.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--s-96);
}
.notfound__code {
  font-family: var(--font-mono);
  font-size: clamp(64px, 16vw, 160px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.notfound__title {
  font-size: var(--text-heading);
  letter-spacing: var(--tracking-heading);
  font-weight: 400;
  margin-block: var(--s-24) var(--s-16);
}
.notfound__text { color: var(--charcoal); max-width: 44ch; margin-inline: auto; }
.notfound__actions { margin-top: var(--s-40); display: flex; gap: var(--s-12); justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------- motion -- */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .game--2, .game--3, .game--5, .game--6,
  .stage__item:nth-child(2), .stage__item:nth-child(4),
  .stage__item:nth-child(5), .stage__item:nth-child(7) { transform: none; }
}
