:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --ink: #171717;
  --cyan: #00b8e6;
  --magenta: #ef39a1;
  --yellow: #ffe100;
}
* { box-sizing: border-box; }
body {
  width: min(100% - 2.5rem, 77rem);
  margin: 0 auto;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.4 "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.site-header {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid currentColor;
}
.wordmark {
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -.07em;
  text-decoration: none;
}
.wordmark span { color: #c90070; }
.teacher-link { font-size: .875rem; text-underline-offset: .25em; }
main { padding-block: clamp(3rem, 8vw, 7rem) 4rem; }
h1 {
  margin: 0;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.075em;
}
h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.065em;
}
.subject {
  margin: 1.15rem 0 clamp(2rem, 5vw, 4rem);
  font-size: clamp(.875rem, 1.5vw, 1.05rem);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.courses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.course {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 13rem;
  padding: clamp(1rem, 2vw, 1.65rem);
  text-decoration: none;
}
.course h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.65vw, 2.55rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.course h2 span {
  display: block;
  margin-top: .5rem;
  font-size: .875rem;
  letter-spacing: .07em;
}
.course > span { font-size: .875rem; font-weight: 400; letter-spacing: .025em; }
a.course > span { text-decoration: underline; text-underline-offset: .25em; }
a.course:hover { background: #20c9ed; }
.cyan { background: var(--cyan); }
.magenta { background: var(--magenta); }
.yellow { background: var(--yellow); }
.black { color: white; background: var(--ink); }
@media (max-width: 55rem) {
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course { min-height: 10rem; }
}
