:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1d2125;
  --muted: #5d6670;
  --border: #e4e6e9;
  --accent: #2563a8;
  --accent-soft: #e8f0fa;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1b1f23;
    --text: #e6e8ea;
    --muted: #9aa3ad;
    --border: #2c3238;
    --accent: #7fb2ec;
    --accent-soft: #1d2b3b;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

main { padding: 48px 0 56px; }

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

h2 {
  font-size: 1.2rem;
  margin: 40px 0 8px;
  letter-spacing: -0.01em;
}

p, ul { margin: 0 0 16px; }
ul { padding-left: 1.3em; }
li { margin-bottom: 6px; }

.lead { font-size: 1.12rem; }
.meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 32px; }

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

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.links li { margin: 0; }

.links a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent-soft);
  font-weight: 600;
  text-decoration: none;
}

.links a:hover { text-decoration: underline; }

.note {
  margin-top: 32px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  main { padding: 32px 0 40px; }
  h1 { font-size: 1.65rem; }
}
