:root {
  --ink: #172033;
  --muted: #647089;
  --paper: #f6f8fb;
  --card: #ffffff;
  --line: #dfe5ee;
  --navy: #14213d;
  --navy-2: #1d3157;
  --accent: #a51c30;
  --accent-soft: #f7eaed;
  --blue-soft: #eaf0f8;
  --green-soft: #eaf5ef;
  --shadow: 0 16px 40px rgba(20, 33, 61, 0.08);
  --radius: 18px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: #315f9c; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid rgba(165, 28, 48, 0.28); outline-offset: 3px; border-radius: 4px; }

.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 33, 61, 0.96);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
}
.nav-shell {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff;
  color: var(--navy);
  font-size: 0.92rem;
  box-shadow: inset 0 0 0 1px rgba(20,33,61,.12);
}
.brand-text { white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  padding: 9px 11px;
  border-radius: 9px;
  transition: background .18s ease, color .18s ease;
}
.site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(255,255,255,.10); }
.site-nav .external::after { content: " ↗"; font-size: .8em; opacity: .75; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,33,61,.97) 0%, rgba(20,33,61,.92) 46%, rgba(20,33,61,.58) 72%, rgba(20,33,61,.30) 100%),
    url("../images/banner4.png") center 49% / cover no-repeat;
  transform: scale(1.015);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to right, #000, transparent 66%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 370px;
  padding: 76px 0 68px;
  display: flex;
  align-items: center;
}
.hero-copy { max-width: 720px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 800;
  font-size: .76rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: #e6aab4; }
.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.4rem, 5.4vw, 4.65rem);
  line-height: .98;
  letter-spacing: -0.052em;
  font-weight: 820;
}
.hero .subtitle {
  margin: 24px 0 0;
  max-width: 610px;
  color: rgba(255,255,255,.85);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.6;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.09);
  border-radius: 999px;
  color: #fff;
  font-size: .88rem;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.page-hero .hero-inner { min-height: 245px; padding: 58px 0 52px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); }

main { padding: 54px 0 82px; }
.section { scroll-margin-top: 92px; margin-top: 66px; }
.section:first-child { margin-top: 0; }
.section-heading { margin-bottom: 24px; }
.section-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .73rem;
  font-weight: 850;
}
.section h2, .content-page h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: -0.032em;
}
.section-heading > p { margin: 9px 0 0; max-width: 760px; color: var(--muted); }
.section h3, .content-page h3 { color: var(--navy); letter-spacing: -.015em; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -88px;
  position: relative;
  z-index: 4;
}
.info-card {
  min-height: 132px;
  padding: 21px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.info-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 800;
}
.info-value { color: var(--navy); font-size: 1.02rem; font-weight: 780; line-height: 1.38; }
.info-note { margin-top: 4px; color: var(--muted); font-size: .87rem; line-height: 1.45; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 28px; align-items: start; }
.prose-card, .side-card, .content-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 9px 26px rgba(20,33,61,.045);
}
.prose-card, .content-card { padding: 30px clamp(22px, 4vw, 38px); }
.prose-card p:first-child { margin-top: 0; }
.prose-card p:last-child { margin-bottom: 0; }
.side-card { padding: 23px; }
.side-card + .side-card { margin-top: 16px; }
.side-card h3 { margin: 0 0 10px; font-size: 1.03rem; }
.side-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.people-list { display: grid; gap: 12px; margin-top: 17px; }
.person { display: flex; align-items: center; gap: 12px; }
.person img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); background: #f3f5f8; }
.person-name { display: block; color: var(--navy); font-weight: 760; line-height: 1.25; }
.person-role { color: var(--muted); font-size: .83rem; }

.notice {
  display: flex;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  background: var(--blue-soft);
  color: #30445e;
}
.notice strong { color: var(--navy); }
.notice-icon { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 800; }

.simple-list { margin: 0; padding-left: 1.18rem; }
.simple-list li + li { margin-top: 7px; }
.muted { color: var(--muted); }

.grading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grade-card { padding: 25px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.grade-card h3 { margin: 0 0 14px; }
.grade-row { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-top: 1px solid #edf0f4; }
.grade-row:first-of-type { border-top: 0; }
.grade-row span:last-child { font-weight: 800; color: var(--navy); }

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 20px;
}
.schedule-legend { color: var(--muted); font-size: .9rem; }
.schedule-list { display: grid; gap: 13px; }
.week-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(20,33,61,.025);
}
.week-date {
  padding: 20px 17px;
  background: #f0f3f8;
  border-right: 1px solid var(--line);
}
.week-num { display: block; color: var(--muted); font-size: .69rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 850; }
.week-date time { display: block; margin-top: 4px; color: var(--navy); font-size: 1.04rem; font-weight: 820; line-height: 1.3; }
.week-body { min-width: 0; padding: 18px 20px 17px; }
.week-title { margin: 0 0 9px; color: var(--navy); font-size: 1.05rem; line-height: 1.45; font-weight: 790; }
.week-subtopics { margin: 0; color: var(--muted); font-size: .93rem; }
.resource-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.resource-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--accent-soft);
  color: #7f2030;
  font-size: .79rem;
  font-weight: 760;
}
.resource-pill:hover { background: #f0d6db; color: #641422; }
.resource-pill.secondary { background: var(--blue-soft); color: #365a86; }
.week-card details { margin-top: 12px; border-top: 1px solid #edf0f4; padding-top: 10px; }
.week-card summary { cursor: pointer; color: #4d5d73; font-size: .86rem; font-weight: 740; list-style: none; }
.week-card summary::-webkit-details-marker { display: none; }
.week-card summary::before { content: "+"; display: inline-block; width: 18px; color: var(--accent); font-weight: 900; }
.week-card details[open] summary::before { content: "−"; }
.week-card details .detail-body { margin-top: 9px; color: var(--muted); font-size: .88rem; }
.week-card details .detail-body p { margin: 5px 0; }
.week-card details .detail-body a { font-weight: 650; }
.week-card.special { border-color: #d7dfeb; }
.week-card.special .week-date { background: var(--navy); border-color: var(--navy); }
.week-card.special .week-num, .week-card.special .week-date time { color: #fff; }
.week-card.project .week-date { background: var(--green-soft); }

.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.resource-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.resource-card h3 { margin: 0 0 10px; font-size: 1.02rem; }
.resource-card ul { margin: 0; padding-left: 1.12rem; color: var(--muted); }
.resource-card li + li { margin-top: 6px; }

.content-page { max-width: 900px; }
.content-card > h1 {
  margin: 0 0 28px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.04em;
}
.content-card h2 { margin-top: 38px; font-size: 1.45rem; }
.content-card h2:first-of-type { margin-top: 12px; }
.content-card p, .content-card li { color: #344057; }
.content-card ul { padding-left: 1.15rem; }
.content-card li + li { margin-top: 7px; }
.content-card .callout {
  padding: 17px 19px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: #30445e;
}
.content-card .tba {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7f2030;
  font-size: .82rem;
  font-weight: 780;
}
.empty-state { padding: 42px 24px; text-align: center; border: 1px dashed #cfd6e2; border-radius: 16px; background: #fbfcfe; }
.empty-state h2 { margin: 0 0 8px; font-size: 1.35rem; }
.empty-state p { margin: 0; color: var(--muted); }

.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: .86rem; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-row p { margin: 0; }

@media (max-width: 900px) {
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -56px; }
  .two-col { grid-template-columns: 1fr; }
  .grading-grid, .resource-grid { grid-template-columns: 1fr; }
  .hero-inner { min-height: 330px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 26px), var(--content)); }
  .site-header { position: relative; }
  .nav-shell { align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 10px; }
  .site-nav { justify-content: flex-start; gap: 2px; }
  .site-nav a { padding: 7px 8px; font-size: .84rem; }
  .hero::before { background: linear-gradient(90deg, rgba(20,33,61,.98), rgba(20,33,61,.84)), url("../images/banner4.png") center / cover no-repeat; }
  .hero-inner { min-height: 315px; padding: 52px 0 72px; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.55rem); }
  main { padding-top: 38px; }
  .info-grid { grid-template-columns: 1fr; margin-top: -55px; gap: 10px; }
  .info-card { min-height: auto; }
  .section { margin-top: 48px; scroll-margin-top: 24px; }
  .week-card { grid-template-columns: 1fr; }
  .week-date { border-right: 0; border-bottom: 1px solid var(--line); padding: 11px 17px; display: flex; align-items: center; gap: 10px; }
  .week-date time { margin: 0; font-size: .92rem; }
  .week-body { padding: 16px 17px; }
  .prose-card, .content-card { padding: 23px 19px; }
}

@media print {
  .site-header, .hero::after, .site-footer { display: none; }
  .hero { color: #000; background: #fff; }
  .hero::before { display: none; }
  .hero-inner { min-height: 0; padding: 20px 0; }
  .hero .subtitle, .eyebrow, .hero-pill { color: #333; }
  .info-grid { margin-top: 0; box-shadow: none; }
  .week-card, .info-card, .content-card, .prose-card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}
