:root {
  --bg: #fafafb;
  --surface: #ffffff;
  --text: #1e1e22;
  --muted: #55555d;
  --border: rgba(0, 0, 0, 0.09);
  --accent: #1a5fb4;
  --note-bg: #fdf0d8;
  --note-text: #6b3e00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1d20;
    --surface: #2a2a2e;
    --text: #ededf0;
    --muted: #b4b4bb;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #78aeed;
    --note-bg: #3d2f12;
    --note-text: #f8d48a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Adwaita Sans", Cantarell, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

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

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

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}

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

nav { display: flex; gap: 18px; flex-wrap: wrap; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

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

main { padding: 40px 0 56px; }

.hero {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero img { width: 112px; height: 112px; }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 34px 0 8px; }

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

.note {
  background: var(--note-bg);
  color: var(--note-text);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
}

.note strong { display: block; margin-bottom: 2px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 24px;
  margin: 24px 0;
}

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

ul { padding-left: 22px; }
li { margin: 4px 0; }

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0 32px;
}

footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer a { color: var(--muted); }
