:root {
  color-scheme: light dark;
  --bg: #fafaf9;
  --text: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --accent: #1d4ed8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --text: #f5f5f4;
    --muted: #a8a29e;
    --line: #44403c;
    --accent: #93c5fd;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
}

header.site {
  margin-bottom: 2.5rem;
}

.domain {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
}

.domain a { color: inherit; text-decoration: none; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 1.5rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }

p, address, ul { margin: 0 0 1rem; }
address { font-style: normal; }

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

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

footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

footer nav a { color: var(--muted); margin-right: 1.25rem; }
footer nav a:hover { color: var(--text); }
