/* Preserve the logo's intrinsic proportions at every viewport. */
footer > img {
  width: 180px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 699px) {
  .art-collage { height: calc(100vw * .84); }
}

@media (min-width: 700px) and (max-width: 1023px) {
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .hero {
    display: block;
    width: calc(100% - 64px);
    max-width: 660px;
    padding: 36px 0 0;
  }
  .hero-intro { padding-inline: 16px; }
  .hero h1 { font-weight: 700; }
  .first-line { font-size: 72px; }
  .second-line { font-size: 56px; }
  .title-rays { right: 50px; width: 68px; }
  .art-collage { height: auto; aspect-ratio: 1.16; max-height: none; margin-top: 25px; }
  .art-print { top: 24px; }
  .hero-actions { padding: 15px 16px 0; }
  .hero-actions .pill { flex: 0 0 auto; }
  .age-section { max-width: 660px; margin-top: 40px; }
  .page-section { max-width: 740px; padding: 50px 32px; }
  .classroom { column-gap: 25px; }
  .classroom .photo-card img { height: 330px; }
  .section-heading h2, h2 { font-size: 35px; }
  .bottom-nav { display: grid; }
}

@media (min-width: 1024px) {
  html { scroll-padding-top: 35px; }
  body { padding-bottom: 0; }
  .site-header {
    width: calc(100% - 64px);
    max-width: 1280px;
    min-height: 80px;
    margin: 24px auto 0;
    padding: 12px 28px;
    gap: 32px;
  }
  .logo { flex: 0 0 210px; }
  .logo img { width: 210px; height: auto; }
  #menu-toggle { display: none; }
  .site-header nav {
    position: static;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 1.8vw, 28px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .site-header nav a {
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    min-height: 44px;
    font-size: 14px;
    white-space: nowrap;
  }
  .site-header nav a:hover { color: var(--blue); }
  .site-header nav a:last-child {
    border: var(--border);
    border-radius: 28px;
    padding-inline: 18px;
    background: var(--orange);
    box-shadow: 2px 3px 0 var(--ink);
  }
  .hero {
    width: calc(100% - 96px);
    max-width: 1200px;
    padding: 60px 0 0;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    grid-template-rows: 1fr auto;
    column-gap: clamp(28px, 4vw, 64px);
  }
  .hero-intro { align-self: end; padding-bottom: 4px; }
  .hero h1 { margin-top: 25px; font-weight: 700; line-height: 1.1; }
  .first-line { font-size: clamp(64px, 6vw, 88px); }
  .second-line { font-size: clamp(37px, 4.05vw, 56px); margin-top: 12px; }
  .location { font-size: 15px; }
  .title-rays { width: 68px; right: 16px; top: 50px; }
  .art-collage {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1.11;
    align-self: center;
  }
  .art-print { top: 28px; left: 4%; width: 92%; padding: 9px; }
  .stroke-top { top: 0; right: 6%; width: 46%; }
  .stroke-bottom { bottom: 15px; left: -3%; width: 58%; }
  .hero-actions {
    align-self: start;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 28px 0 50px;
    gap: 24px;
  }
  .hero-actions .pill { max-width: none; padding: 13px 27px; font-size: 18px; }
  .hero-actions .text-link { font-size: 16px; }
  .age-section {
    width: calc(100% - 96px);
    max-width: 1200px;
    margin: 35px auto 0;
    padding: 0 0 58px;
  }
  .decorated-heading { margin-left: 12px; margin-bottom: 28px; }
  .decorated-heading h2 { font-size: 40px; font-weight: 700; }
  .age-links { max-width: 820px; gap: 24px; }
  .age-links a { min-height: 56px; font-size: 22px; }
  .page-section { width: calc(100% - 96px); max-width: 1200px; padding: 64px 0; }
  .classroom {
    margin-top: 25px;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    column-gap: 80px;
  }
  .classroom .photo-card { width: 100%; max-width: 570px; }
  .classroom .photo-card img { height: 440px; }
  .section-heading h2, h2 { font-size: 48px; }
  .classroom .story-links { gap: 28px; }
  .classroom .story-links a { font-size: 16px; }
  .explore {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 0 55px;
    padding: 50px 55px;
    margin-block: 50px;
    align-items: center;
  }
  .explore .eyebrow { grid-column: 1 / -1; }
  .explore h2 { grid-column: 1; grid-row: 2 / 4; }
  .explore > p:not(.eyebrow) { grid-column: 2; font-size: 16px; }
  .explore .pill { grid-column: 2; justify-self: start; }
  .teachers {
    display: grid;
    grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr);
    gap: 20px 55px;
    align-items: center;
  }
  .teachers .section-heading { margin-bottom: 0; align-self: end; }
  .teachers .teacher-poster { grid-column: 2; grid-row: 1 / 3; width: 100%; }
  .teacher-details { justify-self: start; align-self: start; }
  .visit {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 0 50px;
    padding: 55px;
    margin-top: 40px;
    border: var(--border);
    border-radius: 24px;
    align-items: start;
  }
  .visit .eyebrow { grid-column: 1 / -1; }
  .visit h2 { grid-column: 1; grid-row: 2 / 5; }
  .visit > p:not(.eyebrow), .visit > a { grid-column: 2; }
  .visit .pill { justify-self: start; }
  .visit .text-link { justify-self: start; }
  footer {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 10px 35px;
    width: calc(100% - 96px);
    max-width: 1200px;
    padding: 50px 0;
  }
  footer > img { grid-column: 1; grid-row: 1 / 3; width: 210px; }
  footer p { margin: 0; }
  footer div { margin: 0; }
}
