@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --paper: #ffffff;
  --ink: #26352e;
  --muted: #657066;
  --line: #d9ddd2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
}
main { width: 100%; padding: 76px 6% 90px; }
/* Translucent tint groups the title and logo without fading either. */
.intro {
  width: 100%;
  margin-bottom: 76px;
  padding: 36px 16px;
  background-color: rgba(120, 190, 235, 0.055);
  border-radius: 10px;
}
h1 {
  width: 100%;
  margin: 0 0 30px;
  font: 400 min(2.6vw, 44px)/1.08 Georgia, 'Times New Roman', serif;
  letter-spacing: -.045em;
  white-space: nowrap;
  text-align: center;
}
/* Georgia has no intermediate weight; a controlled stroke creates a medium-bold appearance. */
h1 strong { font-weight: 400; -webkit-text-stroke: 0.03em currentColor; }
h2 { margin: 0 0 12px; font: 400 36px/1.2 Georgia, 'Times New Roman', serif; letter-spacing: -.02em; }
.syllabus-note { margin: 0 0 30px; color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 650px) {
  main { padding: 45px 6% 60px; }
  .intro { margin-bottom: 50px; padding: 26px 8px; }
  h1 { margin-bottom: 25px; }
  h2 { font-size: 31px; }
      }

.university-logo { display: block; width: 320px; max-width: 100%; height: auto; margin: 8px auto 32px; }


.group-description { margin-bottom: 60px; }

.group-description p { font-size: 16px; line-height: 1.8; margin: 0 0 12px; }
.group-description .paragraph-title { margin-bottom: 8px; }
.paragraph-title strong { font-weight: 700; color: #9b2340; }

.logistics { margin-bottom: 48px; }
.logistics-list { margin: 22px 0 0; font-size: 16px; line-height: 1.7; }
.logistics-list > div { display: flex; gap: 20px; margin-bottom: 10px; }
.logistics-list dt { flex: 0 0 115px; font-weight: 500; }
.logistics-list dd { margin: 0; color: var(--muted); }
.logistics-list a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.logistics-list a:hover { color: #9b2340; }
.logistics-list a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 650px) {
  .logistics-list { font-size: 15px; }
  .logistics-list > div { gap: 12px; }
  .logistics-list dt { flex-basis: 100px; }
}

.syllabus + .group-description { margin-top: 60px; }
.group-description + .logistics { margin-bottom: 0; }

.themes { margin: 0; padding: 0; list-style: none; counter-reset: theme; }
.themes li {
  counter-increment: theme;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 0;
  margin: 0;
  font: 400 18px/1.2 Georgia, 'Times New Roman', serif;
}
.themes li + li { margin-top: 10px; }
.themes li::before {
  content: counter(theme, decimal-leading-zero);
  color: var(--muted);
  font: 400 12px/1.4 'DM Sans', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 650px) {
  .themes li { grid-template-columns: 25px 1fr; gap: 10px; padding: 0; font-size: 17px; }
}

.intro .university-logo { margin-bottom: 0; }

.format-list { margin: 14px 0 0; padding-left: 22px; font-size: 16px; line-height: 1.8; }
.format-list li { padding-left: 5px; margin-bottom: 16px; }
.format-list li:last-child { margin-bottom: 0; }
.format-list li::marker { color: var(--muted); }
.format-list strong { font-weight: 700; }

.skills-list { margin: 8px 0 0; padding-left: 22px; list-style-type: circle; }
.format-list .skills-list > li { margin-bottom: 5px; }
.format-list .skills-list > li:last-child { margin-bottom: 0; }

.group-description #group-description-text { margin-top: 24px; }

.syllabus-subheading { margin: 26px 0 14px; font: 700 16px/1.4 "DM Sans", Arial, sans-serif; color: var(--ink); }
.themes + .syllabus-subheading { margin-top: 30px; }

/* Keep the template's title readable on narrow screens. */
@media (max-width: 650px) {
  h1 { font-size: clamp(25px, 5.8vw, 36px); line-height: 1.2; white-space: normal; }
  .university-logo { width: 280px; }
  .logistics-list dd { min-width: 0; overflow-wrap: anywhere; }
}

.course-section { margin-top: 60px; }
.section-note { font-size: 15px; line-height: 1.75; color: var(--muted); margin: 14px 0 24px; }
main a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
main a:hover { color: #9b2340; }
main a:focus-visible { outline: 2px solid #9b2340; outline-offset: 4px; }
.file-type { font: 500 10px/1.5 'DM Sans', Arial, sans-serif; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.staff-entry { border-top: 1px solid var(--line); padding-top: 18px; }
.staff-entry h3 { margin: 0 0 5px; font-size: 17px; line-height: 1.5; }
.staff-entry p { font-size: 15px; line-height: 1.75; margin: 8px 0 0; overflow-wrap: anywhere; }
.staff-entry .staff-role { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; text-align: left; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
thead { background: rgba(120,190,235,.055); }
tbody th { font-weight: 500; }
.grading-list dt { flex-basis: 140px; }
.participation-note { max-width: 850px; }
@media (max-width: 650px) { .staff-grid { grid-template-columns: 1fr; gap: 24px; } th, td { padding: 10px 7px; } table { font-size: 14px; } }

.lecture-entry { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.lecture-date { color: var(--muted); font: 400 13px/1.6 'DM Sans', Arial, sans-serif; white-space: nowrap; }
.lecture-date-note { margin-top: 0; margin-bottom: 20px; }
@media (max-width: 650px) { .lecture-entry { flex-direction: column; gap: 4px; } }

.program-table th:first-child { width: 170px; }
.program-table tbody th { color: var(--muted); vertical-align: top; white-space: nowrap; }
.program-table td { font: 400 18px/1.5 Georgia, 'Times New Roman', serif; }
.program-item + .program-item { margin-top: 8px; }
.assessment-event { color: #9b2340; }
@media (max-width: 650px) {
  .program-table th:first-child { width: 115px; }
  .program-table tbody th { white-space: normal; }
  .program-table td { font-size: 17px; }
}

/* Compact syllabus typography. */
.syllabus .program-table td, .syllabus .themes li { font-size: 15px; }
.syllabus .program-table th, .syllabus .section-note { font-size: 13px; }
.syllabus .syllabus-subheading { font-size: 14px; }

.office-hours-line + .office-hours-line { margin-top: 6px; }
.office-hours-note { margin: 10px 0 0; font-size: 13px; line-height: 1.7; }

/* Keep each date's program on one horizontal line. */
.program-table td { white-space: nowrap; }
.program-table .program-item { display: inline; }
.program-table .program-item + .program-item { margin-top: 0; }
.program-table .program-item + .program-item::before { content: " · "; color: var(--muted); margin: 0 8px; }

.syllabus .program-table .instructor-cell { font-family: "DM Sans", Arial, sans-serif; font-size: 13px; color: var(--muted); white-space: nowrap; }

.optimization-references { margin: 24px 0 0; }
.optimization-references .format-list { font-size: 15px; }
