:root {
  --bg: #101318;
  --raised: #171b22;
  --code: #0c0f14;
  --line: #2c3340;
  --text: #e8ebf0;
  --muted: #a8b0bd;
  --accent: #9ec1ff;
  --accent-dim: #243044;
  --good: #c5e0d0;
  --limit: #ead7b8;
  --max: 68rem;
  color-scheme: dark;
  font-family: system-ui, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #d5e4ff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  z-index: 2;
}
.skip:focus { transform: none; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

header {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 19, 24, 0.94);
  position: sticky;
  top: 0;
  z-index: 1;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.05rem;
}

nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

main { padding: 2.25rem 0 3rem; }

h1 {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 36rem;
}

h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.1rem 0 0.7rem; letter-spacing: -0.02em; }
h3 { font-size: 1.08rem; line-height: 1.35; margin: 1.4rem 0 0.35rem; }

p, li { max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

.shot {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.4rem 0 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c0e13;
}

.caption { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

.note, .limit {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: var(--raised);
  margin: 1.2rem 0;
}
.note p, .limit p { margin: 0.35rem 0; }
.limit { border-color: #5a4a30; }

ol.steps { padding-left: 1.2rem; }
ol.steps li { margin: 0.45rem 0; }
ol.steps li::marker { color: var(--accent); font-weight: 700; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { background: var(--raised); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.does { background: rgba(80, 120, 96, 0.08); }
td.doesnt { background: rgba(160, 120, 70, 0.06); }

pre {
  overflow-x: auto;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  line-height: 1.45;
  font-size: 0.86rem;
}
code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}
p code, li code, td code {
  background: var(--raised);
  padding: 0.05em 0.3em;
  border-radius: 4px;
}

.faq h3 { margin-top: 1.25rem; }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1.4rem 0 2rem;
}
footer p { margin: 0.35rem 0; }

@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 1.25rem)); }
  h1 { max-width: none; }
  nav { gap: 0.45rem 0.75rem; }
}
