:root {
  color-scheme: light;
  --ink: #142d48;
  --navy: #0d2845;
  --cream: #fff5d9;
  --gold: #ffcb44;
  --white: #fff;
  font: 100%/1.55 Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 8px #142d48; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: .7rem; left: 1rem; padding: .65rem 1rem; background: var(--cream); color: var(--ink); transform: translateY(-170%); }
.skip:focus { transform: none; }

.masthead, .footer { color: var(--white); background: var(--navy); }
.bar, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .65rem; }
.brand { display: inline-block; width: clamp(7.25rem, 15vw, 11rem); flex: none; }
.brand img { width: 100%; height: auto; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1.25rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: .94rem; text-decoration: none; }
nav a:hover, nav [aria-current] { text-decoration: underline; text-underline-offset: .28em; }
.footer-inner { justify-content: flex-start; flex-wrap: wrap; gap: .5rem 1.15rem; }
.footer-inner nav { margin-inline-start: auto; gap: .2rem 1rem; }
.footer .brand { width: 7.5rem; }
.footer small { font-size: .82rem; color: #e6edf5; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .67rem 1.1rem; border: 0; border-radius: 99rem; background: var(--gold); color: #182741; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: #ffdf79; color: #182741; text-decoration: none; }
.button.cream { background: #fff7df; }
.button.cream:hover { background: #ffe8a6; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.3rem; }
#updates, #books { scroll-margin-top: 1rem; }

.edged { position: relative; }
.edged::before { content: ""; display: block; height: .62rem; background-color: #ffd54d; background-image: repeating-linear-gradient(45deg, transparent 0 4px, #18535c 4px 7px, #ffd54d 7px 9px, #8a1c4a 9px 12px, transparent 12px 16px), repeating-linear-gradient(-45deg, #ed7950 0 4px, #153b62 4px 9px, #ffd54d 9px 12px, #267d52 12px 16px); border-block: 1px solid #ffe59a; }
.launch-hero, .creator-hero { color: #fff; background-color: #15435c; background-size: cover; }
.launch-hero { background-image: linear-gradient(90deg, #0b253fe8 0%, #0b253fbf 36%, #10314c15 72%), url('/assets/beach.jpg'); background-position: center, center 64%; }
.launch-layout { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 1.15rem; min-height: clamp(23rem, 34vw, 34rem); padding-block: clamp(1.8rem, 4vw, 3.2rem) .65rem; }
.launch-copy { padding-bottom: 1.5rem; }
.eyebrow { color: #ffe184; font-weight: 800; font-size: clamp(.96rem, 1.7vw, 1.17rem); margin-bottom: .42rem; }
h1, h2, h3 { line-height: 1.09; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 6.2rem); font-weight: 900; letter-spacing: -.042em; }
.launch-hero h1 { color: #ffd34e; text-shadow: 0 3px 0 #66330d, 0 6px 18px #092647; }
.hero-lead { font-size: clamp(1.14rem, 2vw, 1.55rem); font-weight: 800; line-height: 1.25; margin: .6rem 0 .38rem; }
.launch-copy > p:last-of-type { max-width: 27rem; font-size: clamp(1rem, 1.75vw, 1.2rem); }
.cast { display: flex; justify-content: center; align-items: flex-end; align-self: end; min-width: 0; }
.cast img { width: 26%; max-width: 26%; height: clamp(12rem, 29vw, 27rem); object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 5px #331e39aa); }
.cast img + img { margin-inline-start: -1%; }

.theme-trail { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem clamp(1rem, 6vw, 6rem); margin: 0; padding: .65rem 1rem; background: #0c3151; color: white; list-style: none; font-weight: 750; }
.theme-trail li::before { content: ""; display: inline-block; width: .68rem; height: .68rem; margin-right: .43rem; border-radius: 50%; background: #ffe07b; }
.theme-trail li:nth-child(2)::before { background: #87e2ad; }
.theme-trail li:nth-child(3)::before { background: #ffab92; }
.theme-trail li:nth-child(4)::before { background: #98defa; }
h2 { font-size: clamp(1.73rem, 4vw, 3rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.36rem); letter-spacing: -.015em; }

.shelf { color: white; background-image: linear-gradient(180deg, #092c47fa, #075771dc 38%, #074254be), url('/assets/beach.jpg'); background-color: #12516d; background-position: center; background-size: cover; }
.shelf > .wrap { padding-block: 1.55rem 1.9rem; }
.shelf-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem 1.6rem; margin-bottom: 1.12rem; }
.shelf-heading p { margin-top: .35rem; color: #f4f8fc; }
.edition-switch { display: flex; flex: none; align-items: center; gap: .5rem; }
.edition-switch button { min-height: 46px; border: 0; border-radius: 99rem; padding: .5rem .95rem; background: #edf9eb; color: var(--navy); font-weight: 800; cursor: pointer; }
.edition-switch button:hover { background: #fff7dd; }
.edition-switch [aria-pressed="true"] { background: var(--gold); box-shadow: inset 0 0 0 2px #7e5812; }
.edition + .edition { margin-top: 1.5rem; }
.edition > h3 { margin-bottom: .52rem; }
.edition-switch:not([hidden]) ~ h3 { margin-bottom: .52rem; }
body:has(.edition-switch:not([hidden])) .edition > h3 { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.books-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.65rem, 1.6vw, 1.24rem); padding: 0; list-style: none; }
.book { height: 100%; display: flex; flex-direction: column; align-items: center; padding: .45rem; gap: .36rem; border-radius: .75rem; background: #fffaf0; color: var(--ink); box-shadow: 0 5px 12px #08152a73; text-decoration: none; text-align: center; font-size: .95rem; line-height: 1.22; font-weight: 800; }
.book:hover { background: #ffe296; }
.book img { display: block; width: 100%; height: auto; aspect-ratio: .82; object-fit: contain; background: #f6ead0; border-radius: .34rem; }
.book span { margin: auto 0; padding: .15rem .1rem .2rem; }

.garden { background-color: #234d33; background-image: url('/assets/garden.webp'); background-position: center; background-size: cover; }
.garden > .wrap { padding-block: 1.45rem 2rem; }
.garden h2#keep-exploring { width: fit-content; margin-bottom: .65rem; padding: .38rem .75rem; color: #fff; background: #143d34; border-radius: .4rem; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.activity { min-height: 9.2rem; display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: 1rem; color: #fff; border: 1px solid #ffffff75; border-radius: .75rem; box-shadow: 0 5px 15px #1c352b7f; text-decoration: none; overflow: hidden; }
.activity:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.activity p { margin-top: .38rem; line-height: 1.35; }
.watch { background: linear-gradient(130deg, #472568, #63318b); }
.world { background: linear-gradient(130deg, #09466d, #076282); }
.educators { background: linear-gradient(130deg, #842234, #9e3927); }
.globe { flex: none; font-size: clamp(2.25rem, 6vw, 4.4rem); line-height: 1; }
.mini-cast { display: flex; flex: 0 0 41%; padding: .25rem; border-radius: .4rem; background: #fff5d9; }
.mini-cast img { width: 25%; height: auto; object-fit: contain; }
.activity > img { width: 28%; border-radius: .27rem; transform: rotate(5deg); box-shadow: 0 3px 10px #40192187; }
.signup { margin-top: 1.45rem; background: var(--cream); padding: clamp(1rem, 3vw, 1.75rem); border-radius: .9rem; box-shadow: 0 6px 18px #13342780; }
.signup p { margin-top: .36rem; }
.signup form { display: grid; grid-template-columns: 1fr 1fr max-content; align-items: end; gap: .4rem .85rem; margin-top: .75rem; }
.field label { display: block; margin-bottom: .2rem; font-weight: 800; }
.field input { min-width: 0; width: 100%; height: 46px; border: 1px solid #526173; padding: .55rem .65rem; border-radius: .35rem; background: #fff; color: var(--ink); }
.signup-note { grid-column: 1 / -1; font-size: .89rem; overflow-wrap: anywhere; }

.creator-hero { background-image: linear-gradient(90deg, #102b46ea 0%, #102b46c9 47%, #15334b20 100%), url('/assets/garden.webp'); background-position: center, center 48%; }
.creator-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, 23rem); align-items: center; gap: clamp(1.1rem, 5vw, 5rem); padding-block: clamp(1.6rem, 3.5vw, 3.25rem); }
.creator-hero .hero-lead { margin-bottom: 1.15rem; }
.creator-hero h1 { font-size: clamp(2.65rem, 6.25vw, 5.4rem); }
.portrait { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 44%; border: .39rem solid #ffd96f; border-radius: .7rem; box-shadow: 0 10px 26px #161b27ae; }
.biography { background-color: var(--cream); }
.biography > .wrap { padding-block: 1.7rem 2.1rem; }
.biography h2 { margin-bottom: 1rem; }
.biography-text { columns: 2 23rem; column-gap: clamp(1.65rem, 5vw, 4rem); font-size: 1.05rem; }
.biography-text p { break-inside: avoid; margin-bottom: .8rem; }
.signup-response, .author { background: var(--cream); margin-block: 2rem; padding: 1.75rem; border-radius: .9rem; }
.signup-response h1, .author h1 { font-size: clamp(2rem, 5vw, 3.65rem); margin-block: .7rem; }
.signup-response .button { margin-top: 1rem; }
.bar nav ul, .footer nav ul { list-style: none; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 64rem) {
  .activity { min-height: 8.5rem; padding: .8rem; }
  .mini-cast { flex-basis: 33%; }
}
@media (max-width: 48rem) {
  .wrap { width: min(100% - 2rem, 76rem); }
  .launch-layout { grid-template-columns: 1fr; gap: 0; }
  .launch-copy { padding-bottom: .35rem; }
  .launch-hero { background-image: linear-gradient(180deg, #0b253fe8 0%, #0b253fba 47%, #10314c12 85%), url('/assets/beach.jpg'); }
  .cast { width: min(100%, 33rem); justify-self: center; }
  .cast img { height: clamp(8rem, 47vw, 17rem); }
  .shelf-heading { flex-wrap: wrap; }
  .books-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .activity-grid { grid-template-columns: 1fr; }
  .activity { min-height: 5.8rem; }
  .activity > img { width: 3.3rem; }
  .mini-cast { flex-basis: 5.4rem; }
  .signup form { grid-template-columns: 1fr 1fr; }
  .signup form .button { justify-self: start; grid-column: 1 / -1; }
  .footer-inner nav { margin-inline-start: 0; }
}
@media (max-width: 34rem) {
  .wrap { width: min(100% - 1.5rem, 76rem); }
  .bar { gap: .4rem .7rem; flex-wrap: wrap; }
  nav { gap: .2rem .75rem; }
  nav a { font-size: .88rem; }
  .masthead .button { min-height: 44px; padding-inline: .72rem; }
  .launch-layout { padding-top: 1.3rem; min-height: 0; }
  .launch-hero h1 { font-size: clamp(2.55rem, 11vw, 3.6rem); }
  .actions { margin-top: .85rem; gap: .45rem; }
  .actions .button { padding-inline: .8rem; font-size: .9rem; }
  .theme-trail { display: grid; grid-template-columns: repeat(2, auto); column-gap: 1.1rem; font-size: .9rem; }
  .books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .book { padding: .3rem; font-size: .85rem; }
  .signup form { grid-template-columns: 1fr; }
  .signup form .button { justify-self: stretch; }
  .creator-layout { grid-template-columns: 1fr; }
  .portrait { width: min(14rem, 100%); }
  .biography-text { columns: 1; }
}
@media (max-width: 22rem) {
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
