:root {
  --ivory: #eee7d8;
  --paper: #f5f0e6;
  --sage: #a3b4a8;
  --sage-deep: #7f948a;
  --ink: #2a2925;
  --soft: #64625a;
  --teal: #3e6a6c;
  --line: rgba(42, 41, 37, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--teal); }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(238, 231, 216, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
  text-decoration: none;
}

.top nav { display: flex; gap: clamp(12px, 3vw, 28px); }

.top nav a {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
}

.top nav a:hover { color: var(--ink); }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 6vw, 80px) 0;
}

.hero-cover { margin: 0; }

.hero-cover img {
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 18px 40px rgba(60, 50, 30, 0.22);
}

.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.95;
}

.subtitle {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.08;
}

.def { margin: 18px 0 0; color: var(--soft); }

.by { margin: 22px 0 0; font-size: 17px; }

.by span { color: var(--soft); }

.lede { margin: 18px 0 0; max-width: 34em; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn:hover { background: var(--teal); }

.soon { font-style: italic; color: var(--soft); }

section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
}

.about, .smoltoes, .inside, .details, .author { padding: clamp(36px, 6vw, 72px) 0; border-top: 1px solid var(--line); }

.note { margin: 6px 0 0; color: var(--soft); }

.pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
  margin-top: 28px;
}

.pages a { color: var(--ink); text-decoration: none; }

.pages img {
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 10px 22px rgba(60, 50, 30, 0.14);
  transition: transform 0.2s ease;
}

.pages a:hover img { transform: translateY(-3px); }

.pages span { display: block; margin-top: 10px; font-size: 15px; color: var(--soft); }

.details dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 32px;
  margin: 24px 0 0;
  max-width: 720px;
}

.details dt {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  padding-top: 4px;
}

.details dd { margin: 0; }

.author p { max-width: 40em; margin: 16px 0 0; }

.foot {
  margin-top: 24px;
  padding: 32px clamp(16px, 4vw, 48px) 48px;
  background: var(--sage);
  text-align: center;
  font-size: 15px;
}

.foot p { margin: 4px 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-cover { max-width: 360px; margin: 0 auto; }
  .details dl { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 12px; }
}

.intro { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }

.intro .lede { font-size: 20px; }

.centered { text-align: center; }

.centered .actions { justify-content: center; }

.shelf { padding: clamp(36px, 6vw, 72px) 0; border-top: 1px solid var(--line); }

.books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(20px, 4vw, 44px);
  margin-top: 28px;
}

.book { display: block; color: var(--ink); text-decoration: none; }

.book img {
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 30px rgba(60, 50, 30, 0.18);
  transition: transform 0.2s ease;
}

.book:hover img { transform: translateY(-4px); }

.book-title {
  display: block;
  margin-top: 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
}

.book-sub { display: block; font-style: italic; color: var(--soft); }

.book-meta {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.about p, .smoltoes p { max-width: 40em; margin: 16px 0 0; }
