/* Young Reader Support */
:root {
  --ink: #1f2d4d;
  --ink-soft: #4a5674;
  --paper: #ffffff;
  --wash: #eef4fb;
  --line: #d9e2ee;
  --blue: #2f66c2;
  --pink: #e0588a;
  --lemon: #f1be2c;
  --leaf: #4e9e58;
  --orange: #ee8a3a;
  --gold: #b8923a;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 36em; }
.prose { max-width: 38em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }
.brand svg { width: 34px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--wash); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 600 1rem var(--sans); color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; font: 700 1rem/1.2 var(--sans); text-decoration: none; padding: 14px 22px; border-radius: 10px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--wash); color: var(--ink); border-color: var(--ink); }
.nav .btn { padding: 10px 16px; color: #fff; }
.nav .btn:hover { background: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Hero */
.hero { padding: 8px 0 56px; }
.hero-banner { max-width: 820px; margin: 0 auto; }
.hero-banner img { width: 100%; }
.hero-copy { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 56px; align-items: end; margin-top: 12px; }
.hero-copy h1 { margin-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; color: var(--leaf); margin-bottom: 14px; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(78,158,88,.18); }
@media (max-width: 820px) { .hero-copy { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: 80px 0; }
.section.wash { background: var(--wash); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: .85fr 1.15fr; }
.split.flip > :first-child { order: 2; }
@media (max-width: 820px) { .split, .split.flip { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }
.photo { border-radius: 18px; overflow: hidden; }
.photo img { width: 100%; }
.photo.tilt { transform: rotate(-1.5deg); box-shadow: 10px 10px 0 var(--lemon); }
.photo.tilt-r { transform: rotate(1.2deg); box-shadow: -10px 10px 0 var(--pink); }
@media (max-width: 820px) { .photo { max-width: 420px; } }
@media (max-width: 820px) { #teacher .split > .photo { order: -1; width: 100%; margin: 0 auto 8px; } }

/* Section photos (the reader photos from the original site, one at the top of a section) */
.topper { margin: 0 0 34px; }
.topper img { display: block; height: 300px; width: auto; max-width: calc(100% - 8px); object-fit: cover; border-radius: 18px; box-shadow: 8px 8px 0 var(--lemon); }
.topper.pink img { box-shadow: 8px 8px 0 var(--pink); }
.topper.blue img { box-shadow: 8px 8px 0 var(--blue); }
@media (max-width: 700px) { .topper { margin-bottom: 28px; } .topper img { height: 250px; } }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 4px solid var(--c, var(--blue)); padding-top: 18px; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--c, var(--blue)); display: block; margin-bottom: 10px; }
.steps li:nth-child(1) { --c: var(--pink); }
.steps li:nth-child(2) { --c: var(--orange); }
.steps li:nth-child(3) { --c: var(--leaf); }
.steps li:nth-child(4) { --c: var(--blue); }
.steps h3 { margin-bottom: .35em; }
.steps p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* The book stack: reading skills, built bottom up */
.stack-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .stack-wrap { grid-template-columns: 1fr; } }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 5px; }
@media (max-width: 560px) { .stack li .spine { width: 100% !important; margin-left: 0 !important; } }
.stack li { display: grid; grid-template-columns: minmax(0, 1fr); }
.spine { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 64px 14px 22px; border-radius: 6px 10px 10px 6px; color: #fff; font-family: var(--serif); font-size: 1.2rem; box-shadow: inset 6px 0 0 rgba(0,0,0,.12), inset -2px 0 0 rgba(255,255,255,.25); }
.spine::after { content: ""; position: absolute; top: 8px; bottom: 8px; right: 44px; width: 2px; background: rgba(255,255,255,.45); }
.spine small { font-family: var(--sans); font-size: .95rem; font-weight: 600; line-height: 1.35; opacity: .92; }
.stack li:nth-child(1) .spine { background: var(--pink); width: 100%; }
.stack li:nth-child(2) .spine { background: var(--orange); width: 94%; margin-left: 3%; }
.stack li:nth-child(3) .spine { background: var(--leaf); width: 88%; margin-left: 7%; }
.stack li:nth-child(4) .spine { background: var(--blue); width: 82%; margin-left: 4%; }
.stack li:nth-child(5) .spine { background: var(--lemon); color: var(--ink); width: 74%; margin-left: 12%; }
.stack li:nth-child(5) .spine::after { background: rgba(31,45,77,.25); }
.stack-desc { font-size: 1rem; color: var(--ink-soft); margin: 6px 4px 10px; }
.stack-note { margin-top: 18px; font-size: .95rem; color: var(--ink-soft); }

/* Teacher */
.creds { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.creds li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.creds strong { display: block; font-weight: 700; }
.sign { font-family: var(--serif); font-size: 1.5rem; color: var(--blue); margin-top: 8px; }

/* Fees */
.fees { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; }
.price { font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; color: var(--ink); }
.price-note { font-weight: 600; color: var(--ink-soft); margin-top: 8px; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 28px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 700px) { .fees { grid-template-columns: 1fr; gap: 28px; } .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }

/* Stories */
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 32px; }
.story { margin: 0; padding: 28px; background: #fff; border-radius: 14px; border-left: 6px solid var(--c, var(--pink)); }
.story:nth-child(4n+2) { --c: var(--leaf); }
.story:nth-child(4n+3) { --c: var(--blue); }
.story:nth-child(4n+4) { --c: var(--orange); }
.story blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.story blockquote p { margin: 0 0 .8em; }
.story blockquote p:last-child { margin-bottom: 0; }
.story h3 { font-size: 1.4rem; margin-bottom: .6em; }
.story.full blockquote { font-family: var(--sans); font-size: 1.05rem; line-height: 1.65; }
.stories.list { grid-template-columns: 1fr; max-width: 46em; }
.story figcaption { font-weight: 700; font-size: 1rem; }
.story figcaption span { display: block; font-weight: 400; color: var(--ink-soft); }
.section:not(.wash) .story { background: var(--wash); }

/* Press */
.press-item { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; padding: 48px 0; border-top: 1px solid var(--line); }
.press-item:first-of-type { border-top: 0; padding-top: 0; }
.press-item .clip { display: block; background: #fff; padding: 12px; border: 1px solid var(--line); box-shadow: 8px 8px 0 var(--wash); transform: rotate(-1deg); }
.press-meta { font-weight: 600; color: var(--ink-soft); margin-bottom: 10px; }
.press-item blockquote { margin: 20px 0; padding-left: 18px; border-left: 4px solid var(--lemon); font-family: var(--serif); font-size: 1.15rem; }
@media (max-width: 820px) { .press-item { grid-template-columns: 1fr; gap: 24px; } }
.press-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.reach { list-style: none; padding: 0; margin: 24px 0 0; }
.reach li { margin-bottom: 14px; }
.reach span { display: block; font-size: .95rem; color: var(--ink-soft); }
.reach a { font-size: 1.25rem; font-weight: 700; text-decoration: none; }
form.consult { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section:not(.wash) form.consult { background: var(--wash); border-color: transparent; }
form.consult .full { grid-column: 1 / -1; }
form.consult label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
form.consult input, form.consult select, form.consult textarea { width: 100%; font: 1rem var(--sans); color: var(--ink); padding: 12px 14px; border: 1px solid #b9c6d8; border-radius: 10px; background: #fff; }
form.consult textarea { min-height: 120px; resize: vertical; }
form.consult .btn { justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: .95rem; color: var(--ink-soft); margin: 0; }
.form-done { grid-column: 1 / -1; background: #eaf6ec; border-left: 4px solid var(--leaf); padding: 18px 20px; border-radius: 8px; font-size: 1.05rem; line-height: 1.5; margin: 0; }
.form-done:focus { outline: none; }
.form-error { grid-column: 1 / -1; background: #fdecef; border-left: 4px solid var(--pink); padding: 12px 16px; border-radius: 8px; font-size: 1rem; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.consult { position: relative; }
form.consult.sent > :not(.form-done) { display: none; }
form.consult .btn:disabled { opacity: .7; cursor: wait; }
@media (max-width: 560px) { form.consult { grid-template-columns: 1fr; padding: 20px; } }

/* Page header (inner pages) */
.page-head { padding: 56px 0 24px; }
.page-head p { max-width: 36em; }

/* Footer */
.site-foot { background: var(--ink); color: #dfe6f3; padding: 48px 0 32px; margin-top: 0; font-size: 1rem; }
.site-foot a { color: #fff; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-grid .brand { color: #fff; }
.foot-small { margin-top: 28px; font-size: .9rem; color: #a9b6cf; }

/* Pull quotes from families, placed next to what they describe */
.pull { margin: 36px 0 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--c, var(--pink)); max-width: 40em; }
.pull blockquote { margin: 0 0 10px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.pull figcaption { font-size: .95rem; font-weight: 700; }
.pull figcaption a { font-weight: 600; margin-left: 6px; }
.pull.leaf { --c: var(--leaf); }
.pull.blue { --c: var(--blue); }
.pull.orange { --c: var(--orange); }
.pull.lemon { --c: var(--lemon); }
.pull.wide { max-width: 46em; margin-left: auto; margin-right: auto; }
.pull.big blockquote { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.35; }

/* Newspaper credit */
.featured-in { margin: 20px 0 0; font-size: 1rem; color: var(--ink-soft); }
.featured-in a { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); text-decoration-color: var(--lemon); text-decoration-thickness: 3px; }
.press-item.no-img { grid-template-columns: 1fr; max-width: 46em; }
.article { max-width: 46em; }
.article h2 { margin-bottom: .6em; }
.article h3 { margin-top: 2.2em; }
.article .pull { margin-top: 24px; }
.highlights { list-style: none; padding: 0; margin: 0; }
.highlights li { position: relative; padding: 0 0 0 30px; margin-bottom: 16px; }
.highlights li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 10px; border-radius: 2px 3px 3px 2px; background: var(--c, var(--pink)); }
.highlights li:nth-child(2) { --c: var(--orange); }
.highlights li:nth-child(3) { --c: var(--leaf); }
.highlights li:nth-child(4) { --c: var(--blue); }
.highlights li:nth-child(5) { --c: var(--lemon); }
.article-note { margin-top: 40px; font-size: .95rem; color: var(--ink-soft); }
.pull figcaption a { margin-left: 0; }

/* Real photos with credits */
.shot { margin: 0; }
.shot figcaption { margin-top: 18px; font-size: .9rem; color: var(--ink-soft); max-width: 34em; }
.shot.lead { margin: 36px 0 8px; }
.shot.lead .photo { border-radius: 14px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.gallery .photo { border-radius: 12px; aspect-ratio: 1 / 0.92; }
.gallery .photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { margin-top: 10px; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
