:root {
  --bg: #ffffff;
  --fg: #14161a;
  --muted: #5c636e;
  --line: #e3e6ea;
  --accent: #2f6df6;
  --card: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --fg: #e9ecf1;
    --muted: #99a1ad;
    --line: #24282e;
    --accent: #6f9bff;
    --card: #171a1f;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.wrap { max-width: 720px; margin: 0 auto; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--fg);
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  margin-left: 18px;
}

nav.site a:hover, nav.site a[aria-current="page"] { color: var(--accent); }

h1 {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  padding-top: 4px;
}

h3 { font-size: 17px; margin: 28px 0 8px; }

p, li { color: var(--fg); }

.meta {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
}

ul { padding-left: 22px; }
li { margin: 6px 0; }

a { color: var(--accent); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}

.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.notice {
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 28px 0;
}

.lang-divider {
  margin: 72px 0 40px;
  border: 0;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 20px 0;
}

.table-scroll { overflow-x: auto; }

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { font-weight: 600; color: var(--muted); font-size: 14px; }

footer.site {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer.site a { color: var(--muted); }
