:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #5f6368;
  --line: #e4e4e4;
  --soft: #f5f5f5;
  --warn: #8a5300;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111111; --fg: #eeeeee; --muted: #a0a4a8; --line: #2b2b2b; --soft: #1b1b1b; --warn: #e5a54b; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
a { color: var(--fg); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 760px; margin: 0 auto; padding: 16px max(20px, env(safe-area-inset-left)); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.logo { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--muted); font-weight: 400; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }
.langs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; padding-top: 4px; border-top: 1px dashed var(--line); }
.langs a { text-decoration: none; color: var(--muted); padding: 2px 0; }
.langs a:hover { color: var(--fg); }
.langs a[aria-current="true"] { color: var(--fg); font-weight: 700; }
html[lang="ja"] body { font-family: "Inter", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; }
html[lang="zh-Hans"] body { font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="zh-Hant"] body { font-family: "Inter", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
html[lang="ko"] body { font-family: "Inter", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; word-break: keep-all; }

main { max-width: 760px; margin: 0 auto; padding: 40px max(20px, env(safe-area-inset-left)) 80px; }
h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
h2 { font-size: 23px; margin: 48px 0 10px; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 18px; margin: 28px 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }
.checked { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 28px 0; }
.card { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 18px; text-decoration: none; }
.card:hover { border-color: var(--fg); }
.card b { display: block; font-size: 18px; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 15px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 12px 0 20px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--fg); font-size: 14px; display: grid; place-items: center; font-family: var(--mono); }

.note { border-left: 3px solid var(--warn); background: var(--soft); padding: 12px 16px; margin: 18px 0; font-size: 15px; }
.note b { color: var(--warn); }

.table-wrap { overflow-x: auto; margin: 14px 0 20px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 14px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ko { font-family: var(--sans); background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; white-space: nowrap; }

.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; }
.sources a { color: var(--muted); }

footer { border-top: 1px solid var(--line); }
footer .inner { max-width: 760px; margin: 0 auto; padding: 20px max(20px, env(safe-area-inset-left)) 40px; font-size: 14px; color: var(--muted); }
