/* ==========================================================
   BEAUTY & PRAISE — MIGRATION LAYER
   css/site.css is the global design system. This file is loaded after it and
   does two jobs only:
   1. maps the site's existing components (built before site.css) onto its
      tokens, type scale and shapes, and
   2. protects working parts from site.css's global element rules
      (img, input, label) where those rules don't fit.
   ========================================================== */

/* ---------- 1. Older token names → design-system tokens ---------- */
:root {
  --forest: var(--olive-dark);
  --forest-2: var(--olive);
  --clay: var(--terracotta);
  --gold: #a88c5c;
  --ink: var(--charcoal);
  --line: var(--border);
  --white: var(--paper);
  --radius: var(--radius-md);
  --shadow: var(--shadow-soft);
  --sage-soft: #e4e6dc;
}

/* ---------- 2. Protect existing parts from global element rules ---------- */
.container { max-width: none; padding-inline: 0; }
.container.narrow { max-width: 820px; }
/* small images keep their own size (site.css makes every img full width) */
img.logo-mark, svg.logo-mark { width: 52px; height: 52px; }
.footer .logo-mark { width: 72px; height: 72px; }
.footer-olive { width: 140px; margin: 0 auto 16px; }
/* checkboxes and radios are not text fields */
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; border: revert; border-radius: revert; background: revert; box-shadow: none; accent-color: var(--olive); }
/* search fields that draw their own frame */
.search-field input, .search-form input { border: 0; background: transparent; box-shadow: none; padding: 0.6rem 0; border-radius: 0; }
.search-field input:focus, .search-form input:focus { box-shadow: none; }
/* labels that are layout wrappers, not form captions */
.quiz-card, .check-field, .search-field, .ix-option { font-weight: inherit; color: inherit; }
.quiz-card { margin: 0; }

/* the header was inside a wrapper exactly its own height, so it never stuck; let it stick */
#site-header { display: contents; }
body { background: var(--ivory); }

/* ---------- Type scale for content (site.css sizes are for headlines) ---------- */
.prose h2, .card h2, .herb-layout h2, .recipe-layout h2, .tool-shell h2, .ix-step h2, .checklist-card h2, .water-card h2, .section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.05; }
.prose h3, .card h3, .editorial-item h3, .value-card h3, .faq h3, .stack-card h3, .bible-card h3, .fd-practical-grid h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.12; letter-spacing: -0.02em; }
.eyebrow { display: block; }
em { font-style: italic; }
h1 em, h2 em, .hero-title em { color: var(--terracotta); font-weight: 500; }
.lead { line-height: 1.7; }
.muted { color: var(--muted); }
.section-intro { margin-bottom: var(--space-lg); }
.section-intro h2 { margin-bottom: 0; }
.section-head { margin-bottom: var(--space-lg); }
.text-link { color: var(--olive-dark); font-weight: 700; font-size: 0.88rem; text-decoration: none; display: inline-flex; gap: 0.5rem; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: border-color var(--transition), color var(--transition); }
.text-link:hover { border-color: var(--olive); color: var(--olive); }
.text-link .icon { width: 16px; height: 16px; }

/* ---------- Header & menu ---------- */
.site-header .nav { min-height: 78px; height: auto; }
.site-header .nav-links { gap: 2rem; }
.site-header .nav-links .nav-top { font-size: 0.88rem !important; font-weight: 600; letter-spacing: 0.02em !important; text-transform: none; padding: 6px 0 !important; color: var(--olive-dark); }
.site-header .nav-links .nav-top::after { display: block !important; bottom: -2px; }
.site-header .nav-links .nav-top[aria-current="page"]::after { transform: scaleX(1); }
.logo-name { color: var(--olive-dark); }
.logo-name em { color: var(--terracotta); }
.btn-small { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.82rem; }
.header-cta { margin-right: 6px; }
.drawer-panel { background: var(--ivory); }
.drawer-nav a, .drawer-nav summary { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--olive-dark); border-bottom: 1px solid var(--border); }
.drawer-verse { font-family: var(--serif); font-style: italic; color: var(--olive); }

/* ---------- Buttons ---------- */
.btn .icon { width: 17px; height: 17px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-light { background: var(--ivory); color: var(--olive-dark); border-color: var(--ivory); }
.btn-light:hover { background: #fff; }
.section--olive .btn-primary { background: var(--ivory); color: var(--olive-dark); }
.section--olive .btn-primary:hover { background: #fff; }
.section--olive .btn-secondary { border-color: rgba(247, 242, 232, 0.55); color: var(--ivory); }
.section--olive .btn-secondary:hover { background: var(--ivory); color: var(--olive-dark); }

/* ---------- Hero ---------- */
.hero .search-shell .icon, .fd-search .icon { flex: none; width: 20px; height: 20px; margin-left: 0.6rem; color: var(--muted); }
.search-shell .btn { min-height: 46px; }
.hero-copy { position: relative; }
.hero-suggest { position: absolute; left: 0; right: 0; max-width: 650px; z-index: 20; margin-top: 8px; }
.hero-title { margin-bottom: 1.5rem; }
.hero-copy .crumbs { font-size: 0.72rem; letter-spacing: 0.14em; margin-bottom: 1.75rem; }
/* inner-page heroes: same composition, a title scale that suits longer names */
.art-page-hero.hero, .art-page-hero.page-hero { padding: clamp(3.5rem, 7vw, 7rem) 0; background: var(--ivory); border-bottom: 1px solid var(--border); }
.art-page-hero .hero-title, .art-page-hero.page-hero h1 { font-size: clamp(2.9rem, 6vw, 5.6rem); }
.art-page-hero.page-hero:not(.has-photo) .container > * { max-width: 820px; }
.art-page-hero .hero-copy .lead { margin-bottom: 0; }
.hero-image.photo-missing img, .photo-missing > img { opacity: 0; }
.hero-image.photo-missing, .photo-missing { background: var(--cream); }

/* ---------- Scripture ---------- */
.scripture--inline { max-width: none; margin: 1.75rem 0; padding: 0.4rem 0 0.4rem 1.5rem; background: none; }
.scripture--inline blockquote { font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.25; }
.scripture--inline cite { margin-top: 0.6rem; }
.scripture.scripture-card { background: rgba(255, 255, 255, 0.38) !important; color: var(--charcoal) !important; border-radius: 0 !important; box-shadow: none !important; padding: clamp(1.75rem, 4vw, 3rem) !important; text-align: left; }
.scripture.scripture-card .eyebrow { color: var(--olive); }
.scripture.scripture-card blockquote { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.scripture-note { color: var(--muted); margin: 1rem 0 0; }
.scripture.scripture-card .text-link { margin-top: 1.25rem; }
.page-scripture { padding-block: var(--space-xl); }
.verse-band { background: var(--olive-dark); }
.verse-band p { font-family: var(--serif); font-style: italic; color: var(--ivory); }
.verse-band cite { color: var(--sage); }

/* ---------- Amanda's story ---------- */
.story-copy h2 { margin-bottom: 1.5rem; }
.story-lead { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.4; color: var(--olive-dark); }
.story-pull { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.42; color: var(--olive-dark); border-left: 2px solid var(--rose); padding-left: 1.25rem; margin: 1.75rem 0 0; }
.story-signature { margin-bottom: 1.75rem; }
.story-verse { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--border); font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--olive); }
.story-verse cite { display: block; margin-top: 0.4rem; font-family: var(--sans); font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.story-grid { align-items: start; }
.story-photo { position: sticky; top: 100px; }
/* Amanda's photo is shown exactly as it is: its own proportions, never cropped */
.story-photo img.amanda-photo { width: 100%; height: auto; }

/* ---------- Three paths ---------- */
.path-feature, .path-small { display: block; color: #fff; text-decoration: none; }
.path-small { background: var(--olive-dark); }
.path-feature > img, .path-small > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(.2,.7,.3,1); }
.path-feature:hover > img, .path-small:hover > img { transform: scale(1.025); }
.path-small::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 36, 27, 0.8), rgba(30, 36, 27, 0.05) 70%); content: ""; }
.path-small .path-content { right: 1.5rem; bottom: 1.5rem; left: 1.5rem; }
.path-content .eyebrow { color: rgba(255, 255, 255, 0.86); margin-bottom: 0.6rem; }
.path-content h3 { margin-bottom: 0.6rem; }
.path-small h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.path-content p { max-width: 460px; margin-bottom: 0.8rem; color: rgba(255, 255, 255, 0.88); }
.path-cta { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 700; }
.path-cta .icon { width: 16px; height: 16px; transition: transform var(--transition); }
.path-feature:hover .path-cta .icon, .path-small:hover .path-cta .icon { transform: translateX(4px); }

/* ---------- Plan (homepage) ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.plan-image { overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 4 / 3.2; box-shadow: var(--shadow-image); background: var(--olive); }
.plan-image img { width: 100%; height: 100%; object-fit: cover; }
.plan-copy p { color: rgba(247, 242, 232, 0.82); max-width: 540px; }

/* ---------- Editorial grid items (foods, fruits, herbs) ---------- */
.editorial-item.herb-card { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; outline: none; }
.editorial-item.herb-card:hover { transform: none; box-shadow: none; }
.editorial-image.herb-card-art { padding: 0; box-shadow: none; transform: none; }
.editorial-image .pf { width: 100%; height: 100%; }
.editorial-image .pf > img { transition: transform 600ms cubic-bezier(.2,.7,.3,1); }
.herb-card:hover .editorial-image .pf > img { transform: scale(1.025); }
.editorial-item .herb-card-link { text-decoration: none; color: inherit; display: block; }
.editorial-item .herb-card-body { padding: 0; }
.editorial-item h3 { margin-bottom: 0.3rem; transition: color var(--transition); }
.editorial-item:hover h3 { color: var(--olive); }
.editorial-item .latin { font-family: var(--serif); font-style: italic; color: var(--muted); margin-bottom: 0.4rem; }
.editorial-item .herb-card-summary { color: var(--muted); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.editorial-grid { row-gap: 2.75rem; }
.editorial-grid > * { margin-top: 0 !important; }

/* pictures: real photographs only; if none is found, a plain cream tile */
.pf { background: var(--cream); }
.pf > img { filter: none; }
.pf[data-photo] > svg { display: none; }
.pf[data-photo][data-state="none"]::after { content: ""; position: absolute; inset: 0; background: url("../images/olive-branch.svg") no-repeat center / 44% auto; opacity: 0.3; }
.photo { margin: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--cream); }
.photo > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cards, notices, lists ---------- */
.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); outline: none; }
.notice.note-card { display: flex; gap: 1rem; align-items: flex-start; border: 0; border-left: 4px solid var(--terracotta); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(184, 121, 97, 0.1); box-shadow: none; outline: none; }
.notice p:last-child { margin-bottom: 0; }
.notice .info-icon { color: var(--terracotta); flex: none; }
.chip { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--paper); color: var(--olive-dark); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em; text-transform: none; padding: 0.55rem 1rem; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.chip:hover { border-color: var(--olive); }
.chip.active { background: var(--olive-dark); border-color: var(--olive-dark); color: var(--ivory); }
.field, select { border-radius: var(--radius-sm); }
.tag, .tag-row .tag { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--paper); color: var(--olive-dark); }
.evidence { border-radius: var(--radius-sm); }

/* remedies: a numbered list with small photographs */
.recipe-grid { counter-reset: entry; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 4rem); }
.recipe-card { counter-increment: entry; display: flex; flex-direction: row; align-items: center; gap: 1.25rem; padding: 1.4rem 0; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; overflow: visible; text-decoration: none; min-width: 0; }
.recipe-card:hover { transform: none; box-shadow: none; }
.recipe-card::before { content: counter(entry, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--terracotta); min-width: 2ch; }
.recipe-photo { flex: none; width: 104px !important; height: 104px !important; aspect-ratio: auto !important; overflow: hidden; border-radius: var(--radius-sm); }
.recipe-body { padding: 0 !important; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.recipe-body strong { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.12; color: var(--olive-dark); transition: color var(--transition); }
.recipe-card:hover .recipe-body strong { color: var(--olive); }
.recipe-type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
.recipe-meta { display: block !important; font-size: 0.86rem; color: var(--muted); }
.recipe-meta .icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.recipe-meta .evidence { white-space: nowrap; }
.card .recipe-grid { grid-template-columns: 1fr; }

.stack-card { border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--paper); box-shadow: none; overflow: hidden; }
.guide-card { border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--paper); }

/* ---------- Tools: wellness plan, safety checker, reminders ---------- */
.tool-shell h2 { margin: 0.5rem 0 1.5rem; }
.quiz-progress { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; }
.progress.progress-track { height: 5px; margin: 0.75rem 0 2rem; border-radius: 999px; background: var(--cream); }
.quiz-card .option { display: flex; align-items: center; gap: 0.6rem; height: 100%; font-weight: 600; color: var(--olive-dark); }
.quiz-card input:checked + .option { border-color: var(--olive); background: rgba(156, 166, 141, 0.18); color: var(--olive-dark); }
.quiz-card input:checked + .option .icon { color: var(--olive); }
.quiz-card input:focus-visible + .option { outline: 2px solid var(--olive); outline-offset: 2px; }
.quiz-card .option em { color: var(--muted); font-weight: 400; }
.ix-step .step-num, .step-num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
.tip-card { background: var(--olive-dark) !important; color: var(--ivory); }
.tip-text { font-family: var(--serif); font-style: italic; }

/* ---------- Profiles (herb, food, fruit, remedy, stack pages) ---------- */
.art-page-hero.herb-hero, .art-page-hero.stack-hero { padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 6rem); background: var(--ivory); border-bottom: 1px solid var(--border); }
.herb-hero-art { border-radius: var(--radius-md) !important; overflow: hidden; box-shadow: var(--shadow-image); border: 0; padding: 0; background: var(--cream); }
.herb-hero-copy h1, .stack-hero h1 { font-size: clamp(2.9rem, 5.5vw, 5rem); }
.stack-hero-photos .shp { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-soft); border: 0; }
.facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--olive); }
.facts dd { font-family: var(--serif); font-size: 1.2rem; color: var(--olive-dark); }
.toc { border-left: 1px solid var(--border); padding-left: 1.25rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--olive-dark); }
.herb-layout .prose > section { padding-top: 0.75rem; margin-top: 2.75rem; border-top: 1px solid var(--border); }
.herb-layout .prose > section:first-child { border-top: 0; margin-top: 0; }
.glance { background: none !important; border: 0 !important; padding: 0 !important; }
.glance-text { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.7rem) !important; line-height: 1.45 !important; color: var(--olive-dark); }
.nutrient { border-radius: var(--radius-sm); background: var(--sage-soft); }

/* ---------- Our Story & reading pages ---------- */
.value-card { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 1.5rem 0 0; }
.value-num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--terracotta); background: none; width: auto; height: auto; }
.faq details { border-color: var(--border); }
.faq summary { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--olive-dark); }
.about-art > div { overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); border: 0 !important; transform: none !important; }
.about-art .photo { width: 100%; height: 100%; }
body[data-page="legal"] main .prose, body[data-page="es"] main .section .prose { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); padding: clamp(1.75rem, 5vw, 3.5rem); box-shadow: var(--shadow-soft); }

/* ---------- Foods page ---------- */
.fd-search { cursor: text; margin-bottom: 0; font-weight: 400; }
.fd-phil-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.fd-phil-lead { font-family: var(--serif); font-size: clamp(1.4rem, 2.3vw, 1.75rem); line-height: 1.45; color: var(--olive-dark); margin-bottom: 1.75rem; }
.fd-principles { list-style: none; margin: 0 0 1rem; padding: 0; }
.fd-principles li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.5rem; padding: 1rem 0; border-top: 1px solid var(--border); color: var(--muted); }
.fd-principles li:last-child { border-bottom: 1px solid var(--border); }
.fd-principles span { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--terracotta); line-height: 1.3; }
.fd-principles strong { color: var(--olive-dark); }
.fd-cats { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(1.5rem, 5vw, 4.5rem); border-top: 1px solid var(--border); }
.fd-cat { display: grid; grid-template-columns: 3rem 1fr; grid-template-rows: auto auto; align-content: start; gap: 0.15rem 0.75rem; text-align: left; padding: 1.15rem 0.25rem; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; color: var(--charcoal); cursor: pointer; transition: background var(--transition); }
.fd-cat:hover { background: rgba(72, 83, 63, 0.05); }
.fd-cat-n { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--terracotta); }
.fd-cat-t { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--olive-dark); line-height: 1.2; }
.fd-cat-d { grid-column: 2; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.fd-cat.active { background: rgba(156, 166, 141, 0.18); }
.fd-cat.active .fd-cat-t { font-style: italic; }
.fd-story { align-items: center; }
.fd-story + .fd-story { margin-top: var(--space-xl); }
.fd-story-flip { grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); }
.fd-story-flip .fd-story-img { order: 2; }
.fd-story-img { display: block; aspect-ratio: 4 / 3; }
.fd-story-img .pf { width: 100%; height: 100%; }
.fd-story-text h3 { margin-bottom: 1rem; }
.fd-story-text h3 a { text-decoration: none; color: inherit; }
.fd-story-text > p:not(.editorial-meta) { color: var(--muted); }
.fd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fd-facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.25rem; }
.fd-facts dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; color: var(--olive-dark); }
.fd-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; flex-wrap: wrap; margin-bottom: var(--space-lg); }
.fd-head-row h2 { margin-bottom: 0; }
.fd-head-row .muted { margin: 0.6rem 0 0; max-width: 560px; }
.fd-subhead { margin: var(--space-xl) 0 var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--border); }
.fd-subhead h3 { margin: 0; }
.fd-practical-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.fd-practical-grid p { color: var(--muted); margin-bottom: 0; }
.fd-next { padding-top: 0; }
.fd-next-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--olive-dark); }
.fd-next-grid a { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.75rem 1.75rem 1.75rem 0; text-decoration: none; color: inherit; border-right: 1px solid var(--border); }
.fd-next-grid a + a { padding-left: 1.75rem; }
.fd-next-grid a:last-child { border-right: 0; }
.fd-next-grid .eyebrow { margin-bottom: 0.25rem; }
.fd-next-grid strong { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; color: var(--olive-dark); transition: color var(--transition); }
.fd-next-grid a > span:last-child { color: var(--muted); }
.fd-next-grid a:hover strong { color: var(--olive); }

/* ---------- Footer ---------- */
.newsletter { background: var(--cream); color: var(--olive-dark); border-top: 1px solid var(--border); }
.newsletter h2 { color: var(--olive-dark); font-size: clamp(2rem, 3.4vw, 3rem); }
.newsletter .eyebrow.light { color: var(--olive); }
.newsletter-form { display: flex; gap: 0.75rem; background: none; border: 0; padding: 0; box-shadow: none; border-radius: 0; }
.newsletter-form .btn { flex: none; }
.site-footer.footer { padding: 5rem 0 2rem; background: var(--olive-dark); color: rgba(247, 242, 232, 0.82); }
.footer-verse { text-align: center; padding-bottom: 2.5rem; margin-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-olive { filter: brightness(0) invert(1); opacity: 0.45; }
.footer-verse .script { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.8rem); color: var(--ivory); margin: 0; line-height: 1.25; }
.footer-verse cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.site-footer h3 { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.footer-brand p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; }
.footer .logo-name { color: var(--ivory); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.photo-credits:empty { display: none; }

/* ---------- Motion & print ---------- */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .plan-grid, .fd-phil-grid { grid-template-columns: 1fr; }
  .story-photo { position: static; max-width: 440px; }
  .fd-story-flip { grid-template-columns: 1fr; }
  .fd-story-flip .fd-story-img { order: 0; }
  .recipe-grid { grid-template-columns: 1fr; }
  .fd-practical-grid, .fd-next-grid { grid-template-columns: 1fr; }
  .fd-next-grid a, .fd-next-grid a + a { padding: 1.4rem 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .hero-image-wrap::before { display: none; }
}
@media (max-width: 620px) {
  .hero .search-shell .icon, .fd-search .icon { display: none; }
  .hero-suggest { position: static; }
  .fd-cats { grid-template-columns: 1fr; }
  .fd-facts { grid-template-columns: 1fr; }
  .recipe-photo { width: 84px !important; height: 84px !important; }
  .recipe-body strong { font-size: 1.28rem; }
  .newsletter-form { flex-direction: column; }
  .site-header .btn { width: auto; }
  .chip { width: auto; }
  .finder-nav .btn { width: auto; flex: 1; }
}

/* nav spacing from site.css (older rules set a tight gap with !important) */
.site-header .main-nav ul.nav-links { gap: 2rem !important; }
.site-header .nav-top:hover { background: none; }
/* newsletter: a real, visible email field */
.newsletter-form input { flex: 1; min-width: 0; padding: 0.95rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fffdf8; color: var(--charcoal); }
.newsletter-form input::placeholder { color: var(--muted); }
@media (max-width: 620px) { .newsletter-form input { background: #fffdf8; padding: 0.95rem 1rem; border-radius: var(--radius-sm); } }
/* the full food list holds 60 items: four across, 4:3 photos */
.fd-library .editorial-item { grid-column: span 3; }
.fd-library .editorial-image { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .fd-library .editorial-item { grid-column: span 4; } }
@media (max-width: 620px) { .fd-library .editorial-item { grid-column: span 6; } .fd-library .herb-card-summary { display: none; } }
/* header button hides when space is short (as before site.css) */
@media (max-width: 1180px) { .site-header .header-cta { display: none; } }
.site-header.no-cta .header-cta, .site-header.nav-compact .header-cta { display: none; }
/* every hero uses the design-system hero, not the older homepage gradient */
.hero, .art-page-hero.hero { background: var(--ivory); }
.hero .eyebrow, .art-page-hero .eyebrow { font-family: var(--sans); font-style: normal; font-size: 0.73rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); }
.hero .eyebrow::before, .art-page-hero .eyebrow::before { content: none; }
/* the offset frame stays inside the page edge */
.hero-image-wrap::before { right: -4%; bottom: -6%; }
.hero { overflow: hidden; }
.art-page-hero, .art-page-hero.hero, .art-page-hero.page-hero, .art-page-hero.herb-hero, .art-page-hero.stack-hero { background: var(--ivory) !important; }
body.artful { background: var(--ivory); }
.section--cream.section-tint, .artful .section--cream { background: var(--cream); }
.page-scripture .scripture blockquote { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.22; }

/* ---------- oil paintings in gilded frames (Foods page, Remedies, remedy pages) ---------- */
.gilt { display: block; width: 100%; margin: 0; }
.gilt-canvas { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 16px solid transparent;
  border-image: linear-gradient(135deg, #8a6420 0%, #f3dc8e 18%, #b88a2c 34%, #f7e3a1 52%, #9c7224 70%, #e9c96f 86%, #7d5a1c 100%) 1;
  background: #2a231a;
  box-shadow: 0 0 0 1px #5d4314, 0 3px 6px rgba(40, 30, 15, .28), 0 10px 22px rgba(40, 30, 15, .16); }
.gilt-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; min-height: 0; object-fit: cover; filter: none; animation: gilt-in .9s ease both; }
.gilt-canvas::after { position: absolute; inset: 0; content: ""; pointer-events: none; box-shadow: inset 0 0 0 5px #3a2e1c, inset 0 0 0 6px #c9a456, inset 0 0 26px 6px rgba(0, 0, 0, .45); }
@keyframes gilt-in { from { opacity: 0; } to { opacity: 1; } }
.gilt-hero .gilt-canvas { aspect-ratio: 5 / 4; border-width: 22px; }
.gilt-small .gilt-canvas { aspect-ratio: 4 / 5; border-width: 10px; }
.placard { display: table; margin: 16px auto 0; padding: 7px 16px 6px; max-width: 92%; text-align: center; line-height: 1.3;
  background: linear-gradient(180deg, #f1dc9c, #c99f45 55%, #b38a33); color: #3b2b0e; border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 4px 10px rgba(40, 30, 15, .25); font-family: "Cormorant Garamond", Georgia, serif; }
.placard em { display: block; font-size: 15px; font-weight: 600; }
.gilt-small .placard { margin-top: 10px; padding: 5px 9px; }
.gilt-small .placard em { font-size: 12.5px; }
/* a remedy's own page: its painting beside the title */
.remedy-hero-art { max-width: 560px; width: 100%; justify-self: end; }
.remedy-hero-art .gilt { transform: none; }
.remedy-hero-items { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--muted, #6e7169); }
.remedy-hero-items a { color: var(--forest, #314232); font-weight: 600; }
@media (max-width: 650px) { .gilt-canvas { border-width: 12px; } .gilt-hero .gilt-canvas { border-width: 14px; } .remedy-hero-art .gilt { transform: none; } }

/* photographs: clean, softly rounded, no gilded frame */
.gilt-canvas, .rm-card .gilt-canvas, .gilt-hero .gilt-canvas, .gilt-small .gilt-canvas { border: 0 !important; border-image: none !important; border-radius: 10px; background: #e9dfcc; box-shadow: 0 10px 28px rgba(40, 30, 15, .16) !important; }
.gilt-canvas::after { display: none; }
.placard { display: none !important; }
