:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1f24;
  --muted: #5d636d;
  --line: #e4e1da;
  --accent: #1f3a5f;
  --accent-text: #24508a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --surface: #1a1d23;
    --text: #e9e7e2;
    --muted: #9ba1ab;
    --line: #2b2f37;
    --accent: #8fb3e6;
    --accent-text: #9fc0ee;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

header.site { padding: 28px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; }
.lang { font-size: 15px; color: var(--muted); }

main { flex: 1; }

.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 20px; }
.hero .lead { font-size: clamp(19px, 3vw, 22px); color: var(--muted); margin: 0; max-width: 34em; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 64px;
}
.card h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.card .email { font-size: 20px; font-weight: 500; word-break: break-all; }

.doc { padding-top: 40px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 40px; font-size: 15px; }
.doc h2 { font-size: 21px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 15px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site nav { display: flex; gap: 20px; }
footer.site a { color: var(--muted); }
