:root {
  color-scheme: light dark;
  --bg: #fdfcfa;
  --fg: #1c1b19;
  --muted: #6b6760;
  --line: #e7e3dc;
  --accent: #2f5fd0;
  --soft: #f3f0ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --fg: #e9e6e1;
    --muted: #9a958d;
    --line: #2d2b28;
    --accent: #8aa9ff;
    --soft: #201f1d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }
a { color: var(--accent); text-underline-offset: 0.2em; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
h1 { font-size: 1.9rem; margin: 0.25rem 0 0.5rem; }

.back { display: inline-block; margin-bottom: 1.5rem; text-decoration: none; font-size: 0.95rem; }
.course { margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.meta { margin: 0; color: var(--muted); }
.toc { display: flex; gap: 1.25rem; margin: 1.25rem 0 0; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }

.list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.list li { border-top: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.15rem 1rem; padding: 0.9rem 0; color: inherit; text-decoration: none; }
.list a:hover .title { color: var(--accent); }
.list .date { color: var(--muted); font-variant-numeric: tabular-nums; }
.list .title { font-weight: 600; }
.list .course { grid-column: 2; font-size: 0.8rem; }
@media (max-width: 30rem) {
  .list a { grid-template-columns: 1fr; }
  .list .course { grid-column: 1; }
}

.prose h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
.prose blockquote { margin: 1rem 0; padding: 0.75rem 1rem; background: var(--soft); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; }
.prose blockquote > :first-child { margin-top: 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: 0.25rem 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.prose th, .prose td { padding: 0.45rem 0.7rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose code { font-size: 0.9em; background: var(--soft); padding: 0.1em 0.3em; border-radius: 4px; }

.transcript { margin-top: 3rem; border-top: 1px solid var(--line); }
.transcript .note { color: var(--muted); font-size: 0.9rem; }
.ts { display: inline-block; margin-right: 0.4rem; color: var(--muted); font: 0.8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.lecturer { margin: 0 0 0.15rem; }
