/* ============================================
   WED&WELL — DESIGN SYSTEM
   style.css
   ============================================ */

/* ── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ── TOKENS ──────────────────────────────────── */
:root {
  --c-bg:         #FAF7F2;
  --c-bg-alt:     #FDF9F5;
  --c-white:      #FFFFFF;
  --c-border:     #E8DFD0;
  --c-border-alt: #F0E8DC;
  --c-gold:       #C4956A;
  --c-gold-light: #FDF6EE;
  --c-gold-mid:   #F2EDE5;
  --c-gold-border:#E8C99A;
  --c-dark:       #2C2420;
  --c-text:       #3A2E28;
  --c-muted:      #7A6A5A;
  --c-subtle:     #9A8A7A;
  --c-faint:      #B08A6E;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --sp-xs:  8px;
  --sp-sm:  12px;
  --sp-md:  20px;
  --sp-lg:  32px;
  --sp-xl:  48px;
  --sp-2xl: 64px;
  --max-w:      1200px;
  --content-w:  720px;
  --radius-sm:  5px;
  --radius-md:  8px;
  --radius-lg:  10px;
  --radius-xl:  12px;
  --shadow-sm: 0 1px 3px rgba(44,36,32,0.06);
  --shadow-md: 0 4px 12px rgba(44,36,32,0.08);
}

/* ── BASE ──────────────────────────────────── */
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-dark);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ──────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.25; color: var(--c-dark); }
h1 { font-size: clamp(22px, 4vw, 34px); }
h2 { font-size: clamp(17px, 3vw, 22px); }
h3 { font-size: 16px; font-family: var(--font-sans); }
h4 { font-size: 13px; font-family: var(--font-sans); letter-spacing: 0.04em; }
p { color: var(--c-text); line-height: 1.75; margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ──────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }

/* ── NAV ──────────────────────────────────── */
.site-nav {
  background: var(--c-bg);
  border-bottom: 0.5px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 58px;
  display: flex;
  align-items: center;
}
.site-nav .container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--c-dark); }
.nav-logo span { color: var(--c-gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13px; color: var(--c-muted); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--c-dark); }
.nav-hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 20px; height: 1.5px; background: var(--c-dark); border-radius: 2px; }
.nav-drawer { display: none; position: fixed; top: 58px; left: 0; right: 0; background: var(--c-bg); border-bottom: 0.5px solid var(--c-border); padding: var(--sp-md); z-index: 99; flex-direction: column; gap: var(--sp-sm); }
.nav-drawer.open { display: flex; }
.nav-drawer a { font-size: 15px; color: var(--c-muted); padding: var(--sp-xs) 0; border-bottom: 0.5px solid var(--c-border-alt); }
.nav-drawer a:last-child { border-bottom: none; }

/* ── BREADCRUMB ──────────────────────────────── */
.breadcrumb { padding: 10px 0; border-bottom: 0.5px solid var(--c-border); font-size: 12px; color: var(--c-subtle); display: flex; align-items: center; gap: 5px; }
.breadcrumb a { color: var(--c-gold); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── BUTTONS ──────────────────────────────────── */
.btn { display: inline-block; padding: 10px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: opacity 0.15s; text-align: center; }
.btn:hover { opacity: 0.88; }
.btn--primary { background: var(--c-gold); color: #fff; }
.btn--secondary { background: transparent; border: 0.5px solid var(--c-gold); color: var(--c-gold); }
.btn--dark { background: var(--c-dark); color: #fff; }
.btn--full { width: 100%; }

/* ── CARDS ──────────────────────────────────── */
.card { background: var(--c-white); border: 0.5px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-md); transition: border-color 0.15s; }
.card:hover { border-color: var(--c-border-alt); }
.card--featured { border-radius: var(--radius-lg); padding: var(--sp-lg); }

/* ── TAGS & BADGES ──────────────────────────── */
.tag { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-gold); display: block; margin-bottom: 6px; }
.badge { display: inline-block; font-size: 10px; padding: 2px 6px; background: var(--c-gold-mid); color: var(--c-faint); border-radius: 3px; border: 0.5px solid var(--c-border); margin-left: 4px; vertical-align: middle; }

/* ── SECTIONS ──────────────────────────────── */
.section { padding: var(--sp-xl) 0; }
.section--alt { background: var(--c-bg-alt); border-top: 0.5px solid var(--c-border); border-bottom: 0.5px solid var(--c-border); padding: var(--sp-xl) 0; }
.section-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-md); }
.section-title { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-dark); font-family: var(--font-sans); }
.section-link { font-size: 12px; color: var(--c-gold); }
.section-link:hover { text-decoration: underline; }
.divider { border: none; border-top: 0.5px solid var(--c-border); margin: var(--sp-xl) 0; }

/* ── TRUST BAR ──────────────────────────────── */
.trust-bar { background: var(--c-white); border-bottom: 0.5px solid var(--c-border); padding: 14px 0; }
.trust-bar .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-icon { width: 30px; height: 30px; background: var(--c-bg); border: 0.5px solid var(--c-border); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-label { font-size: 13px; font-weight: 500; color: var(--c-dark); display: block; }
.trust-sub { font-size: 11px; color: var(--c-subtle); line-height: 1.4; }

/* ── DIRECT ANSWER ──────────────────────────── */
.direct-answer { background: var(--c-gold-light); border: 0.5px solid var(--c-gold-border); border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 16px; }
.direct-answer__label { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-faint); margin-bottom: 8px; }
.direct-answer__text { font-size: 14px; color: var(--c-dark); line-height: 1.65; font-family: var(--font-serif); margin: 0; }

/* ── TAKEAWAYS ──────────────────────────────── */
.takeaways { background: var(--c-white); border: 0.5px solid var(--c-border); border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 16px; }
.takeaways__label { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-faint); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.takeaways__label::after { content: ''; flex: 1; height: 0.5px; background: var(--c-border); }
.takeaways__list { margin: 0; }
.takeaways__item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--c-dark); line-height: 1.55; margin-bottom: 10px; }
.takeaways__item:last-child { margin-bottom: 0; }
.takeaways__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold); flex-shrink: 0; margin-top: 5px; }

/* ── CONCLUSION ──────────────────────────────── */
.conclusion { background: var(--c-gold-light); border: 0.5px solid var(--c-gold-border); border-radius: var(--radius-md); padding: 20px 22px; margin-top: 28px; }
.conclusion__label { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-faint); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.conclusion__label::after { content: ''; flex: 1; height: 0.5px; background: var(--c-gold-border); }
.conclusion__text { font-size: 14px; color: var(--c-dark); line-height: 1.7; font-family: var(--font-serif); margin-bottom: 10px; }
.conclusion__next { font-size: 13px; color: var(--c-muted); line-height: 1.6; margin-bottom: 14px; }
.conclusion__links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── KEY FACTS ──────────────────────────────── */
.key-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.key-fact { background: var(--c-bg); border: 0.5px solid var(--c-border); border-radius: 7px; padding: 14px; }
.key-fact__label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-faint); margin-bottom: 4px; }
.key-fact__value { font-size: 14px; font-weight: 500; color: var(--c-dark); }

/* ── FAQ ──────────────────────────────────────── */
.faq { margin-top: 4px; }
.faq__item { border-bottom: 0.5px solid var(--c-border); padding: 14px 0; }
.faq__item:first-child { border-top: 0.5px solid var(--c-border); }
.faq__question { font-size: 14px; font-weight: 500; color: var(--c-dark); margin-bottom: 6px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; cursor: pointer; }
.faq__icon { color: var(--c-gold); font-size: 18px; flex-shrink: 0; line-height: 1; transition: transform 0.2s; }
.faq__item.open .faq__icon { transform: rotate(45deg); }
.faq__answer { font-size: 13px; color: var(--c-text); line-height: 1.65; display: none; padding-top: 4px; margin: 0; }
.faq__item.open .faq__answer { display: block; }

/* ── AFFILIATE NOTE ──────────────────────────── */
.affiliate-note { font-size: 11px; color: var(--c-subtle); background: var(--c-bg-alt); border-left: 2px solid var(--c-border); padding: 8px 12px; border-radius: 0 4px 4px 0; margin-bottom: 24px; line-height: 1.5; }

/* ── AD UNITS ──────────────────────────────────── */
.ad-unit { background: var(--c-bg-alt); border: 0.5px solid var(--c-border); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--c-faint); letter-spacing: 0.04em; text-transform: uppercase; }
.ad-unit--leaderboard { width: 100%; height: 90px; margin: 16px 0; }
.ad-unit--rectangle { width: 100%; height: 280px; margin-bottom: 16px; }
.ad-unit--mobile { width: 320px; height: 50px; margin: 10px auto; }

/* ── ARTICLE LAYOUT ──────────────────────────── */
.article-layout { display: grid; grid-template-columns: 1fr 260px; gap: 0; align-items: start; }
.article-main { padding: 36px 40px 48px 0; border-right: 0.5px solid var(--c-border); }
.article-sidebar { padding: 36px 0 36px 32px; position: sticky; top: 78px; }
.article-header { margin-bottom: 24px; }
.article-title { margin-bottom: 14px; }
.author-bar { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 0.5px solid var(--c-border); border-bottom: 0.5px solid var(--c-border); }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--c-border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: var(--c-muted); flex-shrink: 0; }
.author-name { font-size: 13px; font-weight: 500; color: var(--c-dark); display: block; }
.author-meta { font-size: 11px; color: var(--c-subtle); }
.author-sep { width: 0.5px; height: 28px; background: var(--c-border); margin: 0 4px; }
.article-update { font-size: 11px; color: var(--c-subtle); }
.article-body h2 { margin-top: 32px; padding-top: 28px; border-top: 0.5px solid var(--c-border); margin-bottom: 14px; }
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 { margin-top: 20px; margin-bottom: 10px; font-size: 15px; }

/* ── TOC ──────────────────────────────────────── */
.toc { background: var(--c-white); border: 0.5px solid var(--c-border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 16px; }
.toc__title { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-faint); margin-bottom: 12px; }
.toc__item { font-size: 12px; color: var(--c-muted); margin-bottom: 8px; display: flex; align-items: flex-start; gap: 6px; cursor: pointer; line-height: 1.4; }
.toc__item:hover { color: var(--c-gold); }
.toc__num { color: var(--c-gold); font-size: 11px; font-weight: 500; flex-shrink: 0; margin-top: 1px; }

/* ── SIDEBAR ──────────────────────────────────── */
.sidebar-box { background: var(--c-white); border: 0.5px solid var(--c-border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 16px; }
.sidebar-box__title { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-faint); margin-bottom: 12px; }
.sidebar-link { display: block; font-size: 12px; color: var(--c-dark); margin-bottom: 10px; line-height: 1.4; border-bottom: 0.5px solid var(--c-border-alt); padding-bottom: 10px; }
.sidebar-link:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.sidebar-link:hover { color: var(--c-gold); }
.sidebar-tag { font-size: 10px; color: var(--c-gold); margin-bottom: 2px; display: block; }

/* ── RELATED ARTICLES ──────────────────────── */
.related-articles { padding: var(--sp-xl) 0; background: var(--c-bg-alt); border-top: 0.5px solid var(--c-border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.related-card { background: var(--c-white); border: 0.5px solid var(--c-border); border-radius: var(--radius-md); padding: 16px; }
.related-card:hover { border-color: var(--c-border-alt); }
.related-card__title { font-size: 13px; font-weight: 500; color: var(--c-dark); line-height: 1.4; margin-bottom: 6px; font-family: var(--font-sans); }
.related-card__meta { font-size: 11px; color: var(--c-subtle); }

/* ── FOOTER ──────────────────────────────────── */
.site-footer { background: var(--c-dark); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-logo-text { font-size: 17px; font-weight: 500; color: var(--c-bg); font-family: var(--font-serif); }
.footer-logo-text span { color: var(--c-gold); }
.footer-tagline { font-size: 12px; color: #7A6A5A; line-height: 1.6; }
.footer-col-title { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #6A5A50; margin-bottom: 12px; }
.footer-link { display: block; font-size: 12px; color: #7A6A5A; margin-bottom: 8px; transition: color 0.15s; }
.footer-link:hover { color: var(--c-bg); }
.footer-bottom { border-top: 0.5px solid #3E2E28; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-legal { font-size: 11px; color: #6A5A50; }

/* ── READING PROGRESS ──────────────────────── */
.reading-progress { height: 2px; background: var(--c-border); position: sticky; top: 58px; z-index: 99; }
.reading-progress__fill { height: 2px; background: var(--c-gold); width: 0%; transition: width 0.1s linear; }

/* ── CATEGORY HERO ──────────────────────────── */
.cat-hero { padding: var(--sp-xl) 0; border-bottom: 0.5px solid var(--c-border); }
.cat-hero__eyebrow { font-size: 11px; letter-spacing: 0.1em; color: var(--c-gold); text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.cat-hero__eyebrow::before { content: ''; width: 20px; height: 0.5px; background: var(--c-gold); }
.cat-hero__title { margin-bottom: 12px; }
.cat-hero__desc { font-size: 14px; color: var(--c-muted); line-height: 1.7; max-width: 540px; margin-bottom: 20px; }
.cat-stats { display: flex; gap: 32px; }
.cat-stat__num { font-size: 22px; font-weight: 500; color: var(--c-gold); font-family: var(--font-serif); display: block; }
.cat-stat__label { font-size: 11px; color: var(--c-subtle); margin-top: 2px; }

/* ── CATEGORY & ARTICLE CARDS ──────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cat-card { background: var(--c-white); border: 0.5px solid var(--c-border); border-radius: var(--radius-md); padding: 18px 12px; text-align: center; transition: border-color 0.15s; cursor: pointer; }
.cat-card:hover { border-color: var(--c-gold); }
.cat-card__icon { margin: 0 auto 10px; display: block; }
.cat-card__name { font-size: 13px; font-weight: 500; color: var(--c-dark); margin-bottom: 3px; font-family: var(--font-sans); }
.cat-card__count { font-size: 11px; color: var(--c-subtle); }
.article-card { background: var(--c-white); border: 0.5px solid var(--c-border); border-radius: var(--radius-md); padding: 14px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; transition: border-color 0.15s; }
.article-card:hover { border-color: var(--c-border-alt); }
.article-card__title { font-size: 13px; font-weight: 500; color: var(--c-dark); line-height: 1.4; margin-bottom: 4px; font-family: var(--font-sans); }
.article-card__meta { font-size: 11px; color: var(--c-subtle); }
.article-card__vol { font-size: 11px; color: var(--c-faint); white-space: nowrap; }

/* ── HERO ──────────────────────────────────── */
.hero { padding: var(--sp-2xl) 0; border-bottom: 0.5px solid var(--c-border); }
.hero__inner { display: grid; grid-template-columns: 1fr 320px; gap: 52px; align-items: center; }
.hero__eyebrow { font-size: 11px; letter-spacing: 0.1em; color: var(--c-gold); text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.hero__eyebrow::before { content: ''; width: 20px; height: 0.5px; background: var(--c-gold); }
.hero__title { margin-bottom: 16px; }
.hero__sub { font-size: 15px; color: var(--c-muted); line-height: 1.7; margin-bottom: 28px; max-width: 420px; }
.hero__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-trust { background: var(--c-white); border: 0.5px solid var(--c-border); border-radius: var(--radius-lg); padding: 24px; }
.hero-trust__title { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-faint); margin-bottom: 16px; }
.hero-trust__item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.hero-trust__item:last-child { margin-bottom: 0; }
.hero-trust__icon { width: 30px; height: 30px; background: var(--c-bg); border: 0.5px solid var(--c-border); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-trust__label { font-size: 13px; font-weight: 500; color: var(--c-dark); display: block; margin-bottom: 2px; }
.hero-trust__sub { font-size: 11px; color: var(--c-subtle); line-height: 1.4; }

/* ── EEAT BOX ──────────────────────────────── */
.eeat-box { background: var(--c-white); border: 0.5px solid var(--c-border); border-radius: var(--radius-lg); padding: 22px; }
.eeat-box__logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.eeat-box__name { font-size: 15px; font-weight: 500; color: var(--c-dark); font-family: var(--font-serif); }
.eeat-box__name span { color: var(--c-gold); }
.eeat-box__body { font-size: 12px; color: var(--c-muted); line-height: 1.6; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 0.5px solid var(--c-border); }
.eeat-box__link { display: block; font-size: 12px; color: var(--c-gold); margin-bottom: 8px; }
.eeat-box__link:last-child { margin-bottom: 0; }
.eeat-box__link:hover { text-decoration: underline; }

/* ── UTILITIES ──────────────────────────────── */
.text-gold { color: var(--c-gold); }
.text-muted { color: var(--c-muted); }
.text-subtle { color: var(--c-subtle); }
.text-serif { font-family: var(--font-serif); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__sub { max-width: 100%; }
  .hero__btns .btn { flex: 1; }
  .trust-bar .container { grid-template-columns: 1fr; gap: var(--sp-sm); }
  .article-layout { grid-template-columns: 1fr; }
  .article-main { padding: 24px 0 36px; border-right: none; }
  .article-sidebar { padding: 0 0 36px; position: static; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .key-facts { grid-template-columns: 1fr 1fr; }
  .ad-unit--leaderboard { height: 50px; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-stats { flex-direction: column; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .key-facts { grid-template-columns: 1fr; }
}
