:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #2b2430;
  --muted: #6f6577;
  --accent: #a63d6f;
  --accent-ink: #8c2f5c;
  --rule: #e8e1d8;
  --max: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #201b24;
    --surface: #2a2430;
    --ink: #f0eaf0;
    --muted: #a89fb0;
    --accent: #d97ba6;
    --accent-ink: #e293b8;
    --rule: #3a3340;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

header.site,
main,
footer.site {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.wordmark {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--muted);
  font-weight: 500;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-left: 1.25rem;
}

header.site nav a:hover,
footer.site nav a:hover {
  color: var(--accent-ink);
}

main {
  padding-bottom: 4rem;
}

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

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.25rem;
}

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

li {
  margin: 0.35rem 0;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.lede {
  font-size: 1.25rem;
  color: var(--muted);
  margin-top: -0.25rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

footer.site {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer.site nav a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.25rem;
}

footer.site nav a:last-child {
  margin-right: 0;
}
