/* ============================================================
   dieta-antiinflamatoria.com — warm apothecary journal on parchment
   Built from DESIGN.md ("Function" style reference). Light theme only.
   Serif display: Fraunces (roman + italic mix, the signature move).
   Humanist sans: Alegreya Sans (global -0.023em tracking).
   Single terracotta accent (#b05a36) used as a wax seal: CTAs,
   eyebrows, active states. Surfaces step parchment → aged paper →
   taupe outline before any shadow.
   ============================================================ */

/* ---- Fonts (self-hosted, CSP: no external resources) ---- */

@font-face {
    font-family: 'Fraunces';
    src: url('/fonts/fraunces-roman.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Fraunces';
    src: url('/fonts/fraunces-italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Alegreya Sans';
    src: url('/fonts/alegreya-sans-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alegreya Sans';
    src: url('/fonts/alegreya-sans-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alegreya Sans';
    src: url('/fonts/alegreya-sans-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alegreya Sans';
    src: url('/fonts/alegreya-sans-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---- Tokens ---- */

:root {
    --terracotta: #b05a36;
    --terracotta-soft: #d4a68e;
    --gradient-seal: linear-gradient(116deg, #b05a36, #d4a68e);
    --parchment: #fef9ef;
    --aged-paper: #f5eee1;
    --taupe: #d1c9bf;
    --ink: #2a2b2f;
    --charcoal: #333333;
    --graphite: #515151;
    --ash: #808988;

    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'Alegreya Sans', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;

    --track-sans: -0.023em;

    --sp-8: 8px;  --sp-16: 16px; --sp-24: 24px; --sp-32: 32px;
    --sp-40: 40px; --sp-48: 48px; --sp-56: 56px; --sp-64: 64px; --sp-80: 80px;

    --r-nav: 12px;
    --r-card: 24px;
    --r-btn: 40px;
    --r-pill: 9999px;

    --shadow-glow: rgba(0, 0, 0, 0.15) 0px 0px 20px 0px;
    --shadow-float: rgba(42, 43, 47, 0.1) 12px 32px 80px 0px;

    --shell-max: 1280px;
    --narrow-max: 760px;
}

/* ---- Base ---- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--parchment);
    color: var(--charcoal);
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: var(--track-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-locked { overflow: hidden; }

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: normal;
    margin: 0;
    overflow-wrap: break-word;
}
h1 em, h2 em, h3 em {
    font-style: italic;
    font-weight: 340;
}

p { margin: 0; }

a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
    outline: 3px solid var(--terracotta);
    outline-offset: 3px;
    border-radius: 4px;
}

.shell {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 var(--sp-24);
}

.container { max-width: var(--shell-max); margin: 0 auto; padding: 0 var(--sp-24); }
.container.container-narrow { max-width: var(--narrow-max); }

.section { padding: var(--sp-64) 0; }
.section-wash { background: var(--aged-paper); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--parchment);
    padding: 10px 20px;
    border-radius: 0 0 var(--r-nav) 0;
    z-index: 200;
}
.skip-link:focus { left: 0; }

.dot-sep { margin: 0 8px; color: var(--terracotta); }

/* ---- Type helpers ---- */

.eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
}
.eyebrow-seal { color: var(--terracotta); }

.label-mono {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--graphite);
}

/* ---- Buttons (pill family — never rectangular) ---- */

.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: var(--track-sans);
    line-height: 1.2;
    padding: 12px 24px;
    border-radius: var(--r-btn);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-seal {
    background: var(--terracotta);
    color: var(--parchment);
    border: 1.5px solid var(--terracotta);
}
.btn-seal:hover { background: #96482a; border-color: #96482a; }
.btn-seal:disabled { opacity: 0.7; cursor: wait; }
.btn-outline {
    background: transparent;
    color: var(--terracotta);
    border: 1.5px solid var(--terracotta);
}
.btn-outline:hover { background: rgba(176, 90, 54, 0.08); }

/* ---- Announcement bar ---- */

.announce {
    background: var(--terracotta);
    color: var(--parchment);
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
}
.announce a { color: var(--parchment); font-weight: 700; }

/* ---- Masthead / nav ---- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--parchment);
    border-bottom: 1px solid var(--taupe);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-24);
    min-height: 72px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-word {
    font-family: var(--font-serif);
    font-size: 21px;
    color: var(--ink);
    letter-spacing: normal;
    white-space: nowrap;
}
.brand-word em { font-style: italic; font-weight: 340; color: var(--terracotta); }

.nav-center { display: flex; align-items: center; gap: var(--sp-32); }
.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--terracotta); }
.nav-link.is-active { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.nav-panel-cta { display: none; }
.nav-side { display: flex; align-items: center; gap: var(--sp-16); }

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1.5px solid var(--taupe);
    border-radius: var(--r-pill);
    cursor: pointer;
}
.nav-burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease;
}
.nav-burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---- Page head (interior pages) ---- */

.page-head { padding: var(--sp-56) 0 var(--sp-16); }
.page-head h1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    margin-top: var(--sp-8);
}
.page-head-sub {
    max-width: 640px;
    margin-top: var(--sp-16);
    font-size: 18px;
    font-weight: 300;
    color: var(--graphite);
    line-height: 1.4;
}

.breadcrumb { margin-bottom: var(--sp-24); }
.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--graphite);
}
.breadcrumb-list li:not(:first-child)::before { content: '·'; color: var(--terracotta); margin-right: 6px; }
.breadcrumb-list a { color: var(--graphite); }
.breadcrumb-list [aria-current] {
    color: var(--charcoal);
    max-width: 46ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Hero ---- */

.hero { padding: var(--sp-80) 0 var(--sp-64); }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: var(--sp-64);
    align-items: center;
}
.hero-copy h1 {
    font-size: clamp(42px, 5.6vw, 72px);
    line-height: 0.98;
    margin-top: var(--sp-16);
}
.hero-sub {
    max-width: 560px;
    margin-top: var(--sp-24);
    font-size: 19px;
    font-weight: 300;
    line-height: 1.45;
    color: var(--graphite);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-16);
    margin-top: var(--sp-32);
}

/* Inline tag flow with terracotta bullets (DESIGN "disease tag" pattern) */
.tag-flow {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    row-gap: var(--sp-8);
    margin: var(--sp-32) 0 0;
    padding: 0;
    font-size: 14px;
    color: var(--charcoal);
}
.tag-flow li { display: inline-flex; align-items: center; }
.tag-flow li:not(:last-child)::after { content: '·'; color: var(--terracotta); padding: 0 var(--sp-16); }
.tag-flow-center { justify-content: center; margin-top: 0; }

/* Apothecary label card (hero aside) */
.hero-label {
    background: var(--aged-paper);
    border: 1px solid var(--taupe);
    border-radius: var(--r-card);
    padding: var(--sp-32);
    position: relative;
}
.hero-label::before {
    content: '';
    position: absolute;
    top: -14px;
    right: var(--sp-32);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-seal);
}
.stat-stack { margin-top: var(--sp-24); display: grid; gap: var(--sp-24); }
.stat { border-top: 1px solid var(--taupe); padding-top: var(--sp-16); }
.stat:first-child { border-top: 0; padding-top: 0; }
.stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 38px;
    line-height: 1;
    color: var(--ink);
}
.stat-plus { color: var(--terracotta); }
.stat-sub {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--graphite);
    line-height: 1.4;
}

/* ---- Section heads ---- */

.section-head { margin-bottom: var(--sp-40); }
.section-head h2 {
    font-size: clamp(30px, 3.6vw, 45px);
    line-height: 1.1;
    margin-top: var(--sp-8);
}
.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-24);
    flex-wrap: wrap;
}

/* ---- Numbered step cards ---- */

.step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-24);
}
.step-card {
    background: var(--aged-paper);
    border-radius: var(--r-card);
    padding: var(--sp-40) var(--sp-32);
}
.section-wash .step-card { background: var(--parchment); }
.step-num {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--terracotta);
    letter-spacing: 0.08em;
}
.step-card h3 { font-size: 30px; margin-top: var(--sp-16); }
.step-card p { margin-top: var(--sp-16); color: var(--charcoal); line-height: 1.5; }

/* ---- Featured journal lead ---- */

.journal-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-40);
    align-items: center;
    background: var(--parchment);
    border: 1px solid var(--taupe);
    border-radius: var(--r-card);
    padding: var(--sp-32);
}
.journal-lead-media { border-radius: var(--r-card); overflow: hidden; display: block; }
.journal-lead-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.journal-lead-body h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; margin-top: var(--sp-16); }
.journal-lead-body h3 a { color: var(--ink); text-decoration: none; }
.journal-lead-body h3 a:hover { color: var(--terracotta); }
.journal-lead-excerpt { margin-top: var(--sp-16); color: var(--graphite); line-height: 1.5; }
.journal-lead-body .btn { margin-top: var(--sp-24); }

/* ---- Journal entry rows (editorial index) ---- */

.entry-list { border-top: 1px solid var(--taupe); }
.entry-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 40px;
    gap: var(--sp-24);
    align-items: center;
    padding: var(--sp-24) var(--sp-8);
    border-bottom: 1px solid var(--taupe);
}
.entry-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ash);
    letter-spacing: 0.08em;
}
.entry-meta { font-size: 13px; color: var(--graphite); }
.entry-main h3 { font-size: 24px; line-height: 1.15; margin-top: 6px; }
.entry-main h3 a { color: var(--ink); text-decoration: none; }
.entry-main h3 a:hover { color: var(--terracotta); }
.entry-excerpt { margin-top: 6px; font-size: 15px; color: var(--graphite); line-height: 1.45; }
.entry-arrow { font-size: 20px; color: var(--terracotta); text-align: right; }
.index-count { display: block; margin-bottom: var(--sp-16); }

/* ---- Intro wash ---- */

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--sp-64);
}
.intro-grid h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; margin-top: var(--sp-8); }
.intro-body p { line-height: 1.55; color: var(--charcoal); }
.intro-body p + p { margin-top: var(--sp-16); }
.intro-body p:first-child {
    font-size: 19px;
    font-weight: 300;
    color: var(--ink);
}

/* ---- Credo quote ---- */

.credo { max-width: 720px; margin: 0 auto; text-align: center; }
.credo blockquote { margin: 0; }
.credo blockquote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 340;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.3;
    color: var(--ink);
}
.credo blockquote p em { font-style: normal; color: var(--terracotta); }
.credo figcaption { margin-top: var(--sp-24); }
.credo-name { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.credo-role { display: block; font-size: 14px; color: var(--graphite); }

/* ---- Apothecary card (lead magnet, 404, empty states) ---- */

.apothecary-card {
    background: var(--aged-paper);
    border: 1px solid var(--taupe);
    border-radius: var(--r-card);
    padding: var(--sp-48) var(--sp-40);
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}
.apothecary-card h2, .apothecary-card h1 {
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.1;
    margin-top: var(--sp-16);
}
.apothecary-card > p { margin-top: var(--sp-16); color: var(--graphite); line-height: 1.5; }

.lead-magnet-sub { max-width: 560px; margin-left: auto !important; margin-right: auto !important; }
.pill-form {
    display: flex;
    gap: var(--sp-8);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--sp-24);
}
.pill-form input[type="email"] {
    font-family: var(--font-sans);
    font-size: 16px;
    letter-spacing: var(--track-sans);
    color: var(--ink);
    background: var(--parchment);
    border: 1px solid var(--ash);
    border-radius: var(--r-pill);
    padding: 12px 20px;
    min-width: 260px;
}
.pill-form input[type="email"]::placeholder { color: var(--graphite); }
.pill-form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(176, 90, 54, 0.2);
    border-color: var(--terracotta);
}
.lead-magnet-note { margin-top: var(--sp-16); font-size: 13px; color: var(--ash); }

/* ---- Article page ---- */

.article .breadcrumb { margin-bottom: var(--sp-32); }
.article-head { max-width: 820px; margin: 0 auto; text-align: center; }
.article-head h1 {
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 1.05;
    margin-top: var(--sp-16);
}
.article-standfirst {
    margin-top: var(--sp-16);
    font-size: 19px;
    font-weight: 300;
    color: var(--graphite);
    line-height: 1.4;
}
.byline {
    margin-top: var(--sp-24);
    font-size: 14px;
    color: var(--graphite);
}
.byline-author { font-weight: 700; color: var(--ink); }

.article-cover {
    margin: var(--sp-40) 0 0;
    border-radius: var(--r-card);
    overflow: hidden;
}
.article-cover img { width: 100%; object-fit: cover; }

.article-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: var(--sp-56);
    margin-top: var(--sp-48);
    align-items: start;
}
.toc-rail { position: sticky; top: 96px; }
.toc-card {
    background: var(--aged-paper);
    border: 1px solid var(--taupe);
    border-radius: var(--r-card);
    padding: var(--sp-24);
}
.toc-card ol {
    list-style: none;
    counter-reset: toc;
    margin: var(--sp-16) 0 0;
    padding: 0;
}
.toc-card li { counter-increment: toc; padding: 6px 0; border-top: 1px solid var(--taupe); }
.toc-card li:first-child { border-top: 0; padding-top: 0; }
.toc-card li::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--terracotta);
    margin-right: 10px;
}
.toc-card a { color: var(--charcoal); text-decoration: none; font-size: 14px; line-height: 1.35; }
.toc-card a:hover { color: var(--terracotta); }

.article-foot { margin-top: var(--sp-48); }
.related { margin-top: var(--sp-80); }

/* ---- Prose (article body + legal fallback pages) ---- */

.prose {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--charcoal);
}
.prose h2 {
    font-size: 32px;
    line-height: 1.15;
    margin: var(--sp-48) 0 var(--sp-16);
    scroll-margin-top: 96px;
}
.prose h3 {
    font-size: 24px;
    line-height: 1.2;
    margin: var(--sp-32) 0 var(--sp-16);
    scroll-margin-top: 96px;
}
.prose h4 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: var(--sp-24) 0 var(--sp-8);
    scroll-margin-top: 96px;
}
.prose p { margin: 0 0 var(--sp-16); }
.prose ul, .prose ol { margin: 0 0 var(--sp-16); padding-left: 24px; }
.prose li { margin-bottom: var(--sp-8); }
.prose li::marker { color: var(--terracotta); }
.prose img {
    border-radius: var(--r-card);
    margin: var(--sp-24) 0;
}
.prose blockquote {
    margin: var(--sp-24) 0;
    padding: var(--sp-24) var(--sp-24) var(--sp-24) var(--sp-32);
    background: var(--aged-paper);
    border: 1px solid var(--taupe);
    border-left: 4px solid var(--terracotta);
    border-radius: 0 var(--r-card) var(--r-card) 0;
    color: var(--graphite);
    font-size: 15px;
    line-height: 1.5;
}
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: var(--sp-8); }
.prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: var(--sp-24) 0;
    font-size: 15px;
}
.prose th, .prose td {
    border: 1px solid var(--taupe);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    min-width: 120px;
}
.prose th {
    background: var(--aged-paper);
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}
.prose tr:nth-child(even) td { background: rgba(245, 238, 225, 0.5); }
.prose hr { border: 0; border-top: 1px solid var(--taupe); margin: var(--sp-32) 0; }
.prose code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--aged-paper);
    border: 1px solid var(--taupe);
    border-radius: 6px;
    padding: 1px 6px;
}
.prose strong { color: var(--ink); }

.legal-updated {
    font-size: 14px;
    color: var(--ash);
    margin-bottom: var(--sp-24);
}

/* ---- Notice box (about page disclaimer) ---- */

.notice-box {
    background: var(--aged-paper);
    border: 1px solid var(--taupe);
    border-left: 4px solid var(--terracotta);
    border-radius: 0 var(--r-card) var(--r-card) 0;
    padding: var(--sp-24) var(--sp-32);
}
.notice-box p { margin-top: var(--sp-8); color: var(--graphite); line-height: 1.55; }

/* ---- Contact ---- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: var(--sp-40);
    align-items: start;
}
.contact-card { text-align: left; max-width: none; margin: 0; }
.contact-card h2 { font-size: clamp(26px, 3vw, 36px); }
.contact-card p { margin-top: var(--sp-16); color: var(--graphite); line-height: 1.55; }
.contact-facts { margin: 0; display: grid; gap: var(--sp-24); }
.contact-fact { border-top: 1px solid var(--taupe); padding-top: var(--sp-16); }
.contact-fact dd { margin: 6px 0 0; color: var(--charcoal); }

/* ---- Sitemap ---- */

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-40);
}
.sitemap-col ul { list-style: none; margin: var(--sp-16) 0 0; padding: 0; }
.sitemap-col li { padding: 8px 0; border-bottom: 1px solid var(--taupe); }
.sitemap-col a { color: var(--charcoal); text-decoration: none; }
.sitemap-col a:hover { color: var(--terracotta); }
.sitemap-soon { color: var(--ash); }

/* ---- 404 / empty states ---- */

.error-card, .empty-state { margin-top: var(--sp-40); }
.error-actions {
    display: flex;
    gap: var(--sp-16);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--sp-24);
}

/* ---- Lead magnet section ---- */

.lead-magnet { padding-bottom: var(--sp-80); }

/* ---- Footer ---- */

.footer {
    background: var(--aged-paper);
    border-top: 1px solid var(--taupe);
    padding: var(--sp-64) 0 var(--sp-32);
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
    gap: var(--sp-48);
}
.footer-brand p {
    margin-top: var(--sp-16);
    font-size: 14px;
    color: var(--graphite);
    line-height: 1.5;
    max-width: 380px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .eyebrow { margin-bottom: 6px; }
.footer-col a { color: var(--charcoal); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-16);
    flex-wrap: wrap;
    margin-top: var(--sp-48);
    padding-top: var(--sp-24);
    border-top: 1px solid var(--taupe);
    font-size: 13px;
    color: var(--graphite);
}

/* ---- Cookie banner ---- */

.cookie-banner {
    position: fixed;
    left: var(--sp-16);
    right: var(--sp-16);
    bottom: var(--sp-16);
    z-index: 150;
    display: none;
    justify-content: center;
}
.cookie-banner.is-visible { display: flex; }
.cookie-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-24);
    flex-wrap: wrap;
    max-width: 820px;
    background: var(--parchment);
    border: 1px solid var(--taupe);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-float);
    padding: var(--sp-16) var(--sp-24);
}
.cookie-inner p { flex: 1 1 320px; font-size: 14px; color: var(--charcoal); line-height: 1.45; }
.cookie-actions { display: flex; gap: var(--sp-8); }
.cookie-actions .btn { font-size: 14px; padding: 10px 20px; }

/* ---- Responsive ---- */

@media (max-width: 1023px) {
    .hero-grid { grid-template-columns: 1fr; gap: var(--sp-40); }
    .hero { padding-top: var(--sp-48); }
    .hero-label { max-width: 560px; }
    .intro-grid { grid-template-columns: 1fr; gap: var(--sp-32); }
    .article-layout { grid-template-columns: 1fr; gap: var(--sp-32); }
    .toc-rail { position: static; }
    .journal-lead { grid-template-columns: 1fr; padding: var(--sp-24); }
    .step-grid { grid-template-columns: 1fr; }
    .sitemap-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    body { font-size: 16px; }
    .section { padding: var(--sp-48) 0; }
    .hero-copy h1 { font-size: clamp(34px, 10vw, 42px); }
    .brand-word { font-size: 18px; }

    .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .nav-center {
        display: none;
        position: fixed;
        inset: 0;
        top: 0;
        z-index: 90;
        background: var(--parchment);
        padding: 120px var(--sp-24) var(--sp-40);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-8);
        overflow-y: auto;
    }
    .nav-center.is-open { display: flex; }
    .nav-center .nav-link {
        font-family: var(--font-serif);
        font-size: 32px;
        font-weight: 400;
        letter-spacing: normal;
        padding: var(--sp-8) 0;
        border-bottom: 0;
    }
    .nav-panel-cta { display: inline-block; margin-top: var(--sp-24); }

    .sitemap-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--sp-32); }
    .entry-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
    .entry-num, .entry-arrow { display: none; }
    .apothecary-card { padding: var(--sp-32) var(--sp-24); }
    .pill-form input[type="email"] { min-width: 0; width: 100%; }
    .pill-form .btn { width: 100%; }
    .footer-bottom { flex-direction: column; }
}
