@import url("https://fonts.googleapis.com/css2?family=Commit+Mono:wght@400;600&family=Newsreader:opsz,wght@6..72,700;6..72,800&family=Onest:wght@400;500;600;700&display=swap");

:root {
  --journal-paper: #faf6ed;
  --london-fog: #e8e4db;
  --soft-newsprint: #f1ece2;
  --ink-navy: #111827;
  --muted-graphite: #667085;
  --arcade-red: #e5484d;
  --uk-blue: #2f6fed;
  --signal-yellow: #f5c542;
  --fresh-teal: #1fa9a6;
  --soft-violet: #8b7cf6;
  --line-rule: rgba(17, 24, 39, 0.12);
  --paper-shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
  --button-shadow: 0 16px 34px rgba(47, 111, 237, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-navy);
  font-family: "Onest", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 197, 66, 0.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(47, 111, 237, 0.16), transparent 30%),
    linear-gradient(135deg, var(--journal-paper) 0%, var(--soft-newsprint) 52%, var(--london-fog) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.46;
  z-index: -1;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.ledger-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.masthead-ribbon {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-rule);
  background: rgba(250, 246, 237, 0.88);
  backdrop-filter: blur(18px);
}

.masthead-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
}

.brandmark-crest {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brandmark-crest img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.18);
}

.brandmark-crest span {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.navigation-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navigation-strip a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted-graphite);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 10px 14px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.navigation-strip a:hover,
.navigation-strip a:focus-visible {
  background: rgba(47, 111, 237, 0.08);
  border-color: rgba(47, 111, 237, 0.2);
  color: var(--ink-navy);
  transform: translateY(-1px);
  outline: none;
}

.menu-signal {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-rule);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.menu-signal span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink-navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-signal.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-signal.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-signal.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-broadsheet {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: 44px 0 36px;
}

.hero-broadsheet__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: 28px;
  min-height: 650px;
  border: 1px solid var(--line-rule);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(250, 246, 237, 0.96) 0%, rgba(250, 246, 237, 0.78) 42%, rgba(250, 246, 237, 0.08) 100%),
    url("images/hero.png") center / cover no-repeat;
  box-shadow: var(--paper-shadow);
}

.hero-broadsheet__panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(17, 24, 39, 0.13);
  border-radius: 6px;
  pointer-events: none;
}

.hero-copydesk {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(38px, 6vw, 74px);
}

.folio-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--arcade-red);
  font-family: "Commit Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.folio-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

.hero-copydesk h1,
.page-heading h1,
.section-title,
.game-stage h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copydesk h1 {
  max-width: 720px;
  font-size: clamp(4rem, 9vw, 9.4rem);
}

.hero-copydesk p {
  max-width: 570px;
  margin: 24px 0 0;
  color: #3c4656;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.action-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--ink-navy);
  border-radius: 999px;
  padding: 0 22px;
  font-family: "Commit Mono", monospace;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.action-token:hover,
.action-token:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.action-token--primary {
  border-color: var(--uk-blue);
  background: var(--uk-blue);
  color: white;
  box-shadow: var(--button-shadow);
}

.action-token--primary:hover {
  background: #245ed1;
}

.action-token--paper {
  background: rgba(250, 246, 237, 0.78);
}

.action-token--paper:hover {
  background: var(--ink-navy);
  color: white;
}

.hero-notegrid {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 14px;
  padding: 0 clamp(22px, 4vw, 52px) clamp(32px, 4vw, 54px) 0;
}

.note-chip {
  width: min(270px, 100%);
  margin-left: auto;
  border: 1px solid rgba(250, 246, 237, 0.42);
  border-radius: 8px;
  padding: 16px;
  color: white;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.22);
}

.note-chip small {
  display: block;
  margin-bottom: 7px;
  color: var(--signal-yellow);
  font-family: "Commit Mono", monospace;
  font-size: 0.72rem;
}

.note-chip strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.45rem;
}

.content-belt {
  padding: 72px 0;
}

.content-belt--tight {
  padding-top: 18px;
}

.two-column-print {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(24px, 5vw, 74px);
  align-items: start;
}

.section-title {
  max-width: 520px;
  font-size: clamp(2.6rem, 5.6vw, 5.9rem);
}

.editorial-copy {
  color: #3d4655;
  font-size: 1.08rem;
  line-height: 1.82;
}

.stat-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line-rule);
  border-radius: 8px;
  background: var(--line-rule);
}

.stat-ledger__cell {
  min-height: 126px;
  padding: 20px;
  background: rgba(250, 246, 237, 0.72);
}

.stat-ledger__cell strong {
  display: block;
  color: var(--uk-blue);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.stat-ledger__cell span {
  display: block;
  margin-top: 10px;
  color: var(--muted-graphite);
  font-family: "Commit Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.benefit-tile {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--line-rule);
  border-radius: 8px;
  padding: 26px;
  background: rgba(250, 246, 237, 0.7);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.benefit-tile:hover {
  border-color: rgba(47, 111, 237, 0.28);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.08);
  transform: translateY(-6px);
}

.benefit-tile::before {
  content: attr(data-count);
  color: rgba(17, 24, 39, 0.08);
  font-family: "Newsreader", Georgia, serif;
  font-size: 5.2rem;
  font-weight: 800;
  line-height: 0.8;
}

.benefit-tile h3 {
  margin: 32px 0 12px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.benefit-tile p {
  margin: 0;
  color: var(--muted-graphite);
  line-height: 1.65;
}

.game-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
  border-top: 1px solid var(--line-rule);
  border-bottom: 1px solid var(--line-rule);
  padding: 44px 0;
}

.game-feature__image {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line-rule);
  box-shadow: var(--paper-shadow);
}

.game-feature__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 360ms ease;
}

.game-feature:hover .game-feature__image img {
  transform: scale(1.035);
}

.game-feature h3 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.94;
}

.game-feature p {
  max-width: 620px;
  color: #3d4655;
  font-size: 1.08rem;
  line-height: 1.8;
}

.callout-broadsheet {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line-rule);
  border-radius: 8px;
  padding: clamp(26px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(31, 169, 166, 0.14), transparent 42%),
    linear-gradient(315deg, rgba(229, 72, 77, 0.12), transparent 42%),
    rgba(250, 246, 237, 0.78);
}

.callout-broadsheet + .callout-broadsheet {
  margin-top: 18px;
}

.callout-broadsheet h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.1rem, 4.4vw, 4.6rem);
  line-height: 1;
}

.callout-broadsheet p {
  max-width: 690px;
  margin: 12px 0 0;
  color: var(--muted-graphite);
  line-height: 1.7;
}

.page-heading {
  padding: 72px 0 42px;
}

.page-heading h1,
.game-stage h1 {
  font-size: clamp(3.4rem, 8vw, 8.6rem);
}

.page-heading p {
  max-width: 720px;
  color: #3d4655;
  font-size: 1.08rem;
  line-height: 1.75;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 26px;
  align-items: start;
  padding-bottom: 72px;
}

.contact-card,
.form-panel,
.policy-paper,
.game-stage {
  border: 1px solid var(--line-rule);
  border-radius: 8px;
  background: rgba(250, 246, 237, 0.72);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.contact-card,
.form-panel,
.policy-paper {
  padding: clamp(24px, 4vw, 38px);
}

.contact-card h2,
.form-panel h2,
.policy-paper h2 {
  margin: 0 0 14px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.contact-line {
  display: block;
  margin-top: 18px;
  border-top: 1px solid var(--line-rule);
  padding-top: 18px;
  color: var(--ink-navy);
  font-family: "Commit Mono", monospace;
  font-weight: 600;
  word-break: break-word;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-notice {
  display: none;
  margin: 0;
  border: 1px solid rgba(31, 169, 166, 0.32);
  border-radius: 8px;
  padding: 13px 15px;
  background: rgba(31, 169, 166, 0.1);
  color: var(--ink-navy);
  font-weight: 600;
  line-height: 1.5;
}

.feedback-notice.is-visible {
  display: block;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.field-stack label {
  color: var(--muted-graphite);
  font-family: "Commit Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.field-stack input,
.field-stack textarea {
  width: 100%;
  border: 1px solid var(--line-rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-navy);
  font: inherit;
  padding: 14px 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field-stack textarea {
  min-height: 150px;
  resize: vertical;
}

.field-stack input:focus,
.field-stack textarea:focus {
  border-color: rgba(47, 111, 237, 0.58);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.12);
}

.game-stage {
  margin: 42px auto 80px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
}

.game-stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.game-frame {
  overflow: hidden;
  border: 1px solid var(--line-rule);
  border-radius: 8px;
  background: var(--ink-navy);
  aspect-ratio: 16 / 9;
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.policy-paper {
  margin-bottom: 72px;
}

.policy-paper p,
.policy-paper li {
  color: #3d4655;
  line-height: 1.78;
}

.policy-paper ul {
  padding-left: 20px;
}

.footer-gazette {
  border-top: 1px solid var(--line-rule);
  padding: 46px 0 26px;
  background: rgba(17, 24, 39, 0.94);
  color: rgba(255, 255, 255, 0.82);
}

.footer-gazette__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.9fr;
  gap: 28px;
}

.age-disclaimer {
  border: 1px solid rgba(245, 197, 66, 0.42);
  border-radius: 8px;
  padding: 20px;
  background: rgba(245, 197, 66, 0.08);
}

.age-disclaimer strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--signal-yellow);
  color: var(--ink-navy);
  font-family: "Commit Mono", monospace;
  font-weight: 600;
  padding: 0 12px;
}

.age-disclaimer p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.72;
}

.footer-gazette h3 {
  margin: 0 0 14px;
  color: white;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.6rem;
}

.footer-links,
.support-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.support-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links a:hover,
.support-links a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Commit Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
}

.footer-bottom {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.66);
}

.age-gate,
.cookie-brief {
  position: fixed;
  z-index: 60;
}

.age-gate {
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(14px);
}

.age-gate.is-visible {
  display: grid;
}

.age-gate__panel {
  width: min(560px, 100%);
  border: 1px solid rgba(250, 246, 237, 0.34);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 42px);
  background: var(--journal-paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.age-gate__panel h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.92;
}

.age-gate__panel p {
  color: #3d4655;
  line-height: 1.7;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cookie-brief {
  right: 20px;
  bottom: 20px;
  display: none;
  width: min(430px, calc(100% - 40px));
  border: 1px solid var(--line-rule);
  border-radius: 8px;
  padding: 18px;
  background: rgba(250, 246, 237, 0.94);
  box-shadow: var(--paper-shadow);
}

.cookie-brief.is-visible {
  display: block;
}

.cookie-brief p {
  margin: 8px 0 16px;
  color: #3d4655;
  line-height: 1.6;
}

.cookie-brief__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.tiny-tag {
  color: var(--arcade-red);
  font-family: "Commit Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .menu-signal {
    display: block;
  }

  .navigation-strip {
    position: absolute;
    inset: 78px 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line-rule);
    border-radius: 8px;
    padding: 10px;
    background: rgba(250, 246, 237, 0.98);
    box-shadow: var(--paper-shadow);
  }

  .navigation-strip.is-open {
    display: flex;
  }

  .navigation-strip a {
    border-radius: 8px;
  }

  .hero-broadsheet__panel,
  .two-column-print,
  .game-feature,
  .contact-layout,
  .footer-gazette__grid {
    grid-template-columns: 1fr;
  }

  .hero-broadsheet__panel {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(250, 246, 237, 0.98) 0%, rgba(250, 246, 237, 0.82) 55%, rgba(250, 246, 237, 0.2) 100%),
      url("images/hero.png") center / cover no-repeat;
  }

  .hero-notegrid {
    padding: 0 clamp(24px, 6vw, 48px) clamp(30px, 6vw, 46px);
  }

  .note-chip {
    margin-left: 0;
  }

  .stat-ledger,
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .callout-broadsheet {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .ledger-shell {
    width: min(100% - 24px, 1180px);
  }

  .brandmark-crest span {
    font-size: 1.08rem;
  }

  .hero-copydesk {
    padding: 34px 22px 18px;
  }

  .hero-copydesk h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

  .stat-ledger,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .content-belt {
    padding: 52px 0;
  }

  .game-stage__bar,
  .hero-actions,
  .button-row,
  .age-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .action-token {
    width: 100%;
  }

  .game-frame {
    aspect-ratio: 10 / 14;
  }

  .footer-gazette {
    padding-bottom: 88px;
  }
}
