@font-face {
  font-family: 'DM Sans';
  src: url('dm-sans-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('dm-sans-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Young Serif';
  src: url('young-serif-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Young Serif';
  src: url('young-serif-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --paper: #fff9ed;
  --cream: #fffdf5;
  --ink: #203266;
  --cobalt: #273bb0;
  --brick: #a8382a;
  --mint: #deefde;
  --line: #e6d8bb;
  --heading: 'Young Serif', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; min-width: 280px; color: var(--ink); background: var(--paper); font: 400 1rem/1.55 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font: 400 2.5rem/1.08 var(--heading); letter-spacing: -.04em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }
:where(a, button, summary):focus-visible { outline: 3px solid var(--cobalt); outline-offset: 5px; }
.site-shell { width: min(1240px, 100% - 48px); margin-inline: auto; }
.site-skip { position: absolute; z-index: 60; inset: .5rem auto auto .5rem; padding: .6rem 1rem; color: #fff; background: var(--cobalt); transform: translateY(-150%); }
.site-skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 3vw, 3rem); }
.site-brand { display: block; flex: none; }
.site-brand img { width: 89px; height: 61px; object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem clamp(.65rem, 2.3vw, 2.4rem); }
.site-nav a, .site-store { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .94rem; text-decoration: none; font-weight: 720; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--brick); text-decoration: underline; text-underline-offset: .4rem; text-decoration-thickness: 2px; }
.site-store { padding: .35rem 1rem; border: 1px solid #c5c7df; border-radius: 3rem; gap: .6rem; flex: none; }
.site-store:hover { border-color: var(--cobalt); background: #eeebfe; }

.site-button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 49px; padding: .6rem 1.2rem; border: 1px solid transparent; border-radius: 3rem; background: var(--cobalt); color: #fff; font-weight: 740; text-decoration: none; line-height: 1.2; }
.site-button:hover { background: #192c93; }
.site-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; color: var(--cobalt); font-weight: 760; text-underline-offset: .29rem; text-decoration-thickness: 1px; }
.site-link:hover { color: var(--brick); }

.home-hero { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: clamp(1.25rem, 4vw, 3.5rem); padding-block: clamp(2.6rem, 5.4vw, 5rem) clamp(2.75rem, 5vw, 4.6rem); }
.home-hero-copy { position: relative; padding-block: 1rem .55rem; }
.home-hero h1 { color: var(--ink); font-size: clamp(2.7rem, 5.5vw, 5.4rem); line-height: .985; letter-spacing: -.055em; }
.home-hero h1 em { color: var(--brick); font-style: normal; }
.home-hero p { max-width: 33ch; margin-top: 1.45rem; font-size: clamp(1rem, 1.65vw, 1.2rem); line-height: 1.5; }
.home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin-top: 1.5rem; }
.hero-spark { display: block; width: clamp(2.3rem, 4vw, 3.5rem); height: auto; color: #ad6531; margin: 0 0 1.1rem .2rem; transform: rotate(-10deg); }
.home-hero-art { isolation: isolate; position: relative; padding: 0 0 9px 8px; }
.home-hero-art::before { position: absolute; z-index: -1; inset: 11px 9px 0 0; content: ''; border-radius: 5% 5% 6% 3% / 6% 5% 7% 5%; background: #eeb754; }
.home-hero-art picture { display: block; overflow: hidden; border-radius: 6% 4% 5% 3% / 8% 5% 6% 5%; background: #e0edd5; }
.home-hero-art img { width: 100%; height: auto; }

.grade-band { background: #f9df93; border-block: 1px solid #ead28d; }
.grade-inner { display: grid; grid-template-columns: minmax(13rem, .75fr) minmax(0, 1.25fr); gap: 1rem clamp(1.25rem, 4vw, 3.5rem); align-items: center; padding-block: 1.45rem; }
.grade-intro h2 { font-size: clamp(1.65rem, 2.9vw, 2.8rem); }
.grade-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .65rem; }
.grade-links a { display: flex; justify-content: center; align-items: center; gap: .3rem; min-height: 55px; padding: .32rem .34rem; border: 1px solid #d8b35c; border-radius: .7rem; color: var(--ink); background: #fff7da; text-decoration: none; white-space: nowrap; font-weight: 750; }
.grade-links a:nth-child(2) { background: #ffefd7; }
.grade-links a:nth-child(3) { background: #f9eadf; }
.grade-links a:nth-child(4) { background: #e8efdb; }
.grade-links a:hover { background: var(--cream); border-color: var(--cobalt); }
.grade-links strong { font: 400 clamp(1.28rem, 2.2vw, 2rem)/1 var(--heading); color: var(--brick); }
.grade-links a span { font-size: .8rem; opacity: .8; }

.home-shelf { padding-block: clamp(3rem, 7vw, 6rem); }
.home-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .35rem 1.5rem; margin-bottom: 1.4rem; }
.home-section-heading h2, .resource-copy h2 { font-size: clamp(2.15rem, 4vw, 4rem); }
.shelf-items { display: grid; gap: clamp(.6rem, 2vw, 1.5rem); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shelf-book { margin: 0; min-width: 0; }
.shelf-cover { display: grid; place-items: center; aspect-ratio: 1; padding: clamp(.8rem, 2.6vw, 1.8rem); border-radius: 1.15rem; background: #f2deda; }
.shelf-book:nth-child(2) .shelf-cover { background: #dfeddd; }
.shelf-book:nth-child(3) .shelf-cover { background: #f8e7ad; }
.shelf-book:nth-child(4) .shelf-cover { background: #ebe2f7; }
.shelf-cover img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(2px 7px 5px #29293434); }
.shelf-book figcaption { margin: .55rem .1rem 0; font-weight: 740; overflow-wrap: anywhere; }

.home-resources { background: var(--mint); border-block: 1px solid #c7ddc6; }
.resource-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(1.5rem, 5.5vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 5.8vw, 5rem); }
.resource-art { width: 100%; height: auto; border-radius: 2% 5% 3% 5% / 4% 7% 5% 7%; }
.resource-copy p { max-width: 35ch; margin-block: 1rem .7rem; }
.resource-copy ul { display: flex; flex-wrap: wrap; column-gap: 1.25rem; margin: 0; padding: 0; list-style: none; }

.site-footer { padding: 2.5rem 0 1.4rem; background: #eeebfa; border-top: 1px solid #dad6ec; }
.footer-inner { display: grid; grid-template-columns: minmax(10rem, 1fr) 1fr 1.3fr; align-items: start; gap: 1.5rem; }
.footer-inner nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-inner a:not(.site-brand), .site-legal a { min-height: 35px; display: inline-flex; align-items: center; text-underline-offset: .23rem; }
.footer-inner a:hover, .site-legal a:hover { color: var(--brick); }
.footer-inner p { margin-top: .45rem; }
.footer-contact { font-style: normal; overflow-wrap: anywhere; }
.footer-contact a { margin-top: .3rem; }
.site-legal { margin-top: 1.35rem; padding-top: .9rem; border-top: 1px solid #d4cde6; display: flex; flex-wrap: wrap; gap: .1rem 1.2rem; font-size: .85rem; }
.site-legal [data-privacy-preferences] { cursor: pointer; min-height: 35px; border: 0; padding: 0; background: transparent; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: .23rem; }

@media (max-width: 880px) {
  .site-shell { width: min(100% - 36px, 1240px); }
  .header-inner { gap: .7rem; }
  .site-nav, .site-store { font-size: .86rem; }
  .home-hero { gap: 1.45rem; }
  .home-hero-actions { gap: .4rem .9rem; }
  .grade-inner { grid-template-columns: minmax(10rem, .65fr) minmax(0, 1.35fr); }
}

@media (max-width: 680px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .15rem .55rem; padding-top: .3rem; }
  .site-brand img { width: 74px; height: 51px; }
  .site-nav { grid-column: 1/-1; grid-row: 2; justify-content: space-between; gap: .08rem .55rem; }
  .site-nav a { font-size: .84rem; }
  .site-store { grid-column: 2; grid-row: 1; min-height: 36px; padding: .22rem .62rem; font-size: .83rem; }
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 1.45rem; padding-block: 1.5rem 2.25rem; }
  .home-hero-copy { padding: 0; }
  .home-hero h1 { font-size: clamp(2.68rem, 10.5vw, 4.5rem); }
  .home-hero p { margin-top: .85rem; }
  .hero-spark { position: absolute; right: .65rem; top: .7rem; width: clamp(2.05rem, 9vw, 3.9rem); }
  .home-hero-actions { margin-top: .95rem; }
  .grade-inner { grid-template-columns: minmax(0, 1fr); padding-block: 1.2rem; gap: .7rem; }
  .grade-links { gap: .4rem; }
  .grade-links a { min-height: 49px; font-size: .83rem; }
  .grade-links a span { display: none; }
  .shelf-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-spread { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner > :first-child { grid-column: 1/-1; }
}

@media (max-width: 365px) {
  .site-shell { width: calc(100% - 28px); }
  .site-nav { justify-content: flex-start; column-gap: .68rem; }
  .home-hero h1 { font-size: 2.46rem; }
  .hero-spark { right: .2rem; top: .35rem; }
  .grade-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { grid-template-columns: minmax(0,1fr); }
}
