/* Minimal personal site — fast, readable, no framework */
:root {
  color-scheme: light dark;
  --text: #111;
  --muted: #444;
  --link: #0b57d0;
  --bg: #fff;
  --rule: #ddd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8e8;
    --muted: #a8a8a8;
    --link: #7ab4ff;
    --bg: #121212;
    --rule: #333;
  }
}

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

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

body {
  margin: 0;
  padding: 2rem 1.5rem 4rem;
  max-width: 40rem;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.site-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

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

.site-title a:hover {
  text-decoration: underline;
}

nav ul {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

nav li {
  margin: 0.15rem 0;
}

main h1 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

main h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}

p {
  margin: 0.5rem 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

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

ul.plain {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.25rem;
}

ul.plain li {
  margin: 0.25rem 0;
}

ul.plain ul {
  margin: 0.35rem 0 0.15rem;
  padding-left: 1.15rem;
}

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

footer {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
