:root {
  --bg: #fbfaf7;
  --fg: #1d1c1a;
  --muted: #6b6862;
  --accent: #2f5d50;
  --rule: #e4e1da;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --fg: #ecebe7;
    --muted: #a09d96;
    --accent: #8fc3b2;
    --rule: #2c2b29;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, "Iowan Old Style", "Charter", Georgia, Cambria, serif;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.6;
}

main, footer {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 4rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0 0 2rem;
  color: var(--muted);
}

.links {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95em;
}

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

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

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

footer {
  padding-block: 1.5rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
}

footer p { margin: 0; }
