:root { color-scheme: dark; --bg: #0b171f; --panel: #102431; --ink: #f3f7f8; --muted: #a6bbc3; --accent: #ade3d0; --border: #29424e; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; }
button, select { font: inherit; }
button, .action { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.page-header { max-width: 1360px; margin: auto; padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: -.03em; }
.brand span { color: var(--accent); font-weight: 400; }
.page-header nav { display: flex; gap: 24px; font-size: 14px; }
.page-header nav a { color: var(--muted); text-decoration: none; }
main { max-width: 1360px; margin: auto; padding: 18px 32px 48px; }
.talk-heading { margin-bottom: 26px; max-width: 850px; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: 12px; font-weight: 650; letter-spacing: .13em; }
h1 { margin: 8px 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -.04em; }
.talk-heading > p:not(.eyebrow) { color: var(--muted); margin: 12px 0; }
.talk-heading .authors { font-size: 13px; }
.viewer { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 64px #0003; }
.slide-stage { display: block; width: 100%; border: 0; padding: 0; background: transparent; touch-action: pan-y; }
.slide-stage img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.slide-stage:focus-visible { outline-offset: -4px; }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg); }
.slide-navigation { display: flex; align-items: center; gap: 8px; min-width: 0; }
.controls button, .controls select { border: 1px solid var(--border); background: var(--panel); color: var(--ink); border-radius: 6px; min-height: 40px; padding: 7px 14px; }
.controls button:hover:not(:disabled), .action:hover { border-color: var(--accent); }
.controls select { width: min(480px, 45vw); text-overflow: ellipsis; }
#present { white-space: nowrap; }
.below-viewer { padding-top: 16px; }
.keyboard-hint, .deck-note, .offline-status { color: var(--muted); font-size: 13px; margin: 8px 0; }
kbd { font: inherit; padding: 1px 5px; border: 1px solid var(--border); border-radius: 4px; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.action { display: inline-flex; align-items: center; gap: 18px; font-size: 14px; padding: 10px 16px; background: transparent; color: var(--ink); border: 1px solid var(--border); border-radius: 6px; text-decoration: none; }
.action.primary { color: var(--bg); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.transcript { margin-top: 26px; color: var(--muted); font-size: 14px; }
.transcript summary { cursor: pointer; }
.transcript pre { white-space: pre-wrap; font: inherit; border-left: 2px solid var(--border); padding-left: 18px; }
footer { padding: 24px 32px 36px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; text-align: center; }
.image-error { position: absolute; top: 20px; left: 20px; right: 20px; padding: 16px; background: var(--bg); border: 1px solid var(--border); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript { padding: 16px; }
body.presenting { overflow: hidden; }
body.presenting .viewer { position: fixed; inset: 0; z-index: 100; border: 0; border-radius: 0; background: #000; width: 100%; height: 100%; }
body.presenting .slide-stage { width: 100%; height: 100%; }
body.presenting .slide-stage img { width: 100%; height: 100%; }
body.presenting .controls { position: absolute; bottom: 0; left: 0; right: 0; background: #0b171ff2; transition: opacity .2s; }
body.presenting.controls-hidden .controls { opacity: 0; pointer-events: none; }
body.presenting.controls-hidden .slide-stage { cursor: none; }
@media (max-width: 640px) {
  .page-header { padding: 20px 16px; align-items: flex-start; }
  .page-header nav { gap: 12px; font-size: 12px; }
  main { padding: 8px 12px 32px; }
  .talk-heading { padding: 0 4px; }
  .eyebrow { font-size: 10px; }
  .controls { padding: 8px; gap: 8px; }
  .controls button, .controls select { padding: 7px 9px; font-size: 12px; }
  .slide-navigation { gap: 4px; flex: 1; }
  .controls select { width: 100%; min-width: 0; }
  footer { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { .controls { transition: none !important; } }
