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

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  min-width: 20rem;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 0.15rem solid var(--color-focus);
  outline-offset: 0.25rem;
}

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

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

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  margin-block-end: 1.5rem;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.75rem);
  margin-block-end: 1.25rem;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

::selection {
  background: var(--color-champagne);
  color: var(--color-ink);
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--color-ink);
  color: var(--color-surface);
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-200%);
  transition: transform var(--transition);
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-block-end: 0.85rem;
  text-transform: uppercase;
}

.editorial-lead {
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.45;
}

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

.status-note {
  border: 1px solid var(--color-border);
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}

.status-note--warning {
  background: rgb(169 130 47 / 8%);
  border-color: rgb(169 130 47 / 35%);
}

.status-note--info {
  background: rgb(5 76 48 / 6%);
}

.status-note--error {
  background: rgb(165 58 49 / 8%);
  border-color: rgb(165 58 49 / 35%);
  color: var(--color-error);
}

.status-note--success {
  background: rgb(37 106 72 / 8%);
  border-color: rgb(37 106 72 / 35%);
  color: var(--color-success);
}
