:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --text: #13201a;
  --muted: #5b6b63;
  --border: #dfe7e2;
  --accent: #1f9d55;
  --accent-ink: #ffffff;
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1411;
    --surface: #151d19;
    --text: #e8efeb;
    --muted: #9aaba2;
    --border: #25302a;
    --accent: #3ccf7a;
    --accent-ink: #0e1411;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 15px;
}
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

.hero { padding: 72px 0 48px; text-align: center; }
.hero img { width: 96px; height: 96px; border-radius: 22px; }
.hero h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.15; margin: 20px 0 12px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-bottom: 48px;
}
.card {
  background: var(--surface);
  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; }

.doc { padding: 48px 0 64px; }
.doc h1 { font-size: 34px; margin: 0 0 4px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc li { margin-bottom: 6px; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 15px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0;
}
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: var(--muted); margin-left: 16px; }

@media (max-width: 520px) {
  nav a { margin-left: 12px; font-size: 14px; }
  footer.site a { margin-left: 0; margin-right: 16px; }
}
