:root {
  --color-surface: oklch(98.5% 0.006 70);
  --color-text: oklch(22% 0.01 60);
  --color-muted: oklch(48% 0.012 60);
  --color-rule: oklch(90% 0.01 70);
  --color-accent: oklch(55% 0.13 35);

  --font-body: ui-serif, "Iowan Old Style", "Charter", Georgia, serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-base: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --text-h1: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  --text-h2: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);

  --measure: 38rem;
  --space-section: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);
  --duration-fast: 150ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-surface: oklch(17% 0.008 60);
    --color-text: oklch(93% 0.008 70);
    --color-muted: oklch(70% 0.01 70);
    --color-rule: oklch(30% 0.01 60);
    --color-accent: oklch(74% 0.12 40);
  }
}

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

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font: var(--text-base) / 1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.site-header,
main,
.site-footer {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
}

.site-header {
  padding-block: 2rem 0;
}

.wordmark {
  font: 600 1rem / 1 var(--font-ui);
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
}

main {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--space-section);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font: 500 0.8125rem / 1.4 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

h1 {
  margin: 0 0 1.5rem;
  font-size: var(--text-h1);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 var(--space-section);
  font-size: 1.25em;
  line-height: 1.5;
}

section {
  padding-top: 1.75rem;
  margin-top: var(--space-section);
  border-top: 1px solid var(--color-rule);
}

h2 {
  margin: 0 0 0.75rem;
  font: 600 var(--text-h2) / 1.3 var(--font-ui);
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.25rem;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.contact p {
  font-size: 1.125em;
}

.site-footer {
  padding-block: 2rem 3rem;
  font: 0.875rem / 1.4 var(--font-ui);
  color: var(--color-muted);
}
