:root {
  --ink: #222;
  --muted: #666;
  --paper: #fdfdfd;
  --line: #bbb;
  --stripe: #f3f6f8;
  --accent: #a84f00;
  --link: #2679ae;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

.course-page {
  box-sizing: border-box;
  width: min(1000px, 88%);
  margin: 0 auto;
  color: var(--ink);
  background: var(--paper);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
}

.course-page *,
.course-page *::before,
.course-page *::after {
  box-sizing: inherit;
}

.course-page a {
  color: var(--link);
  text-decoration: none;
}

.course-page a:hover,
.course-page a:focus-visible {
  color: #125480;
  text-decoration: underline;
}

.course-width {
  width: 100%;
  margin: 0;
}

.course-header {
  margin: 2.5rem 0 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.65rem;
}

.nav-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 1.5rem;
}

.course-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.92rem;
}

.course-hero {
  margin-bottom: 2rem;
}

.course-kicker,
.section-number {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.course-hero h1 {
  margin: 0.1rem 0 0;
  font-size: 2.05rem;
  line-height: 1.2;
}

.meeting-line {
  margin: 0.6rem 0;
}

.tbd-inline {
  color: #8a2f26;
  font-weight: 600;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 0.8rem;
}

.staff-section,
.course-section,
.schedule-section {
  margin: 2.2rem 0 0;
  padding: 0;
}

.section-heading {
  margin-bottom: 0.9rem;
}

.split-heading {
  display: block;
}

.section-number {
  display: none;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.62rem;
  font-weight: 500;
}

.split-heading > p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.staff-section h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
}

.staff-section p {
  margin: 0.55rem 0 0;
}

.assignment-notes article {
  margin-bottom: 1rem;
}

.assignment-notes h3 {
  margin: 0;
  font-size: 1.05rem;
}

.assignment-notes p {
  margin: 0.25rem 0 0;
}

.schedule-list {
  border: 1px solid var(--line);
  border-bottom: 0;
}

.schedule-item {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.8rem;
}

.schedule-item:nth-child(even) {
  background: var(--stripe);
}

.date-block {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 0 0.35rem;
}

.date-block span,
.date-block strong {
  font-size: 0.92rem;
  font-weight: 400;
}

.schedule-content h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 600;
}

.student-presentation-label {
  color: #c62828;
}

.paper-list {
  margin: 0.4rem 0 0;
  padding-left: 1.25rem;
}

.paper-list li {
  margin: 0.22rem 0;
}

.schedule-content > p {
  margin: 0.35rem 0 0;
}

.resource-list {
  margin: 0.4rem 0 0;
  padding-left: 1.25rem;
}

.resource-list li {
  margin: 0.22rem 0;
}

.course-footer {
  margin: 2.5rem 0;
  border-top: 1px solid #ddd;
  padding-top: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.course-footer .course-width {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.course-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .course-page {
    width: calc(100% - 2rem);
  }

  .nav-row,
  .course-footer .course-width {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .schedule-item {
    grid-template-columns: 5.4rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.55rem;
  }
}
