/* Lumen, the house style of the videos: a soft lit field, a serif headline with one warm accent,
   quiet sans text and mono for code. */
:root {
  --ink: #171A2B;
  --muted: #5E6378;
  --thread: #2C3A8C;
  --warm: #E8632B;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(23, 26, 43, 0.12);
  --field: radial-gradient(1200px 700px at 85% 10%, #fbd3bd 0%, rgba(251, 211, 189, 0) 60%),
           radial-gradient(900px 600px at 0% 0%, #cdd7ff 0%, rgba(205, 215, 255, 0) 60%),
           radial-gradient(900px 700px at 10% 100%, #d7efe4 0%, rgba(215, 239, 228, 0) 60%),
           #f4eff1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ECEAF4;
    --muted: #A6A9BC;
    --thread: #A9B6FF;
    --warm: #FF8A55;
    --card: rgba(30, 32, 48, 0.82);
    --line: rgba(236, 234, 244, 0.14);
    --field: radial-gradient(1200px 700px at 85% 10%, #3b2522 0%, rgba(59, 37, 34, 0) 60%),
             radial-gradient(900px 600px at 0% 0%, #1f2747 0%, rgba(31, 39, 71, 0) 60%),
             #14151f;
  }
}
* { box-sizing: border-box; }
html { background: var(--field); background-attachment: fixed; }
body {
  overflow-x: hidden; margin: 0 auto; max-width: 1080px; padding: 0 24px 48px;
  font: 17px/1.6 Inter, system-ui, sans-serif; color: var(--ink);
}
a { color: var(--thread); text-decoration-thickness: 1px; text-underline-offset: 3px; }
code { font: 0.92em "JetBrains Mono", ui-monospace, monospace; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 7vw, 84px); line-height: 1.02; margin: 0.15em 0 0.3em; overflow-wrap: break-word; }
h1 span { display: block; color: var(--muted); }
h1 em { color: var(--warm); }
h2 { font-size: 36px; line-height: 1.15; margin: 56px 0 12px; }
.hero { padding-top: 56px; }
.hero-week h1 { font-size: clamp(40px, 6vw, 68px); }
.kicker { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kicker a { color: inherit; text-decoration: none; }
.lede { max-width: 760px; font-size: 19px; }
.note, .meta { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; list-style: none; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; }
.facts b { font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(23, 26, 43, 0.12); }
.card img { width: 100%; height: auto; display: block; }
.card-week { padding: 12px 16px 0; font-size: 13px; color: var(--muted); }
.card-title { padding: 2px 16px 0; font: 26px/1.15 "Instrument Serif", Georgia, serif; }
.card-topic { padding: 6px 16px 16px; font-size: 15px; color: var(--muted); }
.schedule { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
.schedule th, .schedule td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.schedule td:first-child { width: 4em; color: var(--muted); }
video { width: 100%; border-radius: 14px; background: #000; display: block; margin-top: 8px; }
.week { display: grid; grid-template-columns: 9em 1fr; gap: 8px 20px; margin: 0; }
.week dt { color: var(--muted); }
.week dd { margin: 0; }
.pager { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); }
.foot { margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  body { padding: 0 16px 40px; }
  .week { grid-template-columns: 1fr; }
  .schedule td:nth-child(3), .schedule th:nth-child(3) { display: none; }
}

.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0 0; font-size: 15px; }
.top a { color: var(--ink); text-decoration: none; }
.top a:hover { color: var(--thread); }
.top .brand { font: 22px "Instrument Serif", Georgia, serif; }
.top span { display: flex; gap: 18px; flex-wrap: wrap; }
.people { display: flex; flex-wrap: wrap; gap: 20px; }
.person { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 20px 14px 14px; color: var(--ink); text-decoration: none; line-height: 1.45; }
.person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.prose { max-width: 820px; }
.prose h2 { font-size: 32px; margin-top: 48px; }
.prose .table-wrap { overflow-x: auto; margin: 12px 0 20px; }
.prose table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose .num { text-align: right; }
.toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }

/* Home: the approach and the syllabus come first. */
h3 { font: 600 17px/1.35 Inter, system-ui, sans-serif; margin: 0 0 6px; }
.tagline { font: 30px/1.2 "Instrument Serif", Georgia, serif; margin: 0 0 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.button { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--thread);
  color: var(--thread); text-decoration: none; font-weight: 500; background: var(--card); }
.button.primary { background: var(--thread); color: #fff; }
@media (prefers-color-scheme: dark) { .button.primary { color: #14151f; } }
.button:hover { box-shadow: 0 6px 18px rgba(23, 26, 43, 0.14); }
.principles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.principle h3 { color: var(--thread); }
.principle p { margin: 0; font-size: 15.5px; }
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.glance h3 { margin-bottom: 10px; }
.outcomes { margin: 0; padding-left: 1.1em; font-size: 15.5px; }
.outcomes li { margin-bottom: 6px; }
.glance .prose .table-wrap { margin-top: 0; }
@media (max-width: 820px) { .glance { grid-template-columns: 1fr; } }

/* Week pages follow the calendar; a week may carry films made for the earlier edition. */
.week { grid-template-columns: 12em 1fr; }
@media (max-width: 640px) { .week { grid-template-columns: 1fr; } }
.film { margin-top: 28px; }
.film h3 { font: 28px/1.15 "Instrument Serif", Georgia, serif; margin-bottom: 4px; }
.film .edition { margin: 0 0 10px; font-size: 15px; border-left: 3px solid var(--warm); padding-left: 10px; }
.shape { margin: 0 0 20px; padding-left: 1.1em; max-width: 820px; }
.shape li { margin-bottom: 6px; }
.prose ol { padding-left: 1.3em; }
