/* ============================================================
   Base: reset + element defaults + typographic utilities
   Depends on tokens.css
   ============================================================ */

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

* { margin: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-secondary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

/* --- Headings: primary serif (Cambon), Light by default -- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--weight-light);
}

/* --- Typographic scale utilities (map 1:1 to Figma) -----
   Big headings are fluid: clamp(min, preferred, desktop token).
   H2 is the only Regular-weight heading. -------------------- */
.t-display {
  font-family: var(--font-primary);
  font-weight: var(--weight-light);
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, var(--fs-display-md));
  line-height: var(--lh-display-md);
  letter-spacing: var(--tr-display-md);
}
.t-h1 {
  font-family: var(--font-primary);
  font-weight: var(--weight-light);
  font-size: clamp(2.75rem, 1.9rem + 3.8vw, var(--fs-h1));
  line-height: var(--lh-h1);
  letter-spacing: var(--tr-h1);
}
.t-h2 {
  font-family: var(--font-primary);
  font-weight: var(--weight-regular);
  font-size: clamp(2.25rem, 1.6rem + 3vw, var(--fs-h2));
  line-height: var(--lh-h2);
  letter-spacing: var(--tr-h2);
}
.t-h3 {
  font-family: var(--font-primary);
  font-weight: var(--weight-light);
  font-size: clamp(1.875rem, 1.4rem + 2.2vw, var(--fs-h3));
  line-height: var(--lh-h3);
  letter-spacing: var(--tr-h3);
}
.t-h4 {
  font-family: var(--font-primary);
  font-weight: var(--weight-light);
  font-size: clamp(1.5rem, 1.3rem + 1vw, var(--fs-h4));
  line-height: var(--lh-h4);
  letter-spacing: var(--tr-h4);
}
.t-h5 {
  font-family: var(--font-primary);
  font-weight: var(--weight-light);
  font-size: var(--fs-h5);
  line-height: var(--lh-h5);
  letter-spacing: var(--tr-h5);
}
.t-h6 {
  font-family: var(--font-primary);
  font-weight: var(--weight-light);
  font-size: var(--fs-h6);
  line-height: var(--lh-h6);
  letter-spacing: var(--tr-h6);
}
.t-body-lg {
  font-family: var(--font-secondary);
  font-weight: var(--weight-regular);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
}
.t-body-md {
  font-family: var(--font-secondary);
  font-weight: var(--weight-regular);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body-md);
}
.t-body {
  font-family: var(--font-secondary);
  font-weight: var(--weight-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.t-button {
  font-family: var(--font-secondary);
  font-weight: var(--weight-regular);
  font-size: var(--fs-button);
  line-height: var(--lh-button);
  letter-spacing: var(--tr-button);
}

/* Eyebrow: small uppercase label (UI helper, not a Figma type token) */
.t-eyebrow {
  font-family: var(--font-secondary);
  font-weight: var(--weight-medium);
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Layout helpers ------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: clamp(3rem, 8vw, 7rem); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
