/* Light by default, dark when the OS asks for it; data-theme on <html> overrides both (set later by the REPL). */
:root {
  --bg: #fdfdfc;
  --fg: #1c1c1a;
  --muted: #6b6b66;
  --line: #e4e4e0;
  --accent: #1c1c1a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121211;
    --fg: #e9e9e6;
    --muted: #9a9a94;
    --line: #2a2a28;
    --accent: #e9e9e6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121211;
  --fg: #e9e9e6;
  --muted: #9a9a94;
  --line: #2a2a28;
  --accent: #e9e9e6;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 56px 16px 32px; }
a { color: var(--accent); text-underline-offset: 3px; }

.bio { text-align: center; }
.avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 20px; }
.bio h1 { font-size: 1.6rem; margin: 0; letter-spacing: -0.01em; }
.tagline { color: var(--muted); margin: 4px 0 20px; font-size: 0.95rem; }
.bio-text p { margin: 0 0 12px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 20px; font-size: 0.95rem; }
.resume { font-weight: 600; }

.prose h1 { font-size: 1.6rem; letter-spacing: -0.01em; }
.prose h2 { font-size: 1.15rem; margin-top: 2em; }

footer { width: 100%; max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; text-align: center; }
footer a { color: var(--muted); }
