@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Oswald:wght@400;600;700&display=swap");

:root {
  --yellow: #fdd835;
  --ink: #111;
  --nav-active: #222;
  --link: #0000ee;
  --header-height: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--yellow);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.48;
}

a {
  color: var(--link);
  text-decoration: underline;
}

.site-header {
  position: relative;
  z-index: 10;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 28px;
  color: #111;
  background: #fff;
}

.site-name {
  color: #111;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.desktop-nav > a,
.mobile-nav a {
  display: block;
  padding: 7px 12px;
  color: #111;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.desktop-nav > a.active,
.mobile-nav a.active {
  color: #fff;
  background: var(--nav-active);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #111;
  background: transparent;
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
}

.site-search {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 28px;
  background: #fff;
}

.site-search[hidden] {
  display: none;
}

.site-search input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #777;
  outline: 0;
  font: inherit;
}

.mobile-nav[hidden] {
  display: none;
}

.hero {
  color: #fff;
  background-color: #303030;
  background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)), url("assets/impression-header.png");
  background-position: center;
  background-size: cover;
}

.hero-home {
  min-height: 461px;
  display: flex;
  align-items: center;
}

.hero-home-content {
  width: min(744px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
  transform: translateY(-9px);
}

.hero-home h1,
.course-title,
.hero-page h1 {
  margin: 0;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

.hero-home h1 {
  font-size: 80px;
  line-height: 1.23;
  transform: translateY(4px);
}

.title-rule {
  width: 100%;
  height: 12px;
  margin: 11px 0 21px;
  background: var(--yellow);
}

.course-title {
  font-size: 80px;
  line-height: 1.23;
}

.tagline {
  margin: 38px 0 0;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
}

.hero-page {
  min-height: 375px;
  display: grid;
  place-items: center;
}

.hero-page h1 {
  font-size: 42px;
}

.yellow-page {
  min-height: calc(100vh - var(--header-height));
  background: var(--yellow);
}

.content {
  margin: 0 auto;
  overflow-wrap: anywhere;
}

.home-content {
  width: min(744px, calc(100% - 48px));
  padding: 10px 0 35px;
  font-family: Arial, sans-serif;
}

.content-narrow {
  width: min(744px, calc(100% - 48px));
}

.content-wide {
  width: min(1154px, calc(100% - 48px));
}

.course-facts {
  margin-bottom: 18px;
}

.course-facts a {
  color: #000;
}

.course-facts a.course-link {
  color: var(--link);
}

.required {
  color: #d50000;
}

.course-facts p,
.course-units p,
.syllabus-page p {
  margin: 0;
}

.course-facts p:nth-child(3),
.course-facts p:nth-child(4) {
  margin-bottom: 10px;
}

.home-content section {
  margin-top: 16px;
}

.home-content h2,
.course-units h2,
.syllabus-page h2 {
  margin: 0 0 2px;
  font-size: 17.333px;
  font-weight: 700;
  line-height: 1.48;
}

.home-content p,
.home-content li,
.course-units p,
.syllabus-page p {
  font-size: 17.333px;
}

.home-content p {
  margin: 0;
  line-height: 1.5;
}

.home-content ul {
  margin: 6px 0 8px;
  padding-left: 18px;
  list-style-type: square;
}

.home-content li {
  margin: 5px 0;
  padding-left: 2px;
  line-height: 1.38;
}

.home-content em {
  font-style: italic;
}

.reference-note {
  margin-top: 22px !important;
}

.schedule-page {
  min-height: 683px;
  padding: 32px 0 32px;
}

.course-units {
  margin-bottom: 50px;
}

.course-units h2 {
  font-size: 18px;
  margin-bottom: 7px;
}

.course-units p {
  font-size: 18px;
  line-height: 1.7;
}

.sheet-embed {
  position: relative;
  overflow: hidden;
  border: 1px solid #d0d0d0;
  background: #fff;
}

.sheet-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 10px;
  border-bottom: 1px solid #d0d0d0;
  color: #202124;
  font-size: 16px;
  text-decoration: none;
}

.sheet-link:hover,
.sheet-link:focus-visible {
  background: #f1f3f4;
  color: #1155cc;
}

.sheet-link svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.sheet-embed iframe {
  width: 100%;
  height: 397px;
  display: block;
  border: 0;
}

.schedule-note {
  margin: 18px 7px 0;
  font-size: 18px;
}

.syllabus-page {
  min-height: 725px;
  padding: 124px 0 55px;
}

.syllabus-page section {
  margin-bottom: 20px;
}

.syllabus-page h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.syllabus-page p {
  font-size: 18px;
  line-height: 1.7;
}

.full-syllabus {
  margin-top: 23px !important;
}

.full-syllabus-page {
  padding: 70px 0;
}

.syllabus-document {
  padding: 48px;
  background: #fff;
}

.syllabus-document > h2 {
  margin: 0 0 36px;
  font-size: 32px;
  line-height: 1.3;
}

.syllabus-document section {
  margin-top: 28px;
}

.syllabus-document h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.syllabus-document .subheading {
  margin-top: 22px;
}

.syllabus-document p,
.syllabus-document li {
  margin: 3px 0;
  font-size: 16px;
  line-height: 1.55;
}

.syllabus-document ul {
  margin: 7px 0;
  padding-left: 22px;
}

.syllabus-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.site-info {
  position: fixed;
  bottom: 18px;
  left: 20px;
  z-index: 20;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #555;
  background: rgba(255, 255, 255, 0.7);
}

.site-info svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 700px) {
  .site-info {
    display: none;
  }

  .site-header {
    padding: 0 16px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .mobile-nav {
    position: absolute;
    z-index: 9;
    width: 100%;
    padding: 8px 16px 14px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .mobile-nav a {
    padding: 12px;
  }

  .hero-home {
    min-height: 390px;
  }

  .hero-home h1 {
    font-size: 45px;
  }

  .course-title {
    font-size: 42px;
  }

  .tagline {
    font-size: 21px;
  }

  .hero-page {
    min-height: 290px;
  }

  .hero-page h1 {
    font-size: 36px;
  }

  .home-content,
  .content-narrow,
  .content-wide {
    width: min(100% - 32px, 930px);
  }

  .schedule-page {
    padding-top: 28px;
  }

  .course-units {
    margin-bottom: 36px;
  }

  .syllabus-page {
    padding-top: 60px;
  }

  .full-syllabus-page {
    padding: 16px 0;
  }

  .syllabus-document {
    padding: 24px 20px;
  }

  .syllabus-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
