/* Burgr pages, on the same drawing sheet as the SolidOps landing (landing.css):
   engineering grid paper, one orange accent. Two themes: dark (near-black
   ground, cream ink, the landing's) and light (cream paper, charcoal ink).
   The theme follows the system unless the visitor picks one with the header
   toggle (assets/theme.js sets data-theme on <html>). */

:root {
  --bp-ground: #08090b;
  --bp-ink: #ece9e1;
  --bp-strong: #ffffff;
  --bp-muted: rgba(236, 233, 225, 0.62);
  --bp-accent: #ff7800;
  --bp-line: rgba(236, 233, 225, 0.19);
  --bp-line-strong: rgba(236, 233, 225, 0.26);
  --bp-grid-fine: rgba(236, 233, 225, 0.028);
  --bp-grid-coarse: rgba(236, 233, 225, 0.055);
  --bp-panel: rgba(4, 5, 7, 0.92);
  --bp-header: rgba(8, 9, 11, 0.85);
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

/* Light: the same sheet printed on cream paper. The accent is darkened so
   orange text keeps a readable contrast on the light ground. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bp-ground: #f4f1e9;
    --bp-ink: #1f1f1d;
    --bp-strong: #000000;
    --bp-muted: rgba(31, 31, 29, 0.66);
    --bp-accent: #b84d00;
    --bp-line: rgba(31, 31, 29, 0.16);
    --bp-line-strong: rgba(31, 31, 29, 0.26);
    --bp-grid-fine: rgba(31, 31, 29, 0.035);
    --bp-grid-coarse: rgba(31, 31, 29, 0.07);
    --bp-panel: rgba(255, 253, 248, 0.92);
    --bp-header: rgba(244, 241, 233, 0.88);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bp-ground: #f4f1e9;
  --bp-ink: #1f1f1d;
  --bp-strong: #000000;
  --bp-muted: rgba(31, 31, 29, 0.66);
  --bp-accent: #b84d00;
  --bp-line: rgba(31, 31, 29, 0.16);
  --bp-line-strong: rgba(31, 31, 29, 0.26);
  --bp-grid-fine: rgba(31, 31, 29, 0.035);
  --bp-grid-coarse: rgba(31, 31, 29, 0.07);
  --bp-panel: rgba(255, 253, 248, 0.92);
  --bp-header: rgba(244, 241, 233, 0.88);
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bp-ground);
  background-image:
    linear-gradient(var(--bp-grid-coarse) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-coarse) 1px, transparent 1px),
    linear-gradient(var(--bp-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-fine) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  color: var(--bp-ink);
  font: 17px/1.6 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wrap { max-width: 48rem; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */

header.top { border-bottom: 1px solid var(--bp-line); background: var(--bp-header); }
header.top .wrap {
  max-width: 62rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
header.top nav.links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
header.top a { color: var(--bp-ink); text-decoration: none; }
header.top a:hover, header.top a:focus-visible { color: var(--bp-accent); }
header.top .brand { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; margin-right: auto; }
header.top a.on { color: var(--bp-accent); }

header.top a.lang { border: 1px solid var(--bp-line-strong); padding: 2px 8px; }
header.top a.lang:hover, header.top a.lang:focus-visible { border-color: var(--bp-accent); }

.theme-toggle {
  font: inherit;
  letter-spacing: inherit;
  color: var(--bp-ink);
  background: none;
  border: 1px solid var(--bp-line-strong);
  padding: 2px 10px;
  cursor: pointer;
}
.theme-toggle:hover, .theme-toggle:focus-visible { color: var(--bp-accent); border-color: var(--bp-accent); }

@media (max-width: 62rem) {
  header.top .brand { order: 1; }
  header.top a.lang { order: 2; }
  header.top .theme-toggle { order: 3; }
  header.top nav.links { order: 4; flex-basis: 100%; }
}

/* ---------- type ---------- */

h1 { text-wrap: balance; font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; margin: 2.4rem 0 .7rem; }
h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2.8rem 0 .9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bp-muted);
}
h2::after { content: ''; flex: 0 1 160px; height: 1px; background: var(--bp-line-strong); }
h3 { font-size: 1.05rem; font-weight: 600; }
p.lead { font-size: 1.15rem; color: var(--bp-muted); }
a { color: var(--bp-accent); }
strong { color: var(--bp-strong); }

/* ---------- code, tables ---------- */

pre {
  background: var(--bp-panel);
  border: 1px solid var(--bp-line);
  border-left: 2px solid var(--bp-accent);
  padding: 12px 14px;
  overflow-x: auto;
  font-size: .82rem;
  line-height: 1.55;
}
code { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { color: var(--bp-strong); }

table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border-bottom: 1px solid var(--bp-line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { font-family: var(--mono); font-size: .78rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--bp-muted); }

/* ---------- blocks ---------- */

.hero { padding: 2rem 0 1rem; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.note { color: var(--bp-muted); font-size: .9rem; }
h3 .note { font-weight: 400; }

/* Burgr lockup: the burger layers of the README logo, the name set in the
   site's own type. The layers read on both themes, so no label behind them. */
.lockup { display: flex; align-items: center; gap: 18px; margin-top: 2rem; }
.lockup img { display: block; width: 52px; height: auto; }
.lockup span { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.lockup + h1 { margin-top: 1.8rem; }

.tags { margin: .4rem 0 .6rem; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--bp-muted); border: 1px solid var(--bp-line-strong); padding: 1px 8px; }

.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.card { position: relative; border: 1px solid var(--bp-line); background: var(--bp-panel); padding: 14px 16px; }
.card::before { content: ''; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; border-top: 1px solid var(--bp-accent); border-left: 1px solid var(--bp-accent); }
.card h3 { margin: .1rem 0 .4rem; }
.card pre { white-space: pre-wrap; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--bp-line); margin-top: 4rem; padding: 1.5rem 0; color: var(--bp-muted); font-size: .85rem; font-family: var(--mono); }
