:root {
  --text: #1e2329;
  --muted: #5f6872;
  --rule: #cfd4d8;
  --soft-rule: #e4e7e9;
  --link: #064f87;
  --visited: #65447b;
  --accent: #7a1f2b;
  --notice: #f4f6f7;
  --paper: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: .13em;
}

a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: .5rem .7rem;
  color: #fff;
  background: var(--accent);
}

.skip-link:focus { top: 1rem; }

.site {
  width: min(calc(100% - 2.5rem), 980px);
  margin: 0 auto;
}

.site-header {
  padding: 2.6rem 0 1.15rem;
  border-bottom: 1px solid var(--text);
}

.university {
  margin: 0 0 .65rem;
  color: var(--muted);
  font-size: .82rem;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: .35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 400;
  line-height: 1.12;
}

.course-number,
.meeting-line {
  margin: .16rem 0;
  font-size: .93rem;
}

.course-number { color: var(--muted); }

main > section {
  padding: 2rem 0 2.2rem;
  border-bottom: 1px solid var(--rule);
}

h2 {
  margin-bottom: .8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

h3 {
  margin: 1.5rem 0 .45rem;
  font-size: 1rem;
}

main > section:first-child {
  padding-top: 1.55rem;
}

.announcement {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: .8rem 1rem;
  background: var(--notice);
  border-left: 3px solid var(--accent);
}

.announcement > p:first-child {
  color: var(--muted);
  font-size: .84rem;
}

.announcement p { margin: 0; }

.section-note {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: .91rem;
}

.section-note p,
.track-note p { margin: 0; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .89rem;
}

th {
  padding: .5rem .55rem;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  font-size: .75rem;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: .72rem .55rem;
  vertical-align: top;
  border-bottom: 1px solid var(--soft-rule);
}

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

th:last-child,
td:last-child { padding-right: 0; }

.date-cell { width: 5.6rem; white-space: nowrap; }
.concepts-cell { width: 46%; }
.application-cell { width: 27%; }
.work-cell { width: 8.5rem; }

.date-cell time,
.week-number,
.meeting-detail { display: block; }

.date-cell time { font-weight: 700; }

.week-number {
  margin-top: .08rem;
  color: var(--muted);
  font-size: .72rem;
}

.has-materials td { border-bottom: 0; }

.materials-row td {
  padding: 0;
  border-bottom: 1px solid var(--soft-rule);
}

.week-materials { margin: 0; }

.week-summary {
  width: max-content;
  padding: .08rem 0 .48rem;
  color: var(--muted);
  cursor: pointer;
  font-size: .72rem;
}

.week-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.week-material-list {
  margin-left: 6.15rem;
  padding: .58rem .55rem .72rem;
  margin-top: 0;
  margin-bottom: 0;
  border-top: 1px solid var(--soft-rule);
  font-size: .78rem;
  line-height: 1.4;
  list-style: none;
}

.week-material-list code { color: var(--text); }

.lecture-file {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.week-material-list li + li { margin-top: .12rem; }

.concepts-cell strong { font-weight: 700; }

.meeting-detail {
  margin-top: .13rem;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.4;
}

.empty { color: #8a9197; }

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

.track-note {
  max-width: 780px;
  margin: 1rem 0 0;
  font-size: .88rem;
}

.book-list,
.compact-list ul,
.link-list ul {
  padding-left: 1.2rem;
  margin: .65rem 0 0;
}

.compact-list li,
.book-list li,
.link-list li { margin: .42rem 0; }

.compact-list li p,
.link-list li p { margin: 0; }

.book-list { max-width: 900px; }
.book-list li { margin-bottom: .7rem; }
.book-list cite { font-family: Georgia, "Times New Roman", serif; }
.abbreviation { margin-left: .22rem; color: var(--muted); font-size: .8rem; }
.book-author { font-size: .91rem; }
.book-links { margin-left: .45rem; white-space: nowrap; font-size: .84rem; }

.course-info {
  max-width: 790px;
  margin: 0;
  border-top: 1px solid var(--soft-rule);
}

.course-info > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--soft-rule);
}

.course-info dt { color: var(--muted); font-weight: 700; }
.course-info dd { margin: 0; }

footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0 3rem;
  color: var(--muted);
  font-size: .78rem;
}

footer p,
.verso-credit p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .site { width: min(calc(100% - 2rem), 980px); }
  .site-header { padding-top: 1.8rem; }
  .meeting-line { max-width: 28rem; }
  main > section { padding: 1.65rem 0 1.85rem; }
  .announcement { grid-template-columns: 1fr; gap: .25rem; }

  table,
  tbody,
  tr,
  td { display: block; }

  thead { display: none; }

  tr {
    position: relative;
    padding: .8rem 0 .8rem 5.6rem;
    border-bottom: 1px solid var(--soft-rule);
  }

  td,
  th:first-child,
  td:first-child,
  th:last-child,
  td:last-child {
    width: auto;
    padding: 0;
    border: 0;
  }

  .date-cell {
    position: absolute;
    top: .83rem;
    left: 0;
  }

  .concepts-cell { margin-bottom: .38rem; }
  .application-cell::before { content: "Application: "; color: var(--muted); }
  .work-cell::before { content: "Work: "; color: var(--muted); }
  .application-cell,
  .work-cell { font-size: .84rem; }
  .no-class { min-height: 4.1rem; background: #fafafa; }

  .has-materials {
    padding-bottom: .25rem;
    border-bottom: 0;
  }

  .materials-row { padding: .15rem 0 .8rem 5.6rem; }
  .materials-row .week-summary { margin-left: -5.6rem; }

  .week-material-list {
    margin-left: 0;
    padding: .5rem 0 0;
  }

  .lecture-file { display: block; }

  .week-file-links {
    display: block;
    margin-top: .12rem;
  }

  .course-info > div { grid-template-columns: 1fr; gap: .1rem; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media print {
  body { font-size: 10.5pt; }
  .site { width: 100%; }
  .site-header { padding-top: 0; }
  .skip-link { display: none; }
  main > section { padding: 1rem 0; }
  a { color: inherit; }
  footer { padding-bottom: 0; }
}
