* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.2rem; }
body { margin: 0; background: var(--brand-paper); color: var(--brand-ink); font: 500 1rem/1.55 Nunito, sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #8657d2; outline-offset: 4px; }
.skip { position: absolute; z-index: 2; top: .8rem; left: -100vw; padding: .5rem 1rem; background: white; }
.skip:focus { left: 1rem; }
.site-nav, main, footer { width: min(100% - clamp(2.4rem, 8vw, 8rem), 78rem); margin-inline: auto; }
.site-nav, footer, nav { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 2.5rem); }
.site-nav, footer { justify-content: space-between; }
.site-nav { min-height: 5.25rem; border-bottom: 1px solid #d9d1c7; }
nav a { text-decoration: none; font-weight: 800; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }
.nav-entry { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1.05rem; border: 1.5px solid var(--brand-ink); border-radius: 100px; }
.hero { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.7rem, 6.3vw, 6rem); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: Fredoka, sans-serif; font-weight: 550; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 6.4vw, 6.45rem); line-height: .95; letter-spacing: -.055em; }
h1 em { color: var(--brand-plum); font-style: normal; }
.hero p { max-width: 30rem; margin-block: 1.55rem 1.65rem; font-size: clamp(1.08rem, 1.55vw, 1.3rem); line-height: 1.55; }
.primary { display: inline-flex; align-items: center; gap: 1rem; min-height: 3.1rem; padding: .65rem 1.3rem; background: var(--brand-ink); color: white; border-radius: 100px; font-weight: 850; text-decoration: none; }
.primary:hover { background: var(--brand-plum); }
.primary span { font-size: 1.2em; }
.hero-art { position: relative; isolation: isolate; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 1.42; object-fit: cover; border: 2px solid var(--brand-ink); border-radius: 32% 1.5rem 32% 1.5rem; box-shadow: 8px 8px 0 var(--brand-sun); }
.hero-art figcaption { position: absolute; bottom: 1.1rem; left: 1.1rem; border: 1px solid var(--brand-ink); padding: .24rem .8rem; border-radius: 40px; background: var(--brand-paper); font: 750 .78rem Nunito, sans-serif; }
.games { background: var(--brand-lilac); border-radius: 2rem; padding: clamp(1.35rem, 4vw, 3.5rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
h2 { font-size: clamp(2.4rem, 4.15vw, 4rem); line-height: 1.03; letter-spacing: -.045em; }
.section-head p { color: #504a64; font-weight: 700; }
.game-choices { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 1.6rem; }
.game-choices button { min-height: 42px; padding: .48rem .86rem; border: 1.5px solid #b5abc9; background: #f8f4ff; color: var(--brand-ink); border-radius: 100px; font: 800 .95rem Nunito,sans-serif; cursor: pointer; }
.game-choices button[aria-pressed=true] { color: white; border-color: var(--brand-ink); background: var(--brand-ink); }
.game-preview { display: grid; grid-template-columns: minmax(12rem,.65fr) minmax(0,1.35fr); gap: clamp(1.5rem, 4vw, 3.7rem); align-items: center; }
.game-preview h3 { font-size: clamp(1.9rem, 3vw, 3rem); letter-spacing: -.035em; line-height: 1.08; margin-bottom: .7rem; }
.game-preview p, .families p { max-width: 38rem; font-size: clamp(1rem, 1.4vw, 1.17rem); }
.game-preview img { width: 100%; height: auto; display: block; border: clamp(5px,.65vw,10px) solid var(--brand-ink); border-radius: 1.3rem; }
.families { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-block: clamp(3.2rem,7.5vw,7rem); align-items: start; }
.families p { margin-bottom: 1rem; }
.families .primary { margin-top: .35rem; }
footer { border-top: 1px solid #d9d1c7; padding-block: 1.4rem 2rem; }
footer nav { flex-wrap: wrap; font-size: .9rem; }
@media(max-width: 740px) {
  .site-nav { min-height: 4.2rem; }
  .site-nav nav > a:not(.nav-entry) { display: none; }
  .hero, .families, .game-preview { grid-template-columns: 1fr; }
  .hero { gap: 1.8rem; }
  .hero p { margin-block: 1.1rem; }
  .hero-art img { aspect-ratio: 1.7; }
  .section-head { display: block; }
  .section-head p { margin-top: .4rem; }
  .game-choices { margin-block: 1rem 1.2rem; }
  .game-preview { gap: 1.15rem; }
  .families { gap: 1.2rem; }
  footer { align-items: start; flex-direction: column; }
  .brand { font-size: 1.75rem; }
}
@media(prefers-reduced-motion:reduce){ html { scroll-behavior: auto; } }
