:root {
  color-scheme: light dark;
  --ground: #f5f4ef;
  --ink: #1b1c19;
  --ink2: #6b6d66;
  --line: #e4e3dc;
  --tint: #2e7d4f;
  --court: #101c17;
  --surface: #ecebe4;
  --bg: var(--ground);
  --text: var(--ink);
  --muted: var(--ink2);
  --link: var(--tint);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--court);
    --surface: #18261f;
    --line: #26362d;
    --text: #f5f4ef;
    --muted: #9aaa9f;
    --link: #6fcf97;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header,
footer {
  padding: 1.5rem 0;
}

header {
  border-bottom: 1px solid var(--line);
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer ul {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

footer p {
  margin: 0.25rem 0;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

main {
  padding-top: 2rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

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

li {
  margin-bottom: 0.35rem;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.5;
}

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

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

.wordmark:hover {
  text-decoration: none;
}

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
