:root {
  --bg: #0e1117;
  --panel: #171b23;
  --line: #262b36;
  --text: #f1f2f4;
  --text-2: #a2a6b0;
  --accent: #3b8eff;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --line: #e2e5ea;
    --text: #1b1d21;
    --text-2: #60656f;
    --accent: #1f6fe0;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 680px; margin: 0 auto; padding: 48px 16px 64px; }

header { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
header img { width: 64px; height: 64px; }
header .name { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
header .tag { color: var(--text-2); font-size: 15px; }

nav { display: flex; gap: 20px; margin: -16px 0 40px; font-size: 15px; }
nav a[aria-current] { color: var(--text); font-weight: 600; }

h1 { font-size: 32px; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, li { color: var(--text-2); }
p strong, li strong { color: var(--text); }
ul { padding-left: 20px; }
li { margin-bottom: 8px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.lead { font-size: 19px; }

.contact {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0 8px;
}
.contact p { margin: 0; }
.contact .email { display: inline-block; margin-top: 4px; font-size: 20px; font-weight: 600; }

footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
