@font-face { font-family: "Instrument Serif"; src: url(assets/fonts/InstrumentSerif-Regular.ttf) format("truetype"); font-style: normal; font-display: block; }
@font-face { font-family: "Instrument Serif"; src: url(assets/fonts/InstrumentSerif-Italic.ttf) format("truetype"); font-style: italic; font-display: block; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "JetBrains Mono"; src: url(assets/fonts/JetBrainsMono-VariableFont_wght.ttf) format("truetype"); font-weight: 100 800; font-display: block; }

:root { --bg: #0a0d0f; --ink: #ECEAE4; --muted: #a9b0b2; --accent: #E3B65C; --rule: #26313a; --code: #0f1519; --hl: rgba(227,182,92,.16); }
html, body { margin: 0; height: 100%; background: #040607; overflow: hidden; color: var(--ink); }
.stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.deck { position: relative; width: 1920px; height: 1080px; flex: none; transform-origin: center center; background: var(--bg); overflow: hidden; }
.deck > section { position: absolute; inset: 0; display: none; box-sizing: border-box; padding: 72px 96px; font: 400 40px/1.3 Inter, system-ui, sans-serif; }
.deck > section.active { display: flex; flex-direction: column; }
.deck > section > aside.notes { display: none !important; }
h1, h2, p, figure, pre { margin: 0; }
h2 { font: 400 76px/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -.01em; margin-bottom: 40px; }
h2 em { color: var(--accent); font-style: italic; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.cap { font-size: 36px; color: var(--muted); }
.big { font: 400 120px/1 "Instrument Serif", Georgia, serif; color: var(--accent); }
.row { display: flex; gap: 56px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 24px; }
.fill { flex: 1; min-height: 0; }
img.fit { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.bleed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; left: 0; right: 0; bottom: 0; height: 460px; background: linear-gradient(transparent, rgba(5,7,8,.8) 45%, rgba(5,7,8,.95)); }
.over { position: absolute; left: 96px; bottom: 72px; right: 96px; }
.over h2 { margin: 0 0 12px; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
pre.code { background: var(--code); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 8px; padding: 24px 32px; font: 400 30px/1.45 "JetBrains Mono", ui-monospace, monospace; color: #dfe4e2; white-space: pre; }
pre.code .hl { background: var(--hl); display: inline-block; width: 100%; }
pre.code .c { color: #7f8b8e; }
a.card { color: inherit; text-decoration: none; }
.capture { flex: 1; flex-direction: column; gap: 32px; border: 4px dashed var(--accent); border-radius: 16px; display: flex; align-items: center; justify-content: center; text-align: center; font: 500 44px/1.4 "JetBrains Mono", monospace; color: var(--accent); background: repeating-linear-gradient(135deg, #0d1114 0 24px, #0b0e10 24px 48px); }
.fallback-note { display: none; }
/* notes overlay ('n') */
.notes-panel { position: fixed; left: 0; right: 0; bottom: 0; max-height: 42vh; overflow: auto; background: rgba(8,11,13,.95); border-top: 2px solid var(--accent); color: var(--ink); font: 400 20px/1.5 Inter, system-ui, sans-serif; padding: 16px 28px 24px; z-index: 20; display: none; }
.notes-panel.on { display: block; }
.notes-panel .meta { font: 500 15px "JetBrains Mono", monospace; color: var(--accent); margin-bottom: 8px; }
.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(227,182,92,.12); z-index: 9; }
.progress span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); }
body.render .progress { display: none; }

.si-btn{position:fixed;right:14px;bottom:14px;z-index:60;width:40px;height:40px;border-radius:8px;border:1px solid rgba(236,234,228,.25);background:rgba(10,13,15,.55);color:#ECEAE4;font-size:20px;cursor:pointer;opacity:.25;transition:opacity .2s}
.si-btn:hover{opacity:1}
.slide-index{position:fixed;inset:0;z-index:70;background:rgba(10,13,15,.94);display:none;overflow:auto;padding:5vh 5vw}
.slide-index.on{display:block}
.si-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.si-grid a{display:flex;gap:12px;align-items:baseline;padding:14px 16px;border:1px solid rgba(236,234,228,.15);border-radius:8px;color:#ECEAE4;text-decoration:none;font:400 18px/1.35 Inter,system-ui,sans-serif}
.si-grid a b{color:#E3B65C;min-width:2ch}
.si-grid a:hover,.si-grid a.cur{border-color:#E3B65C;background:rgba(227,182,92,.08)}
