:root {
  color-scheme: light;
  --background: #f9f8f2;
  --ink: #283c32;
  --green: #2a5444;
  --muted: #626a60;
  --rule: #e4e6dc;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { display: block; }
::selection { background: #d6e8ce; color: #233c2e; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 18px; border-radius: 8px; background: var(--green); color: white; text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
main, .site-footer { width: min(1100px, calc(100% - 80px)); margin-inline: auto; }
main { padding-block: 42px 24px; }
.intro { margin-bottom: 32px; animation: enter 500ms ease-out both; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.9px; }
.tiny-star { font-size: 19px; line-height: 1; color: #839764; }
h1 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(38px, 4.2vw, 54px); font-weight: 500; line-height: 1.1; letter-spacing: -1.9px; }
h1 em { font-weight: 500; color: #718453; }
.intro-copy { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.games { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; outline: none; }
.game { position: relative; display: flex; grid-column: span 2; flex-direction: column; padding: 25px 27px; overflow: hidden; border: 1px solid rgba(40, 60, 50, .035); border-radius: 17px; text-decoration: none; transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; animation: enter 550ms ease-out both; }
.game:nth-of-type(2) { animation-delay: 55ms; }
.game:nth-of-type(3) { animation-delay: 110ms; }
.game:nth-of-type(4) { animation-delay: 165ms; }
.game:nth-of-type(5) { animation-delay: 220ms; }
.game:hover { transform: translateY(-4px); box-shadow: 0 9px 24px rgba(43, 62, 45, .065); border-color: rgba(40, 60, 50, .14); }
.game:active { transform: translateY(-1px); }
.game:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
.game-wide { grid-column: span 3; min-height: 217px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.game-letters { background: #f2edda; }
.game-reading { background: #e6edde; }
.game-numbers { background: #e6edf1; }
.game-memory { background: #eee7f1; }
.game-sequence { background: #f4e7de; }
.game-category { display: block; font-size: 9px; font-weight: 700; letter-spacing: 1.65px; opacity: .85; }
.game h3 { margin: 10px 0 9px; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.55px; }
.game p { margin: 0; color: #555f55; font-size: 14px; line-height: 1.65; }
.game-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 23px; font-size: 12px; font-weight: 600; }
.game-action svg { width: 27px; height: 27px; padding: 5px; border-radius: 50%; background: rgba(255, 255, 255, .58); transition: transform 220ms ease, background 220ms ease; }
.game svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.game:hover .game-action svg { transform: translateX(3px); background: rgba(255, 255, 255, .9); }
.game-content { flex: 1; min-width: 0; }
.game-sample { user-select: none; flex-shrink: 0; transition: transform 250ms ease; }
.game:hover .game-sample { transform: translateY(-3px) rotate(-2deg); }
.letter-sample { display: flex; align-items: baseline; padding-right: 2px; font-family: var(--serif); line-height: 1; letter-spacing: -5px; }
.letter-sample span:first-child { font-size: 104px; color: #ae8849; }
.letter-sample span:last-child { font-size: 88px; color: #778951; }
.reading-sample { display: flex; align-items: center; gap: 3px; font-family: var(--serif); font-size: 41px; font-weight: 600; letter-spacing: -1.5px; color: #5c7b55; }
.reading-sample > span:not(.syllable-divider) { padding-bottom: 4px; border-bottom: 2px solid #8fa07b; }
.reading-sample .syllable-divider { color: #8fa07b; }
.number-sample, .color-sample, .sequence-sample { display: flex; align-items: center; min-height: 77px; margin-top: 13px; margin-bottom: 2px; }
.number-sample { gap: 17px; font-family: var(--serif); font-size: 56px; line-height: 1; }
.number-sample span:first-child { color: #587f93; transform: rotate(-7deg); }
.number-sample span:nth-child(2) { color: #668da1; }
.number-sample span:last-child { color: #88a3b0; transform: rotate(7deg); }
.color-sample { gap: 10px; }
.color-sample span { width: 34px; height: 34px; border-radius: 50%; }
.color-sample span:nth-child(1) { background: #af7390; }
.color-sample span:nth-child(2) { background: #e1b764; }
.color-sample span:nth-child(3) { background: #91a27b; }
.color-sample span:nth-child(4) { background: #8d91bb; }
.sequence-sample { gap: 8px; }
.sequence-sample span { display: grid; place-items: center; width: 38px; height: 43px; border-radius: 7px; background: rgba(255, 255, 255, .55); color: #aa7857; font-family: var(--serif); font-size: 24px; }
.sequence-sample svg { width: 19px; height: 19px; color: #b59883; }
.opening-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.opening-note svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 16px; min-height: 75px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 11px; }
.footer-brand { justify-self: start; font-family: var(--serif); font-size: 17px; color: var(--green); }
.footer-copyright { grid-column: 2; text-align: center; white-space: nowrap; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1500px) {
  main { padding-block: 58px 30px; }
  .intro { margin-bottom: 36px; }
  .game-wide { min-height: 238px; }
  .game:not(.game-wide) { padding-block: 28px; }
}
@media (max-width: 1000px) {
  main, .site-footer { width: calc(100% - 48px); }
  .game { padding: 23px; }
  .letter-sample span:first-child { font-size: 81px; }
  .letter-sample span:last-child { font-size: 70px; }
  .reading-sample { font-size: 34px; }
  .game h3 { font-size: 25px; }
  .game p { font-size: 13px; }
}
@media (max-width: 760px) {
  main { padding-top: 33px; }
  .intro { margin-bottom: 25px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .game, .game-wide { grid-column: span 1; padding: 23px; }
  .game-wide { flex-direction: column-reverse; align-items: flex-start; gap: 18px; min-height: auto; }
  .game-content { width: 100%; }
  .letter-sample, .reading-sample { height: 77px; align-items: center; }
  .letter-sample span:first-child { font-size: 76px; }
  .letter-sample span:last-child { font-size: 64px; }
  .game-sequence { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .game-sequence .game-category { grid-column: 1; }
  .game-sequence .sequence-sample { grid-column: 2; grid-row: 1 / 4; align-self: center; justify-content: center; }
  .game-sequence h3, .game-sequence p { grid-column: 1; }
  .game-sequence .game-action { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  main, .site-footer { width: calc(100% - 36px); }
  main { padding-top: 29px; }
  h1 { font-size: 39px; letter-spacing: -1.5px; }
  .intro-copy { font-size: 14px; }
  .games { grid-template-columns: 1fr; gap: 13px; }
  .game, .game-wide, .game-sequence { display: grid; grid-column: 1; grid-template-columns: 1fr 112px; align-items: start; column-gap: 12px; padding: 22px; min-height: 176px; }
  .game-wide { display: flex; flex-direction: row; align-items: center; gap: 10px; }
  .game-content { flex: 1; }
  .game-category { grid-column: 1; }
  .game h3 { grid-column: 1; margin-top: 9px; font-size: 26px; }
  .game p { grid-column: 1; font-size: 13px; }
  .game-action { grid-column: 1 / -1; margin-top: 18px; font-size: 12px; }
  .game-sample { max-width: 112px; }
  .number-sample, .color-sample, .game-sequence .sequence-sample { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; justify-content: center; }
  .letter-sample span:first-child { font-size: 70px; }
  .letter-sample span:last-child { font-size: 58px; }
  .reading-sample { font-size: 31px; }
  .number-sample { gap: 9px; font-size: 42px; }
  .color-sample { display: grid; grid-template-columns: repeat(2, 29px); gap: 8px; }
  .color-sample span { width: 29px; height: 29px; }
  .sequence-sample { gap: 4px; }
  .sequence-sample span { width: 28px; height: 34px; font-size: 20px; }
  .sequence-sample svg { width: 12px; height: 12px; }
  .opening-note { align-items: flex-start; text-align: center; padding-inline: 7px; font-size: 10px; }
  .opening-note svg { margin-top: 2px; }
  .site-footer { column-gap: 8px; font-size: 10px; }
  .footer-brand { font-size: 15px; }
}
@media (max-width: 359px) {
  .game, .game-wide, .game-sequence { padding: 19px; grid-template-columns: 1fr 86px; }
  .game-sample { max-width: 86px; }
  .game h3 { font-size: 23px; }
  .game p { font-size: 12px; }
  .letter-sample span:first-child { font-size: 58px; }
  .letter-sample span:last-child { font-size: 48px; }
  .reading-sample { font-size: 25px; }
  .sequence-sample { gap: 3px; }
  .sequence-sample span { width: 22px; }
  .sequence-sample svg { width: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
