/* GLP1Prep — Combined Stylesheet
 * Generated: 2026-04-09T12:55:23.855Z
 * Modules: 01-variables.css, 02-reset.css, 03-typography.css, 04-layout.css, 05-header.css, 06-navigation.css, 07-images.css, 08-article-list.css, 09-article-detail.css, 10-tables.css, 11-content-lists.css, 12-footer.css, 13-meta-badges.css, 14-theme-toggle.css, 15-categories.css
 */

/* ─────────────────────────────────────────────
 * Module: 01-variables
 * ───────────────────────────────────────────── */

/* === 01: CSS Custom Properties + Self-Hosted Fonts === */

/* Cormorant Garamond — latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Cormorant Garamond — latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Cormorant Garamond — latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Cormorant Garamond — latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans — latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-italic-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans — latin */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* DM Sans — latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/dm-sans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans — latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/dm-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Dark editorial palette */
  --color-midnight:      #0D0D0D;
  --color-charcoal:      #1A1714;
  --color-charcoal-light:#2A2520;
  --color-smoke:         #3D3630;
  --color-amber:         #D4A04A;
  --color-amber-light:   #E8C47A;
  --color-amber-dim:     #B8862E;
  --color-cream:         #F5EDE0;
  --color-cream-muted:   #C8B9A6;
  --color-rose:          #C45B4A;
  --color-sage:          #7A8B6F;

  /* Semantic aliases — keep existing names for compatibility */
  --color-bg:            #0D0D0D;
  --color-surface:       #1A1714;
  --color-text:          #F5EDE0;
  --color-text-muted:    #C8B9A6;
  --color-text-light:    rgba(200, 185, 166, 0.45);
  --color-border:        rgba(245, 237, 224, 0.06);
  --color-border-strong: rgba(245, 237, 224, 0.12);
  --color-primary:       #D4A04A;
  --color-primary-dark:  #B8862E;
  --color-primary-light: #E8C47A;
  --color-accent:        #C45B4A;
  --color-secondary:     #2A2520;

  /* Glassmorphism tokens */
  --color-header-bg:     rgba(13, 13, 13, 0.82);
  --color-nav-bg:        rgba(13, 13, 13, 0.96);

  /* Typography */
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-mono:    ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;

  /* Font sizes */
  --text-xs:   0.6875rem; /* 11px */
  --text-sm:   0.8125rem; /* 13px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  1.875rem;  /* 30px */
  --text-3xl:  2.25rem;   /* 36px */
  --text-4xl:  3rem;      /* 48px */
  --text-5xl:  3.75rem;   /* 60px */
  --text-6xl:  4.5rem;    /* 72px */

  /* Line heights */
  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  /* Font weights */
  --weight-light:    300;
  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    900;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-w-article: 56rem;
  --max-w-content: 1100px;
  --max-w-wide:    1280px;
  --header-height: 64px;

  /* Borders — very subtle on dark */
  --radius-sm:   2px;
  --radius:      3px;
  --radius-lg:   6px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.4);
  --shadow:    0 3px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-index */
  --z-header:  100;
  --z-overlay: 200;
  --z-modal:   300;

  /* Label tokens */
  --section-label-size:    0.6875rem;
  --section-label-spacing: 0.2em;
  --col-gap-sm:  var(--space-6);
  --col-gap:     var(--space-8);
  --col-gap-lg:  var(--space-12);
}

/* ── Light mode theme ── */

[data-theme="light"] {
  /* Semantic aliases */
  --color-bg:            #FAF7F2;
  --color-surface:       #F0E8DC;
  --color-text:          #1A1714;
  --color-text-muted:    #6B5B4E;
  --color-text-light:    rgba(80, 60, 45, 0.40);
  --color-border:        rgba(26, 23, 20, 0.10);
  --color-border-strong: rgba(26, 23, 20, 0.18);
  --color-primary:       #B8722A;
  --color-primary-dark:  #8A5820;
  --color-primary-light: #D4A04A;
  --color-secondary:     #E8DDD4;

  /* Glassmorphism tokens */
  --color-header-bg:     rgba(250, 247, 242, 0.90);
  --color-nav-bg:        rgba(250, 247, 242, 0.97);

  /* Lighter shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow:    0 3px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ─────────────────────────────────────────────
 * Module: 02-reset
 * ───────────────────────────────────────────── */

/* === 02: Modern CSS Reset + Animations === */

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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-light);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background-color: var(--color-amber);
  color: var(--color-midnight);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-midnight); }
::-webkit-scrollbar-thumb { background: var(--color-smoke); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-amber-dim); }

/* ============================================================
   Animation keyframes
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-up   { animation: fadeUp  0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-fade-in   { animation: fadeIn  0.6s ease both; }
.animate-scale-in  { animation: scaleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ─────────────────────────────────────────────
 * Module: 03-typography
 * ───────────────────────────────────────────── */

/* === 03: Typography — Body, headings, prose === */

body {
  font-size: clamp(var(--text-base), 1vw + 0.875rem, var(--text-md));
}

h1 { font-size: clamp(var(--text-3xl), 5vw + 1rem, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-2xl), 3vw + 0.75rem, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl),  2vw + 0.5rem,  var(--text-3xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* Section label — amber, small-caps */
.section-label {
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--section-label-spacing);
  text-transform: uppercase;
  color: var(--color-amber);
  display: block;
  margin-bottom: var(--space-4);
}

/* ── Prose within article body ── */

.article-body a {
  color: var(--color-amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: var(--weight-medium);
  transition: color var(--transition-fast);
}

.article-body a:hover {
  color: var(--color-amber-light);
}

.article-body p {
  margin-bottom: var(--space-6);
  color: rgba(245, 237, 224, 0.8);
  font-weight: var(--weight-light);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-cream);
}

.article-body h2 {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

/* Blockquotes — amber left border, italic serif */
.article-body blockquote {
  margin: var(--space-10) 0;
  padding: var(--space-4) var(--space-8);
  border-left: 2px solid var(--color-amber);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(var(--text-lg), 1.5vw + 0.75rem, var(--text-2xl));
  color: var(--color-cream-muted);
  line-height: var(--leading-snug);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Inline code */
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background-color: var(--color-charcoal-light);
  padding: 0.1em 0.45em;
  border-radius: var(--radius-sm);
  color: var(--color-amber-light);
}

/* Code blocks */
.article-body pre {
  margin: var(--space-6) 0;
  padding: var(--space-6);
  background-color: var(--color-charcoal);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.article-body pre code {
  background: none;
  padding: 0;
  color: var(--color-cream-muted);
  font-size: inherit;
}

.article-body strong {
  font-weight: var(--weight-semibold);
  color: var(--color-cream);
}

.article-body em {
  font-style: italic;
}

.article-body hr {
  margin: var(--space-12) 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

/* Lists */
.article-body ul,
.article-body ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.article-body ul {
  list-style: disc;
}

.article-body ul li,
.article-body ol li {
  color: rgba(245, 237, 224, 0.8);
  font-weight: var(--weight-light);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: var(--space-3);
}

.article-body ul li::marker {
  color: var(--color-amber);
}

.article-body ol {
  list-style: decimal;
}

.article-body ol li::marker {
  color: var(--color-amber);
  font-weight: var(--weight-semibold);
}

/* ─────────────────────────────────────────────
 * Module: 04-layout
 * ───────────────────────────────────────────── */

/* === 04: Layout — Page structure, homepage, containers === */

/* Skip link */
.skip-link {
  position: absolute;
  top: -999px;
  left: var(--space-4);
  z-index: var(--z-modal);
  padding: var(--space-2) var(--space-4);
  background: var(--color-amber);
  color: var(--color-midnight);
  border-radius: var(--radius);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* Body layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* main-content starts at top of viewport (header is fixed above it) */
#main-content {
  flex: 1;
  width: 100%;
  padding-top: var(--header-height);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w-content);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

.container--wide    { max-width: var(--max-w-wide); }
.container--article { max-width: var(--max-w-article); }
.text-center        { text-align: center; }

/* ============================================================
   HOMEPAGE HERO — two-column: text left + featured card right
   ============================================================ */

.homepage-hero {
  position: relative;
  overflow: hidden;
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding: var(--space-12) var(--space-6) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .homepage-hero {
    min-height: calc(85vh - var(--header-height));
    padding: var(--space-20) var(--space-8);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .homepage-hero {
    grid-template-columns: 5fr 4fr;
  }
}

/* Ambient gradient glows */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-glow--right {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 160, 74, 0.05) 0%, transparent 70%);
}

.hero-glow--left {
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196, 91, 74, 0.04) 0%, transparent 70%);
}

/* Hero text column */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.hero-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  font-weight: var(--weight-medium);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-5);
}

.homepage-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-cream);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}

.homepage-em {
  color: var(--color-amber);
  font-style: italic;
}

.homepage-tagline {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 1vw + 0.75rem, var(--text-lg));
  color: var(--color-cream-muted);
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  max-width: 42ch;
  margin-bottom: var(--space-10);
}

/* Category pills */
.hero-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.hero-pill {
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  font-weight: var(--weight-normal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cream-muted);
  border: 1px solid rgba(245, 237, 224, 0.08);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  transition: border-color var(--transition-base), color var(--transition-base);
  border-radius: var(--radius-sm);
}

.hero-pill:hover {
  border-color: rgba(212, 160, 74, 0.4);
  color: var(--color-amber);
}

/* Hero CTA button */
.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  background: var(--color-amber);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), transform var(--transition-fast);
}

.hero-cta:hover {
  background: var(--color-amber-light);
  color: var(--color-charcoal);
  transform: translateY(-1px);
}

.hero-microcopy {
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-cream-muted);
  margin-top: var(--space-3);
  letter-spacing: 0.02em;
  opacity: 0.7;
}

/* Hero featured card column */
.hero-featured {
  position: relative;
  z-index: 1;
}

.hero-card {
  display: block;
  text-decoration: none;
}

.hero-card__wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .hero-card__wrap {
    aspect-ratio: 4 / 5;
  }
}

.hero-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-card:hover .hero-card__img {
  transform: scale(1.03);
}

.hero-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
}

.hero-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5);
}

@media (min-width: 768px) {
  .hero-card__content {
    padding: var(--space-6);
  }
}

.hero-card__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  font-weight: var(--weight-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-card__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-lg), 1.5vw + 0.75rem, var(--text-2xl));
  font-weight: var(--weight-semibold);
  color: var(--color-cream);
  line-height: var(--leading-snug);
  transition: color var(--transition-base);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .hero-card__title {
    font-size: clamp(var(--text-xl), 2vw + 0.75rem, var(--text-3xl));
    font-weight: var(--weight-bold);
  }
}

.hero-card:hover .hero-card__title {
  color: var(--color-amber-light);
}

.hero-card__macros {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--weight-normal);
  color: rgba(200, 185, 166, 0.7);
  margin-top: var(--space-1, 0.25rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero-card__macros {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-2);
  }
}

.hero-card__line {
  height: 2px;
  background: rgba(212, 160, 74, 0);
  transition: background var(--transition-slow);
}

.hero-card:hover .hero-card__line {
  background: rgba(212, 160, 74, 0.6);
}

/* ============================================================
   SECTION DIVIDER — amber label between sections
   ============================================================ */

.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: rgba(245, 237, 224, 0.06);
}

.divider-label {
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  font-weight: var(--weight-normal);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200, 185, 166, 0.3);
  white-space: nowrap;
}

/* ============================================================
   STATIC PAGES
   ============================================================ */

.static-page {
  max-width: var(--max-w-article);
  margin-inline: auto;
  padding: var(--space-16) var(--space-6) var(--space-20);
}

.static-page h1 {
  margin-bottom: var(--space-8);
  color: var(--color-cream);
}

.static-page h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-cream);
}

.static-page p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
  color: var(--color-cream-muted);
  font-weight: var(--weight-light);
}

.static-page a {
  color: var(--color-amber);
}

.static-page a:hover {
  color: var(--color-amber-light);
}

/* ─────────────────────────────────────────────
 * Module: 05-header
 * ───────────────────────────────────────────── */

/* === 05: Header — Fixed glassmorphism masthead === */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
}

/* Glass background layer */
.site-header__bg {
  position: absolute;
  inset: 0;
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base), border-color var(--transition-base);
}

/* Inner nav row */
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .site-header__inner {
    padding-inline: var(--space-8);
  }
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__main {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-cream);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: color var(--transition-fast);
}

.site-logo__sub {
  font-family: var(--font-heading);
  font-size: var(--section-label-size);
  font-weight: var(--weight-normal);
  font-style: italic;
  color: var(--color-cream-muted);
  letter-spacing: 0.05em;
  display: none;
  line-height: 1.3;
}

@media (min-width: 500px) {
  .site-logo__sub {
    display: block;
  }
}

.site-logo:hover .site-logo__main {
  color: var(--color-amber);
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 15px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-cream-muted);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.75px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.75px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* ─────────────────────────────────────────────
 * Module: 06-navigation
 * ───────────────────────────────────────────── */

/* === 06: Navigation — Dark amber editorial nav === */

/* Mobile: slide-down drawer */
.main-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-base);
  z-index: calc(var(--z-header) - 1);
}

.main-nav--open {
  max-height: 360px;
}

.main-nav__list {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-6) var(--space-8);
  gap: 0;
  list-style: none;
}

/* Desktop: horizontal inline */
@media (min-width: 768px) {
  .main-nav {
    position: static;
    max-height: none;
    background: none;
    backdrop-filter: none;
    border: none;
    overflow: visible;
    display: flex;
    align-items: center;
  }

  .main-nav__list {
    flex-direction: row;
    padding: 0;
    gap: 0;
    align-items: center;
  }
}

/* "Home" only visible in mobile drawer */
.nav-item--mobile { display: list-item; }

@media (min-width: 768px) {
  .nav-item--mobile { display: none; }
}

/* Nav links */
.nav-link {
  display: block;
  padding: var(--space-3) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  font-weight: var(--weight-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cream-muted);
  text-decoration: none;
  transition: color var(--transition-base);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-amber);
  text-decoration: none;
}

.nav-link--active {
  color: var(--color-amber);
}

@media (min-width: 768px) {
  .nav-link {
    padding: var(--space-2) var(--space-3);
  }
}

/* ─────────────────────────────────────────────
 * Module: 07-images
 * ───────────────────────────────────────────── */

/* === 07: Images — Featured images, copyright overlay, responsive display === */

/* <picture> is a selection-only container with no visual role — make it layout-transparent */
picture {
  display: contents;
}

/* Article hero image */
.article-hero {
  position: relative;
  margin: var(--space-8) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--color-secondary);
}

.article-hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1200 / 630;
}

/* Copyright overlay — bottom-right, readable against any image */
.article-hero__copyright {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: var(--space-1) var(--space-3);
  background-color: rgba(43, 24, 16, 0.65);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm) 0 0 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Card thumbnail */
.card-thumb-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background-color: var(--color-secondary);
  flex-shrink: 0;
}

.card-thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 400 / 210;
  transition: transform var(--transition-slow);
}

.article-card:hover .card-thumb {
  transform: scale(1.03);
}

/* General responsive image within article body */
.article-body img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-block: var(--space-6);
}

/* ─────────────────────────────────────────────
 * Module: 08-article-list
 * ───────────────────────────────────────────── */

/* === 08: Article List — Full-image recipe cards with gradient overlay === */

.article-list {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding: var(--space-8) var(--space-6) var(--space-20);
}

@media (min-width: 768px) {
  .article-list {
    padding: var(--space-10) var(--space-8) var(--space-24);
  }
}

/* ── Card grid ── */

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 500px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

/* ── Article card ── */

.article-card {
  display: block;
}

.card-link {
  display: block;
  text-decoration: none;
}

/* Image container — portrait aspect, full bleed */
.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  background: var(--color-charcoal);
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.card-link:hover .card-thumb {
  transform: scale(1.04);
  filter: brightness(1.08);
}

/* Dark gradient overlay — fades from bottom */
.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    transparent 80%
  );
  opacity: 0.9;
  transition: opacity var(--transition-slow);
}

.card-link:hover .card-gradient {
  opacity: 0.75;
}

/* Category badge — top left, amber on dark */
.card-top {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}

.card-category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  font-weight: var(--weight-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber);
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: calc(var(--space-1) + 1px) var(--space-3);
  border: 1px solid rgba(212, 160, 74, 0.2);
  border-radius: var(--radius-sm);
}

/* Content overlay — bottom of card */
.card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5);
}

/* Card title */
.card-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-lg), 1.5vw + 0.75rem, var(--text-2xl));
  font-weight: var(--weight-semibold);
  color: var(--color-cream);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
  transition: color var(--transition-base);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link:hover .card-title {
  color: var(--color-amber-light);
}

/* Card macros (calories, protein, fibre) */
.card-macros {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--weight-normal);
  letter-spacing: 0.03em;
  color: rgba(200, 185, 166, 0.7);
  margin-top: var(--space-1, 0.25rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Card date */
.card-date {
  display: block;
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  font-weight: var(--weight-normal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 185, 166, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Amber accent line on hover */
.card-amber-line {
  height: 2px;
  background: rgba(212, 160, 74, 0);
  transition: background var(--transition-slow);
  border-radius: var(--radius-sm);
}

.card-link:hover .card-amber-line {
  background: rgba(212, 160, 74, 0.6);
}

/* "New" badge */
.badge--new {
  display: inline-flex;
  align-items: center;
  padding: 0.1em 0.5em;
  background: var(--color-amber);
  color: var(--color-midnight);
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
  display: block;
  width: fit-content;
}

/* ── Recipe filter bar ── */

.recipe-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-btn {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: none;
  color: rgba(245, 237, 224, 0.5);
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn--active {
  border-color: var(--color-amber);
  color: var(--color-amber);
}

/* Empty state */
.empty-state {
  color: rgba(200, 185, 166, 0.4);
  font-style: italic;
  padding: var(--space-20) 0;
  text-align: center;
  font-weight: var(--weight-light);
}

/* ─────────────────────────────────────────────
 * Module: 09-article-detail
 * ───────────────────────────────────────────── */

/* === 09: Article Detail — Cinematic hero + article body === */

/* ── Cinematic full-bleed hero ── */

.cinematic-hero {
  /* Pull back up to sit under the fixed header (main-content has padding-top) */
  margin-top: calc(-1 * var(--header-height));
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 420px;
  max-height: 750px;
  overflow: hidden;
  background: var(--color-charcoal);
}

@media (min-width: 768px) {
  .cinematic-hero {
    height: 70vh;
  }
}

.cinematic-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: scaleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Multi-layer overlay */
.cinematic-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  var(--color-midnight) 0%, rgba(13,13,13,0.5) 45%, rgba(13,13,13,0.15) 100%),
    linear-gradient(to right, rgba(13,13,13,0.3) 0%, transparent 60%);
}

/* Title/excerpt overlaid on hero */
.cinematic-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-6) var(--space-10);
  max-width: var(--max-w-wide);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .cinematic-hero__content {
    padding: var(--space-12) var(--space-8) var(--space-16);
  }
}

.cinematic-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 4vw + 1rem, var(--text-5xl));
  font-weight: var(--weight-bold);
  color: var(--color-cream);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  max-width: 18em;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.cinematic-hero__excerpt {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 1vw + 0.75rem, var(--text-lg));
  color: var(--color-cream-muted);
  font-weight: var(--weight-light);
  max-width: 60ch;
  line-height: var(--leading-relaxed);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* ── Article wrapper ── */

.article {
  max-width: var(--max-w-article);
  margin-inline: auto;
  padding: var(--space-10) var(--space-6) var(--space-20);
}

@media (min-width: 768px) {
  .article {
    padding: var(--space-12) var(--space-8) var(--space-20);
  }
}

/* No-hero variant — add top padding instead of cinematic hero */
.article--no-hero {
  padding-top: var(--space-16);
}

/* Article header (meta bar + tags, below hero OR includes title for no-hero) */
.article-header {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* Title (only shown when there's no cinematic hero) */
.article-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 4vw + 1rem, var(--text-5xl));
  font-weight: var(--weight-bold);
  color: var(--color-cream);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}

/* Meta bar */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 185, 166, 0.45);
  margin-bottom: var(--space-4);
}

.article-meta__date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.article-meta__label {
  opacity: 0.6;
}

.article-meta__date--updated {
  color: var(--color-amber);
  opacity: 0.7;
}

.article-meta__author::before {
  content: '·';
  margin-right: var(--space-3);
  opacity: 0.4;
}

/* Tags */
.skip-to-recipe {
  display: inline-block;
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-bg);
  background: var(--color-amber);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

#ingredients {
  scroll-margin-top: 100px;
}

.skip-to-recipe:hover {
  background: #c8922e;
  color: #fff;
  transform: translateY(-1px);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin-top: var(--space-4);
}

.article-tag {
  padding: var(--space-1) var(--space-3);
  background: none;
  color: rgba(200, 185, 166, 0.45);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  font-weight: var(--weight-medium);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
}

.article-tag a {
  color: inherit;
  text-decoration: none;
}

.article-tag:hover {
  border-color: rgba(212, 160, 74, 0.3);
  color: var(--color-amber);
}

/* Article body */
.article-body {
  font-size: 0.9375rem;
  line-height: var(--leading-relaxed);
  color: rgba(245, 237, 224, 0.8);
  font-weight: var(--weight-light);
  overflow-wrap: break-word;
  min-width: 0;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* ── 2-column layout with sidebar ── */

.article--has-sidebar {
  max-width: var(--max-w-wide);
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-16);
  align-items: start;
}

/* Prevent grid children from overflowing their columns */
.article-main,
.article-sidebar {
  min-width: 0;
}

@media (max-width: 900px) {
  .article--has-sidebar {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    order: -1;
  }
}

@media (min-width: 901px) {
  .article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
  }
}

/* ── Nutrition card ── */

.nutrition-card {
  background: var(--color-charcoal);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
}

.nutrition-card__label {
  text-transform: uppercase;
  font-size: var(--section-label-size);
  letter-spacing: 0.1em;
  color: var(--color-amber);
  margin-bottom: var(--space-4);
  font-weight: var(--weight-medium);
}

.nutrition-stat--hero {
  text-align: center;
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: rgba(245, 237, 224, 0.04);
  border-radius: var(--radius-sm);
}

.nutrition-stat--hero .val {
  display: block;
  font-size: var(--text-4xl);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--color-cream);
  line-height: 1;
}

.nutrition-stat--hero .lbl {
  display: block;
  font-size: var(--section-label-size);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245, 237, 224, 0.4);
  margin-top: var(--space-1);
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.nutrition-stat {
  text-align: center;
  padding: var(--space-3);
  background: rgba(245, 237, 224, 0.04);
  border-radius: var(--radius-sm);
}

.nutrition-stat .val {
  display: block;
  font-size: var(--text-xl);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  color: var(--color-cream);
  line-height: 1;
}

.nutrition-stat .lbl {
  display: block;
  font-size: var(--section-label-size);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245, 237, 224, 0.4);
  margin-top: var(--space-1);
}

/* ── FAQ accordion (details/summary) ── */

.article-body details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  background: rgba(245, 237, 224, 0.02);
}

.article-body details summary {
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-weight: var(--weight-medium);
  color: var(--color-cream);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.article-body details summary::-webkit-details-marker {
  display: none;
}

.article-body details summary::before {
  content: '+';
  color: var(--color-amber);
  font-weight: bold;
  font-size: 1.1em;
  min-width: 1em;
  flex-shrink: 0;
}

.article-body details[open] summary::before {
  content: '−';
}

.article-body details[open] summary {
  color: var(--color-cream-muted);
  border-bottom: 1px solid var(--color-border);
}

.article-body .faq-answer {
  padding: var(--space-4) var(--space-5) var(--space-5);
  color: rgba(245, 237, 224, 0.8);
  font-weight: var(--weight-light);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ── Article hero image (fallback if renderFeaturedImage is used without cinematic layout) ── */

.article-hero {
  margin: 0 0 var(--space-10);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.article-hero__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ── Hero zoom button ── */

.hero-zoom {
  position: absolute;
  top: calc(var(--header-height) + var(--space-4));
  right: var(--space-4);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.5);
  color: var(--color-cream);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.hero-zoom:hover {
  background: rgba(13, 13, 13, 0.75);
  transform: scale(1.1);
}

.hero-zoom svg {
  pointer-events: none;
}

/* ── Lightbox overlay ── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  animation: fadeIn 0.25s ease both;
  cursor: zoom-out;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-cream);
  cursor: pointer;
  font-size: var(--text-xl);
  transition: background var(--transition-fast);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Related recipes ── */

.related-recipes {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding: var(--space-12) var(--space-6) var(--space-20);
  border-top: 1px solid var(--color-border);
}

.related-recipes__heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-cream);
  text-align: center;
  margin-bottom: var(--space-8);
  letter-spacing: -0.01em;
}

.related-recipes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .related-recipes__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-cream);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.related-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-charcoal);
}

.related-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-macros {
  font-size: 0.7rem;
  color: var(--color-amber);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────
 * Module: 10-tables
 * ───────────────────────────────────────────── */

/* === 10: Tables — Responsive wrapper with horizontal scroll, clean borders === */

/* Responsive container — allows horizontal scroll on narrow screens */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-6) 0;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.table-responsive table {
  min-width: 480px;
}

/* Table base styles */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--text-sm);
}

/* Header */
thead {
  background-color: var(--color-primary);
  color: white;
}

thead th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.025em;
  white-space: nowrap;
}

/* Body rows */
tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background-color: rgba(212, 197, 169, 0.15);
}

tbody tr:hover {
  background-color: rgba(91, 123, 79, 0.06);
}

tbody td {
  padding: var(--space-3) var(--space-4);
  vertical-align: top;
  line-height: var(--leading-normal);
}

/* ─────────────────────────────────────────────
 * Module: 11-content-lists
 * ───────────────────────────────────────────── */

/* === 11: Content Lists — Styled ul/ol within article body === */

/* Unordered lists */
.article-body ul {
  margin: var(--space-4) 0 var(--space-6);
}

/* Nested lists */
.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.article-body ul ul {
  list-style: circle;
}

/* Ordered lists */
.article-body ol {
  margin: var(--space-4) 0 var(--space-6);
}

/* Definition lists */
.article-body dl {
  margin: var(--space-6) 0;
}

.article-body dt {
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-top: var(--space-4);
}

.article-body dd {
  margin-left: var(--space-6);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ─────────────────────────────────────────────
 * Module: 12-footer
 * ───────────────────────────────────────────── */

/* === 12: Footer — Dark editorial footer === */

.site-footer {
  border-top: 1px solid rgba(245, 237, 224, 0.06);
  background: rgba(26, 23, 20, 0.3);
  margin-top: var(--space-20);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: var(--space-12) var(--space-8);
    gap: var(--space-8);
  }
}

/* Logo/wordmark */
.site-footer__logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-cream);
  opacity: 0.35;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity var(--transition-base);
  flex-shrink: 0;
}

.site-footer__logo:hover {
  opacity: 0.75;
  color: var(--color-cream);
}

/* Footer nav */
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
}

@media (min-width: 768px) {
  .site-footer__nav {
    justify-content: flex-start;
  }
}

.footer-link {
  font-family: var(--font-body);
  font-size: var(--section-label-size);
  font-weight: var(--weight-normal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 185, 166, 0.35);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-amber);
}

/* Right side: disclaimer + copyright */
.site-footer__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__right {
    align-items: flex-end;
    text-align: right;
  }
}

.site-footer__disclaimer {
  font-size: var(--section-label-size);
  color: rgba(200, 185, 166, 0.25);
  max-width: 40ch;
  line-height: var(--leading-relaxed);
  font-style: italic;
}

.site-footer__pharma {
  font-size: 0.65rem;
  color: rgba(200, 185, 166, 0.18);
  max-width: 50ch;
  line-height: var(--leading-relaxed);
}

.site-footer__copyright {
  font-size: var(--section-label-size);
  color: rgba(200, 185, 166, 0.2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
 * Module: 13-meta-badges
 * ───────────────────────────────────────────── */

/* === 13: Meta & Badges — Article metadata, date display, "New" badge === */

/* "New" badge — appears on homepage cards for recent articles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15em 0.6em;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
}

.badge--new {
  background-color: var(--color-accent);
  color: white;
  box-shadow: 0 1px 3px rgba(196, 98, 61, 0.4);
}

/* Search page styles (placeholder until prompt-08) */
.search-page {
  max-width: var(--max-w-article);
  margin-inline: auto;
  padding: var(--space-10) var(--space-4) var(--space-16);
}

.search-form {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.search-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.search-btn {
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.search-btn:hover {
  background-color: var(--color-primary-dark);
}

/* Search results */
.search-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.search-result {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-surface);
}

.search-result__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.search-result__title a {
  color: var(--color-text);
  text-decoration: none;
}

.search-result__title a:hover {
  color: var(--color-primary);
}

.search-result__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ─────────────────────────────────────────────
 * Module: 14-theme-toggle
 * ───────────────────────────────────────────── */

/* === 14: Theme Toggle + Light Mode Overrides === */

/* ── iOS-style slide switch ── */

/* Outer button — no default styling */
.theme-toggle {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* The pill track */
.theme-toggle__track {
  display: flex;
  align-items: center;
  width: 46px;
  height: 26px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  transition: background var(--transition-base), border-color var(--transition-base);
  flex-shrink: 0;
}

/* The sliding thumb (circle) */
.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(0,0,0,0.12);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1),
              background 0.3s ease;
  color: #1A1714;
}

/* Icons inside thumb */
.theme-toggle svg {
  width: 11px;
  height: 11px;
  display: block;
  flex-shrink: 0;
}

/* Dark mode: thumb left, shows moon icon */
.theme-toggle .theme-toggle__sun  { display: none; }
.theme-toggle .theme-toggle__moon { display: block; }

/* Hover: track glows slightly */
.theme-toggle:hover .theme-toggle__track {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(212, 160, 74, 0.35);
}

/* ── Light mode ── */

/* Thumb slides to the right */
[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(20px);
  background: #FAF7F2;
  color: var(--color-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0,0,0,0.06);
}

/* Track fills with warm amber */
[data-theme="light"] .theme-toggle__track {
  background: rgba(212, 160, 74, 0.35);
  border-color: rgba(212, 160, 74, 0.50);
}

/* Light mode: thumb right, shows sun icon */
[data-theme="light"] .theme-toggle .theme-toggle__sun  { display: block; }
[data-theme="light"] .theme-toggle .theme-toggle__moon { display: none; }

/* Hover in light mode */
[data-theme="light"] .theme-toggle:hover .theme-toggle__track {
  background: rgba(212, 160, 74, 0.45);
  border-color: rgba(212, 160, 74, 0.65);
}

/* ── Light mode: header + nav ── */

[data-theme="light"] .site-logo__main {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

[data-theme="light"] .site-logo:hover .site-logo__main {
  color: var(--color-primary);
}

[data-theme="light"] .site-logo__sub {
  color: var(--color-text-muted);
}

[data-theme="light"] .nav-toggle__bar {
  background-color: var(--color-text-muted);
}

[data-theme="light"] .nav-link {
  color: var(--color-text-muted);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link--active {
  color: var(--color-primary);
}

[data-theme="light"] .main-nav {
  transition: background var(--transition-base);
}

/* ── Light mode: footer ── */

[data-theme="light"] .site-footer {
  border-top-color: var(--color-border);
  background: rgba(240, 232, 220, 0.50);
}

[data-theme="light"] .site-footer__logo {
  color: var(--color-text);
}

[data-theme="light"] .site-footer__logo:hover {
  color: var(--color-text);
}

[data-theme="light"] .footer-link {
  color: rgba(80, 60, 45, 0.50);
}

[data-theme="light"] .footer-link:hover {
  color: var(--color-primary);
}

[data-theme="light"] .site-footer__disclaimer {
  color: rgba(80, 60, 45, 0.38);
}

[data-theme="light"] .site-footer__copyright {
  color: rgba(80, 60, 45, 0.30);
}

/* ── Light mode: article list ── */

[data-theme="light"] .filter-btn {
  color: rgba(26, 23, 20, 0.50);
}

[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn--active {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

[data-theme="light"] .empty-state {
  color: rgba(80, 60, 45, 0.50);
}

[data-theme="light"] .card-date {
  color: rgba(80, 60, 45, 0.55);
}

[data-theme="light"] .card-category {
  background: rgba(250, 247, 242, 0.80);
  color: var(--color-primary);
  border-color: rgba(184, 114, 42, 0.25);
}

[data-theme="light"] .card-image-wrap {
  background: var(--color-secondary);
}

/* ── Light mode: article detail ── */

/* Article title (no-hero variant — sits on page bg) */
[data-theme="light"] .article-title {
  color: var(--color-text);
}

/* Article meta */
[data-theme="light"] .article-meta {
  color: rgba(80, 60, 45, 0.50);
}

/* Article tags */
[data-theme="light"] .article-tag {
  color: rgba(80, 60, 45, 0.50);
}

[data-theme="light"] .article-tag:hover {
  color: var(--color-primary);
  border-color: rgba(184, 114, 42, 0.35);
}

/* Article body prose — override hardcoded rgba in 03-typography.css */
[data-theme="light"] .article-body {
  color: rgba(26, 23, 20, 0.85);
}

[data-theme="light"] .article-body p {
  color: rgba(26, 23, 20, 0.80);
}

[data-theme="light"] .article-body h2,
[data-theme="light"] .article-body h3,
[data-theme="light"] .article-body h4 {
  color: var(--color-text);
}

[data-theme="light"] .article-body strong {
  color: var(--color-text);
}

[data-theme="light"] .article-body ul li,
[data-theme="light"] .article-body ol li {
  color: rgba(26, 23, 20, 0.80);
}

[data-theme="light"] .article-body blockquote {
  color: var(--color-text-muted);
}

[data-theme="light"] .article-body code {
  background-color: rgba(26, 23, 20, 0.07);
  color: var(--color-primary-dark);
}

[data-theme="light"] .article-body pre {
  background-color: var(--color-surface);
}

[data-theme="light"] .article-body pre code {
  color: var(--color-text-muted);
}

/* FAQ accordion */
[data-theme="light"] .article-body details {
  background: rgba(26, 23, 20, 0.03);
}

[data-theme="light"] .article-body details summary {
  color: var(--color-text);
}

[data-theme="light"] .article-body details[open] summary {
  color: var(--color-text-muted);
}

[data-theme="light"] .article-body .faq-answer {
  color: rgba(26, 23, 20, 0.80);
}

/* Nutrition card */
[data-theme="light"] .nutrition-card {
  background: var(--color-surface);
}

[data-theme="light"] .nutrition-stat,
[data-theme="light"] .nutrition-stat--hero {
  background: rgba(26, 23, 20, 0.05);
}

[data-theme="light"] .nutrition-stat .val,
[data-theme="light"] .nutrition-stat--hero .val {
  color: var(--color-text);
}

[data-theme="light"] .nutrition-stat .lbl,
[data-theme="light"] .nutrition-stat--hero .lbl {
  color: rgba(80, 60, 45, 0.55);
}

/* ── Light mode: homepage hero ── */

[data-theme="light"] .homepage-headline {
  color: var(--color-text);
}

[data-theme="light"] .homepage-tagline {
  color: var(--color-text-muted);
}

[data-theme="light"] .hero-pill {
  color: var(--color-text-muted);
  border-color: rgba(26, 23, 20, 0.10);
}

[data-theme="light"] .hero-pill:hover {
  color: var(--color-primary);
  border-color: rgba(184, 114, 42, 0.35);
}

/* ── Light mode: section dividers ── */

[data-theme="light"] .divider-line {
  background-color: var(--color-border);
}

[data-theme="light"] .divider-label {
  color: rgba(80, 60, 45, 0.35);
}

/* ── Light mode: static pages (about, imprint, privacy) ── */

[data-theme="light"] .static-page h1,
[data-theme="light"] .static-page h2 {
  color: var(--color-text);
}

[data-theme="light"] .static-page p {
  color: var(--color-text-muted);
}

/* ── Light mode: scrollbar ── */

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--color-bg);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(26, 23, 20, 0.18);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ─────────────────────────────────────────────
 * Module: 15-categories
 * ───────────────────────────────────────────── */

/* === 15: Category pages === */

/* Breadcrumbs */
.breadcrumbs {
  font-size: var(--section-label-size);
  color: rgba(200, 185, 166, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.breadcrumbs a {
  color: rgba(200, 185, 166, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-amber);
}

.breadcrumb-sep {
  margin-inline: var(--space-2);
  opacity: 0.4;
}

/* Category intro — two-column on wide screens, single column on mobile */
.category-intro {
  max-width: var(--max-w-content);
  margin-inline: auto;
  margin-bottom: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.category-intro p {
  margin: 0;
  color: var(--color-cream-muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
  .category-intro {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

.category-count {
  text-align: center;
  font-size: var(--section-label-size);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 185, 166, 0.35);
  margin-bottom: var(--space-8);
}

/* Category index page */
.category-group-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
  max-width: var(--max-w-content);
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-3);
  border: 1px solid rgba(245, 237, 224, 0.08);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.category-card:hover {
  border-color: rgba(212, 160, 74, 0.4);
  background: rgba(212, 160, 74, 0.04);
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-cream);
}

.category-card__count {
  font-size: var(--section-label-size);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 185, 166, 0.4);
}

/* Light mode overrides */
[data-theme="light"] .breadcrumbs { color: rgba(60, 50, 40, 0.5); }
[data-theme="light"] .breadcrumbs a { color: rgba(60, 50, 40, 0.6); }
[data-theme="light"] .category-intro p { color: var(--color-text); }
[data-theme="light"] .category-count { color: rgba(60, 50, 40, 0.5); }
[data-theme="light"] .category-card { border-color: rgba(60, 50, 40, 0.12); }
[data-theme="light"] .category-card:hover { border-color: var(--color-primary); background: rgba(91, 123, 79, 0.04); }
[data-theme="light"] .category-card__name { color: var(--color-text); }
[data-theme="light"] .category-card__count { color: rgba(60, 50, 40, 0.5); }
