:root {
  --bg: #fbfaf8;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e3e0da;
  --accent: #1a1a1a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --fg: #eceae5;
    --muted: #98948c;
    --rule: #2a2926;
    --accent: #eceae5;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}

.role {
  color: var(--muted);
  margin: 0 0 2.5rem;
}

p { margin: 0 0 1.25rem; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}

a:hover { border-bottom-color: var(--accent); }

h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  margin: 2.5rem 0 0.75rem;
}

ul.links {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.links li { margin-bottom: 0.4rem; }

footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  gap: 0.75rem;
}

footer a { border-bottom: none; color: var(--muted); }
footer a:hover { color: var(--fg); }
footer a[aria-current="page"] { color: var(--fg); font-weight: 600; }

@media (max-width: 480px) {
  main { padding-top: 3.5rem; }
}
