/* ============================================================
   SAUCE WRITING — BASE LAYER
   Light, opinionated defaults + a few brand helpers. Safe to
   ship: only sets sensible page/typography baselines and small
   utility classes prefixed `sw-`.
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-xbold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--text-link); text-decoration-thickness: 2px; text-underline-offset: 2px; }

::selection { background: var(--sauce-rose); color: var(--ink-900); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--radius-xs);
}

/* ---- Brand helpers ---- */
.sw-eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--grape-600);
}

.sw-display {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
}

.sw-lead {
  font-size: var(--fs-xl);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

/* The signature gradient as text fill */
.sw-sauce-text {
  background: var(--gradient-sauce);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sw-measure { max-width: var(--measure); }
