:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #121417;
  --muted: #5b6472;
  --border: #e3e7ec;
  --accent: #0f8a5f;
  --accent-text: #ffffff;
  --accent-soft: #e6f4ee;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --surface: #171a1f;
    --text: #f2f4f7;
    --muted: #9aa3af;
    --border: #262c34;
    --accent: #1db980;
    --accent-text: #08130e;
    --accent-soft: #12271f;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
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: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: var(--accent-text); font-weight: 800; }
nav.top a { color: var(--muted); text-decoration: none; font-size: 15px; margin-left: 18px; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--text); }
main.wrap { padding-top: 48px; padding-bottom: 56px; }
.fade { animation: fade-in 0.6s ease-out both; }
.fade-2 { animation-delay: 0.12s; }
.fade-3 { animation-delay: 0.24s; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: 22px; line-height: 1.3; margin: 32px 0 10px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-text); border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card p { color: var(--muted); margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.pills li { background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.notice { margin-top: 32px; padding: 16px 20px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--surface); color: var(--muted); }
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.doc h2:first-of-type { margin-top: 8px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 15px; }
footer.site { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
footer.site nav a { color: var(--muted); display: inline-block; padding: 4px 0; }
footer.site nav a:hover { color: var(--text); }
@media (max-width: 560px) {
  nav.top { display: none; }
  main.wrap { padding-top: 32px; }
  .doc { padding: 18px; }
}
