:root {
  --ink: #10233f;
  --ink-soft: #4d5c70;
  --navy: #0c2545;
  --navy-2: #163a64;
  --crimson: #9f1838;
  --crimson-dark: #74102a;
  --gold: #d8a53a;
  --paper: #f5f0e6;
  --paper-deep: #e9e0cf;
  --white: #fffdf8;
  --line: rgba(16, 35, 63, 0.16);
  --shadow: 0 24px 70px rgba(12, 37, 69, 0.13);
  --radius: 22px;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 165, 58, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 16%, rgba(159, 24, 56, 0.09), transparent 30rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.34;
  background-image: linear-gradient(rgba(16, 35, 63, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 63, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.65rem 0.85rem;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 37, 69, 0.97);
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.brand-text span {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  padding: 0 0.75rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--gold);
}

.course-meta {
  color: rgba(255, 255, 255, 0.8);
  background: var(--crimson-dark);
}

.course-meta .site-shell {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.page-main {
  padding: 48px 0 80px;
}

.surface {
  overflow: hidden;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  display: grid;
  min-height: 570px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: 39.8%;
  bottom: 0;
  width: 1px;
  height: 82%;
  content: "";
  background: linear-gradient(transparent, var(--line), transparent);
}

.hero-copy {
  display: flex;
  padding: clamp(44px, 6vw, 82px);
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: flex;
  margin: 0 0 1.2rem;
  align-items: center;
  gap: 0.7rem;
  color: var(--crimson);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  font-family: var(--serif);
  line-height: 1.06;
}

h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(3.5rem, 7vw, 6.7rem);
  font-weight: 600;
  letter-spacing: -0.055em;
}

h1 em,
.page-title em {
  color: var(--crimson);
  font-weight: 500;
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.64;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--navy);
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--navy);
  box-shadow: 0 9px 24px rgba(12, 37, 69, 0.2);
}

.button-primary:hover {
  background: var(--navy-2);
}

.button-secondary {
  color: var(--navy);
  background: transparent;
}

.button-secondary:hover {
  background: rgba(12, 37, 69, 0.05);
}

.button-quiet {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  color: var(--crimson);
  border-color: rgba(159, 24, 56, 0.28);
  background: rgba(159, 24, 56, 0.045);
}

.hero-visual {
  position: relative;
  display: flex;
  min-height: 570px;
  padding: 36px;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(12, 37, 69, 0.97), rgba(22, 58, 100, 0.94)),
    var(--navy);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(216, 165, 58, 0.22);
  border-radius: 50%;
}

.hero-visual::before {
  width: 420px;
  height: 420px;
}

.hero-visual::after {
  width: 300px;
  height: 300px;
}

.visual-card {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  transform: rotate(1.4deg);
}

.visual-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.visual-caption {
  display: flex;
  padding: 0.85rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.visual-caption span:last-child {
  color: var(--crimson);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-strip {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
  background: rgba(233, 224, 207, 0.34);
}

.stat {
  min-height: 116px;
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: clamp(56px, 8vw, 96px) 0 0;
}

.section-head {
  display: grid;
  margin-bottom: 2rem;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: end;
  gap: 2rem;
}

.section-head h2,
.page-title {
  margin-bottom: 0;
  font-size: clamp(2.45rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

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

.route-card,
.content-card,
.reading-card,
.glossary-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
}

.route-card {
  display: grid;
  min-height: 340px;
  grid-template-columns: 0.92fr 1.08fr;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.route-card:hover {
  box-shadow: 0 18px 40px rgba(12, 37, 69, 0.1);
  transform: translateY(-3px);
}

.route-image {
  min-height: 100%;
  overflow: hidden;
  background: var(--navy);
}

.route-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.route-card:hover .route-image img {
  transform: scale(1.025);
}

.route-copy {
  display: flex;
  padding: 1.65rem;
  flex-direction: column;
}

.day-label {
  display: flex;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--crimson);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.day-label span:last-child {
  color: var(--ink-soft);
}

.route-copy h3 {
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  font-weight: 650;
}

.route-copy p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
  font-size: 0.89rem;
  line-height: 1.55;
}

.route-links {
  display: flex;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.route-links a {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.route-links a + a::before {
  margin-right: 0.5rem;
  color: var(--gold);
  content: "•";
}

.concept-line {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
}

.concept-step {
  position: relative;
  min-height: 190px;
  padding: 1.5rem;
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.concept-step:last-child {
  border-right: 0;
}

.concept-step:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -13px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--navy);
  border-radius: 50%;
  content: "›";
  background: var(--gold);
  font-weight: 800;
  transform: translateY(-50%);
}

.concept-step small {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.concept-step strong {
  display: block;
  margin: 0.7rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.1;
}

.concept-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.5;
}

.info-grid,
.outcome-grid,
.reading-grid,
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.content-card,
.reading-card,
.glossary-card {
  padding: 1.6rem;
}

.content-card .number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 1.1rem;
  place-items: center;
  color: var(--crimson);
  border: 1px solid rgba(159, 24, 56, 0.25);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.content-card h3,
.reading-card h3,
.glossary-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
  line-height: 1.18;
}

.content-card p,
.reading-card p,
.glossary-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.page-hero {
  display: grid;
  min-height: 330px;
  padding: clamp(40px, 7vw, 78px);
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: 3rem;
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.97), rgba(255, 253, 248, 0.83)),
    var(--paper);
}

.page-hero .lead {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.page-aside {
  padding: 1.35rem;
  color: white;
  border-radius: 16px;
  background: var(--navy);
}

.page-aside strong {
  display: block;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-aside p {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
}

.article-body {
  padding: clamp(38px, 7vw, 78px);
}

.article-body > section + section {
  margin-top: 4.5rem;
}

.article-body h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.article-body > section > p {
  max-width: 820px;
  color: var(--ink-soft);
}

.schedule {
  width: 100%;
  margin-top: 1.5rem;
  overflow: hidden;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

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

.schedule tr:last-child td {
  border-bottom: 0;
}

.schedule th {
  color: white;
  background: var(--navy);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule td:first-child {
  width: 88px;
  color: var(--crimson);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 750;
}

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

.schedule small {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

.check-list,
.clean-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

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

.check-list li,
.clean-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}

.check-list li::before {
  position: absolute;
  top: 0.05rem;
  left: 0;
  color: var(--crimson);
  content: "✓";
  font-weight: 850;
}

.clean-list li {
  margin: 0.55rem 0;
}

.clean-list li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "—";
  font-weight: 800;
}

.lecture-list {
  display: grid;
  gap: 1.25rem;
}

.lecture-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--white);
}

.lecture-panel-image {
  min-height: 300px;
  background: var(--navy);
}

.lecture-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lecture-panel-copy {
  padding: clamp(1.6rem, 4vw, 2.5rem);
}

.lecture-panel-copy h2 {
  margin: 0.3rem 0 0.8rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.lecture-panel-copy p {
  max-width: 780px;
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.topic-tags {
  display: flex;
  margin: 1rem 0 1.4rem;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.topic-tags li {
  padding: 0.35rem 0.62rem;
  color: var(--navy);
  border: 1px solid rgba(12, 37, 69, 0.15);
  border-radius: 999px;
  background: rgba(12, 37, 69, 0.04);
  font-size: 0.7rem;
  font-weight: 700;
}

.file-meta {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.reading-card {
  position: relative;
  min-height: 230px;
}

.reading-card::before {
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 1.25rem;
  content: "";
  background: var(--crimson);
}

.reading-card .cite {
  margin-top: 1rem;
  color: var(--crimson);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
}

.reading-card.core {
  background: var(--navy);
}

.reading-card.core h3 {
  color: white;
}

.reading-card.core p {
  color: rgba(255, 255, 255, 0.72);
}

.reading-card.core .cite {
  color: var(--gold);
}

.callout {
  padding: 1.5rem;
  color: white;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
}

.callout h3 {
  color: white;
}

.callout p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.question-block {
  padding: 1.6rem;
  border-left: 4px solid var(--gold);
  background: rgba(233, 224, 207, 0.38);
}

.question-block + .question-block {
  margin-top: 1rem;
}

.question-block h3 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.question-block ol {
  margin-bottom: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.glossary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glossary-card {
  min-height: 170px;
}

.glossary-card h3 {
  color: var(--crimson);
  font-family: var(--mono);
  font-size: 0.87rem;
  letter-spacing: 0.03em;
}

.footer {
  margin-top: 72px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  padding: 2.25rem 0;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer strong {
  display: block;
  color: white;
  font-family: var(--serif);
  font-size: 1.18rem;
}

.footer p {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.scroll-progress {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  pointer-events: none;
  background: var(--gold);
}

@media (max-width: 980px) {
  .nav-inner {
    padding: 0.75rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
  }

  .site-nav ul {
    width: max-content;
  }

  .hero,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero::after {
    display: none;
  }

  .hero-visual {
    min-height: 410px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .route-card {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .concept-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .concept-step:nth-child(2) {
    border-right: 0;
  }

  .concept-step:not(:last-child)::after {
    display: none;
  }

  .lecture-panel {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .brand-text span {
    display: none;
  }

  .course-meta .site-shell {
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  .course-meta span:last-child {
    display: none;
  }

  .page-main {
    padding-top: 20px;
  }

  .surface {
    border-radius: 18px;
  }

  .hero-copy,
  .page-hero,
  .article-body {
    padding: 32px 24px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .hero-visual {
    min-height: 340px;
    padding: 24px;
  }

  .stat-strip,
  .route-grid,
  .info-grid,
  .outcome-grid,
  .reading-grid,
  .glossary-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .route-card,
  .lecture-panel {
    grid-template-columns: 1fr;
  }

  .route-image {
    min-height: 240px;
  }

  .lecture-panel-image {
    min-height: 250px;
  }

  .concept-line {
    grid-template-columns: 1fr;
  }

  .concept-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .concept-step:last-child {
    border-bottom: 0;
  }

  .schedule {
    display: block;
    overflow-x: auto;
  }

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

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

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