:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1c1f24;
  --muted: #5d6470;
  --line: #e3e1da;
  --accent: #1f5f8b;
  --accent-text: #ffffff;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --surface: #1c2026;
    --text: #e9e7e1;
    --muted: #a3a9b3;
    --line: #2c323a;
    --accent: #6fb0dd;
    --accent-text: #0d1a24;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.top { padding-top: 28px; padding-bottom: 28px; }
.brand { color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-weight: 500; }

main { flex: 1; }

.hero { padding: 56px 0 40px; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 18px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 30px; max-width: 34em; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  overflow-wrap: anywhere;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.08); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 48px;
}
.card h2 { font-size: 1.05rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

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

.doc { padding: 24px 0 48px; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.doc h2 { font-size: 1.2rem; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.updated { color: var(--muted); font-size: 0.95rem; }
