:root {
  color-scheme: light;
  --navy: #1f1a3d; --muted: #534d69; --cream: #fff5d4; --gold: #f2a11f;
  --green: #168768; --purple: #502996;
  font-family: ui-rounded, 'SF Pro Rounded', 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy); background: #caebe9;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; font-size: 17px; line-height: 1.65; background: linear-gradient(180deg, #ffffff12, #fff5d488 920px), url('meadow.png') center top / 1920px auto no-repeat; }
a { color: #12684f; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; border-radius: 8px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.2rem, 5.8vw, 4.5rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 900; margin-bottom: 24px; text-wrap: balance; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.25; letter-spacing: -.025em; font-weight: 800; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 10px; }
p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }
.skip-link { position: absolute; top: 0; left: 16px; padding: 12px 20px; background: #fff; transform: translateY(-150%); z-index: 5; }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; gap: 24px; justify-content: space-between; align-items: center; padding-block: 28px 14px; }
.brand { color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 14px; line-height: 1.15; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 900; text-shadow: 0 1px 8px #fff; }
.brand small { display: block; font-size: .69rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; margin-top: 6px; }
.brand-mark { display: grid; place-items: center; flex: 0 0 60px; width: 60px; height: 60px; color: #fff; font-size: 2.5rem; text-shadow: 0 3px #00563a55; border: 4px solid var(--cream); border-radius: 50%; background: linear-gradient(#28ad8b, var(--green)); box-shadow: 0 5px #61476180, inset 0 0 0 3px #ffffff40; }
.language-switch { display: flex; padding: 4px; background: #fff8e9ed; border: 2px solid #ffffffb3; border-radius: 18px; box-shadow: 0 4px 16px #1f1a3d16; }
.language-switch a { padding: 9px 12px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: .87rem; font-weight: 800; border-radius: 12px; color: var(--navy); }
.language-switch a[aria-current] { background: var(--green); color: #fff; box-shadow: 0 2px #064a3833; }
.page-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 12px 28px; }
.page-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border: 2px solid #fffbec; border-radius: 999px; background: #fff5d4ed; color: var(--navy); text-decoration: none; font-size: .94rem; font-weight: 800; box-shadow: 0 3px #43314a24; }
.page-nav a[aria-current] { color: #fff; background: var(--purple); border-color: #fff7e9; }
.card { padding: 30px; border: 3px solid transparent; border-radius: 30px; background: linear-gradient(125deg, #fffcf8 0%, #fff5d4 100%) padding-box, linear-gradient(135deg, #fff 10%, #efb755 100%) border-box; box-shadow: 0 12px 30px #37174420; }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: center; overflow: hidden; padding: 46px; }
.hero h1 { max-width: 700px; }
.eyebrow { color: #5a4774; font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.lead { font-size: clamp(1.06rem, 1.7vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 730px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0; }
.tags li { padding: 5px 12px; border-radius: 999px; background: #e3efe5; color: #21634d; font-size: .8rem; font-weight: 800; }
.actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; text-decoration: none; font-weight: 900; border: 2px solid #ffffffb3; border-radius: 18px; line-height: 1.3; text-align: center; }
.primary { background: linear-gradient(#1fa786, var(--green)); color: #fff; box-shadow: 0 5px #58466650, inset 0 1px 0 #ffffff38; }
.primary:hover { background: linear-gradient(#1da27f, #106d54); }
.primary:active { transform: translateY(3px); box-shadow: 0 2px #58466650; }
.text-link { font-weight: 800; padding-block: 10px; min-height: 44px; font-size: .9rem; }
.hero-art { position: relative; min-height: 370px; width: 100%; }
.hero-character { position: absolute; display: block; width: 330px; height: 330px; bottom: 18px; left: calc(50% - 165px); background: url('boy-frames.png') 75% 100% / 500% 400% no-repeat; z-index: 2; }
.hero-shadow { position: absolute; bottom: 6px; left: 25%; width: 50%; height: 22px; background: #697f6955; border-radius: 50%; filter: blur(4px); }
.math-chip { position: absolute; border: 2px solid #fff; padding: 7px 18px; background: #fff5d4; border-radius: 18px; font-size: 1.6rem; font-weight: 900; box-shadow: 0 5px 0 #e9bb5750; z-index: 3; }
.chip-one { left: 0; top: 10px; transform: rotate(-7deg); }
.chip-two { right: 0; top: 44px; color: var(--green); transform: rotate(7deg); }
.star { position: absolute; bottom: 75px; right: 5px; color: #a46208; font-size: 3rem; }
.feature-section { padding-block: 42px 32px; }
.feature-section > h2 { display: inline-block; padding: 12px 20px; background: #fff5d4ed; border-radius: 18px; border: 2px solid #ffffffc9; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-grid .card p { color: var(--muted); font-size: 1rem; }
.icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: #e1f0de; color: #12684f; font-size: 1.65rem; font-weight: 900; margin-bottom: 18px; }
.feature-grid .card:nth-child(2) .icon { background: #ffe5a1; color: #8c5708; }
.feature-grid .card:nth-child(3) .icon { background: #e6ddf5; color: var(--purple); }
.parent-note { display: flex; align-items: center; gap: 24px; }
.parent-note p { color: var(--muted); }
.seal { display: grid; place-items: center; flex: 0 0 70px; width: 70px; height: 70px; background: #e2f1e1; color: #12684f; font-size: 2rem; border-radius: 50%; }
.page-head { padding: 36px 42px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(2.05rem, 4.5vw, 3.55rem); max-width: 820px; }
.updated { color: var(--muted); font-size: .86rem; margin-top: 22px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; }
.contact-card .button { margin-block: 10px 8px; }
.email { font-weight: 800; overflow-wrap: anywhere; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: 8px; }
.safety-note { background: #f3e9ff; color: #453660; padding: 16px 18px; border-radius: 16px; font-size: .92rem; margin-top: 22px; }
.faq-section { margin-block: 38px; }
.faq-section > h2 { display: inline-block; padding: 10px 20px; border-radius: 16px; background: #fff5d4f5; }
.faq { margin-block: 12px; border: 2px solid #efce91; border-radius: 20px; background: #fffbf1; overflow: hidden; box-shadow: 0 3px #4536600f; }
.faq summary { padding: 17px 22px; cursor: pointer; font-weight: 800; min-height: 54px; }
.faq summary::marker { color: var(--green); }
.faq p { margin: 0 22px 22px; color: var(--muted); }
.document-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); align-items: start; gap: 24px; }
.toc { position: sticky; top: 24px; padding: 24px; font-size: .9rem; }
.toc h2 { font-size: 1rem; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding-block: 9px; min-height: 44px; text-decoration: none; line-height: 1.4; }
.document { padding: 34px; }
.document-section + .document-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid #ddd1b7; }
.document h2 { font-size: 1.35rem; }
.document p { font-size: 1rem; }
.summary-note { background: #e4f0e2; border: 1px solid #a5c9a4; color: #204e3b; padding: 20px; border-radius: 18px; margin-bottom: 32px; font-weight: 700; }
.policy-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; font-size: .88rem; }
.contact-end { margin-top: 34px; padding-top: 24px; border-top: 1px solid #ddd1b7; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 32px; margin-block: 34px 24px; border-radius: 24px; background: #fff5d4f2; font-size: .85rem; color: var(--muted); }
.site-footer strong { color: var(--navy); font-size: 1rem; }
.site-footer nav { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.site-footer a { padding-block: 10px; min-height: 44px; }
.site-footer p { margin: 4px 0 0; }
@media (min-width: 1920px) { body { background-size: cover; } }
@media (max-width: 900px) {
  .hero { padding: 30px; grid-template-columns: 1.2fr 1fr; }
  .hero-character { width: 270px; height: 270px; left: calc(50% - 135px); }
  .hero-art { min-height: 320px; }
  .chip-one { left: -8px; } .chip-two { right: -8px; }
  .feature-grid { gap: 14px; } .card { padding: 24px; }
  .document-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .site-header { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 20px; }
  .language-switch { align-self: flex-end; }
  .page-nav { gap: 7px; margin-bottom: 20px; }
  .page-nav a { padding: 7px 13px; font-size: .86rem; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px 16px; }
  .hero-art { min-height: 280px; max-width: 320px; margin-inline: auto; }
  .hero-character { width: 260px; height: 260px; left: calc(50% - 130px); bottom: 8px; }
  .math-chip { font-size: 1.15rem; padding: 5px 14px; }
  .chip-one { top: 16px; left: 0; } .chip-two { top: 38px; right: 0; }
  .hero h1 { font-size: 2.6rem; }
  .feature-grid, .contact-grid, .document-layout { grid-template-columns: 1fr; }
  .feature-section { padding-block: 30px 24px; }
  .parent-note { align-items: flex-start; gap: 15px; }
  .seal { flex-basis: 44px; height: 44px; width: 44px; font-size: 1.5rem; }
  .page-head { padding: 28px 24px; }
  .toc { position: static; }
  .document { padding: 25px; }
  .site-footer { padding: 24px; }
  .actions { gap: 12px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 2.3rem; }
  .brand { font-size: 1.15rem; }
  .brand-mark { flex-basis: 52px; width: 52px; height: 52px; }
  .card { border-radius: 24px; }
  .parent-note { display: block; }
  .parent-note .seal { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media print {
  body { background: #fff; color: #000; }
  .site-header, .page-nav, .toc, .site-footer, .hero-art { display: none; }
  .wrap { width: 100%; }
  .card { background: #fff; box-shadow: none; border: 0; padding: 0; }
  .document-layout { display: block; }
  h1 { font-size: 26pt; }
  h2 { break-after: avoid; }
  .document-section { break-inside: avoid; }
}

/* Approved app-icon palette. Text remains selectable and readable by VoiceOver. */
body { background-image: linear-gradient(180deg, #ffffff24, #fff5d4d9 960px), url('mill-background.png'); }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; font-family: 'Arial Rounded MT Bold', ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif; font-synthesis: weight; font-weight: 900; line-height: 1.08; letter-spacing: -.035em; }
.wordmark-name, .wordmark-kids {
  position: relative;
  isolation: isolate;
  color: transparent;
  filter: drop-shadow(0 4px 0 #380855);
}
.wordmark-name::before, .wordmark-kids::before {
  content: attr(data-lettering); position: absolute; inset: 0; z-index: 0;
  color: #671398; -webkit-text-stroke: 6px #671398;
}
.wordmark-name::after, .wordmark-kids::after {
  content: attr(data-lettering); position: absolute; inset: 0; z-index: 1; color: #ffd450;
}
.wordmark-name { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.wordmark-kids { font-size: 1.15rem; letter-spacing: .01em; margin-top: 3px; }
.wordmark-kids::before { -webkit-text-stroke-width: 3.6px; }
@supports (-webkit-background-clip: text) {
  .wordmark-name::after, .wordmark-kids::after {
    background: linear-gradient(180deg, #ffffdc 4%, #ffe04e 45%, #ffa116 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.brand { gap: 18px; text-shadow: none; }
.brand > span { text-align: center; }
.brand small { margin-top: 12px; color: #3a254e; }
.brand-icon { flex: 0 0 80px; width: 80px; height: 80px; object-fit: cover; border-radius: 22px; border: 3px solid #fff9de; box-shadow: 0 5px 0 #582c7955; }
h1 { font-family: -apple-system, BlinkMacSystemFont, 'Arial Rounded MT Bold', sans-serif; font-weight: 900; color: #ffc83f; -webkit-text-stroke: 2px #671398; paint-order: stroke fill; filter: drop-shadow(0 3px 0 #380855); padding-bottom: 5px; }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); line-height: 1.14; }
.hero-art { min-height: 0; }
.hero-illustration { display: block; width: 100%; height: auto; border-radius: 30px; border: 4px solid #fff9de; box-shadow: 0 8px 0 #582c7929, 0 16px 30px #35205521; }
.site-footer .wordmark { align-items: flex-start; }
.site-footer .wordmark-name { font-size: 1.65rem; }
.site-footer .wordmark-name::before { -webkit-text-stroke-width: 4px; }
.site-footer .wordmark-kids { font-size: .85rem; }
.site-footer .wordmark-kids::before { -webkit-text-stroke-width: 2.4px; }
@media (max-width: 700px) {
  .site-header { align-items: center; }
  .language-switch { align-self: center; }
  .hero-art { width: min(100%, 350px); min-height: 0; }
  .hero-illustration { border-radius: 26px; }
  .brand-icon { flex-basis: 64px; width: 64px; height: 64px; border-radius: 18px; }
  .brand { gap: 12px; }
  .wordmark-name { font-size: clamp(2rem, 8.8vw, 3.2rem); }
}
@media (max-width: 380px) {
  .brand-icon { flex-basis: 52px; width: 52px; height: 52px; border-radius: 16px; }
  .brand { gap: 10px; }
  .wordmark-name { font-size: 2rem; }
}
@media print {
  h1 { color: #000; background: none; -webkit-text-stroke: 0; filter: none; }
}
