/* ============================================================
   Base — reset, root typography, helpers
   ============================================================ */

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

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

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

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

/* ---- Reusable eyebrow label ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
}
.eyebrow--dots::before {
  content: "";
  width: 22px; height: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--pill {
  background: var(--rose-100);
  color: var(--rose-deep);
  padding: 0.5em 1.1em;
  border-radius: var(--r-pill);
  letter-spacing: 0.22em;
}
.eyebrow--pill-white {
  background: var(--white);
  color: var(--lavender-deep);
  padding: 0.5em 1.2em;
  border-radius: var(--r-pill);
  letter-spacing: 0.22em;
  box-shadow: var(--shadow-xs);
}

/* ---- Section heading block ---- */
.section-head { text-align: center; max-width: 840px; margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-title { font-size: var(--fs-h2); }
.section-title em { font-style: italic; color: var(--ink); }

/* accent script fragment inside serif headings */
.script-accent { font-family: var(--font-script); color: var(--rose); font-weight: 700; }

/* ---- Helpers ---- */
.text-muted { color: var(--text); }
.center { text-align: center; }

/* Scroll reveal — visible by DEFAULT for robustness.
   The hidden pre-animation state is applied only when JS is active
   (html.js), so content is never dependent on JS to render. */
.reveal { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
}
