:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #0b1226;
  --muted: #536079;
  --line: #dfe5ee;
  --accent: #0670a8;
  --accent-soft: #e3f6f8;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050b1e;
    --surface: #0b1430;
    --text: #e8eef8;
    --muted: #9aa8c2;
    --line: #1c2748;
    --accent: #2fe0d0;
    --accent-soft: #0c2235;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

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

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

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

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

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

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

.brand img { width: 32px; height: 32px; border-radius: 7px; }

nav.site a {
  margin-right: 16px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}

nav.site a:last-child { margin-right: 0; }
nav.site a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding: 40px 0 56px; }

h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 21px; line-height: 1.3; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }

p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }

.meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

.lead { font-size: 19px; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 24px 0;
}

.card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .card dl { grid-template-columns: 1fr; gap: 0; }
  .card dd { margin-bottom: 10px; }
}

.note {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
}

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

footer.site p { margin: 0 0 6px; }
