html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(155, 74, 99, 0.06), transparent 28%),
    radial-gradient(circle at top right, rgba(106, 139, 168, 0.08), transparent 30%),
    linear-gradient(180deg, #fffbfc 0%, #fbf8f9 100%);
  background-color: var(--color-bg);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 200;
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  border-radius: var(--radius);
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-accent-hover);
}

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

h1 {
  font-size: clamp(2rem, 4.4vw, var(--text-3xl));
  font-weight: 600;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, var(--text-2xl));
  margin-bottom: 1rem;
}

h3 {
  font-size: var(--text-lg);
  font-family: var(--font-serif);
}

p {
  max-width: var(--measure);
}

p + p {
  margin-top: var(--space-4);
}

.lede {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 40rem;
}

.muted {
  color: var(--color-text-muted);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

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

.section--alt {
  background:
    linear-gradient(180deg, rgba(247, 241, 243, 0.95), rgba(247, 241, 243, 0.95)),
    radial-gradient(circle at top right, rgba(201, 162, 39, 0.08), transparent 42%);
  background-color: var(--color-bg-alt);
}

.section--warm {
  background:
    linear-gradient(180deg, rgba(238, 242, 247, 0.96), rgba(238, 242, 247, 0.96)),
    radial-gradient(circle at bottom left, rgba(155, 74, 99, 0.07), transparent 45%);
  background-color: var(--color-bg-warm);
}

.section-header {
  max-width: var(--measure);
  margin-bottom: var(--space-6);
}

.section-header p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
}

.kicker {
  display: block;
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.placeholder-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 3rem, var(--max-width));
  }
}

@media (min-width: 992px) {
  .section {
    padding-block: var(--space-9);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
