
/* Layout: single reading column, lab-notebook feel; amber "drive fault LED" accent, code and logs in mono panels */
:root {
  --bg: #f6f7f8; --fg: #1c2228; --muted: #5a6570; --rule: #d6dbe0;
  --panel: #eceff2; --accent: #b45f06; --ok: #2f7d4a; --bad: #b3261e;
  --display: "Helvetica Neue", Arial, sans-serif;
  --body: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #12161a; --fg: #e3e7eb; --muted: #97a2ad; --rule: #2b333b;
  --panel: #1b2127; --accent: #f0a04b; --ok: #6cc28c; --bad: #f2867d; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #12161a; --fg: #e3e7eb; --muted: #97a2ad; --rule: #2b333b;
  --panel: #1b2127; --accent: #f0a04b; --ok: #6cc28c; --bad: #f2867d; color-scheme: dark }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 18px; line-height: 1.65; }
.wrap { max-width: 44rem; margin: 0 auto; padding-block: 3rem 5rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.15; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; margin: .4rem 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; font-weight: 700; margin: 2.8rem 0 .6rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 1.8rem 0 .4rem; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: .55rem; }
.led { width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 .5rem var(--accent); }
@media (prefers-reduced-motion: no-preference) { .led { animation: blink 1.4s steps(2, end) infinite; } }
@keyframes blink { 50% { opacity: .25; } }
.byline { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--fg); }
p, li { max-width: 65ch; }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: .86em; background: var(--panel); padding: .08em .3em; border-radius: 3px; }
pre { font-family: var(--mono); font-size: .8rem; line-height: 1.55; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: 1rem; overflow-x: auto; }
pre code { background: none; padding: 0; }
.chain { display: grid; gap: .5rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.chain li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; align-items: start; border-top: 1px solid var(--rule); padding-top: .6rem; max-width: none; }
.chain .n { font-family: var(--mono); font-weight: 600; color: var(--accent); }
.chain li:last-child .n { color: var(--bad); }
.specs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.specs td { border-bottom: 1px solid var(--rule); padding: .4rem .6rem .4rem 0; vertical-align: top; }
.specs td:first-child { font-family: var(--mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.tablewrap { overflow-x: auto; }
.callout { border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1rem; margin: 1.5rem 0; }
.callout strong { font-family: var(--display); }
.ok { color: var(--ok); font-weight: 600; } .bad { color: var(--bad); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
footer { font-family: var(--mono); font-size: .78rem; color: var(--muted); }

.site { max-width: 44rem; margin: 0 auto; padding-block: 1.2rem 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); font-family: var(--mono); font-size: .85rem; display: flex; justify-content: space-between; }
.site a { color: var(--fg); text-decoration: none; font-weight: 600; }
.postlist { list-style: none; padding: 0; } .postlist li { border-top: 1px solid var(--rule); padding: 1rem 0; }
.postlist a { font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
