:root {
  --bg: #ffffff;
  --ink: #18212f;
  --muted: #5f6b7a;
  --line: #d8dee8;
  --soft: #f5f7fa;
  --accent: #004191;
  --accent-2: #b51f2f;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
  background: var(--bg);
}

body {
  margin: 0;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 72px 0 48px;
}

.header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p,
dl,
dd,
ul {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.term {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.25rem;
}

.course-facts {
  display: grid;
  gap: 18px;
  margin-bottom: 0;
  border-left: 3px solid var(--accent);
  padding-left: 22px;
}

.course-facts div {
  display: grid;
  gap: 2px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin-left: 0;
  font-weight: 650;
}

.section {
  padding: 56px 0;
}

.section-muted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.two-column,
.split {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
}

.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prose {
  max-width: 760px;
  color: #2c3747;
  font-size: 1.05rem;
}

.prose p:last-child,
.note:last-child {
  margin-bottom: 0;
}

.name-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  max-width: 560px;
  margin-bottom: 0;
  padding-left: 18px;
}

.name-list li {
  min-width: 0;
}

.teaching-assistant {
  display: inline-block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.teaching-assistant a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.large-text {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.note {
  max-width: 560px;
  color: var(--muted);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 18px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.95rem;
}

.schedule {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
}

table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td:first-child,
th:first-child {
  width: 72px;
  padding-left: 0;
}

td:nth-child(2),
th:nth-child(2) {
  width: 110px;
}

td:nth-child(3),
th:nth-child(3) {
  width: 105px;
}

td:nth-child(4),
th:nth-child(4) {
  width: 105px;
}

td:nth-child(5),
th:nth-child(5) {
  width: 190px;
}

td:nth-child(6),
th:nth-child(6) {
  width: 160px;
}

.no-class td {
  color: var(--muted);
  background: #fbfcfe;
}

.no-class td:first-child {
  color: var(--accent-2);
  font-weight: 750;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .site-header {
    padding: 52px 0 36px;
  }

  .header-grid,
  .two-column,
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .course-facts {
    padding-left: 18px;
  }

  .section {
    padding: 42px 0;
  }

  .name-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  h1 {
    font-size: 2.35rem;
  }

  .section-heading {
    display: block;
  }
}
