:root {
  --bg: #fbfcfb;
  --surface: #ffffff;
  --text: #17201c;
  --muted: #5b6963;
  --border: #e2e8e5;
  --accent: #047857;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1412;
    --surface: #151d1a;
    --text: #e6ecea;
    --muted: #9aa8a2;
    --border: #25302c;
    --accent: #34d399;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  display: block;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  margin-left: 1.1rem;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  padding: 2.75rem 0 3.5rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.updated {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0 0 2rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2.4rem 0 0.6rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

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

.lead {
  font-size: 1.06rem;
}

.links {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.links a {
  display: block;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  font-weight: 500;
}

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

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