@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=JetBrains+Mono:wght@400..700&family=Playfair+Display:wght@400..900&display=swap");

:root {
  --paper: #fafaf5;
  --beige: #f5f0e8;
  --white: #ffffff;
  --gold: #9a7414;
  --gold-line: #c9a84c;
  --ink: #333333;
  --muted: #625e59;
  --line: #8b8680;
  --charcoal: #1a1a1a;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --space-section: clamp(4rem, 8vw, 8rem);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  --max: 80rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: #624806;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button,
input,
select {
  font: inherit;
}

button,
.button {
  min-height: 2.75rem;
  border-radius: 8px;
  font-weight: 600;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-line);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  color: var(--charcoal);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 15ch;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.5rem;
}

p,
li {
  max-width: 72ch;
}

small {
  font-size: 1rem;
}

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.prose {
  max-width: 72ch;
}

.skip {
  position: fixed;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-150%);
  background: var(--charcoal);
  color: var(--white);
}

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

.eyebrow,
.kicker,
.source-label {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow,
.kicker {
  color: #71550d;
}

.mono {
  font-family: var(--mono);
}

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

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

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