:root {
  color-scheme: light;
  --bg: #fbf7ef;
  --ink: #2e2a24;
  --muted: #756b5d;
  --panel: #fffaf1;
  --line: #eadfce;
  --tile: #eee2d2;
  --orange: #f08f3c;
  --gold: #f6c453;
  --green: #61b15a;
  --blue: #4d8dd9;
  --shadow: 0 20px 60px rgba(46, 42, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header,
.policy-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 70px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 0.86rem;
  height: 38px;
  justify-content: center;
  width: 48px;
}

.nav-links,
.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.nav-links a,
.footer-links a,
.header-cta,
.policy-page a {
  color: #7a4b18;
  font-weight: 850;
}

.header-cta,
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 16px;
}

.button.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 14px 34px rgba(240, 143, 60, 0.26);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 7vw, 92px);
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.72fr);
  min-height: 76vh;
  padding: 56px clamp(18px, 5vw, 70px) 72px;
}

.eyebrow {
  color: #9b5a12;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(4.1rem, 13vw, 10rem);
  letter-spacing: 0;
  line-height: 0.85;
  margin-bottom: 24px;
}

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

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

.hero-copy,
.policy-section p,
.policy-section li,
.feature-card p,
.site-footer p {
  color: var(--muted);
}

.hero-copy {
  font-size: 1.12rem;
  max-width: 650px;
}

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

.screenshot-frame {
  background: #12100d;
  border: 10px solid #12100d;
  border-radius: 34px;
  box-shadow: var(--shadow);
  justify-self: center;
  max-width: 420px;
  overflow: hidden;
  width: min(100%, 420px);
}

.game-screenshot {
  display: block;
  height: auto;
  width: 100%;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 70px);
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}

.mode-section {
  background: #fff4df;
}

.mode-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.mode-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  min-height: 210px;
  padding: 26px;
}

.mode-card span {
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
  justify-self: start;
  padding: 7px 12px;
}

.mode-card strong {
  font-size: 1.35rem;
}

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

.mode-card.easy span {
  background: var(--green);
}

.mode-card.normal span {
  background: var(--blue);
}

.mode-card.hard span {
  background: #8a5a35;
}

.theme-section {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.62fr);
}

.theme-row {
  display: grid;
  gap: 12px;
}

.theme-pill {
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 950;
  padding: 18px 20px;
}

.theme-pill.classic {
  background: #9a8876;
  color: #fff;
}

.theme-pill.ocean {
  background: #d6f0ef;
  border-color: #5cb9bc;
  color: #0e4d55;
}

.theme-pill.neon {
  background: #242640;
  border-color: #444b72;
  color: #f5f7ff;
}

.store-band {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.85fr) auto;
  padding: 48px clamp(18px, 5vw, 70px);
}

.store-band p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-links a {
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 950;
  padding: 12px 16px;
}

.site-footer {
  align-items: start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 30px clamp(18px, 5vw, 70px);
}

.site-footer p {
  margin: 12px 0 0;
  max-width: 520px;
}

.policy-header {
  border-bottom: 1px solid var(--line);
}

.policy-page {
  margin: 0 auto;
  max-width: 960px;
  padding: clamp(50px, 8vw, 92px) clamp(18px, 5vw, 42px);
}

.policy-page h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
  max-width: 880px;
}

.policy-date {
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 42px;
}

.policy-section {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.policy-section h2 {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.12;
  margin-bottom: 12px;
}

.policy-section ul {
  margin: 0;
  padding-left: 22px;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .hero,
  .feature-grid,
  .mode-grid,
  .theme-section,
  .store-band {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-header,
  .policy-header {
    padding-inline: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: 4.3rem;
  }
}
