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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(154, 62, 50, 0.045), transparent 24rem),
    var(--color-paper);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
  filter: none;
}

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

button,
summary {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

p,
ul,
ol,
dl,
blockquote,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.5rem, 10vw, 10rem);
}

h2 {
  font-size: clamp(2.5rem, 6vw, 6.5rem);
}

h3 {
  font-size: clamp(1.65rem, 3vw, 3rem);
}

::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-1);
  left: var(--space-1);
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
}

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

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

.eyebrow {
  margin: 0;
  color: var(--color-muted-strong);
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.prose {
  max-width: var(--reading-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;
  }
}
