:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1f2933;
  --muted: #5f6c7b;
  --line: #e1e5ea;
  --link: #1a5fb4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181d;
    --text: #e6e9ed;
    --muted: #a0abb8;
    --line: #2c333b;
    --link: #78aeed;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main.wrap { flex: 1; padding-top: 2.5rem; padding-bottom: 3rem; }

a { color: var(--link); }

img { max-width: 100%; height: auto; }

h1 { font-size: 2.25rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.375rem; line-height: 1.3; margin: 2rem 0 0.5rem; }

.site-header { border-bottom: 1px solid var(--line); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-title {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: 1rem; }

nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); text-decoration: underline; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  padding: 1rem 0;
}
