:root {
  --bg: #0a0b0d;
  --panel: #111317;
  --line: #282d35;
  --text: #f2f0e9;
  --muted: #969da8;
  --accent: #b9f45d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  justify-content: center;
}

.sheet {
  width: 100%;
  max-width: 820px;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand svg { display: block; }

.wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}

h1 {
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

@media (max-width: 640px) {
  .cols { grid-template-columns: 1fr; }
}

.cols section,
.tryit {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 20px 22px;
}

h2 {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

ol, ul { padding-left: 18px; }

li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 9px;
}

li:last-child { margin-bottom: 0; }

li strong { color: var(--text); }

.tryit p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tryit p strong { color: var(--text); }

.prompt {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text) !important;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.foot .accent {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

@media print {
  .pdf-link { display: none; }
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  :root {
    --bg: #ffffff;
    --panel: #f4f5f1;
    --line: #d9dcd3;
    --text: #14161a;
    --muted: #4c5158;
    --accent: #4a7a00;
    background: #ffffff;
  }
  .sheet { padding: 24px 8px; gap: 20px; }
  @page { margin: 14mm; }
}
