/* Bramble & Cooper — "Hedgerow" house style.
   Publisher brand: paper, blackberry, sage, charcoal; Fraunces + Inter.
   Individual books keep their own look inside .book-theme blocks. */
:root {
  --paper: #faf7f2;
  --paper-2: #f1ece3;
  --blackberry: #4a2545;
  --blackberry-dark: #351a31;
  --sage: #7d8f69;
  --sage-soft: #e6eadf;
  --charcoal: #2b2b2b;
  --muted: #6d6a65;
  --line: #e4ddd1;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* book: Curious Cures & Dubious Medicines */
  --cc-green: #1f3d2b;
  --cc-green-deep: #172e20;
  --cc-gold: #c9a45c;
  --cc-gold-soft: #dcc08a;
  --cc-cream: #f5efe2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blackberry); text-underline-offset: 3px; }
a:hover { color: var(--sage); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--blackberry); line-height: 1.15; letter-spacing: -0.01em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blackberry); font-family: var(--display); font-size: 1.35rem; font-weight: 500; }
.brand img { width: 34px; height: 34px; }
.brand:hover { color: var(--blackberry-dark); }
.nav { display: flex; gap: 26px; flex-wrap: wrap; }
.nav a { color: var(--charcoal); text-decoration: none; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blackberry); }
.nav a[aria-current="page"] { border-bottom-color: var(--sage); color: var(--blackberry); }

/* Hero (publisher) */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); margin: 0 0 18px; }
.hero h1 em { font-style: italic; color: var(--sage); font-weight: 400; }
.hero p { font-size: 1.12rem; margin: 0 0 16px; max-width: 34em; }
.hero-img { border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(53,26,49,.18); }
.eyebrow { font-family: var(--text); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin: 0 0 14px; }

.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-family: var(--text); font-size: .95rem; font-weight: 500; text-decoration: none; border: 1.5px solid var(--blackberry); transition: background .15s, color .15s; }
.btn-primary { background: var(--blackberry); color: var(--paper); }
.btn-primary:hover { background: var(--blackberry-dark); color: var(--paper); }
.btn-outline { color: var(--blackberry); background: transparent; }
.btn-outline:hover { background: var(--blackberry); color: var(--paper); }

/* Sections */
section { padding: 72px 0; }
section h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 12px; }
.section-intro { color: var(--muted); max-width: 40em; margin: 0 0 36px; font-size: 1.08rem; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }
.tint { background: var(--paper-2); }
.sage-band { background: var(--sage-soft); }
.berry-band { background: var(--blackberry); color: #efe6ee; }
.berry-band h2 { color: var(--paper); }
.berry-band .btn-primary { background: var(--paper); color: var(--blackberry); border-color: var(--paper); }
.berry-band .btn-primary:hover { background: var(--sage-soft); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.card .icon { width: 30px; height: 30px; color: var(--sage); margin-bottom: 14px; }
.card h3 { font-size: 1.3rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

.note { font-size: .92rem; color: var(--muted); }
.small { font-size: .85rem; }

/* Book catalogue */
.book-list { display: grid; gap: 28px; }
.book-card { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; text-decoration: none; color: var(--charcoal); background: #fff; border: 1px solid var(--line); padding: 28px; border-radius: 14px; transition: box-shadow .15s, transform .15s; }
.book-card:hover { color: var(--charcoal); box-shadow: 0 14px 34px rgba(53,26,49,.12); transform: translateY(-2px); }
.book-card img { border-radius: 4px; box-shadow: 0 10px 22px rgba(0,0,0,.22); }
.book-card h3 { font-size: 1.7rem; margin: 0 0 4px; }
.book-card .subtitle { font-style: italic; color: var(--muted); margin: 0 0 6px; font-family: var(--display); }
.book-card .author { font-weight: 600; color: var(--blackberry); margin: 0 0 12px; }
.book-card .more { color: var(--blackberry); font-weight: 500; }

/* Spec tables */
.spec { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
.spec th, .spec td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); width: 36%; }
.mono { font-family: Consolas, "Courier New", monospace; }

/* Footer */
.site-footer { background: var(--blackberry-dark); color: #d9cdd6; padding: 44px 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.site-footer p { margin: 0 0 6px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.footer-brand img { width: 28px; height: 28px; }
.fine { color: #b3a4af; font-size: .82rem; }

/* ---------- Book theme: Curious Cures & Dubious Medicines ---------- */
.book-theme { background: var(--cc-green); color: var(--cc-cream); }
.book-theme h1, .book-theme h2 { font-family: "Cinzel", Georgia, serif; color: var(--cc-gold); font-weight: 600; letter-spacing: .02em; }
.book-theme .eyebrow { color: var(--cc-gold-soft); }
.book-theme .subtitle { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.45rem; color: var(--cc-gold-soft); margin: 0 0 14px; }
.book-theme .author { font-family: "Cinzel", Georgia, serif; letter-spacing: .14em; font-size: .95rem; margin: 0 0 18px; }
.book-theme p { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; line-height: 1.55; }
.book-theme .btn { border-radius: 3px; font-family: "Cinzel", Georgia, serif; letter-spacing: .08em; font-size: .85rem; border-color: var(--cc-gold); }
.book-theme .btn-primary { background: var(--cc-gold); color: var(--cc-green-deep); }
.book-theme .btn-primary:hover { background: var(--cc-gold-soft); color: var(--cc-green-deep); }
.book-theme .btn-outline { color: var(--cc-gold); }
.book-theme .btn-outline:hover { background: rgba(201,164,92,.14); color: var(--cc-gold-soft); }
.book-theme .cover img { border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.book-theme .spec th { color: var(--cc-gold); }
.book-theme .spec th, .book-theme .spec td { border-bottom-color: rgba(201,164,92,.3); }
.book-hero { padding: 64px 0 72px; }
.book-hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 52px; align-items: center; }
.book-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 8px; }

.features { list-style: none; padding: 0; margin: 0; }
.features li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; }
.features li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--blackberry); }
.quote { border-left: 3px solid var(--sage); padding: 6px 0 6px 20px; font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--blackberry); max-width: 40em; margin: 0 auto 32px; text-align: left; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.rounded { border-radius: 14px; }

@media (max-width: 860px) {
  .hero .wrap, .book-hero .wrap, .two-col, .site-footer .wrap { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 52px; }
  .book-hero .cover { max-width: 340px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  section { padding: 52px 0; }
  .book-card { grid-template-columns: 1fr; }
  .book-card img { max-width: 200px; margin: 0 auto; }
  .nav { gap: 18px; }
}
