/* =====================================================================
   BASE — reset, typography, layout primitives, shared components
   ===================================================================== */

*, *::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(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 4px; }

/* ---- Lenis smooth scroll ---- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--space-section); position: relative; }
.section--cream { background: var(--cream-2); }
.section--warm  { background: var(--grad-warm); }

/* ---- Typography helpers ---- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow--teal { color: var(--teal-deep); }
.eyebrow--teal::before { background: var(--teal-deep); }
.eyebrow--light { color: var(--gold-light); }
.eyebrow--light::before { background: var(--gold-light); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: var(--lh-snug); }
.display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -.02em;
  font-weight: 700;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -.015em;
}
.h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.5; }
.muted { color: var(--ink-soft); }

/* Two-tone headline accents (the feed signature) */
.t-gold { color: var(--gold); }
.t-teal { color: var(--teal-deep); }
.t-light { font-weight: 300; }

/* ---- Buttons (pills, like the feed) ---- */
.btn {
  --bg: var(--gold); --fg: #fff;
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-weight: 600;
  font-size: .98rem;
  padding: .92em 1.5em;
  border-radius: var(--radius-pill);
  background: var(--bg); color: var(--fg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease);
  box-shadow: var(--shadow-sm);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.btn:active { transform: translateY(-1px); }
.btn--gold  { --bg: var(--gold); }
.btn--teal  { --bg: var(--teal-deep); }
.btn--ink   { --bg: var(--ink); }
.btn--cream {
  --bg: var(--cream); --fg: var(--ink);
}
.btn--cream:hover { --bg: #fff; }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold); background: rgba(184,153,43,.06); }
.btn--light {
  --bg: rgba(255,255,255,.16); --fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5);
  backdrop-filter: blur(6px);
}
.btn--light:hover { --bg: rgba(255,255,255,.28); }
.btn .ico { width: 1.05em; height: 1.05em; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---- Scroll-reveal (driven by main.js; CSS fallback inside no-js) ---- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(28px); }
.is-ready [data-reveal],
.is-ready [data-reveal-stagger] > * { will-change: opacity, transform; }

/* If JS/animation disabled or reduced motion: never hide content */
.no-anim [data-reveal],
.no-anim [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ---- Decorative ghost typography (feed motif) ---- */
.ghost-type {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: .8;
  color: var(--gold);
  opacity: .06;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

/* ---- Utility ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.stack { display: flex; flex-direction: column; }
.relayer { position: relative; z-index: 1; }
[hidden] { display: none !important; }
