:root {
  --bg: #f7f9f8; --fg: #0f1714; --sub: #4d5853; --muted: #87918c;
  --line: rgba(15,23,20,.1); --line-strong: rgba(15,23,20,.25); --accent: #0f9a72;
  --surface: oklch(99.4% 0.004 165); --bg-glass: oklch(97.8% 0.004 165 / .85); --mark: oklch(96% 0.07 100);
  --font-body: "Wanted Sans Variable", "Wanted Sans", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.75; -webkit-font-smoothing: antialiased; word-break: keep-all;
}
a { color: inherit; }
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--gutter); background: var(--bg-glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 18px; letter-spacing: -.04em; line-height: 1; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-img { display: block; height: 26px; width: auto; }
.tabs { display: flex; gap: 4px; }
.tabs a { font-size: 13px; text-decoration: none; padding: 7px 14px; border-radius: 999px; color: var(--sub); }
.tabs a[aria-current] { background: var(--fg); color: var(--surface); }

main { max-width: 820px; margin: 0 auto; padding: 72px var(--gutter) 120px; }
h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; }
.meta { margin-top: 14px; font-size: 13px; color: var(--muted); }
.intro { margin-top: 28px; color: var(--sub); font-size: 16.5px; }

.toc { margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); columns: 2; column-gap: 32px; list-style: none; font-size: 13.5px; }
.toc li { break-inside: avoid; padding: 3px 0; }
.toc a { text-decoration: none; color: var(--sub); }
.toc a:hover { color: var(--fg); }

section { margin-top: 56px; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
h2 small { font-size: 12px; color: var(--muted); font-weight: 400; margin-right: 8px; font-variant-numeric: tabular-nums; }
section p, section li { font-size: 16px; color: var(--sub); }
section p { margin-top: 14px; }
section ol, section ul { margin-top: 12px; padding-left: 1.4em; }
section li { margin-top: 6px; }
section li::marker { color: var(--muted); }
strong { color: var(--fg); font-weight: 600; }

table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); color: var(--sub); }
th { font-weight: 600; color: var(--fg); font-size: 13px; white-space: nowrap; }
thead th { border-bottom: 1px solid var(--line-strong); }
.tbl { overflow-x: auto; }

.box { margin-top: 16px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.ph { background: var(--mark); color: var(--fg); padding: 0 4px; border-radius: 3px; }

footer { border-top: 1px solid var(--line); padding: 28px var(--gutter); text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  main { padding-top: 48px; }
  .toc { columns: 1; }
  .tabs a { padding: 6px 10px; font-size: 12px; }
  th, td { font-size: 13px; }
}
:where(a, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
