:root {
  --paper: #f6f5f1;
  --surface: #ffffff;
  --band: #ecebe6;
  --ink: #15181d;
  --muted: #5b6068;
  --line: #d8d5cc;
  --accent: #1f3b63;
  --accent-hover: #152a47;
  --accent-ink: #ffffff;
  --code-bg: #efede7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111419;
    --surface: #171b21;
    --band: #1b2028;
    --ink: #e9e7e1;
    --muted: #a3a8b1;
    --line: #2c323c;
    --accent: #7fa6dc;
    --accent-hover: #a3c0e8;
    --accent-ink: #0d1117;
    --code-bg: #20262f;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
code {
  font: .92em ui-monospace, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 2px;
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 2px;
}
pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.55; overflow-wrap: normal; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark { width: 18px; height: 18px; border: 2px solid var(--accent); position: relative; flex: none; }
.mark::after { content: ""; position: absolute; left: 3px; top: 3px; width: 8px; height: 8px; background: var(--accent); }
.brand-name { font: 400 20px/1 Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
.brand-name b { font: 700 12px/1 "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .2em; color: var(--accent); vertical-align: 3px; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14.5px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); text-decoration: underline; }
.nav .nav-cta { background: var(--accent); color: var(--accent-ink); padding: 7px 14px; border-radius: 2px; font-weight: 600; text-decoration: none; }
.nav .nav-cta:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }

/* hero */
.hero { padding: 72px 0 56px; background: var(--surface); border-bottom: 1px solid var(--line); }
.kicker { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
h1 { font: 400 54px/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.02em; margin: 0 0 20px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.lede strong { color: var(--ink); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 2px; font-weight: 600; text-decoration: none; font-size: 15.5px; border: 1px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--band); }
.facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
.facts strong { color: var(--ink); }

/* sections */
.band { background: var(--band); padding: 40px 0; border-bottom: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 20px 22px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.section { padding: 56px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font: 400 32px/1.2 Georgia, "Times New Roman", serif; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 18px; margin: 28px 0 8px; }
.note { color: var(--muted); font-size: 14.5px; }
.steps li, .rules li { margin-bottom: 8px; }
.plain { padding-left: 1.2em; }
.plain li { margin-bottom: 10px; }

/* settings */
.settings { margin: 18px 0; border: 1px solid var(--line); background: var(--paper); }
.settings div { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); }
.settings div:last-child { border-bottom: 0; }
.settings dt { padding: 10px 14px; font-weight: 600; font-size: 14.5px; }
.settings dd { margin: 0; padding: 10px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy { font: 600 12.5px/1 "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 5px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 2px; cursor: pointer; }
.copy:hover { border-color: var(--accent); }

/* details */
details { border: 1px solid var(--line); background: var(--surface); margin: 0 0 10px; }
.section.alt details { background: var(--paper); }
summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style-position: inside; }
summary span { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 6px; }
details[open] summary { border-bottom: 1px solid var(--line); }
details > *:not(summary) { margin-left: 16px; margin-right: 16px; }
details > ol, details > ul { padding-left: 1.3em; }

/* commands table */
.cmds { border-collapse: collapse; width: 100%; font-size: 15px; }
.cmds td { border-top: 1px solid var(--line); padding: 9px 8px; vertical-align: top; }
.cmds td:first-child { width: 48%; }

/* footer */
.foot { padding: 32px 0 44px; color: var(--muted); font-size: 14.5px; }
.foot .small { font-size: 13px; max-width: 760px; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 36px; }
  h1 { font-size: 38px; }
  .lede { font-size: 17px; }
  .grid3 { grid-template-columns: 1fr; }
  .settings div { grid-template-columns: 1fr; }
  .settings dt { padding-bottom: 0; }
  .nav { gap: 12px; font-size: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .cmds td:first-child { width: auto; }
  .cmds, .cmds tbody, .cmds tr, .cmds td { display: block; }
  .cmds td:first-child { border-top: 1px solid var(--line); padding-bottom: 0; }
  .cmds td:last-child { border-top: 0; padding-top: 2px; color: var(--muted); }
}
