/* Read with Mip: parent site styles (mobile-first). */
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Andika'; src: url('/fonts/andika-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Andika'; src: url('/fonts/andika-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --cream: #FBF4E6; --paper: #FFFDF8; --ink: #2f2a22; --muted: #6b6355; --line: #eadfc8;
  --sage: #7FA37A; --leaf: #4F7F52; --leaf-dark: #3d6640; --coral: #F08A6B; --coral-dark: #a34a2c; /* 5.4:1 on cream: WCAG AA for small text */
  --sun: #F4C552; --sky: #8EC5E0; --soil: #8B6B4A;
  --radius: 18px; --shadow: 0 6px 24px rgba(79, 63, 30, .10);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --kid: 'Andika', 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.3rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 900; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 9; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(251, 244, 230, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.logo img { width: 36px; height: 36px; object-fit: contain; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 0;
  font: 800 1.02rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--leaf); color: #fff; box-shadow: 0 4px 0 var(--leaf-dark); }
.btn-primary:hover { background: #45734a; }
.btn-ghost { background: transparent; color: var(--leaf-dark); border: 2px solid var(--sage); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Sections */
section { padding: 56px 0; }
.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 20px; align-items: center; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-art { position: relative; }
.hero-art img { border-radius: 28px; box-shadow: var(--shadow); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; list-style: none; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .9rem; font-weight: 700; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.grid-3 { display: grid; gap: 16px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); font-weight: 900; margin-bottom: 10px; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 900; color: var(--coral-dark); margin-bottom: 8px; }
.book-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.book-strip figure { margin: 0; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--line); }
.book-strip figcaption { font: 700 1.05rem var(--kid); text-align: center; padding-top: 6px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 34px; position: relative; margin: 0 0 12px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.checklist.no li::before { background-color: var(--coral); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 800; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); }

/* Forms */
label { font-weight: 700; }
input[type=email], input[type=text], input[type=number], input[type=password], input[type=date] { width: 100%; min-height: 52px; padding: 12px 16px; font: 1.05rem var(--font); border: 2px solid var(--line); border-radius: 14px; background: #fff; }
input:focus { border-color: var(--sage); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; margin: 12px 0; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--leaf); }
.hp { position: absolute; left: -5000px; }
.form-msg { min-height: 1.4em; font-weight: 700; margin-top: 8px; }
.form-msg.err { color: var(--coral-dark); }

/* Footer */
.site-footer { padding: 32px 0 48px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }

/* Quiz */
.quiz { min-height: calc(100vh - 61px); min-height: calc(100svh - 61px); display: flex; flex-direction: column; padding: 16px 0 28px; }
.progress { height: 10px; background: #efe5d0; border-radius: 99px; overflow: hidden; margin: 6px 0 20px; }
.progress span { display: block; height: 100%; background: var(--sage); width: 0; transition: width .3s ease; }
.q-title { font-size: clamp(1.4rem, 5.5vw, 1.9rem); font-weight: 900; margin-bottom: 6px; }
.q-help { color: var(--muted); margin-bottom: 18px; }
.answers { display: grid; gap: 12px; }
.answer { min-height: 64px; text-align: left; padding: 14px 18px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font: 800 1.08rem var(--font); color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 12px; }
.answer:hover { border-color: var(--sage); }
.answer .emo { font-size: 1.5rem; width: 34px; text-align: center; }
.play-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--sun); border: 0; border-radius: 999px; padding: 10px 18px; font: 800 1rem var(--font); cursor: pointer; margin: 0 0 16px; min-height: 48px; }
.play-btn svg { width: 22px; height: 22px; }
.big-word { font: 700 clamp(3.5rem, 18vw, 6rem)/1 var(--kid); text-align: center; background: #fff; border-radius: 20px; padding: 24px 8px; margin: 0 0 16px; letter-spacing: .04em; }
.result-card { background: #fff; border-radius: 22px; padding: 24px; border: 2px solid var(--sage); }
.level-pill { display: inline-block; background: var(--sun); border-radius: 999px; padding: 4px 14px; font-weight: 900; margin-bottom: 10px; }
.back-link { background: none; border: 0; color: var(--muted); font: 700 .95rem var(--font); cursor: pointer; padding: 8px 0; }

@media (min-width: 760px) {
  body { font-size: 18px; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .answers.two { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
