:root {
  color-scheme: light;
  --paper: #faf8f2;
  --ink: #223e41;
  --soft-ink: #43595a;
  --blue: #21699b;
  --line: #ccd4cc;
  --serif: 'Baskervville', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'DM Sans', 'Avenir Next', Avenir, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #ac4d18; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1200px; width: 86%; margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: .5rem; padding: .65rem 1rem; background: white; transform: translateY(-160%); z-index: 10; }
.skip:focus { transform: translateY(0); }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, nav, .footer-inner { display: flex; align-items: center; justify-content: space-between; }
.masthead-inner { min-height: 82px; gap: 2rem; }
.brand { display: block; flex: 0 0 auto; width: 155px; height: 55px; overflow: hidden; position: relative; }
.brand img { position: absolute; width: 200px; max-width: none; left: -26px; top: -4px; }
nav { gap: clamp(1.2rem, 3.1vw, 3rem); }
nav a, footer a { text-decoration: none; font-weight: 650; font-size: .94rem; }
nav a:hover, footer a:hover { text-decoration: underline; }
.hero { overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; padding-block: clamp(2rem, 3vw, 3.7rem); }
.hero-copy { padding-block: 1rem; z-index: 1; }
h1, h2, h3, blockquote p { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(5rem, 8.4vw, 8.85rem); letter-spacing: -.066em; line-height: .87; }
h1 em { display: block; color: var(--blue); font-weight: 400; }
.hero-copy > p { margin: 1.65rem 0 1.6rem; max-width: 29em; font-size: clamp(1.03rem, 1.48vw, 1.24rem); line-height: 1.55; color: var(--soft-ink); }
.button { display: inline-flex; align-items: center; gap: 1.25rem; padding: .87rem 1.17rem; border-radius: 4px; background: var(--ink); color: #fff; text-decoration: none; font-size: .96rem; font-weight: 650; }
.button:hover { background: #285e66; }
.button span { font-size: 1.08em; }
.album-cover { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.1; }
.sky { position: absolute; inset: 6% 4% 7% 5%; background: #e4edef; border-radius: 50%; transform: rotate(-12deg); }
.orbit { position: absolute; inset: 15% -1% 9% 0; border: 1.5px dashed #9eafb0; border-radius: 50%; transform: rotate(-24deg); }
.astronaut { position: absolute; width: 100%; max-width: none; left: -.5%; top: -7%; transform: rotate(-5deg); }
.rocket { position: absolute; width: 19%; top: -1%; right: -1%; transform: rotate(24deg); }
.star { color: #bc7728; font-size: clamp(1.3rem, 3.1vw, 3rem); position: absolute; line-height: 1; }
.star.first { top: 17%; left: 6%; }
.star.second { bottom: 18%; right: 6%; font-size: clamp(.9rem, 1.8vw, 2rem); }
.star.third { bottom: 22%; right: 2%; font-size: clamp(.65rem, 1.2vw, 1.2rem); }
.ruled { border-top: 1px solid var(--line); }
.story, .science, .resources { padding-block: clamp(3.3rem, 7vw, 6.1rem); }
.story-grid, .science-grid, .resource-grid { display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); gap: clamp(2rem, 8.1vw, 7.9rem); }
.section-label { margin: .1rem 0 1.05rem; color: #536863; font-size: .82rem; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; }
h2 { font-size: clamp(2.7rem, 4.8vw, 4.6rem); line-height: 1; letter-spacing: -.055em; }
.prose, .resource p { font-size: 1.08rem; line-height: 1.7; color: var(--soft-ink); }
.prose > p { margin: 0 0 1.1rem; }
.family-picture { aspect-ratio: 1.8; width: 85%; max-width: 340px; margin: 1.1rem 0 0; position: relative; }
.family-picture img { position: absolute; width: 109%; max-width: none; left: -3%; top: -37%; transform: rotate(-4deg); }
.story-prose { padding-top: .03rem; }
blockquote { margin: 2rem 0 0; padding: .1rem 0 .1rem 1.08rem; border-left: 3px solid #dd943e; }
blockquote p { font-size: clamp(1.65rem, 2.6vw, 2.35rem); color: var(--ink); font-style: italic; line-height: 1.21; }
blockquote cite { display: block; font-size: .85rem; color: var(--soft-ink); margin-top: .3rem; font-style: normal; }
.science { background: #e5eded; }
.science .section-label { color: #4a6264; }
h3 { font-size: clamp(1.6rem, 2.7vw, 2.25rem); letter-spacing: -.035em; line-height: 1.15; color: var(--ink); }
.science h3 { margin: 2.1rem 0 .8rem; }
.text-link { font-size: .93rem; font-weight: 700; color: #24586b; }
.text-link:hover { color: #123a49; }
.text-link span { margin-left: .15rem; }
.resource-list { border-top: 1px solid var(--line); }
.resource { display: flex; align-items: start; justify-content: space-between; gap: 1.2rem; text-decoration: none; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.resource:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.resource h3 { font-size: clamp(1.5rem, 2.45vw, 2rem); }
.resource p { margin: .45rem 0 0; font-size: .99rem; }
.resource > span { width: 2.2rem; height: 2.2rem; border: 1px solid #aabcb6; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 80px; gap: 1rem; }
.footer-inner > span { font-family: var(--serif); font-weight: 600; }
footer a { font-size: .86rem; }
@media (max-width: 760px) {
  .wrap { width: 89%; }
  .masthead-inner { min-height: 68px; gap: 1rem; }
  .brand { transform: scale(.9); transform-origin: left center; margin-right: -15px; }
  nav { gap: 1rem; }
  nav a { font-size: .85rem; }
  .hero-inner { grid-template-columns: .95fr 1.05fr; }
  .hero-copy > p { font-size: 1rem; }
  h1 { font-size: clamp(4.1rem, 10vw, 6rem); }
  .story-grid, .science-grid, .resource-grid { gap: 2.25rem; }
}
@media (max-width: 620px) {
  .wrap { width: 90%; }
  .masthead-inner { flex-wrap: wrap; align-content: center; gap: 0; padding-block: .3rem .55rem; }
  .brand { height: 49px; }
  nav { width: 100%; justify-content: flex-start; gap: min(6.5vw, 1.7rem); }
  nav a { padding: .48rem 0 .25rem; font-size: .87rem; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 2rem 1.85rem; gap: .75rem; }
  h1 { font-size: clamp(3.8rem, 12vw, 5.6rem); }
  h1 em { display: inline; }
  .hero-copy { padding: 0; }
  .hero-copy > p { margin: 1rem 0 1.05rem; }
  .button { padding: .7rem 1rem; }
  .album-cover { width: min(90%, 380px); margin: .1rem auto 0; }
  .story-grid, .science-grid, .resource-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .story .chapter { display: contents; }
  .story-grid { gap: 0; }
  .family-picture { width: min(85%, 330px); margin: 2rem auto 2.3rem; order: 1; }
  .story-prose { margin-top: 1.5rem; }
  h2 { font-size: clamp(2.6rem, 8.6vw, 3.8rem); }
  .story h2 br { display: none; }
  
  .section-label { margin-bottom: .75rem; }
  .prose { font-size: 1.03rem; }
  .resources, .science, .story { padding-block: 2.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) { .button, .text-link { transition: background-color .15s, color .15s; } }
}
