/* =========================================================
   v5: typography system + accent colour system
   Fonts: Bodoni Moda (logo/hero/product names/section headings, Regular)
          Inter (nav & body Regular; buttons, prices & small uppercase labels Medium)
   Accent: chosen in config/site.js (`accent`), rendered as <html data-accent="…">.
   Each accent has three tones:
     --accent        the exact brand colour (rules, icons, meters, stars, large accents)
     --accent-text   same hue, deep enough for small text on ivory (WCAG AA ≥ 4.5:1)
     --accent-light  same hue, light enough for text on the dark sections
   ========================================================= */
:root,
html[data-accent="taupe"]    { --accent: #8C8175; --accent-text: #6E655B; --accent-light: #B9AFA4; --accent-wash: #F1EDE7; }
html[data-accent="espresso"] { --accent: #704B3A; --accent-text: #704B3A; --accent-light: #C9A08C; --accent-wash: #F3ECE7; }
html[data-accent="burgundy"] { --accent: #713F49; --accent-text: #713F49; --accent-light: #CC96A0; --accent-wash: #F4ECEE; }
html[data-accent="sage"]     { --accent: #777866; --accent-text: #5D5E4D; --accent-light: #B6B7A3; --accent-wash: #EFF0EA; }
html[data-accent="pewter"]   { --accent: #77736E; --accent-text: #5E5A55; --accent-light: #B5B1AB; --accent-wash: #EFEEEC; }

/* Route the old gold tokens through the accent system (covers every var(--gold) / var(--gold-2) use). */
:root, html[data-accent] { --gold: var(--accent); --gold-2: var(--accent-light); }

/* ---------- small text on light backgrounds uses the legible tone ---------- */
.eyebrow, .label, .card-meta, .mega-col h4, .pyramid-label, .note-card .tier, .look .cap span,
.order-meta small, .updated, .mnav-sub h5, .upsell h5, .crumbs li + li::before, .value .num,
.trust-item .icon, .pi-assure .icon, .service-list .icon, .pi-delivery .icon, .contact-card .icon { color: var(--accent-text); }
.link-arrow { border-bottom-color: var(--accent); }
.link-arrow:hover, .mega-col a:hover, .crumbs a:hover, .icon-btn:hover { color: var(--accent-text); }
.badge-count { background: var(--accent-text); }
.stars { color: var(--accent); }
.progress span, .dist-bar span, .carousel-bar span, .quiz-progress span, .hero-dot span { background: var(--accent); }
.timeline div.done::before, .timeline div.done::after { background: var(--accent); border-color: var(--accent); }
.summary-line .thumb b { background: var(--accent-text); }
.ornament { color: var(--accent); }

/* dark sections & hero: light tone */
.bg-dark .eyebrow, .bg-dark .label, .bg-dark .stars, .bg-dark .offer-step b, .hero .eyebrow,
.footer h4, .glance-item small, .bg-dark .look .cap span, .bg-dark .ornament { color: var(--accent-light); }
.meter-bar span.on { background: var(--accent-light); }
.bg-dark .link-arrow { border-color: var(--accent-light); }
.bg-dark .link-arrow:hover { color: var(--accent-light); }
.hero-title em { color: var(--accent-light); }
.socials a:hover { background: var(--accent); border-color: var(--accent); }

/* replace remaining warm-gold tints with neutral accent washes */
.bundle-nudge { background: var(--accent-wash); border-color: var(--accent); color: var(--ink-2); }
.bundle-inline { color: var(--accent-text); }
.pi-delivery { background: var(--accent-wash); border-color: var(--accent); }
.review.is-new { background: var(--accent-wash); }
.quiz-opt:hover { border-color: var(--accent); background: var(--accent-wash); }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.input:focus, .textarea:focus, .field select:focus { border-color: var(--accent-text); }
.step-num { border-color: var(--accent); color: var(--accent-text); }
.avatar { border-color: var(--accent); color: var(--accent-text); }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--accent); }
.confirm-check { border-color: var(--accent); color: var(--accent-text); }
.nav-link::after { background: var(--accent); }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { border-color: var(--accent); }
.gallery-dots span.is-active { background: var(--accent); }

/* ---------- typography rules ---------- */
/* Navigation: Inter Regular. Buttons, prices, small labels: Inter Medium. */
.nav-link, .icon-label, .filter-tabs a, .mnav-foot { font-weight: 400; }
.btn, .card-add, .price, .pi-price .price, .eyebrow, .label, .card-meta, .tag { font-weight: 500; }
.tag { font-weight: 500; }

/* Large headings: Bodoni Moda Regular with generous spacing. */
h1, h2, .hero-title, .pi h1 { font-weight: 400; }
h1, h2 { line-height: 1.16; letter-spacing: .005em; }
.section-head h2 { margin-bottom: 18px; }
.section-head { margin-bottom: clamp(44px, 5.5vw, 76px); }
.hero-title { line-height: 1.02; letter-spacing: .04em; margin-bottom: 26px; }
.hero-sub { line-height: 1.6; margin-bottom: 38px; }
.pi h1 { line-height: 1; letter-spacing: .04em; margin-bottom: 14px; }
.split-body h2, .pair-item h3 { margin-bottom: 16px; }

/* Uppercase labels: slightly increased letter-spacing. */
.eyebrow, .label { letter-spacing: .28em; }
.card-meta { letter-spacing: .26em; }
.nav-link { letter-spacing: .24em; }
.btn { letter-spacing: .24em; }

/* Smaller serif text uses Bodoni's optical sizing (sturdier strokes, never hairline-thin). */
.card-title, .mega-col a, .faq-item summary, .accordion summary, .cart-line h4, .summary-line strong,
.search-result strong, .upsell-item strong, .family-card strong, .look .cap strong, .trust-item strong,
.contact-card strong, .review h4, .note-card h3, .ritual-step h3, .value h3, .glance-item .val,
.lead-serif, .card-tagline, .pdp-tagline, .pyramid-notes, .note-card .when, .family-card small, .pair-item p, .look .cap p {
  font-optical-sizing: auto; font-variation-settings: normal;
}

/* Mobile: no overly thin or tiny text. */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .eyebrow, .label { font-size: .7rem; letter-spacing: .22em; }
  .card-meta { font-size: .64rem; letter-spacing: .2em; }
  .tag { font-size: .62rem; }
  .crumbs { font-size: .66rem; }
  .card-title { font-size: 1.18rem; }
  .card-add, .quick-add-mobile .btn { font-size: .64rem; }
  .lead-serif { font-size: 1.12rem; }
  .pi-assure div { font-size: .72rem; }
  .meter-ends, .glance-item small { font-size: .66rem; }
  .announce { font-size: .62rem; }
  .hero-title { letter-spacing: .03em; }
}
