@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep: #06212b;
  --deep-2: #082b37;
  --teal: #113e4a;
  --teal-2: #1f606d;
  --aqua: #7aaea4;
  --aqua-2: #afd8c7;
  --cream: #ddd1b2;
  --text: #e9efe6;
  --text-dim: #b7c9c3;
  --serif-display: "Fraunces", Georgia, "Times New Roman", serif;
  --serif-body: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --wrap: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background-color: var(--deep); }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--serif-body);
  font-size: 1.125rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 90% 900px at 50% 0%, rgba(31, 96, 109, 0.55), transparent 70%),
    linear-gradient(180deg, var(--deep-2) 0%, var(--deep) 45%, #041820 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -50% 0 0 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, var(--aqua-2), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, var(--aqua), transparent 60%),
    radial-gradient(2px 2px at 44% 36%, var(--aqua-2), transparent 60%),
    radial-gradient(1px 1px at 63% 84%, var(--cream), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 22%, var(--aqua), transparent 60%),
    radial-gradient(1px 1px at 88% 58%, var(--aqua-2), transparent 60%),
    radial-gradient(1.5px 1.5px at 6% 90%, var(--aqua), transparent 60%),
    radial-gradient(1px 1px at 52% 8%, var(--cream), transparent 60%);
  background-size: 640px 640px;
  animation: drift 90s linear infinite;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-640px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

a { color: var(--aqua-2); text-underline-offset: 0.18em; }
a:hover { color: var(--cream); }
a:focus-visible, .skip-link:focus {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--cream);
  color: var(--deep);
  font-weight: bold;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

h1, h2, h3 {
  font-family: var(--serif-display);
  color: var(--cream);
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 600; }

.site-header { padding: 1rem 0; }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand img { display: block; width: auto; height: 56px; }
.nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--serif-display);
  font-size: 1.05rem;
}
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--cream); text-decoration: underline; }

.hero { padding: 3rem 0 4.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-art img,
.hero-art .hero-anim {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(122, 174, 164, 0.35));
}
.hero-art .hero-anim { aspect-ratio: 1; cursor: pointer; }
.lede { font-size: 1.25rem; color: var(--text); max-width: 38em; }
.badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(221, 209, 178, 0.5);
  border-radius: 999px;
  color: var(--cream);
  font-family: var(--serif-display);
  font-weight: 500;
}

.section { padding: 4.5rem 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(17, 62, 74, 0.55), rgba(17, 62, 74, 0.25));
  border-block: 1px solid rgba(175, 216, 199, 0.12);
}
.section-intro { color: var(--text-dim); max-width: 42em; margin: 0 0 2.5rem; }

.shelf, .features, .promises, .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2.5rem;
  max-width: 920px;
}
.book .cover {
  position: relative;
  margin-bottom: 1rem;
  transition: transform 0.25s ease;
}
.book img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(221, 209, 178, 0.12);
  transition: box-shadow 0.25s ease;
}
.book .soon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9%;
  padding: 0.4rem 0;
  background: rgba(6, 33, 43, 0.82);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.book:hover .cover { transform: translateY(-6px); }
.book:hover img {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(122, 174, 164, 0.3);
}
.book h3 { margin-bottom: 0.3rem; }
.book p { margin: 0; color: var(--text-dim); font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .book .cover, .book img { transition: none; }
  .book:hover .cover { transform: none; }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.feature {
  padding: 1.6rem 1.6rem 1.4rem;
  background: rgba(6, 33, 43, 0.55);
  border: 1px solid rgba(175, 216, 199, 0.16);
  border-radius: var(--radius);
}
.feature p { margin: 0; color: var(--text-dim); }

.parents { max-width: 760px; text-align: center; }
.promises {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
  font-size: 1.2rem;
}
.promises li::before {
  content: "\2726";
  color: var(--aqua);
  margin-right: 0.6rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(175, 216, 199, 0.12);
  color: var(--text-dim);
  font-size: 0.98rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-grid p { margin: 0; }
.footer-links { display: flex; gap: 1.5rem; }

@media (max-width: 760px) {
  .hero { padding-top: 1.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-art img,
  .hero-art .hero-anim { max-width: 240px; margin-inline: auto; }
  .lede { margin-inline: auto; }
  .badge { font-size: 0.95rem; padding: 0.5rem 0.9rem; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; }
  .book h3 { font-size: 1.1rem; }
  .footer-grid { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .header-row { justify-content: center; }
  .nav { gap: 1.1rem; }
}

#books h2, #books .section-intro { text-align: center; margin-inline: auto; }
#books .shelf { margin-inline: auto; }
#books .book { text-align: center; }

.testers { max-width: 760px; text-align: center; }
.testers p { margin: 0 0 1.1rem; }
.tester-steps {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.tester-steps li::before {
  content: "\2726";
  color: var(--aqua);
  margin-right: 0.6rem;
}
.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--cream);
  color: var(--deep);
  font-family: var(--serif-display);
  font-weight: 650;
  font-size: 1.15rem;
  text-decoration: none;
  border-radius: 999px;
}
.button:hover { background: var(--aqua-2); color: var(--deep); }
.testers .tester-note { color: var(--text-dim); font-size: 1rem; margin-bottom: 0; }
