:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #5a6478;
  --line: #d8dfeb;
  --paper: #ffffff;
  --page: #f3f6fb;
  --blue: #1756a9;
  --blue-soft: #eaf2ff;
  --code: #111827;
  --code-text: #e5edf8;
  --content: 72rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
}

a { color: var(--blue); }

a:focus-visible,
select:focus-visible {
  outline: 3px solid #f5b82e;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  padding: .7rem 1rem;
  border-radius: .35rem;
  color: #fff;
  background: var(--ink);
  translate: 0 -200%;
}

.skip-link:focus { translate: 0; }

.site-header,
.site-footer {
  width: min(var(--content), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  color: var(--muted);
  font-size: .9rem;
}

select {
  min-height: 2.6rem;
  padding: .45rem 2.25rem .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

main {
  width: min(var(--content), calc(100% - 2rem));
  margin: 3.5rem auto 5rem;
}

.course-intro {
  max-width: 50rem;
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.status {
  display: inline-block;
  margin: 1.5rem 0 0;
  padding: .55rem .8rem;
  border: 1px solid #aac2e7;
  border-radius: 999px;
  color: #174779;
  background: var(--blue-soft);
  font-weight: 700;
}

.days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.day-card {
  display: block;
  min-height: 13rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(20, 33, 61, .04);
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, translate 150ms ease;
}

.day-card:hover {
  border-color: #91add5;
  box-shadow: 0 16px 36px rgba(20, 33, 61, .09);
  translate: 0 -2px;
}

.day-card p {
  margin: 0;
  color: var(--muted);
}

.day-card h2 {
  margin: .2rem 0 2.5rem;
  color: var(--blue);
  font-size: 3rem;
  line-height: 1;
}

.day-card p:last-child {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer,
.section-copyright {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem 1rem;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .03em;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.site-footer span:last-child { justify-self: end; }

.day-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  flex-wrap: wrap;
  min-height: 4.25rem;
  padding: .65rem max(1rem, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / .96);
  box-shadow: 0 .25rem .75rem rgba(20, 33, 61, .1);
  backdrop-filter: blur(10px);
}

.day-controls {
  display: flex;
  align-items: end;
  gap: .55rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}

.day-controls select { min-width: 9rem; }

.day-main {
  display: block;
  margin-top: 2rem;
}

.toc-page,
.course-document {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 1rem 3rem rgba(20, 33, 61, .06);
}

.toc-page {
  padding: clamp(1.4rem, 5vw, 3.6rem);
  padding-bottom: 1.25rem;
}

.toc-page h1 { max-width: none; }

.course-document {
  margin-top: 2rem;
  padding: clamp(2rem, 6vw, 5rem);
  color: var(--muted);
  line-height: 1.62;
}

.empty-state { margin: 0; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer span:last-child { justify-self: center; }
  .day-controls { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  main { margin-top: 2rem; }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .days { grid-template-columns: 1fr; }
  .day-card { min-height: 10rem; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .site-header,
  .site-footer { display: none; }
  main { width: 100%; margin: 0; }
  .days { grid-template-columns: repeat(2, 1fr); }
  .day-card { min-height: 8rem; box-shadow: none; break-inside: avoid; }
}
