/* Learning Playtime — stylesheet (derived from the site's existing look) */
:root {
  --bg: #fff8f1;
  --surface: #ffffff;
  --ink: #1f2235;
  --ink-soft: #4a4f6b;
  --muted: #7a7f95;
  --line: #efe5d6;
  --pink: #ff5e8a;
  --orange: #ff9b3d;
  --yellow: #ffd23d;
  --teal: #0fb5b5;
  --blue: #5b8def;
  --green: #2bb673;
  --shadow: 0 8px 22px rgba(31, 34, 53, 0.08);
  --radius: 18px;
  --radius-lg: 24px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 90% -200px, rgba(255, 210, 61, 0.25), transparent 60%),
    radial-gradient(900px 500px at -100px 300px, rgba(255, 94, 138, 0.18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #c8385f; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #a02a4c; }
h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.12rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 0 0 12px 0; z-index: 100; }
.skip:focus { left: 0; }

/* Header */
.site-header { background: linear-gradient(95deg, #ff5e8a, #ff9b3d 55%, #ffd23d); padding: 14px 0; border-bottom: 4px solid #1f2235; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.35rem; }
.brand-mark { display: inline-flex; background: #fff; border-radius: 12px; padding: 4px; box-shadow: var(--shadow); }
.nav { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: rgba(255, 255, 255, 0.45); }

/* Hero + cards */
.hero { padding: 32px 0 12px; }
.hero .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.eyebrow { color: #b02d53; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.82rem; margin: 0 0 10px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.card {
  background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--ink);
  box-shadow: 0 5px 0 var(--ink); display: flex; flex-direction: column; gap: 6px;
}
.card:hover { color: var(--ink); transform: translateY(-2px); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-soft); }
.card .count { font-weight: 800; color: #b02d53; }

/* Data tables + facts */
.panel { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 18px; box-shadow: 0 5px 0 var(--ink); margin-top: 18px; }
.facts { width: 100%; border-collapse: collapse; margin-top: 12px; }
.facts th, .facts td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts th { width: 42%; color: var(--ink-soft); font-weight: 700; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: none; }
.num { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th, table.data td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data thead th { background: #fff8d6; border-bottom: 2px solid var(--ink); font-weight: 800; }
table.data tbody tr:nth-child(even) { background: #fdf7ef; }
.lede { color: var(--ink-soft); max-width: 70ch; }
.note { font-size: 0.88rem; color: var(--muted); }
.crumbs { padding: 14px 0 0; font-size: 0.9rem; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; max-width: 1180px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 6px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 28px 0 8px; }
.pager a, .pager span { padding: 7px 11px; border-radius: 10px; font-weight: 700; border: 2px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none; }
.pager .cur { background: var(--pink); color: #fff; }
.cols { columns: 2; column-gap: 32px; margin-top: 12px; }
.cols a { text-decoration: none; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em 1.2em; }
.quote { border-left: 5px solid var(--pink); padding: 6px 0 6px 16px; margin: 1em 0; color: var(--ink-soft); font-style: italic; }
footer.site-footer { background: #1f2235; color: #d8dbf0; padding: 32px 0; margin-top: 44px; }
.site-footer .cols { display: grid; columns: auto; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.site-footer h4 { color: #fff; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #ffd23d; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy { color: #8b90b4; font-size: 0.85rem; margin-top: 18px; }
@media (max-width: 860px) {
  .cols { columns: 1; }
  .nav { gap: 4px 10px; }
  .nav a { padding: 6px 9px; font-size: 0.95rem; }
}
