:root {
  --ink: #162033;
  --ink-soft: #526075;
  --navy: #111c31;
  --paper: #f4f2ec;
  --surface: #ffffff;
  --surface-soft: #ebeef2;
  --line: #d8dce3;
  --accent: #b94b32;
  --accent-soft: #f5e4df;
  --focus: #0a66c2;
  --shadow: 0 18px 60px rgba(16, 28, 49, 0.09);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: #165a9f;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 0.35rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  overflow: hidden;
  padding: 1.25rem max(1.25rem, calc((100vw - 76rem) / 2));
  background:
    radial-gradient(circle at 86% 18%, rgba(185, 75, 50, 0.22), transparent 24rem),
    radial-gradient(circle at 12% 100%, rgba(93, 125, 167, 0.18), transparent 28rem),
    var(--navy);
  color: #f8fafc;
}

.site-header::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.site-nav,
.hero,
.course-facts {
  position: relative;
  z-index: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 76rem;
  margin: 0 auto;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.course-mark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.course-mark:hover,
.site-nav__links a:hover {
  color: #ffffff;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.8rem);
}

.site-nav__links a {
  min-height: 2.75rem;
  padding: 0.55rem 0;
  color: #dbe3ef;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.hero {
  max-width: 76rem;
  min-height: 20rem;
  margin: 0 auto;
  padding: clamp(3.75rem, 8vw, 6.5rem) 0 3rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.7rem;
  color: #df735a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 3.85rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero--subpage {
  min-height: 0;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 2.75rem;
}

.hero__subtitle {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: #dbe3ef;
  font-size: 1rem;
}

.course-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 76rem;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.65rem 0.65rem 0 0;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.course-fact {
  min-width: 0;
  padding: 1.15rem 1.35rem;
}

.course-fact + .course-fact {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.course-fact dt {
  margin-bottom: 0.2rem;
  color: #aeb9ca;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.course-fact dd {
  margin: 0;
  color: #ffffff;
  font-weight: 650;
}

.course-fact .person-card__name-link {
  color: #dcecff;
  text-decoration-color: rgba(220, 236, 255, 0.7);
}

.course-fact .person-card__name-link:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.page-shell {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5.5rem) 1.25rem;
}

.section {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.section:first-child {
  border-top: 0;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 7vw, 7rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
}

.section-heading--wide {
  margin-bottom: 2.4rem;
}

.section-number {
  margin: 0.15rem 0 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.section-kicker {
  margin-bottom: 0.35rem;
  color: var(--accent);
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.section-body h3:first-child {
  margin-top: 0;
}

.prose {
  max-width: 48rem;
  color: #37455a;
  font-size: 1.04rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose li + li {
  margin-top: 0.35rem;
}

.callout {
  position: relative;
  max-width: none;
  padding: 1.6rem 1.8rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 0.4rem 0.4rem 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tbd {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.12rem 0.48rem;
  border: 1px solid #dec5bd;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7c321f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

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

.person-card {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(16, 28, 49, 0.045);
}

.person-card__role {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.person-card h3 {
  margin: 0 0 1.35rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}

.person-card__name-link {
  color: inherit;
  text-decoration-color: #b9c0cb;
}

.person-card__name-link:hover {
  color: var(--accent);
}

.person-card dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.45rem 1rem;
  margin: 0;
}

.person-card dt {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.person-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.person-card:only-child {
  grid-column: 1 / -1;
  max-width: 38rem;
}

.schedule-intro {
  margin: -1rem 0 1.5rem;
}

.schedule-intro > :first-child {
  margin-top: 0;
}

.schedule-intro > :last-child {
  margin-bottom: 0;
}

.bibliography-jump {
  margin: 0 0 1rem;
}

.bibliography-jump a {
  font-weight: 750;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 54rem;
  border-collapse: collapse;
  line-height: 1.45;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

th {
  background: var(--navy);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: #f8f9fb;
}

tbody tr[data-kind="no-class"] {
  background: #faf1ee;
}

tbody tr[data-kind="placeholder"] {
  background: #fbfaf7;
  color: var(--ink-soft);
}

.schedule-unit th {
  padding: 0.82rem 1.05rem;
  border-bottom: 1px solid #c2cfdd;
  background: #e1e9f2;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
}

.schedule-group + .schedule-group .schedule-unit th {
  border-top: 0.35rem solid var(--paper);
}

.schedule-unit__numeral {
  margin-right: 0.7rem;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 800;
}

.schedule-unit__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.schedule-date {
  width: 10.5rem;
  min-width: 10.5rem;
  background: inherit;
  color: var(--ink);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.schedule-date__week,
.schedule-date__day,
.schedule-date time {
  display: block;
}

.schedule-date__week {
  margin-bottom: 0.32rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.schedule-date__day {
  color: var(--ink);
  font-weight: 750;
}

.schedule-date time,
.schedule-date__calendar {
  margin-top: 0.08rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  white-space: nowrap;
}

.schedule-content > :first-child {
  margin-top: 0;
}

.schedule-content > :last-child {
  margin-bottom: 0;
}

.schedule-topic strong {
  color: var(--accent);
}

.schedule-content ul,
.schedule-content ol {
  margin: 0;
  padding-left: 1.1rem;
}

.reading-list {
  margin: 0;
  padding-left: 1.1rem;
}

.reading-list li + li {
  margin-top: 0.45rem;
}

.bibliography-page {
  max-width: 52rem;
}

.bibliography-page__back {
  margin: 0 0 1.25rem;
  font-weight: 700;
}

.bibliography-page__intro {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.bibliography-list {
  margin: 1.1rem 0 0;
  padding-left: 1.4rem;
}

.bibliography-list li + li {
  margin-top: 1.15rem;
}

.bibliography-citation {
  display: block;
  line-height: 1.5;
}

.bibliography-title-link {
  font-weight: 650;
}

.bibliography-meta {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.site-footer {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .hero {
    min-height: 0;
    padding-top: 4.5rem;
  }

  .course-facts {
    grid-template-columns: 1fr;
  }

  .course-fact + .course-fact {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .section--split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

}

@media (max-width: 620px) {
  .site-nav {
    align-items: flex-start;
  }

  .site-nav__links {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0 0.9rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.9rem);
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    --paper: #ffffff;
  }

  .site-header {
    padding: 0;
    background: #ffffff;
    color: #000000;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 0 0 1.5rem;
  }

  .hero h1,
  .eyebrow,
  .course-fact dt,
  .course-fact dd {
    color: #000000;
  }

  .course-facts {
    border-color: #999999;
    background: #ffffff;
  }

  .course-fact + .course-fact {
    border-color: #999999;
  }

  .page-shell {
    max-width: none;
    padding: 0;
  }

  .section {
    padding: 1.5rem 0;
  }

  .person-card,
  .callout,
  .table-scroll {
    box-shadow: none;
  }

  .table-scroll {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 0.75rem;
  }

  th,
  td {
    padding: 0.5rem;
  }

  tr,
  .person-card {
    break-inside: avoid;
  }
}
