/* Kid Founder — brand design tokens + base reset.
   Defined once here; every lesson screen and component reuses these variables. */
:root {
  /* Palette */
  --coral:#E85D75;  --coral-soft:#FCBFB9;  --coral-bg:#FEF3F1;
  --plum:#5F5476;   --lavender:#7C6BA0;    --lavender-soft:#D9CDEE; --lavender-bg:#F6F2FB;
  --gold:#F5B942;   --gold-bg:#FFF8EC;
  --green:#3F8A5C;  --green-bg:#EEF7F1;
  --cream:#FDFBF7;  --white:#FFFFFF;       --text-muted:#9A8FAE;

  /* Semantic aliases */
  --bg:var(--cream);
  --surface:var(--white);
  --text:var(--plum);
  --text-soft:var(--lavender);
  --border:var(--lavender-soft);

  /* Shape + depth */
  --radius:22px;  --radius-sm:14px;  --radius-pill:999px;
  --shadow-sm:0 2px 10px rgba(95,84,118,.08);
  --shadow:0 12px 34px rgba(95,84,118,.14);

  /* Type */
  --font-head:'Fredoka', system-ui, -apple-system, sans-serif;
  --font-body:'Quicksand', 'Inter', system-ui, -apple-system, sans-serif;

  --wrap:1060px;
}

*,*::before,*::after { box-sizing:border-box; }

html { -webkit-text-size-adjust:100%; }

body {
  margin:0;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(1200px 600px at 100% -10%, var(--lavender-bg), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, var(--coral-bg), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  font-weight:500;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

h1,h2,h3,h4 {
  font-family:var(--font-head);
  font-weight:600;
  line-height:1.15;
  color:var(--plum);
  margin:0 0 .5em;
}
h1 { font-size:clamp(1.9rem, 5vw, 2.7rem); }
h2 { font-size:clamp(1.35rem, 3.4vw, 1.9rem); }
h3 { font-size:1.2rem; }

p { margin:0 0 1rem; }
a { color:var(--lavender); text-decoration:none; }
a:hover { text-decoration:underline; }
img,svg,canvas { max-width:100%; }

.wrap { width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:20px; }
main.wrap { flex:1 0 auto; padding-block:28px 44px; }

.muted { color:var(--text-muted); font-size:.95rem; }

.skip-link { position:absolute; left:-9999px; top:auto; }
.skip-link:focus {
  left:16px; top:16px; z-index:1000;
  background:var(--white); color:var(--plum);
  padding:10px 16px; border-radius:var(--radius-sm); box-shadow:var(--shadow);
}

:focus-visible { outline:3px solid var(--lavender); outline-offset:2px; border-radius:6px; }

@media (prefers-reduced-motion:reduce) {
  * { animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
