:root {
  --bg: #f2f5f8;
  --surface: #fff;
  --ink: #14213d;
  --muted: #4c5a73;
  --line: #d3dce7;
  --dot: #e8a33d;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1626;
    --surface: #172138;
    --ink: #e8eef7;
    --muted: #a3b1c8;
    --line: #2a3957;
    --dot: #f2b04f;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    17px/1.65 "Bricolage Grotesque",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--dot);
  outline-offset: 3px;
}
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
header nav a {
  margin-left: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}
header nav a:hover {
  color: var(--ink);
}
h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 40px 0 8px;
}
h2 {
  font-size: 1.35rem;
  margin: 36px 0 8px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.05rem;
  margin: 20px 0 4px;
}
p,
li {
  max-width: 68ch;
}
ul {
  padding-left: 1.2em;
}
li {
  margin: 4px 0;
}
.lead {
  color: var(--muted);
  font-size: 1.1rem;
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--dot);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
}
.toc {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}
.toc a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.toc a:hover {
  border-color: var(--ink);
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 0.95rem;
}
.tw {
  overflow-x: auto;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 600;
}
section.lang {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
footer {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}
