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

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

body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-cream);
  overflow-x: clip;
}

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

a {
  color: var(--color-burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-terracotta);
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 2.5vw + 0.8rem, 2.8rem);
}

h3 {
  font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem);
}

em {
  font-style: italic;
  color: var(--color-burgundy);
}

.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: var(--space-sm);
  z-index: 9999;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-burgundy);
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  inset-block-start: var(--space-sm);
}

[hidden] {
  display: none !important;
}

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

.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

html.js [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
