:root {
  --illinois-navy: #13294b;
  --illinois-orange: #ff5f05;
  --ink: #17202d;
  --muted: #555e69;
  --line: #e1e4e8;
  --paper: #ffffff;
  --page: #f7f8fa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: #d94f00;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--illinois-navy);
}

.hero {
  position: relative;
  display: grid;
  min-height: 365px;
  place-items: center;
  overflow: hidden;
  background: var(--illinois-navy) url("images/banner-poster.webp") center 58% / cover no-repeat;
  color: white;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  object-position: center 58%;
  filter: sepia(0.32) saturate(0.82) contrast(0.92) brightness(1.08);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(19, 41, 75, 0.88), rgba(19, 41, 75, 0.58)),
    rgba(255, 95, 5, 0.08);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 40px));
  padding: 56px 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 15px;
  color: #ffad82;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 350;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-intro {
  max-width: 820px;
  margin: 24px auto 0;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  line-height: 1.55;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 27px;
}

.hero-links a {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-links a:hover,
.hero-links a:focus-visible {
  border-color: var(--illinois-orange);
  background: var(--illinois-orange);
  color: white;
}

.section-nav {
  border-bottom: 1px solid var(--line);
  background: white;
  box-shadow: 0 2px 10px rgba(19, 41, 75, 0.06);
}

.section-nav > div {
  display: flex;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  overflow-x: auto;
}

.section-nav a {
  flex: 0 0 auto;
  padding: 13px 12px;
  color: var(--illinois-navy);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  background: #f2f3f5;
  color: #c74600;
}

.section-nav .student-nav-link {
  margin-left: auto;
  color: #c74600;
}

.container {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 70px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.info-box {
  min-height: 165px;
  padding: 23px;
  border-radius: 5px;
  background: #f1f1f1;
}

.info-box h2 {
  margin: 0 0 15px;
  color: #30343a;
  font-size: 1.14rem;
  font-weight: 500;
}

.info-box p {
  margin: 0;
}

.content-section {
  overflow: hidden;
  margin-top: 20px;
  padding: 30px 34px;
  border-left: 5px solid var(--illinois-navy);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 3px 13px rgba(19, 41, 75, 0.07);
}

.content-section h2 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--illinois-orange);
  color: var(--illinois-navy);
  font-size: 1.52rem;
  font-weight: 500;
}

.content-section h3 {
  font-weight: 500;
}

.content-section p:first-of-type {
  margin-top: 0;
}

.lead {
  color: #24344c;
  font-size: 1.14rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.75fr);
  align-items: center;
  gap: 34px;
}

.project-section {
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
}

figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.42;
}

.topic-list {
  padding-left: 22px;
}

.topic-list li {
  margin-bottom: 11px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}

.resources-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 42px;
}

.relevant-papers {
  padding: 4px 0 0 30px;
  border-left: 1px solid var(--line);
}

.relevant-papers h3 {
  margin-top: 0;
}

.relevant-papers ul {
  margin: 0;
  padding-left: 19px;
}

.relevant-papers li {
  margin-bottom: 13px;
}

.relevant-papers span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.grading-list {
  max-width: 780px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grading-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 28px max(22px, calc((100% - 980px) / 2));
  border-top: 5px solid var(--illinois-orange);
  background: var(--illinois-navy);
  color: white;
  font-size: 0.84rem;
}

footer a {
  color: white;
}

.materials-page {
  min-height: 100vh;
}

.materials-page h1 {
  margin-top: 0;
  color: var(--illinois-navy);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: white;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--illinois-navy);
  color: white;
}

.empty-row td {
  padding: 30px 12px;
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-video {
    display: none;
  }
}

@media (max-width: 780px) {
  .info-grid,
  .split-section,
  .project-section,
  .details-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .relevant-papers {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .info-box {
    min-height: 0;
  }

  .project-section figure {
    order: 2;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content,
  .container,
  .section-nav > div {
    width: min(100% - 24px, 980px);
  }

  .content-section {
    padding: 24px 20px;
  }

  .grading-list li {
    gap: 14px;
  }

  footer {
    flex-direction: column;
    padding: 26px 18px;
  }
}

@media print {
  .hero-video,
  .hero-links {
    display: none;
  }

  .hero {
    min-height: 210px;
  }

  .content-section {
    box-shadow: none;
    break-inside: avoid;
  }
}
