:root {
  color-scheme: light;
  --paper: #fffaf0;
  --paper-deep: #f6edda;
  --ink: #242320;
  --muted: #69645b;
  --pencil: #4b4944;
  --green: #138c6f;
  --green-dark: #08735b;
  --mint: #dff4d5;
  --sky: #dff2fc;
  --sun: #fff0ad;
  --rose: #ffe0e8;
  --coral: #f25572;
  --line: rgba(75, 73, 68, 0.12);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next Rounded", "Arial Rounded MT Bold", "Avenir Next", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  background: repeating-linear-gradient(0deg, transparent 0 35px, var(--line) 36px 37px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a { color: inherit; }
img { display: block; height: auto; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }

.skip-link {
  background: var(--ink);
  color: white;
  left: 16px;
  padding: 10px 14px;
  position: absolute;
  top: -60px;
  z-index: 50;
}
.skip-link:focus { top: 14px; }

.site-header {
  background: rgba(255, 250, 240, 0.93);
  border-bottom: 1px solid rgba(36, 35, 32, 0.12);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 70px;
  padding: 10px 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 900;
  gap: 10px;
  text-decoration: none;
}
.brand img { border-radius: 8px; }

.nav-links { align-items: center; display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--green); }

.menu-button {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 8px;
  width: 42px;
}
.menu-button span { background: var(--ink); display: block; height: 3px; margin: 5px 0; width: 26px; }

.hero {
  isolation: isolate;
  min-height: calc(100svh - 70px);
  overflow: hidden;
  position: relative;
}
.hero::before {
  background: var(--sun);
  border-radius: 50%;
  content: "";
  height: min(42vw, 560px);
  opacity: 0.58;
  position: absolute;
  right: -9vw;
  top: -13vw;
  width: min(42vw, 560px);
  z-index: -1;
}
.hero::after {
  background: var(--rose);
  border-radius: 50% 50% 0 0;
  bottom: -14vw;
  content: "";
  height: 25vw;
  left: -10vw;
  opacity: 0.7;
  position: absolute;
  transform: rotate(18deg);
  width: 35vw;
  z-index: -1;
}

.hero-copy {
  left: max(24px, calc((100vw - var(--max)) / 2));
  max-width: 550px;
  position: absolute;
  top: 50%;
  transform: translateY(-54%);
  z-index: 3;
}

.eyebrow, .kicker {
  color: var(--coral);
  display: block;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}
.eyebrow::before { content: "✦ "; }

.hero h1 {
  font-size: clamp(4.3rem, 10vw, 8.8rem);
  font-weight: 950;
  line-height: 0.78;
  margin-top: 20px;
}
.hero-copy > p {
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  margin-top: 34px;
}
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 24px; margin-top: 30px; }

.button {
  align-items: center;
  border: 3px solid var(--pencil);
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 54px;
  padding: 12px 22px;
  position: relative;
  text-decoration: none;
}
.button::after {
  border: 2px solid currentColor;
  content: "";
  inset: 3px -5px -5px 3px;
  opacity: 0.4;
  pointer-events: none;
  position: absolute;
  transform: rotate(-0.7deg);
}
.button-primary { background: var(--green); color: white; }
.button:hover, .button:focus-visible { background: var(--green-dark); color: white; transform: translateY(-2px); }
.text-link { font-weight: 900; text-underline-offset: 5px; }

.hero-art {
  bottom: 2%;
  height: 92%;
  max-width: 790px;
  position: absolute;
  right: max(-70px, calc((100vw - 1320px) / 2));
  width: 56vw;
}
.game-sheet {
  background: rgba(255, 255, 255, 0.92);
  border: 4px solid var(--pencil);
  padding: 24px;
  position: absolute;
  right: 8%;
  top: 10%;
  transform: rotate(1.5deg);
  width: min(480px, 72%);
}
.game-sheet::after, .sketch-card::after, .content-section::after, .contact-panel::after {
  border: 2px solid var(--pencil);
  content: "";
  inset: 4px -5px -5px 4px;
  opacity: 0.38;
  pointer-events: none;
  position: absolute;
  transform: rotate(-0.5deg);
}
.sheet-head { align-items: center; display: flex; justify-content: space-between; }
.sheet-head span, .sheet-head strong { border: 2px solid var(--pencil); padding: 4px 8px; }
.game-sheet h2 { font-size: clamp(1.4rem, 3vw, 2.3rem); margin: 14px 0; }
.word-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.word-grid span {
  align-items: center;
  aspect-ratio: 1;
  border: 1px solid #d9d7d0;
  display: flex;
  font-size: clamp(0.68rem, 1.3vw, 1rem);
  font-weight: 900;
  justify-content: center;
}
.word-grid .found { background: var(--sun); }
.word-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.word-list span { border: 2px solid var(--pencil); font-size: 0.72rem; font-weight: 900; padding: 5px 7px; }
.hero-art > img { bottom: -6%; position: absolute; right: -6%; width: 59%; z-index: 2; }
.scroll-cue {
  bottom: 25px;
  color: var(--green);
  font-size: 2rem;
  left: 50%;
  position: absolute;
  text-decoration: none;
}

.section { margin: 0 auto; max-width: var(--max); padding: 110px 24px; }
.section-heading { align-items: end; display: grid; gap: 14px 60px; grid-template-columns: 1fr 0.8fr; margin-bottom: 42px; }
.section-heading .kicker { grid-column: 1 / -1; }
.section-heading h2, .daily h2, .plus h2, .launch h2, .inner-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  font-weight: 950;
  line-height: 0.98;
}
.section-heading p, .daily p, .plus-copy p, .launch p {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 650;
}

.game-cards { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.sketch-card {
  border: 3px solid var(--pencil);
  min-height: 390px;
  padding: 24px;
  position: relative;
}
.sketch-card.mint { background: var(--mint); transform: rotate(-0.5deg); }
.sketch-card.sky { background: var(--sky); transform: rotate(0.4deg); }
.sketch-card.sun { background: var(--sun); transform: rotate(-0.25deg); }
.card-number { color: var(--muted); font-size: 0.8rem; font-weight: 900; }
.sketch-card h3 { font-size: 1.8rem; line-height: 1.1; margin-top: 28px; }
.sketch-card p { color: var(--muted); font-weight: 700; margin-top: 12px; }
.mini-board { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.mini-board span { align-items: center; aspect-ratio: 1; background: rgba(255,255,255,.45); border: 1px solid rgba(75,73,68,.23); display: flex; font-weight: 900; justify-content: center; }
.mini-board .marked { background: #b7df8b; }
.letter-row { display: flex; gap: 5px; margin-top: 76px; }
.letter-row span, .scramble span { align-items: center; background: rgba(255,255,255,.7); border: 2px solid var(--pencil); display: flex; font-size: 1.2rem; font-weight: 900; height: 48px; justify-content: center; width: 48px; }
.scramble { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 76px; }
.scramble b { color: var(--green); margin: 0 5px; }

.daily { background: var(--green); color: white; }
.daily-inner { align-items: center; display: grid; gap: 65px; grid-template-columns: 0.7fr 1fr; margin: 0 auto; max-width: var(--max); padding: 75px 24px; }
.daily img { margin: -120px auto -70px; max-width: 390px; }
.daily .kicker { color: var(--sun); }
.daily p { color: rgba(255,255,255,.8); margin-top: 20px; max-width: 650px; }
.daily-stats { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin: 34px 0 0; }
.daily-stats div { border-top: 2px solid rgba(255,255,255,.45); padding-top: 12px; }
.daily-stats dt { font-size: 1.6rem; font-weight: 950; }
.daily-stats dd { font-size: 0.82rem; margin: 2px 0 0; opacity: .8; }

.plus { display: grid; gap: 80px; grid-template-columns: .8fr 1fr; }
.plus-copy p { margin-top: 24px; }
.plus-list { list-style: none; margin: 0; padding: 0; }
.plus-list li { align-items: center; border-bottom: 2px solid rgba(75,73,68,.2); display: grid; gap: 22px; grid-template-columns: 56px 1fr; padding: 22px 0; }
.plus-list li > span { color: var(--green); font-size: 2.3rem; font-weight: 900; text-align: center; }
.plus-list strong, .plus-list small { display: block; }
.plus-list strong { font-size: 1.15rem; }
.plus-list small { color: var(--muted); font-size: .92rem; margin-top: 3px; }

.launch {
  align-items: center;
  background: var(--sun);
  display: grid;
  gap: 50px;
  grid-template-columns: .7fr 1fr;
  margin-top: 25px;
  overflow: hidden;
  padding: 45px max(24px, calc((100vw - var(--max)) / 2));
}
.launch img { margin-bottom: -130px; margin-top: -80px; max-width: 380px; }
.launch p { margin-top: 18px; }
.store-badge { align-items: center; background: var(--ink); color: white; display: inline-flex; gap: 12px; margin-top: 24px; padding: 10px 16px; }
.store-badge b { font-size: 1.8rem; }
.store-badge span { font-size: .72rem; line-height: 1.15; }
.store-badge strong { font-size: 1.1rem; }

.site-footer { background: var(--ink); color: white; padding: 48px max(24px, calc((100vw - var(--max)) / 2)); }
.footer-brand { align-items: center; display: flex; font-size: 1.2rem; gap: 12px; }
.footer-brand img { border-radius: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px 30px; margin-top: 28px; }
.site-footer a { color: rgba(255,255,255,.82); font-weight: 700; }
.site-footer > p { color: rgba(255,255,255,.55); font-size: .82rem; margin-top: 36px; }

/* Internal pages */
.inner-main { margin: 0 auto; max-width: 920px; padding: 70px 24px 110px; }
.inner-hero {
  align-items: center;
  border-bottom: 3px solid var(--pencil);
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 210px;
  margin-bottom: 42px;
  padding-bottom: 38px;
}
.inner-hero .kicker { margin-bottom: 12px; }
.inner-hero p { color: var(--muted); font-size: 1.1rem; margin-top: 18px; max-width: 620px; }
.inner-hero img { max-height: 210px; object-fit: contain; width: 100%; }
.content-section, .contact-panel {
  background: rgba(255,255,255,.58);
  border: 3px solid var(--pencil);
  margin-top: 28px;
  padding: 30px;
  position: relative;
}
.content-section h2, .contact-panel h2 { font-size: 1.7rem; line-height: 1.2; }
.content-section h3 { font-size: 1.15rem; margin-top: 28px; }
.content-section p, .content-section li, .contact-panel p { color: var(--muted); }
.content-section p, .contact-panel p { margin-top: 12px; }
.content-section ul { padding-left: 22px; }
.content-section li + li { margin-top: 8px; }
.contact-panel { background: var(--mint); }
.contact-panel .button { margin-top: 20px; }
.faq-list { border-top: 2px solid rgba(75,73,68,.2); margin-top: 28px; }
.faq-list details { border-bottom: 2px solid rgba(75,73,68,.2); padding: 18px 0; }
.faq-list summary { cursor: pointer; font-size: 1.05rem; font-weight: 900; }
.faq-list p { padding-right: 30px; }
.legal-meta { color: var(--green); font-size: .88rem; font-weight: 900; margin-bottom: 18px; }
.legal a { color: var(--green-dark); font-weight: 800; }
.error-main { align-items: center; display: grid; gap: 30px; grid-template-columns: .9fr 1fr; margin: 0 auto; max-width: 900px; min-height: calc(100svh - 70px); padding: 40px 24px; }
.error-main img { width: 100%; }
.error-main h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .9; }
.error-main p { color: var(--muted); font-size: 1.15rem; margin: 22px 0 30px; }

@media (max-width: 900px) {
  .hero { min-height: 850px; }
  .hero-copy { top: 37%; }
  .hero-art { bottom: -8%; height: 57%; right: -6%; width: 75vw; }
  .game-sheet { left: 0; right: auto; top: 3%; }
  .game-cards { grid-template-columns: 1fr; }
  .sketch-card { min-height: 0; }
  .mini-board { max-width: 260px; }
  .letter-row, .scramble { margin-top: 30px; }
  .section-heading, .plus { grid-template-columns: 1fr; }
  .section-heading .kicker { grid-column: auto; }
  .daily-inner, .launch { gap: 24px; }
}

@media (max-width: 680px) {
  .nav { min-height: 62px; padding: 9px 18px; }
  .brand img { height: 40px; width: 40px; }
  .menu-button { display: block; }
  .nav-links {
    align-items: stretch;
    background: var(--paper);
    border-bottom: 2px solid var(--pencil);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 10px 18px 18px;
    position: absolute;
    right: 0;
    top: 61px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 2px; }

  .hero { min-height: 790px; }
  .hero-copy { left: 22px; max-width: calc(100% - 44px); top: 31%; transform: translateY(-50%); }
  .hero h1 { font-size: clamp(4.1rem, 25vw, 6.2rem); }
  .hero-copy > p { font-size: 1.08rem; margin-top: 22px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; margin-top: 24px; }
  .hero-art { bottom: -2%; height: 47%; right: -18%; width: 112vw; }
  .game-sheet { padding: 13px; width: 66%; }
  .hero-art > img { right: 1%; width: 55%; }
  .scroll-cue { display: none; }

  .section { padding: 78px 20px; }
  .section-heading { align-items: start; gap: 10px; margin-bottom: 28px; }
  .section-heading h2, .daily h2, .plus h2, .launch h2, .inner-hero h1 { font-size: 2.55rem; }
  .game-cards { gap: 18px; }
  .sketch-card { padding: 20px; }
  .sketch-card h3 { font-size: 1.55rem; }

  .daily-inner { display: flex; flex-direction: column-reverse; padding: 66px 20px 34px; }
  .daily img { margin: 0 auto -40px; max-width: 270px; }
  .daily-stats { gap: 10px; }
  .daily-stats dt { font-size: 1.2rem; }
  .daily-stats dd { font-size: .7rem; }
  .plus { gap: 30px; }
  .launch { grid-template-columns: 1fr; padding: 58px 24px 0; text-align: center; }
  .launch > div { grid-row: 1; }
  .launch img { margin: -20px auto -55px; max-width: 300px; }

  .inner-main { padding: 46px 18px 80px; }
  .inner-hero { grid-template-columns: 1fr; }
  .inner-hero img { max-height: 180px; }
  .content-section, .contact-panel { padding: 22px; }
  .error-main { grid-template-columns: 1fr; text-align: center; }
  .error-main img { margin: 0 auto; max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
