:root {
  color-scheme: light;
  --ocean: #082b39;
  --teal: #175a5a;
  --ink: #142f39;
  --paper: #fff8eb;
  --mint: #dff1e9;
  --peach: #ffa98e;
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #d47d15; outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(100% - 3rem, 1180px); margin-inline: auto; }
.skip { position: absolute; top: -8rem; background: white; color: var(--ink); padding: .7rem; z-index: 2; }
.skip:focus { top: .5rem; left: .5rem; }
.top, footer { background: var(--ocean); color: var(--paper); }
.nav, .foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.1rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.brand { font: bold clamp(1.25rem, 3vw, 1.7rem) Georgia, serif; }
.brand span { color: var(--peach); }
.nav-links { display: flex; gap: clamp(.7rem, 2.7vw, 2rem); font-weight: 600; }
.hero { color: var(--paper); background: radial-gradient(ellipse at 85% 18%, #246c78, transparent 58%), linear-gradient(125deg, #082b39, #104751); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 6rem); }
.eyebrow { color: #bde4dc; font-weight: 650; font-size: .9rem; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(3.4rem, 8vw, 7rem); letter-spacing: -.065em; }
h1 em { display: block; color: var(--peach); }
.intro { color: #deefed; max-width: 36ch; margin: 1.3rem 0 1.7rem; font-size: clamp(1.05rem, 2vw, 1.26rem); }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.button { display: inline-flex; gap: .65rem; align-items: center; padding: .72rem 1.08rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 750; }
.button:hover { text-decoration: underline; }
.primary { color: var(--ocean); background: var(--peach); }
.outline { color: var(--paper); border-color: #8fbab9; }
.hero-art { max-width: 365px; width: 100%; justify-self: center; padding: .6rem; border: 1px solid #82bcbf; border-radius: 1.4rem; background: #ffffff18; transform: rotate(3deg); box-shadow: 0 24px 70px #03191e70; }
.hero-art img { border-radius: .9rem; }
.books, .about { padding-block: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.65rem); letter-spacing: -.04em; }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.book { min-width: 0; display: flex; flex-direction: column; background: #fffdf7; border: 1px solid #e8dfca; border-radius: 1.15rem; overflow: hidden; }
.cover { display: grid; place-items: center; padding: 1rem; background: #e5f0e7; }
.cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.book-copy { flex: 1; display: flex; flex-direction: column; padding: 1.05rem; }
.book h3 { font-size: 1.35rem; }
.book p { margin: .65rem 0 1.1rem; }
.book a { margin-top: auto; }
.book a, .about a:not(.button) { color: #195553; font-weight: 750; }
.about { background: var(--mint); }
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(1.4rem, 4vw, 3rem); }
.about p { max-width: 49ch; }
.shop { background: var(--ocean); color: var(--paper); padding: clamp(1.45rem, 4vw, 2.5rem); border-radius: 1.2rem; }
.shop h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.foot { font-size: .9rem; flex-wrap: wrap; }
@media (max-width: 850px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 245px; }
  .nav { flex-wrap: wrap; }
  .shelf { gap: .6rem; }
  .book-copy { padding: .75rem; }
  .book h3 { font-size: 1.08rem; }
  .book p, .book a { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
