/* ══════════════════════════════════════════════════════════════════
   Shared Design Language — Base
   Reset, base typography, focus, reduced motion.
   Token values are defined per-brand in <site>/assets/main.css.
   ══════════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────────── */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-page);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gray-700);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-default);
}

a:hover {
  color: var(--text-primary);
  text-decoration-color: currentColor;
}

/* ── Typography ────────────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-h1-size);
  font-weight: 700;
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-h2-size);
  font-weight: 600;
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
}

h3 {
  font-size: var(--text-h3-size);
  font-weight: 600;
  color: var(--gray-700);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-body-size);
  font-weight: 600;
  color: var(--gray-700);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-4);
}

strong {
  font-weight: 600;
  color: var(--gray-700);
}

.text-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero-size);
  font-weight: var(--text-hero-weight, 400);
  line-height: 1.05;
  color: var(--black);
  letter-spacing: -0.02em;
}

.text-subtitle {
  font-size: 1.25rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 640px;
}

/* ── Focus States ──────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--gray-900);
  outline-offset: 2px;
}

/* ── Reduced Motion ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
