:root {
  color-scheme: dark;
  --black: #000000;
  --ink: #f7f7f8;
  --muted: #a6a6b0;
  --line: #292932;
  --raised: #0e0e12;
  --magenta: #ff2e9a;
  --cyan: #2ee6d0;
  --werewolf: #ff3355;
  --truth-dare: #ff4433;
  --battleships: #3a8dff;
  --duels: #9d7bff;
  --acid: #c6ff3d;
  --gold: #ffd45c;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--magenta);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--cyan);
}

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

img,
svg {
  max-width: 100%;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.96);
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav-wrap,
.main-wrap,
.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  color: var(--magenta);
  font-size: 1.45em;
  line-height: 0.8;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  padding: 112px 0 96px;
  max-width: 900px;
}

.eyebrow {
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  font-stretch: condensed;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0 0 22px;
}

h1 {
  font-size: clamp(3.5rem, 10vw, 8rem);
  max-width: 950px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
}

p {
  margin: 0 0 18px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  max-width: 740px;
}

.hero-accent {
  color: var(--magenta);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 2px solid var(--magenta);
  border-radius: 12px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 56px;
  padding: 12px 20px;
  text-decoration: none;
}

.button.primary {
  background: var(--magenta);
  color: var(--black);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  border-color: var(--cyan);
  color: var(--black);
  background: var(--cyan);
}

.section {
  padding: 84px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p {
  color: var(--muted);
  max-width: 680px;
}

.game-grid,
.card-grid,
.facts-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

.game-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card.werewolf {
  border-color: var(--werewolf);
}

.game-card.draw {
  border-color: var(--cyan);
}

.game-card.tod {
  border-color: var(--truth-dare);
}

.game-card.battleships {
  border-color: var(--battleships);
}

.game-card.duels {
  border-color: var(--duels);
}

.game-card .game-number {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.game-card h3 {
  margin-top: 44px;
}

.game-card p,
.card p {
  color: var(--muted);
}

.note {
  border-left: 4px solid var(--gold);
  color: var(--muted);
  margin: 28px 0 0;
  padding: 4px 0 4px 18px;
}

.scope-note {
  border-color: var(--cyan);
}

.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 56px;
}

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

.prose h3 {
  margin-top: 34px;
}

.prose ul,
.prose ol {
  margin: 0 0 22px;
  padding-left: 1.3em;
}

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

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.legal-draft {
  background: #17130a;
  border: 1px solid var(--gold);
  border-radius: 12px;
  color: #f6e9ba;
  margin: 26px 0 46px;
  padding: 18px 20px;
}

.legal-draft strong {
  color: var(--gold);
}

.split-language {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  margin-bottom: 52px;
  padding-bottom: 18px;
}

.language-label {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.fact strong {
  color: var(--cyan);
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 10px;
}

.quote {
  border-left: 4px solid var(--magenta);
  color: var(--ink);
  font-size: 1.35rem;
  margin: 28px 0;
  padding-left: 18px;
}

.contact-card {
  border-color: var(--magenta);
}

.contact-card a {
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  padding: 28px 0 44px;
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

@media (max-width: 740px) {
  .nav-wrap,
  .main-wrap,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding: 76px 0 64px;
  }

  .section {
    padding: 60px 0;
  }

  .game-grid,
  .card-grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }
}

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