/* Base — body, typography, links. Mirrors feature-page.css conventions. */

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(245, 158, 11, 0.3);
  color: var(--text-primary);
}

main, section, footer, nav { position: relative; z-index: 1; }

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 8vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p { max-width: 70ch; color: var(--text-secondary); }
p + p { margin-top: var(--space-4); }
strong { color: var(--accent-amber); font-weight: 600; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }

a { color: var(--accent-amber); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--accent-warm); }

/* ── Layout helpers ─────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container-wide {
  max-width: var(--max-width-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section { padding-block: var(--space-16); }
@media (max-width: 768px) { .section { padding-block: var(--space-12); } }

/* ── Section label (mono-feel eyebrow) — kept minimal in Inter ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-amber);
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.section-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent-amber);
}

/* ── Fade-in on intersect ──────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.fade-in.visible { opacity: 1; transform: none; }

/* Analytics slot kept for Phase 4 */
#analytics-slot { display: none; }
