
:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-soft: #f1f3f4;
  --line: #e3e6ea;
  --text: #202124;
  --muted: #5f6368;
  --blue: #1a73e8;
  --blue-dark: #1558b0;
  --green: #0f3b32;
  --gold: #9b6b3f;
  --shadow: 0 1px 3px rgba(60,64,67,.18), 0 4px 12px rgba(60,64,67,.08);
  --shadow-lg: 0 12px 32px rgba(32,33,36,.10);
  --radius: 24px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Roboto, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(15,59,50,.06), transparent 28rem),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 100%);
}
img { display:block; max-width:100%; }
a { color: inherit; }

.home-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero {
  min-height: calc(100vh - 160px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 40px 0 28px;
}

.logo-link {
  width: min(170px, 38vw);
  border-radius: 50%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.logo-link:hover { transform: translateY(-2px); }
.hero-logo {
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  margin: 4px 0 0;
  font-size: clamp(54px, 11vw, 92px);
  line-height: .92;
  font-weight: 700;
  letter-spacing: -.04em;
}

.brand-name {
  margin: 0;
  font-size: 18px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-box {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px 10px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 6px rgba(32,33,36,.14);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.search-box:focus-within {
  box-shadow: 0 2px 12px rgba(32,33,36,.18);
  border-color: rgba(26,115,232,.26);
}
.search-box input,
.search-box button {
  font: inherit;
  border: 0;
  outline: 0;
}
.search-box input {
  min-width: 0;
  padding: 12px 4px;
  background: transparent;
  color: var(--text);
  font-size: 18px;
}
.search-box input::placeholder { color: #80868b; }

.search-box button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.search-box button:hover,
.button:hover {
  transform: translateY(-1px);
  background: #eceff1;
  border-color: #d5d8dc;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,115,232,.24);
}
.button.primary:hover { background: var(--blue-dark); }
.button.secondary {
  border-color: var(--line);
  background: var(--surface);
}
.button.big {
  min-height: 58px;
  font-size: 18px;
  width: 100%;
}

.tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
}

.latest,
.panel,
.info-card,
.cta-card,
.feature-card,
.lead-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.latest {
  margin-top: 8px;
  padding: clamp(20px, 3vw, 30px);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -.03em;
}
.section-heading p,
.empty-state,
.meta-note,
.site-footer,
.notice,
.book-lead p,
.info-card p,
.info-card li,
.book-subline,
.eyebrow,
.header-link,
.author-caption,
.book-facts dd {
  color: var(--muted);
}
.book-list {
  display: grid;
  gap: 16px;
}
.book-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.book-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: #d0d7de;
}
.book-card-link {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  text-decoration: none;
}
.book-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: #f3eee8;
  border: 1px solid #ece4d6;
}
.book-thumb img { width: 100%; height: 100%; object-fit: cover; }
.book-info h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -.02em;
}
.book-info p { margin: 0 0 8px; font-size: 17px; }
.book-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef3fd;
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 36px;
  text-align: center;
  font-size: 14px;
}

.page-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.header-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.header-link {
  text-decoration: none;
  font-weight: 500;
}

.book-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 32px;
}
.book-title-block {
  margin-bottom: 18px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.book-title-block h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.book-subline {
  margin: 10px 0 0;
  font-size: 20px;
}

.book-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 340px;
  gap: 24px;
  align-items: start;
}
.lead-card { padding: 24px; margin-bottom: 18px; }
.book-lead {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
.cover-frame {
  background: #f3eee8;
  border: 1px solid #eadfce;
  border-radius: 24px;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.cover-frame img {
  width: 100%;
  aspect-ratio: 3 / 4.35;
  object-fit: cover;
  border-radius: 18px;
}
.book-lead h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.03em;
}
.book-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 16px;
  margin: 16px 0 0;
}
.book-facts dt { font-weight: 600; }
.book-facts dd { margin: 0; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.info-card,
.cta-card { padding: 24px; }
.info-card h2,
.cta-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -.03em;
}
.info-card p { margin: 0 0 12px; line-height: 1.65; }
.info-card ul { margin: 0; padding-left: 20px; line-height: 1.65; }
.author-head {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.author-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}
.author-caption strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  margin-bottom: 4px;
}
.cta-card {
  position: sticky;
  top: 18px;
}
.cta-card p { line-height: 1.6; margin: 0 0 18px; }
.button-stack { display: grid; gap: 14px; }
.notice {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .book-hero,
  .info-grid,
  .book-lead,
  .book-card-link {
    grid-template-columns: 1fr;
  }
  .book-badge { justify-self: start; }
  .cta-card { position: static; }
}
@media (max-width: 700px) {
  .section-heading {
    flex-direction: column;
    align-items: start;
  }
}
@media (max-width: 560px) {
  .home-shell, .book-page, .page-header, .site-footer { width: min(100% - 24px, 1120px); }
  .hero { min-height: auto; padding-top: 26px; }
  .search-box { grid-template-columns: 1fr; border-radius: 26px; padding: 12px; }
  .search-box button { width: 100%; }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
