:root {
  color-scheme: light;
  --ink: #17231c;
  --muted: #617067;
  --paper: #f5f7f2;
  --surface: #ffffff;
  --line: #dce3db;
  --green: #1f6846;
  --green-deep: #144a33;
  --green-soft: #dff0e5;
  --warm: #f4b95f;
  --shadow: 0 22px 70px rgba(30, 64, 44, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 22px 0;
}

.nav-shell,
.brand,
.nav-links,
.hero-actions,
.footer-inner {
  display: flex;
  align-items: center;
}

.nav-shell {
  justify-content: space-between;
  gap: 24px;
}

.brand {
  gap: 11px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.15rem;
}

.nav-links {
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero,
.section,
.legal-hero,
.legal-layout {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 650px;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding: 80px 0 100px;
}

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

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 8vw, 6.7rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.lede {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: transparent;
}

.button:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.game-visual {
  position: relative;
  min-height: 470px;
}

.game-board {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(92vw, 390px);
  aspect-ratio: 1;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 30px;
  background: #244d38;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%) rotate(3deg);
}

.tile {
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.22);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 850;
}

.tile.active {
  background: #f7f4e7;
  color: var(--green-deep);
}

.tile.warm {
  background: var(--warm);
  color: #49300f;
}

.floating-note {
  position: absolute;
  right: 0;
  bottom: 22px;
  max-width: 190px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(30, 64, 44, 0.12);
  font-size: 0.9rem;
  font-weight: 750;
  transform: rotate(-4deg);
}

.section {
  padding: 90px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.grid-3,
.game-card {
  display: grid;
  gap: 18px;
}

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

.card,
.game-card,
.legal-content,
.legal-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.card {
  min-height: 210px;
  padding: 28px;
}

.card-number {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.card p,
.game-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-tint {
  max-width: none;
  background: var(--green-deep);
  color: #f7fbf8;
}

.section-tint .section {
  padding-block: 96px;
}

.section-tint .eyebrow,
.section-tint .lede {
  color: #bcd8c7;
}

.game-card {
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  padding: 24px;
  color: var(--ink);
}

.mini-board {
  display: grid;
  aspect-ratio: 1;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  background: var(--green);
}

.mini-board span {
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f8f3df;
  color: var(--green-deep);
  font-size: 1.4rem;
  font-weight: 850;
}

.status {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-hero {
  padding: 76px 0 46px;
}

.legal-hero h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

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

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-bottom: 100px;
}

.legal-nav {
  position: sticky;
  top: 24px;
  padding: 20px;
}

.legal-nav strong {
  display: block;
  margin-bottom: 12px;
}

.legal-nav a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-content {
  padding: clamp(24px, 5vw, 56px);
}

.legal-content h2 {
  margin-top: 48px;
  font-size: 1.65rem;
}

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

.legal-content h3 {
  margin-top: 28px;
}

.legal-content p,
.legal-content ul {
  margin: 0 0 18px;
}

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

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: var(--green-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(calc(100% - 32px), var(--content));
  min-height: 120px;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .game-visual {
    min-height: 430px;
  }

  .grid-3,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }

  .game-card {
    grid-template-columns: 130px 1fr;
  }

  .game-card .status {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-bottom: 10px;
  }

  .nav-shell {
    align-items: flex-start;
  }

  .nav-links {
    max-width: 190px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
  }

  .hero {
    padding-bottom: 72px;
  }

  .game-visual {
    min-height: 350px;
  }

  .game-board {
    gap: 8px;
    padding: 8px;
    border-radius: 24px;
  }

  .tile {
    border-radius: 14px;
  }

  .floating-note {
    right: 4px;
    bottom: -5px;
  }

  .section {
    padding-block: 68px;
  }

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

  .mini-board {
    width: 130px;
  }

  .game-card .status {
    grid-column: 1;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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