/* RENOVON base — reset, typography, buttons, focus, utilities. Colors via tokens.css only. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  background: var(--theme-bg);
  color: var(--theme-fg);
  /* The continuous section color-flow: theme vars swap on scroll, bg eases between them */
  transition: background-color .8s ease, color .8s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-brand); line-height: 1.12; letter-spacing: -.01em; }
h1 { font-weight: 800; font-size: var(--fs-hero); }
h2 { font-weight: 800; font-size: var(--fs-h2); max-width: 22ch; }
h3 { font-weight: 700; font-size: var(--fs-h3); }

.eyebrow {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--premium-gold);
  margin-bottom: 18px;
}

.lead {
  font-size: var(--fs-lead);
  max-width: 62ch;
  opacity: .88;
  margin-top: 18px;
}

.small { font-size: var(--fs-small); }
.muted { opacity: .7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-brand); font-weight: 700; font-size: .95rem;
  padding: 15px 30px; border-radius: 10px;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease-out), background .25s, color .25s, border-color .25s, box-shadow .25s;
  will-change: transform;
}
/* subtle glass depth: light catch on top of the gold, no gloss */
.btn--gold {
  background:
    linear-gradient(color-mix(in srgb, var(--white) 22%, transparent), transparent 55%),
    var(--premium-gold);
  color: var(--ink-navy);
  border-color: color-mix(in srgb, var(--white) 25%, transparent);
}
.btn--gold:hover { transform: translateY(-2px); }
/* secondary: quiet glass */
.btn--ghost {
  background: color-mix(in srgb, currentColor 6%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: currentColor;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
}
.btn--ghost:hover { border-color: var(--premium-gold); color: var(--premium-gold); }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--premium-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- generic card surface (works on both themes via currentColor mixing) ---------- */
.surface {
  background: rgba(127,127,127,.06); /* fallback */
  background: color-mix(in srgb, currentColor 5%, transparent);
  border: 1px solid rgba(127,127,127,.16);
  border: 1px solid color-mix(in srgb, currentColor 13%, transparent);
  border-radius: var(--radius);
}

/* ---------- motion-managed initial states ----------
   Hidden ONLY when JS + motion are active (html.js-motion). animations.js
   adds .no-motion instead when prefers-reduced-motion or GSAP missing. */
html.js-motion [data-reveal] { opacity: 0; transform: translateY(26px); }
html.js-motion .hero .w,
html.js-motion .hero .eyebrow,
html.js-motion .hero .subhead,
html.js-motion .hero .cta-row,
html.js-motion .hero .tagline,
html.js-motion .hero .frag { opacity: 0; }

html.no-motion [data-reveal],
html.no-motion .hero .w,
html.no-motion .hero .eyebrow,
html.no-motion .hero .subhead,
html.no-motion .hero .cta-row,
html.no-motion .hero .tagline { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
