/**
 * ════════════════════════════════════════════════════════════════
 * QOBEY THEME — MAIN STYLESHEET
 * Loaded on every page via wp_enqueue_style in functions.php
 * ════════════════════════════════════════════════════════════════
 *
 * To change brand colours globally → edit the :root variables below
 * Everything else flows from these tokens.
 */

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

:root {
  /* Brand palette */
  --ivory: #FDFAF6;
  --cream: #F5F0E8;
  --warm-white: #FAF8F5;
  --charcoal: #1A1A18;
  --charcoal-mid: #3A3A36;
  --muted: #7A7A72;
  --rose: #C4896E;
  --rose-light: #EFE0D6;
  --rose-dark: #9B6248;
  --sage: #8B9E87;
  --sage-light: #E4EDE3;
  --gold: #B8935A;
  --gold-light: #F0E4CC;
  --border: #E8E2D8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%);
  clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
  position: fixed !important;
  left: 6px; top: 7px; width: auto; height: auto;
  background: var(--charcoal); color: var(--ivory);
  padding: 8px 16px; z-index: 100000; clip: auto; clip-path: none;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
nav.qb-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(253, 250, 246, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.qb-logo {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 300;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none;
}
.qb-logo span { color: var(--rose); }
.qb-nav-links { display: flex; gap: 2.5rem; list-style: none; }
.qb-nav-links a, .qb-nav-links li a {
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--charcoal-mid);
  transition: color 0.2s; text-decoration: none;
}
.qb-nav-links a:hover, .qb-nav-links li a:hover { color: var(--rose); }
.qb-ham {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.qb-ham span { display: block; width: 24px; height: 1.5px; background: var(--charcoal); }
.qb-nav-cta {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ivory); background: var(--charcoal);
  padding: 10px 22px; border-radius: 2px; text-decoration: none;
  transition: background 0.2s;
}
.qb-nav-cta:hover { background: var(--rose-dark); }
.qb-mm {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--ivory); border-bottom: 1px solid var(--border);
  padding: 2rem 5%; flex-direction: column; gap: 1.5rem; z-index: 9998;
}
.qb-mm.open { display: flex; }
.qb-mm a, .qb-mm li a {
  font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--charcoal-mid); text-decoration: none;
}
.qb-mm li { list-style: none; }

/* ═══════════════════════════════════════════════════════════════════
   HERO (Homepage)
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; padding-top: 68px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8% 6% 8% 8%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 2rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--rose); }
.hero-headline {
  font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--charcoal); margin-bottom: 1.8rem;
}
.hero-headline em { font-style: italic; color: var(--rose); }
.hero-sub {
  font-size: 1rem; font-weight: 300; color: var(--muted);
  max-width: 420px; line-height: 1.8; margin-bottom: 3rem;
}
.hero-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.btn-primary {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ivory); background: var(--charcoal);
  padding: 16px 36px; border-radius: 2px; text-decoration: none;
  transition: background 0.25s; display: inline-block;
}
.btn-primary:hover { background: var(--rose-dark); }
.btn-ghost {
  font-size: 0.8rem; font-weight: 400; color: var(--charcoal-mid);
  text-decoration: none; border-bottom: 1px solid var(--border);
  padding-bottom: 2px; transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { color: var(--rose); border-color: var(--rose); }
.hero-visual {
  background: var(--cream); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual-inner {
  width: 100%; height: 100%; padding: 5%; gap: 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.skincare-display {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; max-width: 340px; width: 100%;
}
.product-card-deco {
  background: var(--ivory); border: 1px solid var(--border); border-radius: 4px;
  padding: 24px 16px; display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.product-card-deco.tall { grid-row: span 2; padding: 36px 16px; justify-content: space-between; }
.product-bottle {
  width: 48px; height: 80px; border-radius: 24px 24px 8px 8px;
  background: linear-gradient(160deg, var(--rose-light), var(--rose));
  position: relative;
}
.product-bottle::before {
  content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 12px; background: var(--charcoal-mid); border-radius: 4px 4px 0 0;
}
.product-bottle.sage { background: linear-gradient(160deg, var(--sage-light), var(--sage)); }
.product-bottle.gold { background: linear-gradient(160deg, var(--gold-light), var(--gold)); }
.product-bottle.slim {
  width: 36px; height: 100px; border-radius: 18px 18px 6px 6px;
  background: linear-gradient(160deg, var(--cream), var(--charcoal-mid));
}
.product-label { font-family: var(--serif); font-size: 0.75rem; color: var(--muted); text-align: center; }
.product-tag {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--rose); background: var(--rose-light);
  padding: 3px 8px; border-radius: 2px;
}
.hero-badge {
  display: flex; align-items: center; gap: 12px;
  background: var(--ivory); border: 1px solid var(--border);
  padding: 14px 20px; border-radius: 4px; max-width: 340px; width: 100%;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
.badge-text { font-size: 0.82rem; color: var(--charcoal-mid); font-weight: 300; }
.badge-text strong { font-weight: 500; color: var(--charcoal); }

/* ═══════════════════════════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════════════════════════ */
.trust-bar {
  background: var(--charcoal); padding: 20px 8%;
  display: flex; align-items: center; gap: 4rem; overflow-x: auto;
}
.trust-label {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap; flex-shrink: 0;
}
.trust-divider { width: 1px; height: 24px; background: #333; flex-shrink: 0; }
.trust-logos { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.trust-logo-item {
  font-family: var(--serif); font-size: 0.9rem; font-weight: 300;
  letter-spacing: 0.12em; color: #888; white-space: nowrap; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════════════ */
.stats-strip {
  background: var(--warm-white); border-bottom: 1px solid var(--border);
  padding: 40px 8%; display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item { padding: 0 5%; text-align: center; }
.stat-item:not(:last-child) { border-right: 1px solid var(--border); }
.stat-number {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 300;
  color: var(--charcoal); letter-spacing: -0.02em; display: block;
}
.stat-label {
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.06em;
  color: var(--muted); margin-top: 4px; display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 1rem;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; display: block; width: 24px; height: 1px; background: var(--rose);
}
.section-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300; line-height: 1.2; color: var(--charcoal);
}
.section-title em { font-style: italic; color: var(--rose); }
.section-desc {
  font-size: 0.95rem; color: var(--muted); font-weight: 300;
  max-width: 560px; margin: 1rem auto 0; line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURED GUIDES
   ═══════════════════════════════════════════════════════════════════ */
.guides-section { padding: 100px 8%; background: var(--ivory); }
.guides-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2px; }
.guide-card {
  background: var(--warm-white); border: 1px solid var(--border);
  padding: 3rem 2.5rem; display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.25s; position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
}
.guide-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--rose); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.guide-card:hover::before { transform: scaleX(1); }
.guide-card:hover { border-color: var(--rose-light); }
.guide-card.featured {
  background: var(--charcoal); border-color: var(--charcoal);
  grid-row: span 2; justify-content: flex-end; min-height: 520px;
}
.guide-category {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rose);
}
.guide-card.featured .guide-category { color: var(--rose-light); }
.guide-title {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 400;
  line-height: 1.3; color: var(--charcoal);
}
.guide-card.featured .guide-title { font-size: 1.8rem; color: var(--ivory); }
.guide-excerpt { font-size: 0.85rem; color: var(--muted); font-weight: 300; line-height: 1.7; }
.guide-card.featured .guide-excerpt { color: #AAA8A0; }
.guide-meta {
  display: flex; align-items: center; gap: 12px; font-size: 0.75rem;
  color: var(--muted); margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.guide-card.featured .guide-meta { border-color: #333; color: #888; }
.guide-tag {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--rose-light);
  color: var(--rose-dark); padding: 3px 8px; border-radius: 2px;
}
.guide-card.featured .guide-tag { background: #2A2A26; color: var(--rose-light); }
.deco-number {
  font-family: var(--serif); font-size: 8rem; font-weight: 300;
  color: rgba(255, 255, 255, 0.04); position: absolute; top: 1rem; right: 1.5rem;
  line-height: 1; user-select: none;
}

/* ═══════════════════════════════════════════════════════════════════
   INGREDIENTS
   ═══════════════════════════════════════════════════════════════════ */
.ingredients-section { padding: 100px 8%; background: var(--cream); }
.ingredients-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.ingredient-list { display: flex; flex-direction: column; }
.ingredient-item {
  padding: 2rem 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 2rem; align-items: flex-start;
  text-decoration: none; color: inherit;
}
.ingredient-item:first-child { border-top: 1px solid var(--border); }
.ingredient-number {
  font-family: var(--serif); font-size: 0.8rem; font-weight: 300;
  color: var(--muted); padding-top: 4px; min-width: 24px;
}
.ingredient-info { flex: 1; }
.ingredient-name {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 400;
  color: var(--charcoal); margin-bottom: 4px;
}
.ingredient-desc { font-size: 0.83rem; color: var(--muted); font-weight: 300; line-height: 1.6; }
.ingredient-arrow {
  color: var(--border); font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s; padding-top: 2px;
}
.ingredient-item:hover .ingredient-arrow { color: var(--rose); transform: translateX(4px); }
.ingredient-visual {
  background: var(--ivory); border: 1px solid var(--border); border-radius: 4px;
  padding: 3rem; display: flex; flex-direction: column; gap: 1.5rem;
}
.ingredient-visual-title {
  font-family: var(--serif); font-size: 0.8rem; font-weight: 300;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.skin-concern-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.concern-chip {
  background: var(--cream); border: 1px solid var(--border); border-radius: 4px;
  padding: 14px 16px; font-size: 0.82rem; font-weight: 400;
  color: var(--charcoal-mid); display: flex; align-items: center; gap: 8px;
  text-decoration: none; transition: border-color 0.2s, background 0.2s;
}
.concern-chip:hover { border-color: var(--rose); background: var(--rose-light); }
.concern-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); flex-shrink: 0; }
.concern-dot.sage { background: var(--sage); }
.concern-dot.gold { background: var(--gold); }
.quiz-prompt {
  background: var(--charcoal); padding: 2rem; border-radius: 4px;
  display: flex; flex-direction: column; gap: 1rem;
}
.quiz-prompt-title {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 300;
  color: var(--ivory); line-height: 1.3;
}
.quiz-prompt-sub { font-size: 0.8rem; color: #888; font-weight: 300; }
.quiz-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--charcoal); background: var(--ivory);
  padding: 12px 20px; border-radius: 2px; text-decoration: none;
  align-self: flex-start; transition: background 0.2s;
}
.quiz-btn:hover { background: var(--rose-light); }

/* ═══════════════════════════════════════════════════════════════════
   EDITORIAL/ABOUT
   ═══════════════════════════════════════════════════════════════════ */
.editorial-section {
  padding: 100px 8%; background: var(--ivory);
  display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center;
}
.editorial-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-light); color: #4A6647;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 8px 14px; border-radius: 2px; margin-bottom: 1.5rem;
}
.editorial-headline {
  font-family: var(--serif); font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  font-weight: 300; line-height: 1.2; color: var(--charcoal); margin-bottom: 1.5rem;
}
.editorial-headline em { font-style: italic; color: var(--rose); }
.editorial-body { font-size: 0.95rem; color: var(--muted); font-weight: 300; line-height: 1.9; margin-bottom: 2rem; }
.team-faces { display: flex; align-items: center; gap: 16px; margin-bottom: 2rem; }
.face-stack { display: flex; }
.face-avatar {
  width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--ivory);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 0.85rem; color: var(--ivory);
  margin-left: -10px; flex-shrink: 0;
}
.face-avatar:first-child { margin-left: 0; }
.fa-rose { background: var(--rose); }
.fa-sage { background: var(--sage); }
.fa-gold { background: var(--gold); }
.fa-charcoal { background: var(--charcoal-mid); }
.team-text { font-size: 0.82rem; color: var(--muted); font-weight: 300; }
.team-text strong { font-weight: 500; color: var(--charcoal); }
.editorial-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ev-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: 4px;
  padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 0.8rem;
}
.ev-card.tall { grid-row: span 2; padding: 2.5rem 1.5rem; justify-content: flex-end; }
.ev-icon {
  font-size: 1.2rem; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--rose-light); border-radius: 4px; color: var(--rose-dark);
}
.ev-title { font-family: var(--serif); font-size: 1rem; font-weight: 400; color: var(--charcoal); }
.ev-desc { font-size: 0.78rem; color: var(--muted); font-weight: 300; line-height: 1.6; }
.ev-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 300; color: var(--charcoal); }

/* ═══════════════════════════════════════════════════════════════════
   LATEST READS / ARCHIVE GRID
   ═══════════════════════════════════════════════════════════════════ */
.reads-section, .qobey-archive { padding: 100px 8%; background: var(--warm-white); }
.qobey-archive { padding-top: 130px; }
.archive-header { text-align: center; margin-bottom: 3rem; }
.archive-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; color: var(--charcoal); }
.reads-grid, .archive-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-top: 4rem;
}
.read-card, .archive-card-link {
  display: flex; flex-direction: column; gap: 1rem;
  text-decoration: none; color: inherit;
}
.read-card-img, .archive-card-img {
  aspect-ratio: 16/10; border-radius: 4px; overflow: hidden;
  background: var(--cream); border: 1px solid var(--border);
  transition: border-color 0.25s;
}
.read-card-img img, .archive-card-img img { width: 100%; height: 100%; object-fit: cover; }
.read-card:hover .read-card-img, .archive-card-link:hover .archive-card-img { border-color: var(--rose-light); }
.read-card-img-inner {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 12px; opacity: 0.5;
}
.img-deco-line { width: 40px; height: 1px; background: var(--muted); }
.img-deco-text {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 300;
  color: var(--muted); letter-spacing: 0.12em;
}
.read-category, .archive-card-category {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rose);
}
.read-title, .archive-card-title {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 400;
  line-height: 1.35; color: var(--charcoal); transition: color 0.2s;
}
.read-card:hover .read-title, .archive-card-link:hover .archive-card-title { color: var(--rose-dark); }
.read-meta, .archive-card-meta {
  display: flex; align-items: center; gap: 8px; font-size: 0.75rem;
  color: var(--muted); font-weight: 300; margin-top: auto;
}
.meta-dot, .read-meta-dot { color: var(--border); }
.archive-card-excerpt { font-size: 0.85rem; color: var(--muted); font-weight: 300; line-height: 1.7; }
.view-all-wrap { text-align: center; margin-top: 4rem; }
.view-all {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--charcoal);
  border: 1px solid var(--charcoal); padding: 14px 36px; border-radius: 2px;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.view-all:hover { background: var(--charcoal); color: var(--ivory); }

/* ═══════════════════════════════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════════════════════════════ */
.newsletter-section {
  background: var(--charcoal); padding: 100px 8%;
  position: relative; overflow: hidden; text-align: center;
}
.newsletter-section::before {
  content: 'QOBEY'; position: absolute;
  font-family: var(--serif); font-size: 18vw; font-weight: 300;
  letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.03);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  white-space: nowrap; user-select: none; pointer-events: none;
}
.newsletter-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 1.5rem;
}
.newsletter-eyebrow::before, .newsletter-eyebrow::after {
  content: ''; display: block; width: 24px; height: 1px; background: var(--rose);
}
.newsletter-title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300; color: var(--ivory); line-height: 1.15;
  margin-bottom: 1rem; position: relative;
}
.newsletter-title em { font-style: italic; color: var(--rose); }
.newsletter-sub {
  font-size: 0.9rem; color: #888; font-weight: 300;
  max-width: 480px; margin: 0 auto 3rem; line-height: 1.8; position: relative;
}
.newsletter-form { display: flex; max-width: 500px; margin: 0 auto 1.5rem; position: relative; }
.newsletter-input {
  flex: 1; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12); border-right: none;
  color: var(--ivory); font-family: var(--sans);
  font-size: 0.85rem; font-weight: 300; padding: 16px 22px;
  outline: none; border-radius: 0;
}
.newsletter-input::placeholder { color: #555; }
.newsletter-input:focus { border-color: rgba(196, 137, 110, 0.5); }
.newsletter-submit {
  background: var(--rose); color: var(--ivory); border: none;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 28px; cursor: pointer; border-radius: 0;
  transition: background 0.2s;
}
.newsletter-submit:hover { background: var(--rose-dark); }
.newsletter-note { font-size: 0.72rem; color: #555; position: relative; }
.newsletter-perks {
  display: flex; justify-content: center; gap: 2.5rem;
  margin-top: 3rem; flex-wrap: wrap; position: relative;
}
.newsletter-perk {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: #666; font-weight: 300;
}
.perk-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
footer.qb-footer { background: #111110; padding: 80px 8% 40px; color: #666; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px; border-bottom: 1px solid #1E1E1B;
}
.footer-brand-name {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase; color: #DDD; margin-bottom: 1rem;
  display: inline-block; text-decoration: none;
}
.footer-brand-name span { color: var(--rose); }
.footer-brand-desc {
  font-size: 0.82rem; font-weight: 300; color: #555;
  line-height: 1.8; max-width: 280px; margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px; border: 1px solid #222; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em;
  color: #555; text-decoration: none; text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--rose); color: var(--rose); }
.footer-col-title {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: #DDD; margin-bottom: 1.5rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; padding: 0; margin: 0; }
.footer-links a, .footer-links li a {
  font-size: 0.82rem; font-weight: 300; color: #555;
  text-decoration: none; transition: color 0.2s; line-height: 1.4;
}
.footer-links a:hover, .footer-links li a:hover { color: var(--rose); }
.footer-bottom {
  padding-top: 30px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.75rem; font-weight: 300; color: #333; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a, .footer-legal li a {
  font-size: 0.72rem; color: #333; text-decoration: none; transition: color 0.2s;
}
.footer-legal a:hover, .footer-legal li a:hover { color: #666; }
.uk-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; color: #333; border: 1px solid #1E1E1B;
  padding: 6px 12px; border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   AFFILIATE DISCLOSURE
   ═══════════════════════════════════════════════════════════════════ */
.aff-disclosure {
  background: var(--sage-light); border-left: 3px solid var(--sage);
  padding: 0.85rem 1.2rem; margin-bottom: 2rem;
  font-size: 0.82rem; color: #4A6647; border-radius: 0 2px 2px 0;
}
.aff-disclosure strong { color: #2E4129; }
.aff-disclosure a { color: #2E4129; }

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE PAGES
   ═══════════════════════════════════════════════════════════════════ */
.article-hero {
  padding: 130px 8% 60px; background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.article-hero-inner { max-width: 860px; margin: 0 auto; }
.article-breadcrumb {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2rem;
}
.article-breadcrumb a { color: var(--muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--rose); }
.article-breadcrumb span { margin: 0 8px; color: var(--border); }
.article-category {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 1.5rem;
}
.article-category::before { content: ''; display: block; width: 24px; height: 1px; background: var(--rose); }
.article-hero h1 {
  font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 300; line-height: 1.15; color: var(--charcoal);
  margin-bottom: 1.5rem; letter-spacing: -0.01em;
}
.article-hero h1 em { font-style: italic; color: var(--rose); }
.article-lede {
  font-size: 1.1rem; font-weight: 300; color: var(--charcoal-mid);
  line-height: 1.75; max-width: 720px; margin-bottom: 2rem;
}
.article-byline {
  display: flex; align-items: center; gap: 16px;
  padding: 1.5rem 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem; color: var(--muted); flex-wrap: wrap;
}
.byline-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--rose);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 0.9rem; color: var(--ivory);
}
.byline-avatar.gold { background: var(--gold); }
.byline-avatar.sage { background: var(--sage); }
.byline-main { display: flex; flex-direction: column; gap: 2px; }
.byline-name { color: var(--charcoal); font-weight: 500; font-size: 0.88rem; }
.byline-role { font-size: 0.76rem; color: var(--muted); }
.byline-meta { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.78rem; }
.byline-meta span strong { color: var(--charcoal); font-weight: 500; }
.article-feature-img {
  aspect-ratio: 16/9; max-width: 1000px; margin: 2rem auto 0;
  border-radius: 4px; overflow: hidden; border: 1px solid var(--border);
  background: var(--cream);
}
.article-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 60px 8%; background: var(--ivory); }
.article-body-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 220px 1fr; gap: 60px; align-items: start;
}
.article-content { max-width: 720px; }
.article-content h2 {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 400; color: var(--charcoal);
  margin: 3rem 0 1.2rem; line-height: 1.25; scroll-margin-top: 90px;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  color: var(--charcoal); margin: 2rem 0 0.75rem;
}
.article-content p {
  font-size: 1.02rem; color: var(--charcoal-mid);
  margin-bottom: 1.3rem; font-weight: 300; line-height: 1.85;
}
.article-content p.lede { font-size: 1.15rem; color: var(--charcoal); font-weight: 300; }
.article-content strong { color: var(--charcoal); font-weight: 500; }
.article-content em { font-style: italic; }
.article-content a { color: var(--rose-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--rose); }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-content li { font-size: 1rem; color: var(--charcoal-mid); margin-bottom: 0.6rem; font-weight: 300; line-height: 1.75; }
.article-content blockquote {
  border-left: 3px solid var(--rose); padding: 1rem 1.8rem;
  background: var(--cream); margin: 2rem 0;
  font-family: var(--serif); font-size: 1.25rem; font-style: italic;
  color: var(--charcoal); font-weight: 400; line-height: 1.5;
  border-radius: 0 4px 4px 0;
}

/* ═══════════════════════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════════════════════ */
.qobey-404 {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  padding: 130px 8% 80px;
}
.error-container { max-width: 540px; text-align: center; }
.error-eyebrow {
  font-family: var(--serif); font-size: 8rem; font-weight: 300;
  color: var(--rose-light); line-height: 1; margin-bottom: 1rem;
}
.error-title { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 300; color: var(--charcoal); margin-bottom: 1rem; }
.error-title em { font-style: italic; color: var(--rose); }
.error-desc { color: var(--muted); font-weight: 300; margin-bottom: 2rem; font-size: 1rem; }
.error-actions {
  display: flex; gap: 1.5rem; justify-content: center;
  margin-bottom: 3rem; flex-wrap: wrap; align-items: center;
}
.error-search { padding-top: 2rem; border-top: 1px solid var(--border); }
.error-search p { color: var(--muted); margin-bottom: 1rem; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════════
   SEARCH FORM
   ═══════════════════════════════════════════════════════════════════ */
.qobey-search-form {
  display: flex; max-width: 480px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: 2px; overflow: hidden;
}
.qobey-search-input {
  flex: 1; border: none; outline: none;
  padding: 14px 18px; font-family: var(--sans); font-size: 0.9rem;
  background: var(--ivory);
}
.qobey-search-submit {
  background: var(--charcoal); color: var(--ivory); border: none;
  padding: 0 24px; font-family: var(--sans); font-size: 0.78rem;
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.qobey-search-submit:hover { background: var(--rose-dark); }

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text > * { animation: fadeUp 0.7s ease both; }
.hero-eyebrow { animation-delay: 0.1s; }
.hero-headline { animation-delay: 0.22s; }
.hero-sub { animation-delay: 0.34s; }
.hero-actions { animation-delay: 0.46s; }
.hero-visual { animation: fadeUp 0.9s 0.2s ease both; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .article-body-inner { grid-template-columns: 1fr; gap: 30px; }
  .guides-grid { grid-template-columns: 1fr 1fr; }
  .guide-card.featured { grid-column: span 2; grid-row: auto; min-height: 380px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .qb-nav-links, .qb-nav-cta { display: none; }
  .qb-ham { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 380px; }
  .guides-grid { grid-template-columns: 1fr; }
  .guide-card.featured { grid-column: auto; }
  .ingredients-layout, .editorial-section { grid-template-columns: 1fr; gap: 50px; }
  .editorial-visual { display: none; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 6%; }
  .stat-item { border-right: none !important; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border) !important; }
  .reads-grid, .archive-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .trust-bar { gap: 2rem; padding: 16px 5%; }
  .hero-text { padding: 12% 6% 8% 6%; }
  .guides-section, .ingredients-section, .editorial-section, .reads-section, .qobey-archive { padding: 70px 6%; }
  .newsletter-section { padding: 70px 6%; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { border-right: 1px solid rgba(255, 255, 255, 0.12); border-bottom: none; }
  .newsletter-submit { padding: 14px; }
  .article-hero { padding: 100px 6% 40px; }
  .article-body { padding: 50px 6%; }
}
