:root {
  color-scheme: light dark;
  --bg: #FBF7F0;
  --card: #FFFFFF;
  --border: #E7E1D5;
  --fg: #14213D;
  --muted: #6E7280;
  --accent: #F2643D;
  --accent-soft: #FBEAE4;
  --secondary: #146B68;
  --secondary-soft: #E7F2F1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171F;
    --card: #1C2029;
    --border: #2B303B;
    --fg: #F3F1EA;
    --muted: #9AA0AE;
    --accent: #F2794F;
    --accent-soft: rgba(242, 100, 61, 0.16);
    --secondary: #3FA39E;
    --secondary-soft: rgba(20, 107, 104, 0.22);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding-block: 40px;
  padding-inline: max(16px, calc((100% - 720px) / 2));
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
.wrap { max-width: 680px; margin-inline: auto; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--accent);
  transform: rotate(-3deg);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 12px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}
.lang-toggle button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1 {
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  text-wrap: balance;
}
.updated { color: var(--muted); font-size: 12px; margin: 0 0 28px; }
.statement {
  background: var(--secondary-soft);
  border: 1px solid color-mix(in srgb, var(--secondary) 30%, transparent);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 28px;
}
.statement h2 {
  font-size: 14px;
  color: var(--secondary);
  margin: 0 0 8px;
}
.statement p { margin: 0; font-size: 14px; color: var(--fg); opacity: 0.92; }
section { margin-bottom: 26px; }
section h2 {
  font-size: 15px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
section p, section li {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
section p + p { margin-top: 8px; }
section ul, section ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; }
section strong { color: var(--fg); }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 28px; font-size: 13px; }
footer {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 32px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
footer a { font-weight: 500; }
[hidden] { display: none !important; }
