:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --text: #16181d;
  --muted: #5b6270;
  --border: #e3e6ee;
  --accent: #3366f2;
  --accent-soft: #e8eefe;
  --radius: 16px;
  --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-soft: #181b22;
    --text: #eef0f4;
    --muted: #a3a9b6;
    --border: #2a2f3a;
    --accent: #7c9cff;
    --accent-soft: #1d2540;
  }
}

* { 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, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
nav a { margin-left: 18px; color: var(--muted); font-size: 15px; }

main { padding: 48px 0 64px; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.hero h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.15; margin: 20px 0 10px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 auto; max-width: 560px; }

.badge {
  display: inline-block; margin-top: 22px; padding: 10px 18px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 15px;
}

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 40px 0; }
.card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.app-row {
  display: flex; gap: 18px; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; color: var(--text);
}
.app-row:hover { text-decoration: none; border-color: var(--accent); }
.app-row img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.app-row h3 { margin: 0; font-size: 19px; }
.app-row p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.doc h1 { font-size: 34px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.02em; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .note {
  background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; margin: 20px 0;
}

details { border-bottom: 1px solid var(--border); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }

footer.site { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); margin-right: 16px; }

@media (max-width: 520px) {
  nav a { margin-left: 12px; font-size: 14px; }
  main { padding-top: 32px; }
}
