:root {
  color-scheme: light;
  --paper: #f9f6ee;
  --panel: #fffdf8;
  --ink: #162d2c;
  --subtle: #4d615d;
  --border: #d9ddd4;
  --teal: #174940;
  --teal-hover: #0d3834;
  --sea: #dcebe2;
  --gold: #ead5a7;
  --navy: #172938;
  --page: 1120px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 3px solid #326bc6;
  outline-offset: 4px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1.04; }
h3 { line-height: 1.3; }
time { font-variant-numeric: tabular-nums; }
[id] { scroll-margin-top: 20px; }
.wrap { width: min(var(--page), calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 10px; left: 10px; z-index: 1; transform: translateY(-180%); background: var(--panel); padding: 8px 14px; }
.skip:focus { transform: none; }

.top { border-bottom: 1px solid var(--border); background: var(--panel); }
.top-inner, .top nav, .identity { display: flex; align-items: center; }
.top-inner { justify-content: space-between; min-height: 71px; gap: 20px; }
.top nav { gap: clamp(15px, 4vw, 34px); font-size: .88rem; font-weight: 650; }
.top a { text-decoration: none; }
.top a:hover { text-decoration: underline; }
.identity { font-family: Georgia, serif; font-size: 1.23rem; gap: 14px; }
.mark {
  width: 15px;
  height: 15px;
  display: inline-block;
  flex: 0 0 auto;
  outline: 1px solid #8a6e3a;
  outline-offset: 3px;
  background: #8a6e3a;
  transform: rotate(45deg);
}
.staff-link { color: var(--teal); }
.staff-link span { margin-inline-start: 3px; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding-block: clamp(34px, 6.6vw, 84px) clamp(35px, 5.5vw, 72px);
}
.eyebrow {
  color: var(--teal);
  font-weight: 760;
  letter-spacing: .095em;
  font-size: .74rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.intro h1 { font-size: clamp(2.8rem, 5.9vw, 5.1rem); letter-spacing: -.06em; margin-bottom: 22px; }
.intro-copy { color: var(--subtle); font-size: clamp(1.04rem, 2vw, 1.22rem); max-width: 35ch; margin-bottom: 25px; }
.primary {
  display: inline-flex;
  align-items: center;
  gap: 23px;
  border-radius: 5px;
  padding: 12px 17px;
  background: var(--teal);
  color: white;
  font-size: .95rem;
  font-weight: 680;
  text-decoration: none;
}
.primary:hover { background: var(--teal-hover); }
.cover {
  display: block;
  overflow: hidden;
  border: 1px solid #203c48;
  border-radius: 11px;
  background: var(--navy);
  color: white;
  text-decoration: none;
  box-shadow: 0 16px 39px #203a2b26;
}
.cover img { display: block; width: 100%; height: auto; }
.cover-label { display: flex; align-items: center; justify-content: space-between; padding: 11px 17px; gap: 20px; font-size: .83rem; font-weight: 650; }
.cover-label span:last-child { color: var(--gold); font-variant-numeric: tabular-nums; }

.map { border-top: 1px solid var(--border); padding-block: 30px clamp(36px, 5vw, 64px); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 9px 20px; margin-bottom: 18px; }
.section-heading h2 { font-size: clamp(2.05rem, 4vw, 2.7rem); margin: 0; letter-spacing: -.035em; }
.section-heading p { color: var(--subtle); margin: 0; font-size: .92rem; }
.map-grid { display: grid; gap: 8px; }
.map-route {
  display: grid;
  grid-template-columns: minmax(142px, .9fr) repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}
.map-route h3 { align-self: center; margin: 0; padding: 9px 12px; font-size: .98rem; }
.role-dot { display: inline-block; width: .64rem; height: .64rem; border-radius: 50%; margin-right: 9px; }
.librarian { background: #357263; }
.admin { background: #946625; }
.map-route a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid #e1e6df;
  border-radius: 5px;
  padding: 10px 11px;
  color: var(--ink);
  background: #edf2eb;
  text-decoration: none;
  font-size: .875rem;
  line-height: 1.3;
  font-weight: 620;
}
.map-route a time { color: #3c5c54; font-size: .79rem; }
.map-route a:hover { background: var(--sea); text-decoration: underline; }

.lesson-band { background: var(--navy); color: #f4f7f5; padding-block: clamp(35px, 5.2vw, 64px); }
.lesson-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 50px; }
.lesson-heading .eyebrow { color: var(--gold); }
.lesson-heading h2 { font-size: clamp(2.02rem, 4.4vw, 3.65rem); max-width: 19ch; margin-bottom: 0; letter-spacing: -.04em; }
.annotation { flex: 0 0 auto; color: var(--gold); font-size: .82rem; font-weight: 650; text-align: right; margin: 0; }
.annotation span { display: block; color: #c1cfd3; font-weight: 480; margin-top: 2px; }
.lesson-summary { margin: 17px 0 9px; max-width: 64ch; color: #dce7e8; }
.demo-note { margin: 0 0 23px; border-left: 2px solid #d1ae71; padding-left: 9px; color: #dce7e8; font-size: .86rem; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .35fr); gap: 22px; align-items: start; }
.player-column, .chapters { min-width: 0; }
video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #111c2b; border: 1px solid #40515c; border-radius: 8px; }
#video-status { margin: 10px 0 0; color: #dce7e8; font-size: .86rem; }
#video-status:empty { display: none; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px 23px; padding-top: 12px; font-size: .86rem; color: #dfebed; }
.chapters { border: 1px solid #435966; border-radius: 8px; padding: 15px; background: #1e3443; }
.chapters h3 { font-size: .96rem; margin: 3px 7px 10px; }
.chapters ol { list-style: none; margin: 0; padding: 0; }
.chapters a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-radius: 4px;
  padding: 9px 7px;
  font-size: .86rem;
  text-decoration: none;
}
.chapters a:hover { background: #294754; text-decoration: underline; }
.chapters time { color: var(--gold); width: 34px; flex: 0 0 auto; }
.transcript { border-block: 1px solid #435966; margin-top: 23px; }
.transcript summary { cursor: pointer; font-weight: 660; padding: 13px 2px; }
.transcript-body { color: #e3edee; max-width: 73ch; padding: 0 2px 11px; }
.transcript-body h3 { margin: 21px 0 7px; font-size: 1rem; color: var(--gold); }
.transcript-body p { margin-bottom: 10px; }

.later { padding-block: clamp(35px, 5.2vw, 62px); }
.later ul { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.later li { border-top: 2px solid #bba776; padding: 14px 0 0; }
.later h3 { font-size: 1rem; margin-bottom: 7px; }
.later p { color: var(--subtle); font-size: .91rem; margin: 0; }
.bottom { border-top: 1px solid var(--border); padding: 16px 0; font-size: .85rem; color: var(--subtle); }
.bottom div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }

@media (max-width: 840px) {
  .wrap { width: calc(100% - 40px); }
  .intro { gap: 28px; }
  .map-route { grid-template-columns: minmax(112px, .7fr) repeat(3, minmax(0, 1fr)); }
  .map-route a { flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 640px) {
  .top-inner { min-height: 61px; }
  .top nav a:first-child { display: none; }
  .identity { font-size: 1.05rem; gap: 11px; }
  .mark { width: 12px; height: 12px; margin-left: 4px; }
  .intro, .player-layout { grid-template-columns: 1fr; }
  .intro h1 { font-size: clamp(2.85rem, 11vw, 4.2rem); margin-bottom: 16px; }
  .intro-copy { margin-bottom: 17px; }
  .map-route { grid-template-columns: 1fr; }
  .map-route a { min-height: 42px; }
  .map-route h3 { padding: 5px 10px; }
  .lesson-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .annotation { text-align: left; }
  .annotation span { display: inline; margin-left: 8px; }
  .chapters a { min-height: 42px; }
  .later ul { grid-template-columns: 1fr; gap: 14px; }
}
