:root {
  --ink: #16231f;
  --muted: #505b57;
  --quiet: #65706b;
  --paper: #f5f3ed;
  --surface: #fffefa;
  --line: #dce1dc;
  --line-dark: #bdc7c1;
  --green: #1e6b4e;
  --green-dark: #124a37;
  --mint: #dcefe6;
  --amber: #a8600c;
  --amber-bg: #fff1d9;
  --badge-bg: #16231f;
  --badge-fg: #dfff82;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3ef;
    --muted: #9fb0a8;
    --quiet: #aeb9b3;
    --paper: #16231f;
    --surface: #1b2a24;
    --line: #33433c;
    --line-dark: #43524c;
    --green: #6fd6a8;
    --green-dark: #8fe6bd;
    --mint: #1f3a30;
    --amber: #f0b866;
    --amber-bg: #3a2c14;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
main { max-width: 900px; margin: 0 auto; padding: 28px 28px 100px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; padding: 13px 10px; margin: -13px 0 15px -10px; }
.back-link:hover { color: var(--green); }

header.page-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 44px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--badge-bg); color: var(--badge-fg); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.brand-word { font-weight: 800; font-size: 13px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -.03em; line-height: 1.06; text-wrap: balance; }
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green); }
.dek { max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.context-line { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line-dark); color: var(--quiet); font-size: 12px; font-weight: 650; }
.context-line span + span { padding-left: 20px; border-left: 1px solid var(--line-dark); }

figure { margin: 0; padding: 0; }
figcaption { margin-top: 14px; color: var(--quiet); font-size: 12.5px; line-height: 1.55; max-width: 660px; }
figcaption strong { color: var(--muted); font-weight: 700; }

.terminal-frame { background: #0b120f; border-radius: 14px; border: 1px solid rgba(255,255,255,0.09); overflow: hidden; }
.terminal-chrome { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #131c18; border-bottom: 1px solid rgba(255,255,255,0.07); }
.terminal-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: #4a5750; }
.terminal-chrome .dot:nth-child(1) { background: #e5645a; }
.terminal-chrome .dot:nth-child(2) { background: #e8b95c; }
.terminal-chrome .dot:nth-child(3) { background: #5fc27a; }
.terminal-title { margin-left: 8px; font: 700 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; color: #7c8a83; }

.recording-stage { position: relative; aspect-ratio: 16 / 10; background: #050a08; }
.recording-video { display: block; width: 100%; height: 100%; }
.recording-video[hidden] { display: none; }
.recording-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px; text-align: center; color: #9fb0a8; }
.recording-fallback[hidden] { display: none; }
.recording-fallback strong { color: #eef3ef; font-size: 14px; font-weight: 750; }
.recording-fallback p { margin: 0; max-width: 420px; font-size: 12.5px; line-height: 1.6; }
.recording-fallback code { font: 11.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #8fe6bd; background: rgba(143,230,189,0.1); padding: 2px 6px; border-radius: 5px; }

.grounding { margin-top: 18px; padding: 16px 18px; background: var(--mint); border-radius: 12px; color: var(--green-dark); font-size: 12.5px; line-height: 1.6; }
.grounding strong { font-weight: 800; }

footer.notes-footer { border-top: 1px solid var(--line-dark); padding-top: 22px; margin-top: 48px; color: var(--quiet); font-size: 11.5px; line-height: 1.6; }
footer.notes-footer p { margin: 0 0 8px; max-width: 720px; }
footer.notes-footer p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  main { padding: 20px 18px 70px; }
}
