:root {
  --bg: #f7f4ef;
  --card: #ffffff;
  --ink: #1f2a37;
  --muted: #5b6573;
  --accent: #b8552e;
  --accent-dark: #93421f;
  --line: #e6e0d6;
  --shadow: 0 8px 30px rgba(31, 42, 55, .08);
  --radius: 14px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: #fffdf9;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand span { color: var(--accent); }
.nav a {
  margin-left: 22px;
  color: var(--ink);
  font-size: 1rem;
}
.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 24px 56px;
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(184,85,46,.10), transparent),
    var(--bg);
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 16px;
  line-height: 1.15;
}
.hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- Section ---------- */
.section { padding: 48px 0 72px; }
.section-title {
  font-size: 1.9rem;
  margin: 0 0 6px;
}
.section-sub {
  color: var(--muted);
  margin: 0 0 36px;
}

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(31,42,55,.14);
}
.card-img {
  aspect-ratio: 3 / 4;
  background: #efe9df;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.card-img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  font-size: 1.18rem;
  margin: 0 0 10px;
  line-height: 1.3;
}
.card-body p {
  color: var(--muted);
  font-size: .98rem;
  margin: 0 0 20px;
  flex: 1;
}
.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 9px;
  font-family: inherit;
  font-size: .98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-amazon {
  background: #ff9900;
  color: #131a22;
  font-weight: 700;
}
.btn-amazon:hover { background: #f08800; color: #131a22; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Book detail page ---------- */
.book {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 56px;
  padding: 56px 0 72px;
  align-items: start;
}
.book-cover {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.book-cover img {
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  margin: 0 auto;
}
.book-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 8px;
  line-height: 1.2;
}
.book-info .author {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 24px;
}
.book-info h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
}
.book-info p { margin: 0 0 16px; }
.book-info ul { margin: 0 0 20px; padding-left: 22px; }
.book-info li { margin-bottom: 8px; color: var(--ink); }
.book-cta { margin: 28px 0 8px; }
.breadcrumb {
  padding: 22px 0 0;
  font-size: .95rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Static / legal pages ---------- */
.page {
  padding: 48px 0 72px;
  max-width: 820px;
}
.page h1 { font-size: 2.2rem; margin: 0 0 8px; }
.page h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.page p, .page li { color: var(--ink); }
.page .updated { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #20262e;
  color: #c9cfd6;
  padding: 44px 0 32px;
  font-size: .95rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer a { color: #e7c7b5; }
.site-footer a:hover { color: #fff; }
.footer-links a { margin-left: 18px; }
.footer-links a:first-child { margin-left: 0; }
.footer-note { width: 100%; color: #8a929c; font-size: .85rem; margin-top: 14px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: #20262e;
  color: #eef1f4;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  padding: 22px 24px;
  z-index: 200;
  display: none;
  font-family: inherit;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 16px; font-size: .96rem; line-height: 1.55; }
.cookie-banner a { color: #ffb877; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .book { grid-template-columns: 1fr; gap: 30px; }
  .book-cover { position: static; max-width: 320px; margin: 0 auto; }
  .nav a { margin-left: 14px; font-size: .95rem; }
  .site-footer .container { flex-direction: column; }
  .footer-links a { margin-left: 0; margin-right: 18px; }
}
