:root {
  color-scheme: light;
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #181919;
  background: #f2eee5;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f2eee5;
}

a {
  color: inherit;
}

.paper {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(#8e877a55 0.7px, transparent 0.7px) 0 0 / 10px 10px,
    #f2eee5;
}

.paper::before {
  content: "";
  position: absolute;
  top: -10vh;
  right: -9vw;
  width: min(48vw, 660px);
  height: 116vh;
  transform: skewX(-11deg);
  background: #e24336;
}

.paper::after {
  content: "";
  position: absolute;
  top: 18vh;
  right: 8vw;
  width: min(21vw, 300px);
  height: 28px;
  transform: rotate(-4deg);
  background: #181919;
}

.paper i {
  position: absolute;
  display: block;
  background: #181919;
  transform: rotate(-7deg);
}

.paper i:nth-child(1) {
  left: 3vw;
  bottom: 13vh;
  width: 12vw;
  height: 8px;
}

.paper i:nth-child(2) {
  right: 37vw;
  bottom: 5vh;
  width: 4vw;
  height: 13px;
}

.paper i:nth-child(3) {
  left: 45vw;
  top: 11vh;
  width: 7vw;
  height: 5px;
}

.masthead {
  height: 70px;
  padding: 0 clamp(20px, 3.3vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #18191933;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 0.86rem;
}

.brand b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #f2eee5;
  background: #181919;
  font:
    700 26px Georgia,
    serif;
  transform: rotate(-4deg);
}

.brand small {
  display: block;
  margin-top: 3px;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.edition {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

main {
  width: min(1180px, calc(100% - clamp(32px, 7vw, 108px)));
  margin: 0 auto;
}

.hero {
  min-height: min(43vh, 460px);
  padding: clamp(48px, 7vh, 78px) 0 34px;
  position: relative;
}

.eyebrow,
.kicker {
  margin: 0 0 13px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.hero h1 {
  margin: 0;
  width: min(850px, 76vw);
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero h1 span {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 1px 16px 7px;
  color: #f2eee5;
}

.hero h1 span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #181919;
  transform: rotate(-1.8deg);
  box-shadow: 6px 5px 0 #18191922;
}

.hero h1 em {
  font-style: normal;
}

.lead {
  max-width: 720px;
  margin: 23px 0 0;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.7;
}

.catalog {
  position: relative;
  margin-bottom: 48px;
  padding: clamp(20px, 2.7vw, 38px);
  border: 2px solid #181919;
  background: #f2eee5;
  box-shadow: 9px 9px 0 #181919;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 2px solid #181919;
}

.catalog h2 {
  margin: 0;
  font-size: clamp(25px, 2.7vw, 38px);
}

.year-link {
  padding: 8px 12px;
  border: 2px solid #181919;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 800;
}

.year-link:hover,
.year-link:focus-visible {
  color: #f2eee5;
  background: #181919;
}

.course-list {
  display: grid;
  gap: 13px;
  padding-top: 18px;
}

.course-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(13px, 2vw, 28px);
  padding: clamp(15px, 2vw, 25px);
  color: #f2eee5;
  background: #181919;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.course-card:hover,
.course-card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 #e24336;
}

.course-number {
  font:
    800 clamp(30px, 3.4vw, 48px) Georgia,
    serif;
  color: #f2c94c;
}

.course-meta {
  display: block;
  margin-bottom: 6px;
  color: #c6bfb2;
  font-size: 0.61rem;
  letter-spacing: 0.15em;
}

.course-card h3 {
  margin: 0;
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.4;
}

.enter {
  min-width: 96px;
  padding: 9px 12px;
  color: #181919;
  background: #f2c94c;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 900;
}

.loading,
.empty,
.error {
  margin: 0;
  padding: 22px 4px;
  font-size: 0.86rem;
}

.error {
  color: #a5221b;
}

footer {
  min-height: 62px;
  padding: 0 clamp(20px, 3.3vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #f2eee5;
  background: #181919;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

@media (max-width: 760px) {
  .edition {
    display: none;
  }

  .paper::before {
    width: 56vw;
    opacity: 0.88;
  }

  .hero {
    min-height: 330px;
  }

  .hero h1 {
    width: 94%;
  }

  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .enter {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
