/* OTTOPUS · global.css · base styles + typography primitives (depends on tokens.css) */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Typography primitives */
.eyebrow { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--warm-grey); }
.eyebrow .dot { display: inline-block; margin: 0 .7em; opacity: .5; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.005em; line-height: 1.0; color: var(--ink); }
.display em { font-style: italic; font-weight: 500; color: var(--terracotta); }
.h1 { font-size: clamp(48px, 7.5vw, 112px); }
.h2 { font-size: clamp(36px, 4.6vw, 64px); font-family: var(--font-display); font-weight: 500; letter-spacing: -0.008em; line-height: 1.05; }
.h3 { font-size: clamp(22px, 2.2vw, 30px); font-family: var(--font-display); font-weight: 500; letter-spacing: -0.004em; line-height: 1.15; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--warm-grey); max-width: 60ch; }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; font-feature-settings: "tnum" 1; }
.tnum { font-variant-numeric: tabular-nums; }

/* Layout helpers */
.page { max-width: var(--max-w); margin: 0 auto; padding-left: var(--page-pad); padding-right: var(--page-pad); }
.section { padding-top: var(--section-gap); padding-bottom: 0; }
.section--sand { background: var(--sand); padding-top: var(--section-gap); padding-bottom: var(--section-gap); margin-top: var(--section-gap); }
.section-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--warm-grey); }

/* Utilities */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stack { display: grid; }
.muted { color: var(--warm-grey); }
.center { text-align: center; }
.full-bleed { width: 100%; max-width: none; }

@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; }
  .pulse, .pulse::after { animation: none; }
}
