/* Palette follows the extension: VS Code Light Modern / Dark Modern. */
:root {
  --bg: #ffffff;
  --panel: #f8f8f8;
  --line: #e5e5e5;
  --text: #3b3b3b;
  --muted: #6e6e6e;
  --accent: #005fb8;
  --accent-text: #ffffff;
  --key: #0451a5;
  --str: #a31515;
  --num: #098658;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1f1f;
    --panel: #181818;
    --line: #2b2b2b;
    --text: #cccccc;
    --muted: #9d9d9d;
    --accent: #0078d4;
    --accent-text: #ffffff;
    --key: #9cdcfe;
    --str: #ce9178;
    --num: #b5cea8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
code { font: 0.9em ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--key); }
a { color: var(--accent); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section.wrap { margin-top: 56px; }
section.hero { margin-top: 0; }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); text-decoration: none; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }

.hero { padding-top: 32px; }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; }
h1 em { font-style: normal; color: var(--num); }
h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.lede { font-size: 20px; max-width: 640px; color: var(--muted); margin: 0 0 24px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }
.note { color: var(--muted); font-size: 14px; }

.shot { margin: 40px 0 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }

.tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
caption { text-align: left; font-weight: 600; padding: 0 0 8px; }
th, td { padding: 10px 16px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 400; color: var(--muted); }
td { text-align: right; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--num); }
tr:first-child th, tr:first-child td { border-top: 0; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 20px; }
.cols p { margin: 0; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 16px 0; }
.checks li { padding: 6px 0 6px 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--num); font-weight: 700; }

.grid { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px; }
.grid li { color: var(--muted); }
.grid strong { color: var(--text); }

.prose { max-width: 720px; padding-top: 16px; padding-bottom: 32px; }
.prose h1 { font-size: 40px; }
.prose h2 { font-size: 20px; margin-top: 32px; }

.foot { display: flex; gap: 20px; justify-content: space-between; color: var(--muted); font-size: 14px; padding-top: 64px; padding-bottom: 32px; }
.foot a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  section.wrap { margin-top: 40px; }
  section.hero { margin-top: 0; }
  .top nav { gap: 14px; }
  .lede { font-size: 18px; }
}
