:root {
  --bg: #fbfaf8;
  --ink: #1a1a18;
  --muted: #5c5a55;
  --rule: #e2ded6;
  --accent: #2f4f4a;
  --maxw: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14150f;
    --ink: #ecebe6;
    --muted: #9c9a93;
    --rule: #2c2d26;
    --accent: #9dbdb5;
  }
}

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

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

body {
  margin: 0;
  padding: 4rem 1rem 6rem;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 ui-serif, Georgia, "Times New Roman", serif;
}

main { max-width: var(--maxw); margin: 0 auto; }

header { margin-bottom: 3rem; }

.wordmark {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 500;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1rem;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 2.75rem 0 0.75rem;
}

p { margin: 0 0 1.1rem; }

.lede { color: var(--ink); }

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

a { color: var(--accent); text-underline-offset: 0.18em; }

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

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0 2rem;
}

footer {
  max-width: var(--maxw);
  margin: 4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

footer a { color: var(--muted); }

footer nav { margin-bottom: 0.6rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }

.contact {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
}

@media (max-width: 30rem) {
  body { padding-top: 2.5rem; font-size: 16px; }
  h1 { font-size: 1.5rem; }
}
