:root {
  --ink: #111318;
  --paper: #f7f5f1;
  --white: #fff;
  --blue: #7fa2d6;
  --blue-dark: #4f6f9e;
  --blue-light: #e8eef8;
  --line: #d9d9d9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(100% - 48px, 1180px); margin-inline: auto; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 98px; gap: 40px; }
.brand { flex: 0 1 260px; }
.logo { width: 260px; }
nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

h1, h2, h3, blockquote { font-family: Georgia, serif; font-weight: 500; }
h1 { margin: 10px 0 24px; font-size: clamp(3.2rem, 8vw, 4.5rem); line-height: 1; }
h2 { margin: 10px 0 38px; font-size: clamp(2.35rem, 5vw, 3rem); line-height: 1.1; }
h3 { font-size: 1.55rem; line-height: 1.2; }
.eyebrow { color: var(--blue-dark); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.hero { min-height: 650px; background: linear-gradient(150deg, var(--white) 0 56%, var(--blue) 56%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; padding-block: 78px 90px; }
.lead { max-width: 560px; font-size: 1.2rem; }
.lead p { margin: 0; }
.button { display: inline-block; margin-top: 28px; padding: 13px 18px; border-radius: 999px; color: var(--white); background: var(--ink); text-decoration: none; }
.button:hover { background: var(--blue-dark); }
.hero-cover { width: min(340px, 100%); justify-self: center; filter: drop-shadow(0 24px 30px rgb(0 0 0 / 18%)); }

.section { padding-block: 90px; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.book-card { overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.book-card-copy { padding: 24px 28px 28px; }
.book-card h3 { margin: 0 0 12px; }
.book-card h3 a { text-decoration: none; }
.book-card h3 a:hover { text-decoration: underline; }
.book-card p { margin: 4px 0; }
.book-card .series { color: var(--blue-dark); }
.book-cover { display: grid; aspect-ratio: 2 / 3; overflow: hidden; background: var(--blue-light); text-decoration: none; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-placeholder { place-items: center; padding: 32px; background: linear-gradient(145deg, var(--white) 0 48%, var(--blue) 48%); }
.book-cover-placeholder span { max-width: 12ch; font: 500 2rem/1.05 Georgia, serif; }

.page-content { min-height: 55vh; padding-block: 80px 110px; }
.prose { font-size: 1.08rem; }
.prose > * { max-width: 760px; }
.prose blockquote { max-width: 100%; margin: 55px 0; padding: 50px; background: var(--blue-light); font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; }
.prose h2 { margin-top: 60px; font-size: 2rem; }

.book-detail { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(50px, 8vw, 110px); padding-block: 90px 120px; }
.book-detail-cover { align-self: start; aspect-ratio: 2 / 3; filter: drop-shadow(0 22px 28px rgb(0 0 0 / 16%)); }
.book-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-detail-copy { align-self: center; }
.book-author { font-size: 1.25rem; }
.book-description { max-width: 580px; font: 500 1.7rem/1.35 Georgia, serif; }
.book-body h1:first-child { display: none; }

.site-footer { padding-block: 42px; color: var(--white); background: var(--ink); }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.footer-inner > img { width: 220px; filter: invert(1); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: end; gap: 20px; }
.footer-meta nav ul { gap: 16px; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .header-inner { min-height: 82px; }
  .brand, .logo { width: 210px; }
  .header-inner > nav { display: none; }
  .hero-inner, .book-detail { grid-template-columns: 1fr; }
  .hero-inner { gap: 55px; padding-block: 60px 75px; }
  .hero-cover { width: 72%; }
  .book-grid { grid-template-columns: 1fr; }
  .book-detail-cover { width: min(72%, 340px); justify-self: center; }
  .footer-inner, .footer-meta { display: block; }
  .footer-inner > img { margin-bottom: 24px; }
  .footer-meta nav { margin-top: 12px; }
}
