/* src/_includes/styles/main.css */
/* Imports tokens, then sets the dark/light hybrid surface system per D-06.
   - Dark + gradient base: home, section-landing pages.
   - Light variant: longform article surfaces (/reviews/, /best/, /vs/, /case-studies/) - toggled by body.theme-light class. */

@import url('./tokens.css');

/* Default = dark theme (home + landing surfaces) */
body {
  background: #000;
  color: var(--jet);
  overflow-x: hidden;
}

/* Light variant for longform article reading */
body.theme-light {
  background: var(--jet);
  color: var(--cream);
}
body.theme-light a { color: var(--electric); }
body.theme-light a:hover { color: var(--sky-d); }

/* Nav (preserved from existing brand site) */
nav.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
body.theme-light nav.site {
  background: rgba(240,237,232,0.92);
  border-bottom-color: rgba(20,20,20,0.10);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-wordmark { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--jet); }
body.theme-light .nav-wordmark { color: var(--cream); }
/* Signature wordmark gradient (the brand-defining visual touch) */
.nav-wordmark em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 13px; font-weight: 400; color: var(--jet-light); text-decoration: none;
  transition: color .2s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--jet); }
.nav-links a:focus-visible {
  outline: 2px solid var(--solar); outline-offset: 3px; border-radius: 2px; color: var(--jet);
}
body.theme-light .nav-links a { color: var(--jet-faint); }
body.theme-light .nav-links a:hover { color: var(--cream); }
@media (max-width: 680px) { .nav-links { display: none; } }

/* Hero (dark only - used on home + section landings per D-06) */
.hero {
  min-height: 56vh;
  padding: 130px 0 70px;
  position: relative; overflow: hidden;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  max-width: 820px;
}
.hero .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Article body (light theme - generous line-height for reading) */
body.theme-light main.article {
  max-width: 760px;
  margin: 96px auto 64px;
  padding: 0 24px;
  font-size: 18px;
  line-height: 1.75;
}
body.theme-light main.article h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
body.theme-light main.article h2 {
  font-size: 26px; line-height: 1.3; margin-top: 48px; margin-bottom: 16px;
  letter-spacing: -0.015em;
}
body.theme-light main.article h3 { font-size: 20px; margin-top: 32px; margin-bottom: 12px; }
body.theme-light main.article p { margin-bottom: 18px; }
body.theme-light main.article a { text-decoration: underline; text-underline-offset: 3px; }

/* TL;DR box (article anatomy per D-23) */
.tldr-box {
  background: var(--solar-bg);
  border-left: 4px solid var(--solar);
  padding: 24px 28px;
  border-radius: 8px;
  margin: 32px 0;
}
.tldr-box .tldr-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--solar-d);
  margin-bottom: 12px;
}
.tldr-box .verdict {
  font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 16px;
  color: var(--cream);
}
.tldr-box .rating {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.05); padding: 4px 10px; border-radius: 100px;
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
}

/* Verdict block at article bottom */
.verdict-block {
  background: var(--cream);
  color: var(--jet);
  padding: 36px 32px;
  border-radius: 12px;
  margin: 56px 0 32px;
  text-align: center;
}
.verdict-block h3 { font-size: 22px; margin-bottom: 16px; }
.verdict-block .cta {
  display: inline-block;
  background: var(--grad);
  color: var(--cream);
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 16px;
  transition: transform .2s cubic-bezier(0.16,1,0.3,1), box-shadow .2s cubic-bezier(0.16,1,0.3,1);
}
.verdict-block .cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(236,105,183,0.32); }
.verdict-block .cta:focus-visible { outline: 2px solid var(--solar); outline-offset: 3px; }

/* FTC disclosure inline callout (BRAND-04 / D-15) */
.ftc-disclosure {
  background: var(--ember-bg);
  border: 1px solid var(--ember-b);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin: 24px 0;
  color: var(--cream);
}
body.theme-light .ftc-disclosure { color: var(--cream); }
.ftc-disclosure strong { font-weight: 700; }
.ftc-disclosure a { color: var(--electric); text-decoration: underline; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 48px 32px;
  text-align: center;
  font-size: 13px;
  color: var(--jet-faint);
}
body.theme-light footer.site {
  border-top-color: rgba(20,20,20,0.10);
}
footer.site a { color: inherit; text-decoration: underline; }

/* Reveal-on-scroll (preserved from existing brand site) */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(0.16,1,0.3,1), transform .7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
