/* r2rlabs.com — shared by every page. */
:root {
  --bg: #0c0f16;
  --panel: #141a24;
  --line: #242d3b;
  --line-soft: #1c242f;
  --text: #e8edf4;
  --muted: #97a2b4;
  --dim: #7c8798;
  --accent: #4ade80;
  --accent-ink: #06210f;
  --amber: #f0b429;
  --blue: #7da9f0;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: #86efac; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(12, 15, 22, 0.92);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.bar { display: flex; align-items: center; gap: 20px; padding: 16px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; color: var(--text); text-decoration: none; }
nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }
h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 20px; max-width: 16ch; }
h2 { font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -0.02em; margin: 0 0 16px; }
h3 { font-size: 17px; font-weight: 500; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 62ch; }
section { padding: 64px 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; padding-top: 56px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #2a3646; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-size: 16px; font-weight: 500; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #86efac; color: var(--accent-ink); }
.btn-ghost { border: 1px solid #2e3b4c; color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
code, pre { font-family: var(--mono); }
.cmd { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: #c3ccda; overflow-x: auto; margin: 24px 0; }
.cmd .prompt { color: var(--dim); user-select: none; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-x: auto; font-size: 13.5px; color: #c3ccda; line-height: 1.75; margin: 0 0 16px; }
.terminal { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 28px 0 0; }
.terminal .top { display: flex; align-items: center; gap: 7px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.terminal .top span.led { width: 10px; height: 10px; border-radius: 50%; background: #2e3b4c; display: inline-block; }
.terminal .top .label { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.terminal .body { padding: 18px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.95; color: #c3ccda; overflow-x: auto; }
.ok { color: var(--accent); }
.warn { color: var(--amber); }
.note { color: var(--dim); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card svg { margin-bottom: 14px; }
ul.clean { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
ul.clean li { color: var(--muted); font-size: 15px; padding-left: 26px; position: relative; }
ul.clean li b { color: var(--text); font-weight: 500; }
ul.clean li::before { position: absolute; left: 0; top: 0; font-family: var(--mono); }
ul.is li::before { content: "✓"; color: var(--accent); }
ul.isnt li::before { content: "✕"; color: var(--amber); }
ol.principles { counter-reset: p; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
ol.principles li { counter-increment: p; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: #c3ccda; font-size: 15px; }
ol.principles li::before { content: counter(p); font-family: var(--mono); color: var(--accent); margin-right: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--dim); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
td.num { font-family: var(--mono); color: var(--text); white-space: nowrap; }
td { color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--dim); font-size: 14px; }
footer a { color: var(--muted); }
.footer-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-row .spacer { margin-left: auto; }

/* Term and meaning, for rule and tool lists. */
.rows { display: grid; gap: 2px; margin: 0 0 16px; }
.rows .row { display: grid; grid-template-columns: minmax(180px, 30%) 1fr; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line-soft); align-items: baseline; }
.rows .row:first-child { border-top: 0; }
.rows .row p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 620px) { .rows .row { grid-template-columns: 1fr; gap: 4px; } }
