/* base.css — reset, typography, layout primitives */

*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-light);
  background: var(--c-obsidian);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }

/* ── Layout primitives ── */
.container { width: var(--container); margin-inline: auto; }
.section { background: var(--ground); color: var(--on-ground); padding-block: var(--space-section); position: relative; }
/* keep anchor-targeted sections clear of the fixed nav on native smooth-scroll */
.hero, .section { scroll-margin-top: 84px; }

/* ── Headings ── */
.section__title {
  font-family: var(--font-grotesk);
  font-weight: 900;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
}
.section__title--editorial {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
  line-height: var(--lh-snug);
}
.section__title--gradient,
.section__title--gradient .split-word { /* clip also targets split words, which hold the real glyphs */
  background: var(--grad-trichome);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section__head { max-width: 720px; margin-bottom: var(--space-2xl); }
.section__lead { font-size: var(--fs-lead); color: var(--muted); margin-top: var(--space-md); max-width: 56ch; }

/* ── Eyebrow / kicker ── */
.eyebrow {
  font-family: var(--font-grotesk);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--c-emerald-ink);
  margin-bottom: var(--space-md);
}
.section--dark .eyebrow { color: var(--c-emerald-glow); }

/* tabular numerals for any spec/stat figures */
.tnum, .cannabinoid__val, .stat__num { font-variant-numeric: tabular-nums; }

/* ── Accessibility helpers ── */
.skip-link {
  position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
  z-index: 500; background: var(--c-emerald); color: #042; padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 0; }

/* Reveal initial state (JS removes when in view; reduced-motion shows instantly) */
[data-reveal] { opacity: 0; transform: translateY(28px); }
.no-motion [data-reveal],
.is-revealed [data-reveal],
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
