/* Base: reset, typography, layout */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 200;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 300; }
em, .italic { font-style: italic; }
strong { font-weight: 500; color: var(--ink); }

.display { font-size: var(--fs-display); }
.lead {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.25rem;
}
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}
.muted { color: var(--taupe); }
.center { text-align: center; }
.text-measure { max-width: var(--max-text); }
.mx-auto { margin-inline: auto; }

/* Layout */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--linen { background: var(--linen); }
.section--tint { background: var(--tint); }
.section-head { max-width: 46rem; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head p { color: var(--taupe); }

.ornament { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--clay); margin-bottom: 1.5rem; }
.ornament::before, .ornament::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .55; }
.ornament svg { width: 30px; height: 20px; }

/* Accessibility */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--porcelain); padding: 10px 16px;
  font-size: var(--fs-small); transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 1.5px solid var(--clay-deep); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 120ms; }
.js .reveal[data-delay="2"] { transition-delay: 240ms; }
.js .reveal[data-delay="3"] { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
[id] { scroll-margin-top: 96px; }
