:root {
  --bg: #ffffff;
  --text: #1f2430;
  --muted: #5b6475;
  --heading: #1e3a8a;
  --link: #2563eb;
  --line: #e3e7ef;
  --card: #f6f8fc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12141a;
    --text: #e6e8ee;
    --muted: #9aa3b5;
    --heading: #93b4ff;
    --link: #7aa2ff;
    --line: #2a2f3a;
    --card: #1a1d25;
  }
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
header.site .brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
}
nav.lang a {
  margin-left: 12px;
  font-size: 0.9rem;
}
nav.lang a[aria-current="page"] {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 8px;
}
h2 {
  color: var(--heading);
  font-size: 1.3rem;
  margin: 36px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
h3 {
  font-size: 1.02rem;
  margin: 20px 0 6px;
}
ul { padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--link); overflow-wrap: anywhere; }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
}
.card ul { margin: 8px 0 0; }

footer.site {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
