:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --accent: #0a84ff;
  --card: #f5f5f7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --fg: #f2f2f7;
    --muted: #98989d;
    --line: #2c2c2e;
    --accent: #409cff;
    --card: #1c1c1e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
header.site .brand { font-weight: 700; color: var(--fg); letter-spacing: -0.01em; }
header.site nav { display: flex; gap: 14px; font-size: 15px; flex-wrap: wrap; }
@media (max-width: 520px) { header.site nav { font-size: 14px; gap: 12px; } }
header.site nav a { color: var(--muted); }
header.site nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
main { padding: 40px 0 64px; }
h1 { font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 18px; }
@media (max-width: 640px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table thead, table tbody, table tr { display: table; width: 100%; min-width: 560px; table-layout: fixed; }
}
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.card { background: var(--card); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.toc { font-size: 15px; }
.toc ol { columns: 2; column-gap: 24px; }
@media (max-width: 520px) { .toc ol { columns: 1; } }
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 40px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 560px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 28px 0; }
.grid .card { margin: 0; }
.grid .card h3 { margin: 0 0 6px; }
.grid .card p { margin: 0; color: var(--muted); font-size: 15px; }
footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; padding: 24px 0 40px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site a { color: var(--muted); }
footer.site .biz { display: block; margin-top: 14px; font-size: 13px; line-height: 1.6; }
.lang { font-size: 14px; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--card); padding: 1px 5px; border-radius: 4px; }
