/* SISTA global foundation — reset, typography, layout primitives.
   Values ported from Concept E @ 694cd0893bdd1e045f10ee0c134c063497bb1307. */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Headings foundation ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

/* ---------- Typography primitives ---------- */
.type-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--muted);
}

.eyebrow--red {
  color: var(--red);
}

.eyebrow--green {
  color: var(--green);
}

.eyebrow--pink {
  color: var(--pink);
}

.chapter {
  max-width: 46rem;
  margin-inline: 0;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  text-align: left;
}

.chapter__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
}

.chapter__title--left {
  text-align: left;
}

.chapter--center {
  margin-inline: auto;
  text-align: center;
}

.chapter--center .chapter__blurb {
  margin-inline: auto;
}

.chapter__blurb {
  margin-top: 1rem;
  margin-inline: 0;
  max-width: 40rem;
  color: var(--muted);
}

.chapter__blurb + .chapter__blurb {
  margin-top: 0.75rem;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

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