/* ============================================================
   FAIRDEAL — Base (reset, typography, layout primitives)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video, iframe { max-width: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
h1 { font-weight: 600; }
h2 { font-weight: 600; font-size: clamp(1.85rem, 4vw, 2.85rem); }
h3 { font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.3rem); }
p  { color: var(--text); }

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

/* Layout primitives */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section       { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem); }

.section-head { max-width: 720px; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head h2 { margin-top: var(--s-3); }
.section-head p  { font-size: 1.05rem; color: var(--text-muted); margin-top: var(--s-4); line-height: 1.65; }
.section-head-center { text-align: center; margin-inline: auto; }

/* Reveal — extended by motion.js in Pass 9 */
.reveal       { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease-out-soft), transform var(--t-slow) var(--ease-out-soft); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Respect users who'd rather not see motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
