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

html {
  min-width: 320px;
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
  background: var(--surface-ivory);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-burgundy-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-burgundy-500);
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  color: var(--text-on-dark);
  background: var(--brand-burgundy-700);
  border-radius: var(--radius-sm);
}

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

.page-shell {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
  padding-block: clamp(1.5rem, 4vw, 3.5rem);
}

h1,
h2,
h3 {
  margin-block: 0 0.65em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4.75rem);
}

p {
  max-width: 72ch;
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 1.25rem, var(--content-width));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
