/* =========================================================
   Evelyn Whitmore — Ada's Notebook
   ========================================================= */

/* ---------- Fonts (SIL Open Font License, bundled locally) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Pinyon Script"; src: url("../fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ivory: #F8F1E4;
  --parchment: #EADBC2;
  --burgundy: #702D3A;
  --burgundy-dark: #5A2330;
  --walnut: #39271D;
  --walnut-soft: #4E3A2E;
  --gold: #B28A47;
  --gold-light: #D6B77A;
  --sage: #77816A;
  --cream: #FFFDF7;

  --serif-display: "Cormorant Garamond", "Baskerville", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --serif-body: "Libre Baskerville", Baskerville, Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", "Segoe Script", cursive;

  --fs-body: clamp(1.03rem, 0.97rem + 0.3vw, 1.15rem);
  --radius: 4px;
  --shadow-soft: 0 10px 30px -12px rgba(57, 39, 29, .28);
  --shadow-book: 0 30px 60px -20px rgba(57, 39, 29, .55), 0 12px 24px -12px rgba(57, 39, 29, .4);
  --gutter: clamp(16px, 4vw, 40px);
  --top-h: 120px; /* updated by JS: height of offer bar + header */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--walnut);
  font-family: var(--serif-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--burgundy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--burgundy-dark); }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--serif-display); color: var(--walnut); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 1.25rem + .6vw, 1.7rem); }
em { font-style: italic; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 200; background: var(--walnut); color: var(--cream); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.container.narrow { max-width: 860px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.eyebrow {
  font-family: var(--serif-body);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 700;
  margin: 0 0 .9em;
}
.lead { font-size: 1.08em; color: var(--walnut-soft); }
.divider { display: block; width: 200px; height: 20px; color: var(--gold); margin: 6px auto 26px; }
.divider-left { margin-left: 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-intro { color: var(--walnut-soft); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--burgundy); --fg: var(--cream); --bd: var(--burgundy);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.6em;
  font-family: var(--serif-body); font-weight: 700; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; text-align: center; line-height: 1.25;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { color: var(--fg); }
.btn-primary { box-shadow: inset 0 0 0 1px rgba(214, 183, 122, .45), 0 8px 18px -10px rgba(112, 45, 58, .8); }
.btn-primary:hover { --bg: var(--burgundy-dark); transform: translateY(-1px); }
.btn-ghost { --bg: transparent; --fg: var(--burgundy); --bd: var(--burgundy); }
.btn-ghost:hover { --bg: var(--burgundy); --fg: var(--cream); }
.btn-gold { --bg: var(--gold); --fg: var(--walnut); --bd: var(--gold-light); box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.btn-gold:hover { --bg: var(--gold-light); --fg: var(--walnut); transform: translateY(-1px); }
.btn-large { min-height: 58px; font-size: .92rem; padding: .95em 2em; }
.btn-small { min-height: 44px; padding: .55em 1.1em; font-size: .74rem; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45em; }
.check-list li { display: flex; align-items: flex-start; gap: .6em; }
.check-list svg { width: 1.15em; height: 1.15em; flex: none; margin-top: .3em; color: var(--sage); }

/* =========================================================
   Top: offer bar + header (sticky together)
   ========================================================= */
.site-top { position: sticky; top: 0; z-index: 100; }
.offer-bar {
  background: var(--burgundy);
  color: var(--ivory);
  border-bottom: 1px solid var(--gold);
  box-shadow: inset 0 -3px 0 -2px rgba(214, 183, 122, .35);
  font-size: .86rem;
  overflow: hidden;
  transition: max-height .5s ease, opacity .4s ease;
  max-height: 120px;
}
.offer-bar.is-closing { max-height: 0; opacity: 0; border-bottom-width: 0; }
.offer-inner { max-width: 1220px; margin: 0 auto; padding: 7px var(--gutter); display: flex; align-items: center; justify-content: center; gap: 10px 22px; }
.offer-text { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; line-height: 1.35; }
.offer-kicker { font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .76rem; color: var(--gold-light); }
.offer-sep { color: var(--gold); font-size: .6rem; }
.offer-main strong { color: var(--cream); }
.offer-timer { margin: 0; display: none; align-items: center; gap: 8px; }
.js .offer-timer { display: flex; }
.offer-timer-label { font-size: .74rem; opacity: .85; font-style: italic; white-space: nowrap; }
@media (max-width: 1000px) { .offer-timer-label { display: none; } }
.offer-clock {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace;
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.08rem; letter-spacing: .06em;
  background: rgba(57, 39, 29, .55); color: var(--cream);
  border: 1px solid var(--gold); border-radius: 3px; padding: 1px 9px;
}
.offer-btn {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px;
  background: var(--gold); color: var(--walnut); font-weight: 700; text-decoration: none;
  letter-spacing: .14em; font-size: .7rem; text-transform: uppercase; border-radius: 3px; white-space: nowrap;
}
.offer-btn:hover { background: var(--gold-light); color: var(--walnut); }
.offer-close { background: none; border: 0; color: var(--ivory); font-size: 1.4rem; line-height: 1; width: 36px; height: 36px; cursor: pointer; opacity: .75; flex: none; display: none; }
.offer-close:hover { opacity: 1; }
.offer-bar.mode-off { display: none; }

.site-header {
  background: rgba(248, 241, 228, .96);
  border-bottom: 1px solid rgba(178, 138, 71, .45);
  box-shadow: 0 6px 18px -14px rgba(57, 39, 29, .5);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(248, 241, 228, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } }
.header-inner { max-width: 1300px; margin: 0 auto; padding: 0 var(--gutter); min-height: 70px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--walnut); flex: none; }
.brand-mark { width: 30px; height: 30px; color: var(--gold); }
.brand-name { font-family: var(--serif-display); font-weight: 700; font-size: 1.32rem; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.main-nav ul { list-style: none; display: flex; gap: clamp(12px, 1.6vw, 26px); margin: 0; padding: 0; }
.main-nav a:not(.btn) { color: var(--walnut); text-decoration: none; font-size: .9rem; position: relative; padding: 6px 0; white-space: nowrap; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
.main-nav a:not(.btn):hover::after, .main-nav a.is-current::after { transform: scaleX(1); }
.header-buy { display: none; }
.menu-toggle { display: none; }

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .header-buy { display: inline-flex; margin-left: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 6px 10px;
    background: transparent; border: 1px solid rgba(57, 39, 29, .35); border-radius: var(--radius); color: var(--walnut); cursor: pointer;
    font-family: var(--serif-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  }
  .menu-icon { display: grid; gap: 4px; width: 20px; }
  .menu-icon span { display: block; height: 2px; background: currentColor; border-radius: 1px; transition: transform .25s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--gold); box-shadow: 0 18px 30px -18px rgba(57,39,29,.6);
    padding: 8px var(--gutter) 22px; max-height: calc(100vh - var(--top-h)); overflow-y: auto;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 0; }
  .main-nav.is-open a:not(.btn) { display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(178, 138, 71, .3); }
  .main-nav.is-open a:not(.btn)::after { display: none; }
  .main-nav.is-open .nav-buy { margin-top: 18px; min-height: 52px; font-size: .82rem; }
  .site-header { position: relative; }
}
/* no-JS fallback: show the nav as a wrapped row */
html:not(.js) .main-nav { display: flex; flex-wrap: wrap; }
html:not(.js) .menu-toggle { display: none; }
@media (max-width: 1180px) { html:not(.js) .main-nav ul { flex-wrap: wrap; } html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 8px; } }

@media (max-width: 760px) {
  .offer-inner { gap: 8px; padding: 6px 12px; justify-content: space-between; }
  .offer-sep, .offer-timer-label, .om-get { display: none; }
  .offer-text { font-size: .78rem; gap: 0; flex-direction: column; align-items: flex-start; text-align: left; }
  .offer-kicker { font-size: .56rem; letter-spacing: .12em; white-space: nowrap; }
  .offer-main { line-height: 1.3; }
  .offer-clock { font-size: .95rem; padding: 0 6px; }
  .offer-btn { min-height: 36px; padding: 4px 10px; font-size: .62rem; letter-spacing: .08em; }
  .offer-timer { gap: 0; }
  .header-inner { min-height: 58px; gap: 10px; }
  .brand-name { font-size: 1.08rem; letter-spacing: .14em; }
  .brand-mark { width: 24px; height: 24px; }
  .header-buy { display: none; }
  .menu-toggle { margin-left: auto; }
}
@media (max-width: 420px) {
  .om-title { display: none; }
  .offer-kicker { letter-spacing: .05em; font-size: .54rem; }
  .offer-btn { padding: 4px 8px; font-size: .6rem; letter-spacing: .04em; }
  .offer-inner { gap: 6px; padding: 6px 10px; }
  .offer-main strong { font-size: 1.05rem; }
  .price-note { display: none !important; }
}
@media (max-width: 400px) {
  .brand-name { font-size: .98rem; letter-spacing: .1em; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .offer-text { font-size: .76rem; }
}
@media (max-width: 340px) { .brand-mark { display: none; } }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: clamp(28px, 3.6vw, 64px) 0 clamp(56px, 7vw, 100px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 45%, rgba(255, 253, 247, .95) 0%, rgba(255, 253, 247, 0) 55%),
    radial-gradient(ellipse at 85% 10%, rgba(234, 219, 194, .7) 0%, rgba(234, 219, 194, 0) 50%),
    linear-gradient(180deg, var(--ivory) 0%, #F3E8D4 100%);
}
.hero-bg::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(1100px, 92%); height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: "book intro" "book product" "book copy";
  column-gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.hero-intro { grid-area: intro; align-self: end; }
.hero-book { grid-area: book; align-self: center; }
.hero-product { grid-area: product; }
.hero-copy { grid-area: copy; }
.hero h1 { font-size: clamp(2.2rem, 1.1rem + 2.6vw, 3.7rem); font-weight: 700; margin-bottom: .35em; line-height: 1.04; }
.hero h1 em { font-weight: 500; color: var(--burgundy); display: inline-block; }
.hero-product { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; border-top: 1px solid rgba(178, 138, 71, .55); border-bottom: 1px solid rgba(178, 138, 71, .55); padding: 12px 0 10px; margin: 4px 0 18px; }
.product-title { font-family: var(--serif-display); font-size: 1.9rem; font-weight: 700; margin: 0; color: var(--walnut); line-height: 1.1; }
.product-subtitle { font-family: var(--serif-display); font-style: italic; font-weight: 500; font-size: 1.3rem; margin: 0; color: var(--walnut-soft); flex: 1 1 260px; }
.hero-price { margin: 8px 0 0; width: 100%; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-amount { font-family: var(--serif-display); font-weight: 700; font-size: 2.6rem; color: var(--burgundy); line-height: 1; }
.price-note { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); font-weight: 700; }
.hero-copy .lead { margin-bottom: 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-checks { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 28px; font-size: .95rem; margin-bottom: 18px; }
.digital-notice { font-size: .85rem; font-style: italic; color: var(--walnut-soft); margin: 0; padding-left: 12px; border-left: 2px solid var(--gold); }

/* 3D book */
.book-stage { position: relative; perspective: 1700px; max-width: 420px; margin: 0 auto; padding: 10px 20px 0 26px; }
.book3d {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(3deg);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
  border-radius: 2px 5px 5px 2px;
  box-shadow: var(--shadow-book);
}
.book3d img { border-radius: 2px 5px 5px 2px; width: 100%; position: relative; z-index: 1; }
/* spine shading on the left edge */
.book3d::before {
  content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 7%;
  background: linear-gradient(90deg, rgba(0,0,0,.38) 0%, rgba(255,255,255,.22) 28%, rgba(0,0,0,.1) 55%, rgba(0,0,0,0) 100%);
  border-radius: 2px 0 0 2px; pointer-events: none;
}
/* subtle cover thickness on the right edge */
.book3d::after {
  content: ""; position: absolute; z-index: 0; top: 4px; bottom: 4px; right: -12px; width: 14px;
  background: repeating-linear-gradient(90deg, #f6eedd 0 1px, #e2d3b6 1px 2px);
  transform: rotateY(60deg); transform-origin: left center; border-radius: 0 3px 3px 0;
  box-shadow: inset 0 0 6px rgba(57,39,29,.25);
}
.hero-book:hover .book3d { transform: rotateY(-8deg) rotateX(2deg); }
.book-stage::after {
  content: ""; position: absolute; left: 10%; right: 4%; bottom: 44px; height: 26px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(57,39,29,.35), rgba(57,39,29,0) 70%);
}
.pdf-badge {
  display: table; margin: 22px auto 0; padding: 6px 16px;
  background: var(--burgundy); color: var(--cream); border: 1px solid var(--gold); border-radius: 30px;
  font-family: var(--serif-body); font-weight: 700; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  box-shadow: inset 0 0 0 2px var(--burgundy), inset 0 0 0 3px rgba(214,183,122,.5);
}
.pdf-badge span { color: var(--gold-light); }

@media (max-width: 900px) {
  .hero { padding-top: 24px; }
  .hero-grid {
    grid-template-columns: minmax(118px, 40%) minmax(0, 1fr);
    grid-template-areas: "intro intro" "book product" "copy copy";
    column-gap: 18px;
  }
  .hero-intro { text-align: left; }
  .hero h1 { font-size: clamp(1.95rem, 1.1rem + 4.4vw, 3rem); }
  .hero-book { align-self: center; }
  .book-stage { padding: 4px 10px 16px 6px; }
  .book3d { transform: rotateY(-12deg) rotateX(2deg); }
  .pdf-badge { font-size: .54rem; letter-spacing: .1em; padding: 4px 9px; margin-top: 12px; }
  .hero-product { flex-direction: column; align-items: flex-start; border: 0; padding: 0; margin: 0; align-self: center; gap: 4px; }
  .product-title { font-size: clamp(1.45rem, 1rem + 2.6vw, 1.9rem); }
  .product-subtitle { font-size: clamp(1.02rem, .85rem + 1vw, 1.25rem); flex: none; line-height: 1.2; }
  .hero-price { flex-direction: column; gap: 4px; margin-top: 10px; }
  .price-amount { font-size: clamp(2rem, 1.4rem + 3vw, 2.5rem); }
  .price-note { font-size: .62rem; letter-spacing: .08em; }
  .hero-copy { margin-top: 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-checks { grid-template-columns: 1fr 1fr; column-gap: 14px; font-size: .9rem; }
}
@media (max-width: 420px) {
  .hero-checks { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.85rem; }
  .hero-intro .eyebrow { font-size: .68rem; letter-spacing: .16em; }
}

/* =========================================================
   Decorative scroll layer
   ========================================================= */
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.deco > * { position: absolute; opacity: 0; transition: opacity 1.6s ease, transform 1.8s cubic-bezier(.2,.7,.2,1); }
.deco.is-visible > * { opacity: 1; }
.deco-note { font-family: var(--script); color: rgba(57, 39, 29, .24); font-size: 1.8rem; line-height: 1.2; white-space: nowrap; transform: translateY(20px) rotate(-6deg); }
.deco.is-visible .deco-note { transform: translateY(0) rotate(-6deg); }
.deco-ill { opacity: 0; }
.deco.is-visible .deco-ill { opacity: .5; }
.deco-page {
  width: 190px; height: 250px; border-radius: 2px;
  background: linear-gradient(160deg, rgba(255,253,247,.65), rgba(234,219,194,.5));
  box-shadow: 0 8px 26px -14px rgba(57,39,29,.4); border: 1px solid rgba(178,138,71,.22);
}
.deco-page::before { content: ""; position: absolute; inset: 22px 20px; background: repeating-linear-gradient(180deg, transparent 0 18px, rgba(57,39,29,.08) 18px 19px); }
.deco.is-visible .deco-page { opacity: .7; }
.story .n1 { left: 4%; top: 18px; }
.story .n2 { right: 5%; bottom: 16px; transform: translateY(20px) rotate(4deg); }
.story .p1 { left: -70px; top: 48%; transform: rotate(-12deg); animation: drift 26s ease-in-out infinite alternate; }
.story .p2 { right: -80px; top: 6%; transform: rotate(9deg); animation: drift2 30s ease-in-out infinite alternate; }
.story .d-herb { left: 3%; bottom: 4%; width: 90px; }
.story .d-pan { right: 2%; top: 46%; width: 150px; }
.inside .n3 { left: 4%; top: 18px; }
.inside .n4 { right: 5%; bottom: 16px; transform: translateY(20px) rotate(5deg); }
.inside .d-whisk { right: 2.5%; top: 6%; width: 70px; }
.inside .d-wheat { left: 1.5%; top: 40%; width: 80px; }
.about .n5 { right: 5%; top: 18px; }
.about .d-herb2 { right: 2%; bottom: 8%; width: 90px; transform: scaleX(-1); }
@keyframes drift { from { transform: translate(0, 0) rotate(-12deg); } to { transform: translate(18px, -30px) rotate(-8deg); } }
@keyframes drift2 { from { transform: translate(0, 0) rotate(9deg); } to { transform: translate(-16px, 26px) rotate(5deg); } }
@media (max-width: 1360px) { .deco-page { display: none; } .deco-ill { width: 60px !important; } }
@media (max-width: 1100px) { .deco { display: none; } }

/* Reveal animations */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-page { transform: perspective(1400px) rotateY(-14deg) translateX(30px); transform-origin: left center; }
.js .reveal-page.is-visible { transform: perspective(1400px) rotateY(0) translateX(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-page { opacity: 1; transform: none; }
  .deco > * { opacity: 0 !important; }
  .book3d { transition: none; }
}

/* =========================================================
   Story
   ========================================================= */
.story {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255,253,247,.6), rgba(255,253,247,0) 50%),
    radial-gradient(ellipse at 90% 90%, rgba(178,138,71,.15), rgba(178,138,71,0) 50%),
    var(--parchment);
  border-top: 1px solid rgba(178,138,71,.5); border-bottom: 1px solid rgba(178,138,71,.5);
}
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; max-width: 1180px; }
.story-text h2 { margin-bottom: .2em; }
.story .divider { margin-left: 0; }
.dropcap::first-letter { font-family: var(--serif-display); font-weight: 700; float: left; font-size: 4.4em; line-height: .82; padding: .06em .1em 0 0; color: var(--burgundy); }
.story-quote { font-family: var(--serif-display); font-style: italic; font-weight: 500; font-size: 1.55rem; line-height: 1.35; color: var(--burgundy); margin: 1.4em 0 0; padding-left: 18px; border-left: 2px solid var(--gold); }
.story-quote span { display: block; font-family: var(--serif-body); font-style: normal; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--walnut-soft); margin-top: .5em; }

.notebook { margin: 0; position: relative; }
.notebook-page {
  position: relative; padding: 46px 40px 40px 64px; min-height: 440px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255,253,247,.85) 0%, rgba(244,232,206,.6) 55%, rgba(214,184,140,.75) 100%),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(112,45,58,.12) 33px 34px),
    #F1E3C7;
  border-radius: 3px 8px 8px 3px;
  box-shadow: inset 0 0 0 1px rgba(139,94,52,.25), inset 0 0 38px rgba(120,72,36,.38), inset 0 0 6px rgba(70,40,20,.55), 0 26px 50px -22px rgba(57,39,29,.6);
  transform: rotate(-1.6deg);
}
.notebook-page::before { content: ""; position: absolute; top: 0; bottom: 0; left: 44px; width: 1px; background: rgba(112,45,58,.35); }
.notebook-page::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(90,55,30,.45), rgba(90,55,30,0) 22%),
    radial-gradient(ellipse at 0% 0%, rgba(90,55,30,.3), rgba(90,55,30,0) 18%),
    radial-gradient(ellipse at 100% 0%, rgba(90,55,30,.22), rgba(90,55,30,0) 15%);
}
.nb-title { font-family: var(--script); font-size: 2.3rem; color: var(--walnut); margin: 0 0 .3em; line-height: 1.1; }
.nb-line { font-family: var(--script); font-size: 1.55rem; line-height: 34px; margin: 0; color: #4A3224; }
.nb-method { margin-top: 14px; }
.nb-margin { position: absolute; right: 22px; bottom: 26px; font-family: var(--script); font-size: 1.3rem; color: var(--burgundy); transform: rotate(-7deg); margin: 0; }
.notebook-tools { position: absolute; right: -24px; top: -54px; width: 190px; transform: rotate(6deg); filter: drop-shadow(0 6px 8px rgba(57,39,29,.25)); }
.notebook figcaption { font-size: .78rem; font-style: italic; color: var(--walnut-soft); margin-top: 22px; text-align: center; }

@media (max-width: 900px) {
  .js .reveal-page { transform: translateY(26px); }
  .js .reveal-page.is-visible { transform: none; }
  .story-grid { grid-template-columns: 1fr; }
  .notebook-page { padding: 34px 22px 60px 48px; min-height: 0; }
  .notebook-page::before { left: 32px; }
  .nb-title { font-size: 2rem; }
  .nb-line { font-size: 1.35rem; }
  .notebook-tools { width: 130px; right: -6px; top: -40px; }
}

/* =========================================================
   Features
   ========================================================= */
.features { background: var(--ivory); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.feature {
  position: relative; background: var(--cream); padding: 36px 30px 30px; text-align: center;
  border: 1px solid rgba(178,138,71,.45); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 32px -26px rgba(57,39,29,.5);
}
.feature::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(178,138,71,.25); pointer-events: none; border-radius: 2px; }
.feature-icon { width: 58px; height: 58px; margin: 0 auto 14px; display: block; fill: none; stroke: var(--burgundy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--walnut-soft); font-size: .96rem; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } .feature { padding: 28px 22px 24px; } }

/* =========================================================
   Inside the book — categories
   ========================================================= */
.inside { background: linear-gradient(180deg, #F3E8D4, var(--ivory)); border-top: 1px solid rgba(178,138,71,.35); }
.category-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.category-card a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--walnut);
  background: var(--cream); border: 1px solid rgba(178,138,71,.45); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.category-card a:hover, .category-card a:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 34px -22px rgba(57,39,29,.55); border-color: var(--gold); color: var(--walnut); }
.cat-art { display: block; background: radial-gradient(ellipse at 50% 60%, #FFFDF7 0%, #F1E5CF 80%); border-bottom: 1px solid rgba(178,138,71,.35); padding: 8px 12px 0; }
.cat-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; transition: transform .5s ease; }
.category-card a:hover .cat-art img { transform: scale(1.05) rotate(-1deg); }
.cat-body { display: flex; flex-direction: column; padding: 16px 18px 20px; gap: 4px; flex: 1; }
.cat-count { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--burgundy); font-weight: 700; }
.cat-name { font-family: var(--serif-display); font-weight: 700; font-size: 1.45rem; line-height: 1.12; }
.cat-desc { font-size: .88rem; color: var(--walnut-soft); line-height: 1.55; }
.cat-sample { font-size: .8rem; font-style: italic; color: var(--sage); margin-top: auto; padding-top: 8px; line-height: 1.5; }
.center-cta { text-align: center; margin: clamp(36px, 5vw, 56px) 0 0; }
@media (max-width: 1100px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .cat-body { padding: 12px 12px 16px; } .cat-name { font-size: 1.22rem; } .cat-desc { font-size: .82rem; } .cat-sample { display: none; } }
@media (max-width: 360px) { .cat-desc { display: none; } .cat-name { font-size: 1.12rem; } }

/* =========================================================
   Recipe directory
   ========================================================= */
.directory { padding: 0 0 clamp(56px, 7vw, 96px); background: var(--ivory); outline: none; }
.js .directory:not(.is-open) { display: none; }
.directory-panel {
  background: var(--cream); border: 1px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: clamp(22px, 4vw, 48px);
  position: relative;
}
.directory-panel::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(178,138,71,.3); pointer-events: none; }
.directory.is-open .directory-panel { animation: unfold .6s cubic-bezier(.2,.7,.2,1); }
@keyframes unfold { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.directory-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; position: relative; }
.directory-head h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.directory-note { color: var(--walnut-soft); font-size: .92rem; margin: 0; }
.directory-close { display: none; }
.js .directory-close {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 6px 14px; cursor: pointer;
  background: transparent; border: 1px solid rgba(57,39,29,.35); border-radius: var(--radius); color: var(--walnut);
  font-family: var(--serif-body); font-size: .8rem; letter-spacing: .08em;
}
.directory-close span { font-size: 1.3rem; line-height: 1; }
.directory-close:hover { border-color: var(--burgundy); color: var(--burgundy); }
.directory-tools { display: none; position: relative; }
.js .directory-tools { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin: 26px 0 10px; }
.field label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 6px; color: var(--walnut); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--walnut);
  background: var(--ivory); border: 1px solid rgba(57,39,29,.4); border-radius: var(--radius);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--walnut) 50%), linear-gradient(135deg, var(--walnut) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { border-color: var(--burgundy); outline: 3px solid rgba(178,138,71,.6); outline-offset: 1px; }
.directory-status { font-size: .88rem; font-style: italic; color: var(--sage); margin: 6px 0 18px; position: relative; }
html:not(.js) .directory-status { display: none; }
.directory-list { columns: 3 260px; column-gap: 40px; position: relative; }
.dir-group { break-inside: avoid; margin-bottom: 26px; }
.dir-group h3 { font-size: 1.3rem; border-bottom: 1px solid rgba(178,138,71,.5); padding-bottom: 6px; margin-bottom: 8px; }
.dir-count { display: block; font-family: var(--serif-body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); margin-top: 3px; }
.dir-recipes { list-style: none; margin: 0; padding: 0; }
.dir-recipes li { padding: 3px 0; font-size: .95rem; line-height: 1.5; display: flex; gap: .4em; }
.dir-num { color: var(--gold); font-variant-numeric: tabular-nums; min-width: 2.4em; text-align: right; flex: none; font-weight: 700; font-size: .86em; padding-top: .1em; }
.dir-recipes mark { background: rgba(178,138,71,.35); color: inherit; padding: 0 1px; border-radius: 2px; }
.directory-empty { text-align: center; font-style: italic; padding: 30px 0; }
.directory-foot { margin-top: 20px; padding-top: 22px; border-top: 1px solid rgba(178,138,71,.45); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; }
.directory-foot p { margin: 0; }
@media (max-width: 700px) {
  .directory-head { flex-direction: column-reverse; }
  .js .directory-close { align-self: flex-end; }
  .js .directory-tools { grid-template-columns: 1fr; gap: 14px; }
  .directory-foot .btn { width: 100%; }
}

/* =========================================================
   Gallery
   ========================================================= */
.gallery { background: var(--parchment); border-top: 1px solid rgba(178,138,71,.5); border-bottom: 1px solid rgba(178,138,71,.5); }
.gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.2vw, 28px); }
.dish figure { margin: 0; height: 100%; background: var(--cream); padding: 12px 12px 18px; border-radius: 2px; box-shadow: 0 16px 30px -22px rgba(57,39,29,.65); display: flex; flex-direction: column; transition: transform .4s ease, box-shadow .4s ease; }
.dish:nth-child(odd) figure { transform: rotate(-.6deg); }
.dish:nth-child(even) figure { transform: rotate(.5deg); }
.dish figure:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 24px 36px -22px rgba(57,39,29,.7); }
.dish-art { background: radial-gradient(ellipse at 50% 55%, #FFFDF7 0%, #F0E2C8 85%); border: 1px solid rgba(178,138,71,.35); padding: 6px; }
.dish-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.dish figcaption { padding: 14px 4px 0; display: flex; flex-direction: column; gap: 3px; }
.dish-cat { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); font-weight: 700; }
.dish-name { font-family: var(--serif-display); font-weight: 700; font-size: 1.35rem; line-height: 1.15; color: var(--walnut); }
.dish-line { font-size: .86rem; color: var(--walnut-soft); line-height: 1.55; }
.gallery-note { text-align: center; font-size: .82rem; font-style: italic; color: var(--walnut-soft); margin: 34px auto 0; max-width: 640px; }
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .dish figure { padding: 8px 8px 14px; } .dish-name { font-size: 1.15rem; } .dish-line { font-size: .8rem; } }
@media (max-width: 360px) { .dish-line { display: none; } }

/* =========================================================
   About
   ========================================================= */
.about { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: center; max-width: 1180px; }
.about-photo { margin: 0; }
.frame { position: relative; padding: 14px; background: var(--cream); border: 1px solid var(--gold); box-shadow: var(--shadow-soft); }
.frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(178,138,71,.4); pointer-events: none; z-index: 1; }
.frame img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 48% 22%; }
.about-sub { font-family: var(--serif-display); font-style: italic; font-weight: 500; font-size: 1.5rem; color: var(--burgundy); margin: -.2em 0 .2em; line-height: 1.3; }
.pull-quote { margin: 1.4em 0; padding: 20px 24px; background: var(--parchment); border-left: 3px solid var(--burgundy); }
.pull-quote p { margin: 0; font-family: var(--serif-display); font-style: italic; font-weight: 500; font-size: 1.45rem; line-height: 1.4; color: var(--walnut); }
.signature { font-family: var(--script); font-size: 3rem; color: var(--burgundy); margin: .3em 0 0; line-height: 1.2; transform: rotate(-3deg); transform-origin: left; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .frame img { aspect-ratio: 16 / 10; object-position: 48% 25%; }
  .about-photo { max-width: 640px; }
}

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta {
  position: relative; color: var(--ivory); padding: clamp(64px, 9vw, 120px) 0;
  background:
    radial-gradient(ellipse at 25% 40%, rgba(178,138,71,.25), rgba(178,138,71,0) 55%),
    radial-gradient(ellipse at 90% 100%, rgba(0,0,0,.25), rgba(0,0,0,0) 60%),
    var(--burgundy);
  border-top: 3px double var(--gold); border-bottom: 3px double var(--gold);
}
.final-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: center; max-width: 1080px; }
.final-book img { width: 100%; max-width: 340px; margin: 0 auto; border-radius: 3px; box-shadow: 0 0 0 8px rgba(255,253,247,.08), 0 0 0 9px rgba(214,183,122,.6), 0 30px 60px -20px rgba(0,0,0,.7); }
.final-orn { width: 44px; height: 44px; color: var(--gold-light); margin-bottom: 14px; }
.final-cta h2 { color: var(--cream); }
.final-cta .lead { color: rgba(248,241,228,.92); }
.final-price { font-family: var(--serif-display); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--gold-light); margin: .2em 0 .45em; }
.final-checks { margin-top: 26px; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 30px; font-size: .95rem; }
.final-checks svg { color: var(--gold-light); }
@media (max-width: 800px) {
  .final-grid { grid-template-columns: 1fr; text-align: center; }
  .final-book img { max-width: 220px; }
  .final-text .btn { width: 100%; max-width: 420px; }
  .final-checks { grid-template-columns: 1fr; justify-content: center; text-align: left; width: max-content; max-width: 100%; margin-inline: auto; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--ivory); }
.faq-list { border-top: 1px solid rgba(178,138,71,.55); }
.faq-item { border-bottom: 1px solid rgba(178,138,71,.55); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 4px; min-height: 64px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.55rem); }
.faq-item summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold);
  background: linear-gradient(var(--burgundy), var(--burgundy)) center / 12px 2px no-repeat, linear-gradient(var(--burgundy), var(--burgundy)) center / 2px 12px no-repeat;
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover h3 { color: var(--burgundy); }
.faq-body { padding: 0 4px 22px; color: var(--walnut-soft); }
.faq-body p { margin: 0; }
.faq-item[open] .faq-body { animation: fadeDown .35s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--walnut); color: rgba(248,241,228,.88); padding: 64px 0 28px; border-top: 4px solid var(--gold); font-size: .94rem; }
.site-footer a { color: var(--ivory); text-decoration-color: rgba(214,183,122,.6); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.footer-mark { width: 40px; height: 40px; color: var(--gold); margin-bottom: 10px; }
.footer-name { font-family: var(--serif-display); font-weight: 700; font-size: 1.7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); margin: 0 0 .2em; }
.footer-tag { font-family: var(--serif-display); font-style: italic; font-size: 1.3rem; color: var(--gold-light); margin: 0 0 .6em; }
.footer-site { margin: 0; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.footer-nav a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(214,183,122,.3); font-size: .82rem; color: rgba(248,241,228,.72); }
.footer-legal p { margin: 0 0 .8em; }
.disclosure strong { color: var(--gold-light); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .footer-nav { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .footer-nav { grid-template-columns: 1fr; } }

/* =========================================================
   Floating purchase card
   ========================================================= */
.float-card {
  position: fixed; z-index: 90; right: 18px; bottom: 18px; width: 264px;
  display: grid; grid-template-columns: 50px 1fr; grid-template-areas: "cover info" "btn btn"; gap: 10px 12px; align-items: center;
  background: var(--cream); border: 1px solid var(--gold); border-radius: 6px; padding: 12px;
  box-shadow: 0 24px 50px -18px rgba(57,39,29,.6);
  opacity: 0; transform: translateY(24px); transition: opacity .45s ease, transform .45s ease, visibility .45s;
  visibility: hidden;
}
.float-card::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(178,138,71,.3); border-radius: 4px; pointer-events: none; }
.float-card.is-shown { opacity: 1; transform: none; visibility: visible; }
.float-cover { grid-area: cover; width: 50px; height: auto; border-radius: 2px; box-shadow: 0 6px 12px -6px rgba(57,39,29,.6); }
.float-info { grid-area: info; padding-right: 18px; }
.float-info p { margin: 0; }
.float-title { font-family: var(--serif-display); font-weight: 700; font-size: 1.18rem; line-height: 1.1; }
.float-sub { font-size: .76rem; color: var(--walnut-soft); line-height: 1.4; }
.float-sub-m { display: none; }
.float-price { font-family: var(--serif-display); font-weight: 700; font-size: 1.3rem; color: var(--burgundy); line-height: 1.15; }
.float-btn { grid-area: btn; width: 100%; position: relative; min-height: 42px; }
.fb-m { display: none; }
.float-close { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--walnut-soft); cursor: pointer; border-radius: 50%; }
.float-close:hover { color: var(--burgundy); background: rgba(178,138,71,.15); }
@media (max-width: 760px) {
  .float-card {
    left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; border-width: 1px 0 0;
    grid-template-columns: auto 1fr auto auto; grid-template-areas: "cover info btn close"; gap: 10px;
    padding: 8px 6px 8px 12px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
    background: var(--cream); box-shadow: 0 -10px 24px -14px rgba(57,39,29,.55);
  }
  .float-card::before { display: none; }
  .float-cover { width: 34px; }
  .float-info { padding: 0; min-width: 0; }
  .float-title, .float-sub, .float-price { display: none; }
  .float-sub-m { display: block; font-family: var(--serif-display); font-weight: 700; font-size: 1.12rem; line-height: 1.15; color: var(--walnut); }
  .float-btn { width: auto; min-height: 44px; padding: .5em .9em; font-size: .7rem; letter-spacing: .1em; }
  .fb-d { display: none; } .fb-m { display: inline; }
  .float-close { position: static; grid-area: close; width: 40px; height: 44px; }
  body.has-float-bar { padding-bottom: 64px; }
}
@media (max-width: 350px) { .float-cover { display: none; } .float-card { grid-template-columns: 1fr auto auto; grid-template-areas: "info btn close"; } .float-sub-m { font-size: 1rem; } }

/* =========================================================
   Legal pages
   ========================================================= */
.legal-header .header-inner { justify-content: space-between; }
.legal-main { padding: clamp(40px, 7vw, 90px) 0; }
.legal-article h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.5rem); margin-bottom: .1em; }
.legal-article h2 { font-size: 1.7rem; margin-top: 1.6em; }
.legal-updated { font-size: .85rem; font-style: italic; color: var(--sage); }
.legal-article ul { padding-left: 1.2em; }
.legal-article li { margin-bottom: .6em; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 12px 26px; margin: 26px 0 34px; padding: 26px; background: var(--cream); border: 1px solid rgba(178,138,71,.5); }
.info-list dt { font-weight: 700; color: var(--burgundy); }
.info-list dd { margin: 0; }
@media (max-width: 600px) { .info-list { grid-template-columns: 1fr; gap: 2px; } .info-list dd { margin-bottom: 12px; } .legal-header .brand-name { font-size: .95rem; } .legal-header .btn { font-size: .66rem; padding: .5em .7em; } }

@media print {
  .site-top, .float-card, .deco, .menu-toggle { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
