:root {
  color-scheme: light dark;
  --paper: #fcfcfa;
  --ink: #202936;
  --muted: #edf1f4;
  --line: #cbd4dc;
  --link: #165e98;
}
body {
  background: var(--paper);
  color: var(--ink);
  max-width: 72rem;
  margin: 3rem auto;
  padding: 0 1.5rem;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--link); overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.25; scroll-margin-top: 1rem; }
h2 { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
table { display: block; max-width: 100%; overflow-x: auto; font-size: .88rem; border-collapse: collapse; }
th, td { min-width: 9rem; padding: .7rem; border: 1px solid var(--line); vertical-align: top; }
th { background: var(--muted); text-align: left; }
pre { padding: 1rem; background: var(--muted); border-radius: .4rem; overflow-x: auto; }
code { font-size: .85em; }
blockquote { border-left: 4px solid var(--link); margin-left: 0; padding: .8rem 1.2rem; background: var(--muted); border-radius: .3rem; }
nav { background: var(--muted); padding: 1rem 1.5rem; border-radius: .4rem; }
.course-site-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-bottom: 2rem; }
.course-site-nav a[aria-current] { font-weight: 700; }
@media (max-width: 640px) {
  body { margin: 1rem auto; padding: 0 1rem; font-size: 16px; }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #151b24; --ink: #e2e8ef; --muted: #202b38; --line: #46596c; --link: #8bc4f3; }
}
@media print {
  body { max-width: none; font-size: 11pt; }
  table { display: table; font-size: 9pt; }
  nav { display: none; }
}
