/* =========================================================================
   Margaret B Taiwo Ademola Books — Warm Editorial Design System
   ========================================================================= */

/* ----- Design Tokens ---------------------------------------------------- */
:root {
  /* Paper / surfaces */
  --paper:        #FBF6EC;   /* warm ivory page background */
  --paper-2:      #F4E9D8;   /* deeper cream section band  */
  --paper-3:      #EFE2CD;   /* warmest cream / footer top */
  --card:         #FFFDF8;   /* near-white card            */

  /* Ink / text */
  --ink:          #2A211A;   /* espresso, primary text     */
  --ink-soft:     #5C5046;   /* muted brown, secondary     */
  --ink-faint:    #8A7C6E;   /* tertiary / captions        */

  /* Brand accents */
  --gold:         #B0823A;   /* antique gold primary       */
  --gold-deep:    #8C6324;   /* deep gold (text on cream)  */
  --gold-soft:    #E7CD9B;   /* light gold wash            */
  --terra:        #C0613F;   /* terracotta secondary       */
  --terra-deep:   #9E4A2C;
  --sage:         #6E7A5C;   /* trust / success            */

  /* Lines & shadows */
  --line:         rgba(42, 33, 26, 0.12);
  --line-strong:  rgba(42, 33, 26, 0.22);
  --shadow-sm:    0 1px 2px rgba(42,33,26,.06), 0 2px 6px rgba(42,33,26,.05);
  --shadow-md:    0 6px 20px rgba(42,33,26,.10), 0 2px 6px rgba(42,33,26,.06);
  --shadow-lg:    0 24px 60px rgba(42,33,26,.18), 0 8px 22px rgba(42,33,26,.10);
  --shadow-gold:  0 14px 40px rgba(176,130,58,.28);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing rhythm (8pt) */
  --sp-1: .5rem;  --sp-2: 1rem;   --sp-3: 1.5rem; --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4rem;   --sp-7: 6rem;   --sp-8: 8rem;

  --radius:    14px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --maxw: 1200px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --z-nav: 100; --z-drawer: 1000; --z-scrim: 990; --z-toast: 1100;
}

/* ----- Reset ------------------------------------------------------------ */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Subtle paper grain on the whole page */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ----- Typography ------------------------------------------------------- */
h1,h2,h3,h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 460; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p { color: var(--ink-soft); }

.display-italic { font-style: italic; }
.serif { font-family: var(--display); }

.eyebrow {
  font-family: var(--body);
  font-weight: 800; font-size: .76rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--gold); display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 26px; height: 1.5px; background: var(--gold); display: inline-block; }

.lede { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.75; }

/* ----- Layout helpers --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--cream { background: var(--paper-2); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.center { text-align: center; }
.stack-sm > * + * { margin-top: var(--sp-2); }
.divider-dot { display:flex; align-items:center; justify-content:center; gap:.7rem; color: var(--gold); }
.divider-dot::before, .divider-dot::after { content:""; height:1px; width:60px; background: var(--line-strong); }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 800; font-size: .95rem; letter-spacing: .01em;
  padding: .95rem 1.7rem; border-radius: var(--radius-pill);
  min-height: 50px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  touch-action: manipulation; line-height: 1;
}
.btn svg { width: 19px; height: 19px; }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn--outline { border: 1.5px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--ghost { color: var(--ink); padding-inline: .4rem; min-height: auto; }
.btn--ghost:hover { color: var(--gold-deep); }
.btn--block { width: 100%; }
.btn--sm { padding: .7rem 1.2rem; min-height: 44px; font-size: .9rem; }

.link-arrow { display:inline-flex; align-items:center; gap:.5rem; font-weight:800; color: var(--ink); border-bottom: 2px solid var(--gold-soft); padding-bottom: 2px; transition: gap .25s var(--ease), border-color .25s var(--ease); }
.link-arrow:hover { gap: .85rem; border-color: var(--gold); color: var(--gold-deep); }

/* ----- Top promo bar ---------------------------------------------------- */
.promo {
  background: var(--ink); color: var(--paper);
  text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem 1rem;
}
.promo .star { color: var(--gold-soft); }

/* ----- Header / Nav ----------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(251,246,236,.82);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.nav__logo { display: flex; align-items: center; gap: .7rem; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: .3rem; }
.nav__links a {
  position: relative; font-weight: 700; font-size: .98rem; color: var(--ink);
  padding: .55rem .9rem; border-radius: var(--radius-pill); transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--gold); transition: width .25s var(--ease); border-radius: 2px;
}
.nav__links a:hover { color: var(--gold-deep); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 18px; }
.nav__links a[aria-current="page"] { color: var(--gold-deep); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }

.cart-btn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); transition: background .2s var(--ease); }
.cart-btn:hover { background: var(--paper-3); }
.cart-btn svg { width: 23px; height: 23px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--terra); color: #fff; font-size: .72rem; font-weight: 800;
  border-radius: 999px; display: grid; place-items: center; line-height: 1;
  transform: scale(0); transition: transform .3s var(--ease); border: 2px solid var(--paper);
}
.cart-count.show { transform: scale(1); }

.nav__toggle { display: none; width: 48px; height: 48px; border-radius: 50%; place-items: center; }
.nav__toggle svg { width: 26px; height: 26px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px);
  background: var(--paper); z-index: var(--z-drawer);
  transform: translateX(100%); transition: transform .4s var(--ease);
  padding: 5.5rem 1.8rem 2rem; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: .3rem;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--display); font-size: 1.5rem; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-menu a:hover { color: var(--gold-deep); }
.mobile-menu .btn { margin-top: 1.2rem; }
.menu-close { position: absolute; top: 1.4rem; right: 1.4rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.menu-close svg { width: 26px; height: 26px; }

/* ----- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(231,205,155,.55), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(192,97,63,.16), transparent 46%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero__title { margin: 1.4rem 0 1.5rem; }
.hero__title em { color: var(--gold-deep); font-style: italic; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__meta { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero__rating { display: flex; align-items: center; gap: .6rem; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.hero__meta small { color: var(--ink-faint); font-size: .9rem; }

.hero__art { position: relative; display: grid; place-items: center; }
.hero__book {
  position: relative; width: min(78%, 360px); aspect-ratio: 1/1; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); transform: rotate(-4deg);
  border: 6px solid var(--card);
}
.hero__book img { width: 100%; height: 100%; object-fit: cover; }
.hero__book--back { position: absolute; width: min(64%, 290px); transform: rotate(9deg) translate(34%, -14%); opacity: .92; z-index: -1; box-shadow: var(--shadow-md); }
.hero__badge {
  position: absolute; left: -8%; bottom: 10%;
  background: var(--card); border-radius: var(--radius); padding: .9rem 1.1rem;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .7rem; z-index: 3;
}
.hero__badge .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; }
.hero__badge .ico svg { width: 22px; height: 22px; }
.hero__badge b { font-family: var(--display); font-size: 1rem; display: block; line-height: 1.2; }
.hero__badge span { font-size: .78rem; color: var(--ink-faint); }

.scallop { display: block; width: 100%; height: 40px; }
.scallop path { fill: var(--paper-2); }

/* ----- Value pillars ---------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem 1.8rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar__ico { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(140deg, var(--gold-soft), #f4dcae); color: var(--gold-deep); display: grid; place-items: center; margin-bottom: 1.3rem; }
.pillar__ico svg { width: 30px; height: 30px; }
.pillar h3 { margin-bottom: .5rem; }
.pillar p { font-size: .98rem; }

/* ----- Section heading -------------------------------------------------- */
.shead { max-width: 640px; }
.shead.center { margin-inline: auto; }
.shead h2 { margin: .8rem 0 .8rem; }
.shead p { font-size: 1.08rem; }
.shead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.6rem; }

/* ----- Book cards / grid ------------------------------------------------ */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); }
.book-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.book-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.book-card__media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--paper-3); }
.book-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.book-card:hover .book-card__media img { transform: scale(1.05); }
.book-card__badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: .4rem; }
.badge { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .7rem; border-radius: var(--radius-pill); }
.badge--sale { background: var(--terra); color: #fff; }
.badge--new { background: var(--ink); color: var(--paper); }
.book-card__quick {
  position: absolute; inset-inline: 14px; bottom: 14px; transform: translateY(130%);
  transition: transform .4s var(--ease), opacity .4s var(--ease); opacity: 0;
}
.book-card:hover .book-card__quick, .book-card:focus-within .book-card__quick { transform: translateY(0); opacity: 1; }
.book-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.book-card__cat { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.book-card__title { font-family: var(--display); font-size: 1.3rem; margin: .35rem 0 .55rem; line-height: 1.15; }
.book-card__title a:hover { color: var(--gold-deep); }
.book-card__desc { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.1rem; flex: 1; }
.book-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.price { display: flex; align-items: baseline; gap: .5rem; font-variant-numeric: tabular-nums; }
.price__now { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.price__was { font-size: .95rem; color: var(--ink-faint); text-decoration: line-through; }
.add-btn {
  display: inline-flex; align-items: center; gap: .45rem; background: var(--ink); color: var(--paper);
  padding: .7rem 1.1rem; border-radius: var(--radius-pill); font-weight: 800; font-size: .88rem; min-height: 44px;
  transition: background .25s var(--ease), transform .2s var(--ease);
}
.add-btn svg { width: 17px; height: 17px; }
.add-btn:hover { background: var(--gold-deep); transform: translateY(-2px); }
.add-btn.added { background: var(--sage); }

/* ----- About teaser ----------------------------------------------------- */
.about-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-portrait { position: relative; }
.about-portrait img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.about-portrait::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1.5px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }
.about-quote { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; color: var(--ink); margin: 1.4rem 0; }
.about-quote::first-letter { color: var(--gold-deep); }
.signature { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--gold-deep); margin-top: 1rem; }

/* ----- Verse band ------------------------------------------------------- */
.verse { background: var(--ink); color: var(--paper); text-align: center; position: relative; overflow: hidden; }
.verse::before, .verse::after { content: "”"; position: absolute; font-family: var(--display); font-size: 16rem; color: rgba(231,205,155,.10); line-height: 1; }
.verse::before { top: -2rem; left: 4%; }
.verse::after { bottom: -7rem; right: 4%; }
.verse p { font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.5rem); color: var(--paper); line-height: 1.4; max-width: 820px; margin-inline: auto; position: relative; z-index: 1; }
.verse cite { display: block; margin-top: 1.4rem; font-family: var(--body); font-style: normal; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .82rem; color: var(--gold-soft); }

/* ----- Testimonials ----------------------------------------------------- */
.tcards { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.2rem,3vw,2rem); }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tcard .stars { margin-bottom: 1rem; }
.tcard blockquote { font-size: 1.05rem; color: var(--ink); line-height: 1.6; flex: 1; }
.tcard__who { display: flex; align-items: center; gap: .85rem; margin-top: 1.4rem; }
.tcard__av { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.tcard__who b { display: block; font-family: var(--display); font-size: 1.05rem; }
.tcard__who span { font-size: .85rem; color: var(--ink-faint); }

/* ----- Newsletter / Book Club ------------------------------------------- */
.club { position: relative; overflow: hidden; background: linear-gradient(135deg, #2A211A, #3a2d20); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); }
.club__glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(176,130,58,.4), transparent 70%); top: -180px; right: -120px; pointer-events: none; }
.club__inner { position: relative; z-index: 1; max-width: 560px; }
.club h2 { color: var(--paper); margin: .8rem 0 .8rem; }
.club p { color: rgba(251,246,236,.78); }
.club__form { display: flex; gap: .7rem; margin-top: 1.8rem; flex-wrap: wrap; }
.club__form input { flex: 1; min-width: 200px; padding: .95rem 1.2rem; border-radius: var(--radius-pill); border: 1.5px solid rgba(251,246,236,.25); background: rgba(251,246,236,.08); color: var(--paper); }
.club__form input::placeholder { color: rgba(251,246,236,.55); }
.club__form input:focus { border-color: var(--gold-soft); background: rgba(251,246,236,.14); outline: none; }
.club small { display: block; margin-top: 1rem; color: rgba(251,246,236,.6); font-size: .85rem; }

/* ----- Footer ----------------------------------------------------------- */
.footer { background: var(--paper-3); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__brand img { height: 50px; margin-bottom: 1.1rem; }
.footer__brand p { font-size: .95rem; max-width: 280px; }
.footer__socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer__socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.footer__socials a:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.footer__socials svg { width: 19px; height: 19px; }
.footer__col h4 { font-family: var(--body); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1.1rem; }
.footer__col a { display: block; font-size: .96rem; color: var(--ink-soft); padding: .35rem 0; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--gold-deep); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-faint); }
.footer__pay { display: flex; align-items: center; gap: .7rem; }
.footer__pay span { font-weight: 700; }
.footer__pay .chip { padding: .25rem .6rem; border: 1px solid var(--line-strong); border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: var(--ink-soft); }

/* ----- Cart drawer ------------------------------------------------------ */
.scrim { position: fixed; inset: 0; background: rgba(42,33,26,.5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; z-index: var(--z-scrim); }
.scrim.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(92vw, 440px);
  background: var(--paper); z-index: var(--z-drawer); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .42s var(--ease); box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.6rem; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.4rem; }
.drawer__head .count { color: var(--ink-faint); font-size: .9rem; font-family: var(--body); }
.drawer__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.drawer__close:hover { background: var(--paper-3); }
.drawer__close svg { width: 24px; height: 24px; }
.drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.6rem; }
.cart-line { display: grid; grid-template-columns: 70px 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line__img { width: 70px; height: 70px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__title { font-family: var(--display); font-size: 1.05rem; line-height: 1.2; }
.cart-line__price { font-size: .88rem; color: var(--ink-faint); margin-top: .2rem; }
.qty { display: inline-flex; align-items: center; gap: .2rem; margin-top: .5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: .15rem; }
.qty button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); font-weight: 800; transition: background .2s; }
.qty button:hover { background: var(--paper-3); }
.qty span { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-line__end { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.cart-line__sum { font-family: var(--display); font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.cart-line__rm { font-size: .8rem; color: var(--ink-faint); text-decoration: underline; }
.cart-line__rm:hover { color: var(--terra-deep); }
.cart-empty { text-align: center; padding: 3.5rem 1rem; color: var(--ink-faint); }
.cart-empty svg { width: 60px; height: 60px; color: var(--line-strong); margin: 0 auto 1.2rem; }
.cart-empty p { margin-bottom: 1.5rem; }
.drawer__foot { border-top: 1px solid var(--line); padding: 1.4rem 1.6rem 1.7rem; background: var(--card); }
.drawer__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; color: var(--ink-soft); font-size: .95rem; }
.drawer__row.total { font-size: 1.15rem; color: var(--ink); margin: .8rem 0 1.2rem; }
.drawer__row.total b { font-family: var(--display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.drawer__row.save { color: var(--terra-deep); font-weight: 700; }
.pay-note { text-align: center; font-size: .82rem; color: var(--ink-faint); margin-top: .9rem; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.pay-note svg { width: 15px; height: 15px; }

/* ----- Toast ------------------------------------------------------------ */
.toast-wrap { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: .6rem; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: .9rem 1.3rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .94rem; transform: translateY(20px); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 20px; height: 20px; color: var(--gold-soft); }

/* ----- Page hero (sub pages) -------------------------------------------- */
.phero { background: var(--paper-2); border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5rem); text-align: center; position: relative; overflow: hidden; }
.phero__bg { position:absolute; inset:0; background: radial-gradient(circle at 50% -20%, rgba(231,205,155,.5), transparent 55%); }
.phero__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.phero h1 { margin: 1rem 0 1rem; }
.crumbs { font-size: .85rem; color: var(--ink-faint); display: flex; gap: .5rem; justify-content: center; }
.crumbs a:hover { color: var(--gold-deep); }

/* ----- Shop toolbar ----------------------------------------------------- */
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.shop-bar__count { color: var(--ink-soft); font-size: .95rem; }
.shop-bar__count b { color: var(--ink); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding: .7rem 2.6rem .7rem 1.1rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--card); color: var(--ink); font-weight: 700; min-height: 46px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: translateY(-65%) rotate(45deg); pointer-events: none; }

/* ----- Product modal ---------------------------------------------------- */
.pmodal-scrim { position: fixed; inset: 0; background: rgba(42,33,26,.55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; z-index: var(--z-scrim); display: grid; place-items: center; padding: 1.2rem; }
.pmodal-scrim.show { opacity: 1; visibility: visible; }
.pmodal { background: var(--paper); border-radius: var(--radius-lg); width: min(900px, 100%); max-height: 90vh; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-lg); transform: scale(.94); transition: transform .35s var(--ease); }
.pmodal-scrim.show .pmodal { transform: scale(1); }
.pmodal__media { background: var(--paper-3); position: relative; }
.pmodal__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.pmodal__body { padding: 2.4rem; overflow-y: auto; position: relative; }
.pmodal__close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-sm); display: grid; place-items: center; z-index: 2; }
.pmodal__close svg { width: 22px; height: 22px; }
.pmodal__cat { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.pmodal__title { font-size: 2rem; margin: .5rem 0 .8rem; }
.pmodal__price { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.2rem; }
.pmodal__price .price__now { font-size: 1.9rem; }
.pmodal__desc { color: var(--ink-soft); margin-bottom: 1.4rem; }
.pmodal__meta { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; }
.pmodal__meta li { display: flex; align-items: center; gap: .7rem; font-size: .94rem; color: var(--ink-soft); }
.pmodal__meta svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* ----- Contact / forms -------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .45rem; color: var(--ink); }
.field label .req { color: var(--terra); }
.field input, .field textarea {
  width: 100%; padding: .9rem 1.1rem; border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: var(--card); color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176,130,58,.14); }
.field .err { color: var(--terra-deep); font-size: .82rem; margin-top: .35rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--terra); }
.field.invalid .err { display: block; }
.form-success { background: rgba(110,122,92,.14); border: 1px solid var(--sage); border-radius: 12px; padding: 1.1rem 1.3rem; color: #45503a; font-weight: 600; display: none; align-items: center; gap: .7rem; }
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; color: var(--sage); }

.info-cards { display: grid; gap: 1rem; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; box-shadow: var(--shadow-sm); }
.info-card__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; flex-shrink: 0; }
.info-card__ico svg { width: 22px; height: 22px; }
.info-card h4 { font-family: var(--body); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .3rem; }
.info-card p { color: var(--ink); font-size: 1rem; }

/* ----- Blog ------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; position: relative; display: grid; place-items: center; }
.thumb { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.thumb svg.ornament { width: 78px; height: 78px; color: rgba(255,255,255,.92); opacity: .95; position: relative; z-index: 1; transition: transform .6s var(--ease); }
.post-card:hover .thumb svg.ornament { transform: scale(1.08) rotate(-3deg); }
.thumb::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 16px 16px; opacity: .5; }
.thumb.g1 { background: linear-gradient(135deg, #B0823A, #8C6324); }
.thumb.g2 { background: linear-gradient(135deg, #C0613F, #9E4A2C); }
.thumb.g3 { background: linear-gradient(135deg, #6E7A5C, #4f5a40); }
.thumb.g4 { background: linear-gradient(135deg, #3a2d20, #2A211A); }
.thumb.g5 { background: linear-gradient(135deg, #c79a52, #a87a2f); }
.thumb.g6 { background: linear-gradient(135deg, #8a6f53, #5c4a36); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post-card__tag { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.post-card__title { font-family: var(--display); font-size: 1.35rem; line-height: 1.18; margin: .5rem 0 .6rem; }
.post-card:hover .post-card__title { color: var(--gold-deep); }
.post-card__excerpt { font-size: .94rem; color: var(--ink-soft); flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; font-size: .84rem; color: var(--ink-faint); }
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }

.post-feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 3rem; }
.post-feature__media { overflow: hidden; min-height: 280px; }
.post-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.post-feature__body { padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.post-feature__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .8rem 0 1rem; }

/* ----- Article ---------------------------------------------------------- */
.article { max-width: 740px; margin-inline: auto; }
.article__hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 2.5rem; }
.article p { font-size: 1.12rem; line-height: 1.85; margin-bottom: 1.5rem; color: var(--ink-soft); }
.article h2 { font-size: 1.9rem; margin: 2.5rem 0 1rem; }
.article h3 { margin: 2rem 0 .8rem; }
.article blockquote { border-left: 3px solid var(--gold); padding: .4rem 0 .4rem 1.6rem; margin: 2rem 0; font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1.45; color: var(--ink); }
.article ul { margin: 0 0 1.5rem 1.2rem; color: var(--ink-soft); }
.article ul li { margin-bottom: .6rem; padding-left: .3rem; }
.article ul li::marker { color: var(--gold); }
.article__byline { display: flex; align-items: center; gap: .9rem; padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.article__byline .av { width: 50px; height: 50px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; }
.article__byline b { font-family: var(--display); font-size: 1.1rem; display: block; }
.article__byline span { font-size: .85rem; color: var(--ink-faint); }

/* ----- Reveal animations ------------------------------------------------ */
/* Scoped to .js so content stays visible if JavaScript is disabled/fails. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__art { order: -1; }
  .hero__book { transform: rotate(-3deg); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .pmodal { grid-template-columns: 1fr; max-height: 92vh; }
  .pmodal__media img { min-height: 240px; max-height: 320px; }
  .post-feature { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .pillars, .book-grid, .tcards, .blog-grid { grid-template-columns: 1fr 1fr; }
  .about-split, .contact-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; }
  .about-portrait::after { inset: 12px -12px -12px 12px; }
}
@media (max-width: 580px) {
  body { font-size: 16px; }
  .pillars, .book-grid, .tcards, .blog-grid, .footer__top { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .shead-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .club__form { flex-direction: column; }
  .club__form .btn { width: 100%; }
  .verse::before, .verse::after { display: none; }
}

/* ----- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   Option A — store handoff: the local basket/drawer is retired because the
   real cart + checkout live on the Hostinger store. Hide all basket UI.
   ========================================================================= */
[data-open-cart],
.drawer,
.scrim { display: none !important; }
