/* Base — tipografia, body, container */

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-plum);
  background: var(--color-mist);
  overflow-x: clip;
}

/* ── Tipografia ── */

.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-plum);
}

.display {
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); font-weight: 400; }

.italic { font-style: italic; }

.accent {
  font-style: italic;
  font-weight: 300;
  color: var(--color-mauve);
}

.on-dark .accent { color: var(--color-lilac); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--fs-tiny);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-mauve);
}

.on-dark .eyebrow { color: var(--color-lilac); }

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .eyebrow::before { display: none; }
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--color-smoke);
  max-width: 60ch;
}

.on-dark .lead { color: var(--color-lilac); opacity: 0.85; }

.quote-serif {
  font-family: var(--font-quote);
  font-weight: 400;
  font-style: italic;
}

/* ── Container ── */

.container {
  width: var(--container);
  margin-inline: auto;
}

.container-wide {
  width: var(--container-wide);
  margin-inline: auto;
}

/* ── Section base ── */

.section {
  padding-block: clamp(4rem, 8vw, 8rem);
  position: relative;
}

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

.section.on-dark {
  background: var(--color-aubergine);
  color: var(--color-lilac);
}

.section.on-dark .display,
.section.on-dark .h1,
.section.on-dark .h2,
.section.on-dark .h3 { color: var(--color-mist); }

.section.on-plum {
  background: var(--color-plum);
  color: var(--color-lilac);
}

.section.on-mist {
  background: var(--color-mist);
}

.section.on-veil {
  background: var(--color-veil);
}

/* ── Noise texture (overlay) ── */

.section.on-dark::before,
.section.on-plum::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.section > * { position: relative; z-index: 1; }

/* ── Stack (vertical rhythm) ── */

.stack > * + * { margin-top: var(--space, var(--space-5)); }
.stack-sm > * + * { margin-top: var(--space-3); }
.stack-md > * + * { margin-top: var(--space-5); }
.stack-lg > * + * { margin-top: var(--space-8); }

.section-head {
  max-width: 70ch;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-head.left { text-align: left; margin-inline: 0; }

.section-head .eyebrow { justify-content: center; }
.section-head.left .eyebrow { justify-content: flex-start; }

/* ── Utilities ── */

.text-center { text-align: center; }
.text-plum { color: var(--color-plum); }
.text-lilac { color: var(--color-lilac); }
.text-mauve { color: var(--color-mauve); }
.text-smoke { color: var(--color-smoke); }
.text-champagne { color: var(--color-champagne); }

.bg-mist { background: var(--color-mist); }
.bg-veil { background: var(--color-veil); }
.bg-aubergine { background: var(--color-aubergine); }
.bg-plum { background: var(--color-plum); }
