:root {
  color-scheme: light;
  --background: #faf8f3;
  --paper: #fffdf9;
  --ink: #242039;
  --muted: #615a69;
  --line: #e7e0d8;
  --violet: #4e367e;
  --accent: #ffca62;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading: "Trebuchet MS", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--background); font: 1rem/1.5 var(--body); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #9a4c20; outline-offset: 4px; }
.container { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: 8px; left: 10px; padding: 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, .footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font: 800 1.18rem/1.1 var(--heading); text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--accent); background: var(--ink); font-size: 1.45rem; }
nav { display: flex; align-items: center; gap: clamp(9px, 3vw, 25px); }
nav a { font-weight: 680; font-size: .91rem; text-decoration: none; padding-block: 8px; }
nav a:last-child { border: 1px solid #dfd4e7; padding-inline: 12px; border-radius: 9px; background: #f2eaf7; }
nav a:hover, .footer > a:last-child:hover { text-decoration: underline; }
.library { padding: clamp(22px, 4vw, 47px) 0 42px; scroll-margin-top: 14px; }
.section-head { margin-bottom: clamp(15px, 2vw, 24px); }
.section-head h1 { font-size: clamp(2rem, 4vw, 3.62rem); letter-spacing: -.055em; line-height: 1.1; }
.section-head p { margin-top: 7px; color: var(--muted); }
.feature { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); text-decoration: none; overflow: hidden; border-radius: 22px; background: #292241; color: white; }
.feature img, .game-card img { display: block; width: 100%; object-fit: cover; background: #e9dfeb; }
.feature img { height: 100%; max-height: 335px; min-height: 255px; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 9px; padding: clamp(18px, 3.5vw, 37px); }
.game-topic { color: #644c86; font-size: .67rem; font-weight: 850; letter-spacing: .085em; }
.feature .game-topic { color: #f0cbff; }
.feature h2 { font-size: clamp(2.25rem, 4.5vw, 4.2rem); letter-spacing: -.058em; line-height: 1; }
.feature-copy p:not(.game-topic) { color: #e8e0f0; max-width: 26ch; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; border-radius: 9px; padding: 8px 14px; font-weight: 780; font-size: .89rem; text-decoration: none; }
.button.primary { color: #211b32; background: var(--accent); }
.feature .button { margin-top: 6px; }
.feature:hover .button, .button.primary:hover { background: #ffe0a2; }
.button.secondary { color: var(--violet); background: #f5edf8; border: 1px solid #e1d2e9; }
.button.secondary:hover { background: #ebdcf3; }
.game-grid { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.game-card { display: block; height: 100%; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); overflow: hidden; text-decoration: none; }
.game-card img { aspect-ratio: 16 / 9; height: auto; }
.card-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 9px; padding: 13px 14px 15px; }
.card-copy h2 { font-size: clamp(1.04rem, 1.8vw, 1.36rem); line-height: 1.15; letter-spacing: -.034em; margin-top: 4px; }
.card-copy > p { grid-column: 1 / -1; color: var(--muted); font-size: .87rem; }
.play { align-self: center; display: grid; place-items: center; padding-left: 2px; width: 33px; height: 33px; border-radius: 50%; background: #eee6f7; color: var(--violet); font-size: .69rem; }
.game-card:hover { border-color: #ac93c7; }
.game-card:hover .play { color: white; background: var(--violet); }
.parent-section { border-top: 1px solid var(--line); padding: 26px 0 36px; scroll-margin-top: 12px; }
.parent-section > h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.04em; margin-bottom: 15px; }
.parent-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.parent-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(13px, 2.3vw, 22px); }
.parent-grid h3 { font-size: 1.15rem; line-height: 1.16; margin-bottom: 7px; }
.parent-grid p, .status { color: var(--muted); font-size: .86rem; }
.pdf-card { display: grid; grid-template-columns: 91px minmax(0,1fr); gap: 15px; align-items: center; }
.book { position: relative; width: 91px; aspect-ratio: .77; padding: 12px 9px; display: flex; flex-direction: column; justify-content: center; border-radius: 3px 9px 9px 3px; background: #ffdb91; box-shadow: inset 4px 0 #e4a64c; }
.book span { color: #7b4154; font-size: .92rem; }
.book strong { font: 800 1.02rem/1.02 var(--heading); }
.book i { width: 12px; height: 12px; background: #733c7d; border-radius: 50%; margin-top: 10px; box-shadow: 15px 0 #ad4a3c, 30px 0 #4a7764; }
.pdf-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 8px 0 5px; }
.supplies ul { list-style: none; padding: 0; margin: 0 0 9px; }
.supplies li { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 6px 0; gap: 4px 12px; border-bottom: 1px solid var(--line); }
.supplies li a { color: var(--violet); font-size: .86rem; font-weight: 700; }
.footer { border-top: 1px solid var(--line); min-height: 68px; }
.footer > a:last-child { color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; }

@media (max-width: 710px) {
  .container { width: calc(100% - 28px); }
  .header-row { min-height: 57px; }
  .brand { font-size: 1.03rem; gap: 6px; }
  .brand-mark { width: 29px; height: 29px; font-size: 1.18rem; }
  nav a { font-size: .78rem; }
  nav a:last-child { padding-inline: 7px; }
  nav span { display: none; }
  .feature { grid-template-columns: 1fr; border-radius: 14px; }
  .feature img { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .feature-copy { position: relative; padding: 13px 124px 15px 14px; gap: 4px; }
  .feature h2 { font-size: clamp(1.55rem, 6vw, 2.3rem); }
  .feature-copy p:not(.game-topic) { font-size: .78rem; }
  .feature .button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; }
  .game-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 10px; }
  .game-card { display: grid; grid-template-columns: 35% 1fr; align-items: center; min-height: 92px; border-radius: 10px; }
  .game-card img { aspect-ratio: auto; height: 100%; }
  .card-copy { padding: 9px; gap: 5px 6px; }
  .card-copy h2 { font-size: 1rem; }
  .card-copy > p { font-size: .79rem; }
  .play { width: 27px; height: 27px; }
  .parent-grid { grid-template-columns: 1fr; }
  .library { padding-bottom: 30px; }
}
@media (max-width: 355px) {
  nav { gap: 7px; }
  nav a:last-child { padding-inline: 5px; }
  .feature-copy { padding-right: 105px; }
  .feature .button { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
