:root {
  --ink: #614838;
  --cream: #f4eddf;
  --paper: #fffaf1;
  --yellow: #f9ca45;
  --coral: #f5834e;
  --blue: #8399ac;
  --sage: #dbdcac;
  --line: rgba(97, 72, 56, .20);
}

body { background: var(--cream); }
.site-header { background: rgba(244, 237, 223, .96); }
.brand img { display: block; width: 122px; height: auto; }
footer .brand img { width: 150px; }
.pill-button { color: #fffaf1; }
.pill-button:hover { box-shadow: 0 7px 0 rgba(97, 72, 56, .15); }
.hero-lead, .section-heading > p, .card-copy p, .feature-copy li p { color: #6f5a4b; }

.hero-art { background: var(--blue); }
.sun { background: #f8e85c; }
.hero-wattle { position: absolute; width: 255px; right: -15px; top: 6px; z-index: 1; transform: rotate(7deg); }
.scribble { right: 198px; top: 36px; color: var(--ink); z-index: 3; }
.scribble i { color: #fffaf1; }
.paper { border-radius: 20px 20px 20px 5px; box-shadow: 10px 13px 0 rgba(97, 72, 56, .16); }
.paper-two { background: #f9ae8e; }
.paper-three { background: #dbdcac; }

.manifesto { background: var(--ink); }
.manifesto h2 em { color: #f9ae8e; }
.manifesto > p, .values article > b { color: #f8e85c; }
.values p { color: #f4eddf; opacity: .8; }
.classroom-story { position: relative; padding: 8rem clamp(1.5rem, 6vw, 7rem); display: grid; grid-template-columns: .8fr 1.2fr .7fr; gap: 1.4rem; align-items: center; overflow: hidden; }
.story-copy { padding-right: 2rem; position: relative; z-index: 2; }
.story-copy h2, .how-it-works h2 { font: 700 clamp(3rem, 5vw, 5.3rem)/.94 var(--serif); letter-spacing: -.045em; margin: 1rem 0 1.5rem; }
.story-copy p:not(.eyebrow) { color: #6f5a4b; max-width: 390px; }
.underlined-link { display: inline-block; margin-top: 1rem; font-weight: 700; text-underline-offset: .35rem; }
.photo { margin: 0; position: relative; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) sepia(.08); }
.photo-large { height: 600px; transform: rotate(-1.5deg); }
.photo-small { height: 390px; align-self: end; transform: rotate(2.5deg); }
.photo figcaption { position: absolute; background: #fffaf1; bottom: 1rem; left: 1rem; padding: .55rem .8rem; font: 600 1rem var(--serif); }
.story-leaf { position: absolute; width: 230px; left: 22%; bottom: -70px; transform: rotate(20deg); opacity: .9; }
.chip.active, .chip:hover { background: var(--ink); }
.resource-card { border-radius: 22px 22px 8px 8px; overflow: hidden; }
.resource-card:hover { box-shadow: 0 12px 0 rgba(97, 72, 56, .10); }
.resource-card:nth-child(4n+1) .card-art { background: #f9ae8e; }
.resource-card:nth-child(4n+2) .card-art { background: #f9ca45; }
.resource-card:nth-child(4n+3) .card-art { background: #dbdcac; }
.resource-card:nth-child(4n) .card-art { background: #8399ac; }

.feature-strip { background: #dbdcac; }
.feature-art { background: #f9ae8e; }
.billy-button { position: absolute; width: 62%; max-width: 430px; right: -5%; top: -3%; transform: rotate(9deg); }
.feature-art p { color: var(--ink); }
.membership { background: #f9ca45; }
.teacher-quote { min-height: 620px; display: grid; grid-template-columns: 1.1fr .9fr; background: var(--blue); }
.teacher-quote > img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; filter: saturate(.78) sepia(.08); }
.teacher-quote blockquote { margin: 0; padding: clamp(3rem, 7vw, 7rem); display: flex; flex-direction: column; justify-content: center; }
.teacher-quote blockquote > span { font: 700 7rem/.5 var(--serif); color: #f9ca45; }
.teacher-quote blockquote p { font: 600 clamp(2rem, 3.4vw, 3.8rem)/1.07 var(--serif); letter-spacing: -.03em; }
.teacher-quote blockquote footer { display: block; padding: 0; background: transparent; color: var(--ink); font-size: .8rem; }
.how-it-works { padding: 8rem clamp(1.5rem, 6vw, 7rem); background: #fffaf1; }
.how-it-works h2 em { color: var(--coral); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 4rem; }
.steps article { min-height: 270px; border: 1px solid var(--line); border-radius: 24px 24px 8px 24px; padding: 2rem; background: var(--cream); }
.steps article:nth-child(2) { background: #f9ae8e; }
.steps article:nth-child(3) { background: #dbdcac; }
.steps span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fffaf1; font-weight: 700; }
.steps h3 { font: 700 1.7rem var(--serif); margin: 2.5rem 0 .7rem; }
.price-card { border-radius: 28px 28px 10px 28px; }
.newsletter > div > img { width: 64px; height: 64px; object-fit: contain; }
footer { background: var(--ink); }
footer p, footer small { color: #f4eddf; opacity: .78; }
.dialog-hero { background: #f9ca45; }
.dialog-body .curriculum { background: #edebc8; }

@media (max-width: 590px) {
  .brand img { width: 95px; }
  .hero-wattle { width: 175px; right: -15px; }
  .scribble { right: 115px; top: 25px; font-size: 1.25rem; }
  .billy-button { width: 75%; }
  .classroom-story { padding: 5rem 1.3rem; grid-template-columns: 1fr 1fr; }
  .story-copy { grid-column: 1 / -1; padding: 0; }
  .photo-large { height: 330px; }
  .photo-small { height: 240px; }
  .story-leaf { width: 130px; left: 45%; }
  .teacher-quote { grid-template-columns: 1fr; }
  .teacher-quote > img { min-height: 360px; height: 360px; }
  .teacher-quote blockquote { padding: 4rem 1.3rem; }
  .steps { grid-template-columns: 1fr; }
  .how-it-works { padding: 5rem 1.3rem; }
}

@media (min-width: 591px) and (max-width: 900px) {
  .classroom-story { grid-template-columns: 1fr 1fr; }
  .story-copy { grid-column: 1 / -1; }
  .teacher-quote { grid-template-columns: 1fr; }
}
