/* ===========================================================
   FABLE & FEAST — independent editorial magazine
   Stories about food, books and the people behind them.
   Light "paper" editorial design.
   =========================================================== */

:root {
  --paper:     #f7f3ea;
  --paper-2:   #efe9dc;
  --card:      #ffffff;
  --ink:       #20201c;
  --ink-soft:  #595549;
  --line:      #ddd5c4;
  --accent:    #9a3b1e;   /* terracotta */
  --accent-2:  #b9742a;   /* warm ochre */
  --gold:      #a9842f;
  --radius:    10px;
  --maxw:      1140px;
  --measure:   720px;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.14; color: var(--ink); }

.eyebrow {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: 3px; font-size: 12px; color: var(--accent);
  font-weight: 700; margin-bottom: 14px;
}
.lead { color: var(--ink-soft); font-size: 1.12rem; }

/* ---------- Disclaimer top bar ---------- */
.topbar {
  background: var(--ink); color: #f2ede1;
  font-size: 12.5px; letter-spacing: .3px; text-align: center;
  padding: 8px 16px;
}
.topbar a { color: #f0c98a; text-decoration: underline; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,234,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .name {
  font-family: var(--font-head); font-size: 26px; letter-spacing: 1px;
  color: var(--ink); font-weight: 600;
}
.brand .name b { color: var(--accent); font-weight: 600; }
.brand .tag { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 14px; letter-spacing: .5px; color: var(--ink-soft); font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 26px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px; border-radius: 6px;
  font-size: 13.5px; letter-spacing: .5px; font-weight: 600;
  cursor: pointer; transition: all .2s; border: 1.5px solid transparent;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #7e2f17; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero (editorial) ---------- */
.hero { padding: 70px 0 60px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero .kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: 12px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 26px; max-width: 560px; }
.byline { font-size: 13px; color: var(--ink-soft); margin-bottom: 28px; }
.byline b { color: var(--ink); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 3/4; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, #1a2a33, #0d161b);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 24px 50px rgba(40,30,10,.18);
}
.hero-visual .glyph { font-family: var(--font-head); font-size: 8rem; color: rgba(201,163,91,.55); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: var(--measure); margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); }
.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Article body ---------- */
.article { max-width: var(--measure); margin: 0 auto; }
.article .meta-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article .meta-row span b { color: var(--ink); }
.article p { font-size: 1.08rem; color: #34322b; margin-bottom: 20px; }
.article p.lead { font-size: 1.25rem; color: var(--ink-soft); }
.article h2 { font-size: 1.9rem; margin: 40px 0 14px; }
.article h3 { font-size: 1.4rem; margin: 28px 0 10px; }
.article .dropcap::first-letter {
  font-family: var(--font-head); font-size: 4.2rem; line-height: .8;
  float: left; padding: 6px 12px 0 0; color: var(--accent); font-weight: 600;
}
.pull {
  font-family: var(--font-head); font-style: italic; font-size: 1.8rem;
  line-height: 1.35; color: var(--accent); border-left: 3px solid var(--accent);
  padding: 6px 0 6px 24px; margin: 34px 0;
}
.article ul { margin: 0 0 20px 22px; }
.article ul li { margin-bottom: 8px; color: #34322b; }
.figure { margin: 30px 0; }
.figure .frame {
  aspect-ratio: 16/9; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, #20323b, #0e171c); display: grid; place-items: center;
}
.figure .frame .glyph { font-family: var(--font-head); font-size: 5rem; color: rgba(201,163,91,.5); }
.figure figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; text-align: center; font-style: italic; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(40,30,10,.12); }
.card .icon { font-size: 26px; color: var(--accent); margin-bottom: 14px; }
.card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Feature link cards (home) ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feature {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(40,30,10,.12); }
.feature .top { aspect-ratio: 21/9; background: linear-gradient(160deg, #243640, #0e171c); display: grid; place-items: center; }
.feature .top .glyph { font-family: var(--font-head); font-size: 4rem; color: rgba(201,163,91,.5); }
.feature .pad { padding: 24px 26px 28px; }
.feature .pad .tag { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.feature .pad h3 { font-size: 1.6rem; margin: 8px 0 8px; }
.feature .pad p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Book cards ---------- */
.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.book {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: grid; grid-template-columns: 150px 1fr;
  transition: transform .2s, box-shadow .2s;
}
.book:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(40,30,10,.12); }
.book .cover { background: #0f1115; display: grid; place-items: center; padding: 16px; }
.book .cover img { max-height: 200px; width: auto; box-shadow: 0 10px 26px rgba(0,0,0,.4); border-radius: 3px; }
.book .body { padding: 22px 24px; display: flex; flex-direction: column; }
.book .tag { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.book h3 { font-size: 1.4rem; margin-bottom: 8px; }
.book .desc { color: var(--ink-soft); font-size: .95rem; margin-bottom: 16px; flex: 1; }
.book .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* book detail */
.book-detail { display: grid; grid-template-columns: 360px 1fr; gap: 50px; align-items: start; }
.book-detail .pcover { background: #0f1115; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; place-items: center; }
.book-detail .pcover img { max-height: 460px; width: auto; box-shadow: 0 20px 50px rgba(0,0,0,.45); border-radius: 4px; }
.book-detail h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0 14px; }
.spec { border-top: 1px solid var(--line); margin: 24px 0; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec div span:first-child { color: var(--ink-soft); }

/* ---------- Disclosure note ---------- */
.disclosure {
  background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--accent-2);
  border-radius: 8px; padding: 18px 22px; font-size: .92rem; color: var(--ink-soft);
}
.disclosure b { color: var(--ink); }

/* ---------- Quote band ---------- */
.quote { text-align: center; max-width: 820px; margin: 0 auto; }
.quote blockquote { font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-style: italic; line-height: 1.4; color: var(--ink); }
.quote cite { display: block; margin-top: 20px; color: var(--accent); font-style: normal; letter-spacing: 2px; text-transform: uppercase; font-size: 12px; font-weight: 700; }

/* ---------- CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Page head (interior) ---------- */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.page-head p { color: var(--ink-soft); max-width: var(--measure); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid .name { font-family: var(--font-head); font-size: 24px; color: var(--ink); margin-bottom: 10px; }
.footer-grid .name b { color: var(--accent); }
.footer-grid h4 { color: var(--accent); letter-spacing: 2px; text-transform: uppercase; font-size: 12px; font-family: var(--font-body); margin-bottom: 14px; }
.footer-grid p, .footer-grid a { color: var(--ink-soft); font-size: .94rem; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--ink-soft); font-size: .84rem; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.6rem; margin: 34px 0 10px; color: var(--accent); }
.prose h3 { font-size: 1.2rem; margin: 22px 0 6px; }
.prose p, .prose li { color: #34322b; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; }
.prose a { color: var(--accent); text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px;
  width: min(960px, calc(100% - 32px)); z-index: 100;
  background: var(--card); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 22px 26px;
  box-shadow: 0 24px 60px rgba(40,30,10,.25);
  display: none; gap: 22px; align-items: center; flex-wrap: wrap;
}
.cookie.show { display: flex; }
.cookie .ctext { flex: 1; min-width: 260px; }
.cookie h4 { font-size: 1.2rem; margin-bottom: 6px; }
.cookie p { color: var(--ink-soft); font-size: .9rem; }
.cookie p a { color: var(--accent); text-decoration: underline; }
.cookie .cbtns { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie .btn { padding: 11px 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; }
  .grid-3 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .book-detail { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 24px; width: 100%; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .book { grid-template-columns: 1fr; }
  .book .cover { aspect-ratio: 16/10; }
}
