:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1b1f27;
  --muted: #5b6472;
  --line: #e2e6ec;
  --accent: #2563eb;
  --accent-text: #ffffff;
  --note-bg: #fff7e6;
  --note-line: #f2d49b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151b;
    --surface: #1a1f28;
    --text: #e8ebf0;
    --muted: #9aa4b2;
    --line: #2b3240;
    --accent: #6ea0ff;
    --accent-text: #0c1220;
    --note-bg: #2a2314;
    --note-line: #5c4a1f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
header.site .brand { font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
header.site .brand img { width: 28px; height: 28px; border-radius: 6px; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
header.site nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--text); }

header.site nav a.lang { border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; font-size: .9rem; }
header.site .wrap > .lang { margin-left: auto; border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; font-size: .9rem; color: var(--muted); text-decoration: none; }

main { padding: 32px 0 48px; }
h1 { font-size: 1.9rem; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 40px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }
p, ul, ol { margin: 8px 0; }
li { margin: 4px 0; }
.lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 20px; }
code { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: .92em; }

.hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero img { width: 88px; height: 88px; border-radius: 20px; }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 600;
  background: var(--accent); color: var(--accent-text); text-decoration: none; border: 1px solid transparent;
}
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.card h3 { margin-top: 0; }
.card p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { border-color: var(--accent); }

.note { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 8px; padding: 10px 14px; margin: 16px 0; }
.steps { padding-left: 1.3em; }
.steps li { margin: 10px 0; }

.steps figure { margin: 10px 0 4px; }
.steps figure img { display: block; width: 100%; max-width: 480px; height: auto; border-radius: 12px; border: 1px solid var(--line); }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 20px 0 32px; }
footer.site a { color: var(--muted); }
