:root {
  color-scheme: light;
  --paper: #fff8ed;
  --sea-glass: #e6f3ee;
  --coral: #a34e3b;
  --ink: #132e2f;
  --muted: #47625e;
  --teal: #174b49;
  --line: #b9d6cb;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid #a95a39; outline-offset: 5px; }
.wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--paper); z-index: 2; transform: translateY(-150%); }
.skip:focus { transform: none; }
.nav-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-inner { min-height: 4.6rem; }
.brand { font: 2rem/1 var(--serif); text-decoration: none; }
nav { display: flex; gap: clamp(.85rem, 3vw, 2rem); flex-wrap: wrap; }
nav a { font-size: .9rem; font-weight: 700; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { background: var(--paper); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.3rem, 6vw, 5rem);
}
.hero-copy { max-width: 35rem; }
.hero-photo {
  display: block;
  width: 100%;
  height: clamp(24rem, 40vw, 34rem);
  object-fit: cover;
  object-position: 62% center;
  border-radius: .28rem;
}
.label { text-transform: uppercase; letter-spacing: .16em; font-size: .73rem; font-weight: 700; line-height: 1.5; }
.hero .label { color: var(--coral); margin-bottom: 1.1rem; }
h1 { font-size: clamp(3.35rem, 6.4vw, 6.7rem); letter-spacing: -.03em; line-height: .89; }
h1 em { font-weight: 400; color: var(--teal); }
.hero-copy > p:not(.label) { max-width: 28rem; margin-top: 1rem; font-size: 1.08rem; }
.hero-copy .button { margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .62rem 1rem; border-radius: .2rem; background: var(--teal); color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #0f3837; }
.bookshelf-section { background: var(--sea-glass); }
.bookshelf { padding-block: clamp(3.2rem, 7vw, 6rem); }
.shelf-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: .85rem 2rem; margin-bottom: 3rem; }
.shelf-intro h2, .about h2 { font-size: clamp(3rem, 6vw, 5rem); }
.shelf-intro p { max-width: 29rem; color: var(--muted); }
.series { border-top: 1px solid var(--line); padding-top: 1.7rem; scroll-margin-top: 1rem; }
.series + .series { margin-top: 3.8rem; }
.series-heading h2 { font-size: clamp(2.6rem, 5vw, 4rem); }
.series-heading p { margin-top: .5rem; color: var(--muted); }
.book { display: grid; grid-template-columns: minmax(7.5rem, 13rem) 1fr; align-items: center; gap: clamp(1.3rem, 5vw, 4rem); padding: clamp(1.25rem, 4vw, 2.7rem); margin-top: 1.5rem; background: var(--paper); }
.ruby .series-heading h2, .ruby .book .label { color: var(--coral); }
.ruby .book .button { background: var(--coral); }
.ruby .book .button:hover { background: #873d2d; }
.cover { display: block; width: 100%; height: auto; box-shadow: 5px 8px 18px #15282645; }
.book .label { color: #6f4838; margin-bottom: .55rem; }
.book h3, .next h3 { font-size: clamp(2.15rem, 5vw, 3.75rem); max-width: 35rem; }
.book-copy > p:not(.label) { margin-top: .9rem; max-width: 35rem; }
.links { display: flex; flex-wrap: wrap; gap: .65rem 1.15rem; align-items: center; margin-top: 1.15rem; font-size: .88rem; font-weight: 700; }
.links a:not(.button):hover { color: #8b402a; }
.next { display: flex; gap: 1rem; justify-content: space-between; align-items: end; flex-wrap: wrap; margin-top: 1rem; border: 1px solid var(--line); padding: 1.25rem 1.6rem; }
.next h3 { font-size: 2.5rem; margin-top: .3rem; }
.next > p { color: var(--muted); }
.about { background: #fff3e3; }
.bio > p + p { margin-top: .6rem; }
.bio strong { color: var(--coral); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.25rem 2rem; padding-block: clamp(2.7rem, 6vw, 5.4rem); }
.about .label { margin-bottom: .5rem; }
.site-footer { background: #102f30; color: #fff9ef; font-size: .85rem; }
.footer-inner { min-height: 4.3rem; }
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .nav-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: .55rem; padding-block: .85rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { height: clamp(13rem, 60vw, 23rem); }
  .shelf-intro, .about-inner { grid-template-columns: 1fr; }
}
@media (max-width: 485px) {
  h1 { font-size: clamp(3.25rem, 12.5vw, 4.7rem); }
  .book { grid-template-columns: 1fr; align-items: start; }
  .cover { width: min(48%, 9.5rem); }
}
