:root {
  --ink: #14110f;
  --muted: #6c6760;
  --line: #ded8ce;
  --paper: #f9f8f4;
  --panel: #ffffff;
  --green: #2f5d50;
  --gold: #a66f2b;
  --wine: #7a2531;
  --blue: #273d59;
  --shadow: 0 18px 60px rgba(30, 25, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(249, 248, 244, 0.92);
  border-bottom: 1px solid rgba(222, 216, 206, 0.9);
  backdrop-filter: blur(16px);
}

.mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--wine));
  border-radius: 8px;
  font-weight: 850;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

.home-hero,
.page-hero,
.contact-page {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: calc(100vh - 67px);
  padding: clamp(34px, 5vw, 64px) clamp(20px, 5.2vw, 70px) clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.home-hero::before {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(42vw, 560px);
  height: 100%;
  content: "";
  background: linear-gradient(180deg, rgba(122, 37, 49, 0.08), rgba(47, 93, 80, 0.05));
  border-left: 1px solid rgba(222, 216, 206, 0.8);
  pointer-events: none;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  max-width: 920px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.6vw, 3.45rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.22;
}

.lede {
  max-width: 660px;
  color: #263142;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.35;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 750;
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
}

.panel-kicker,
.route-card span,
.narrative-grid span,
.course-list span,
.timeline-page span {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-panel {
  align-self: stretch;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.panel-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.panel-kicker {
  margin: auto 0 12px;
}

.hero-panel h2 {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 2.9vw, 2.8rem);
}

.panel-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.panel-list span {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 650;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
}

.stats div {
  min-height: 108px;
  padding: 22px clamp(18px, 2.6vw, 30px);
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.3vw, 3.35rem);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 650;
}

.section {
  padding: clamp(52px, 7vw, 88px) clamp(20px, 5.2vw, 70px);
}

.narrative-grid,
.route-grid,
.teaching-grid,
.course-list {
  display: grid;
  gap: 16px;
}

.narrative-grid {
  grid-template-columns: repeat(4, 1fr);
}

.route-grid {
  grid-template-columns: repeat(4, 1fr);
}

.route-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.narrative-grid article,
.route-card,
.teaching-grid article,
.course-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.narrative-grid p,
.route-card p,
.teaching-grid p,
.course-list p,
.timeline-page p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 6vw, 72px);
  color: #fff;
  background: #211d1a;
}

.feature-band .eyebrow {
  color: #d6bd86;
}

.feature-band .route-card {
  color: var(--ink);
}

.recognition {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 72px);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recognition ul {
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recognition li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
}

.recognition li:last-child {
  border-bottom: 0;
}

.page-hero,
.contact-page {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5.2vw, 70px);
}

.page-hero.compact {
  padding-bottom: clamp(40px, 5vw, 60px);
}

.teaching-hero {
  color: #fff;
  background: #211d1a;
}

.teaching-hero .eyebrow {
  color: #d6bd86;
}

.teaching-hero .lede {
  color: rgba(255, 255, 255, 0.82);
}

.teaching-grid.expanded {
  grid-template-columns: repeat(4, 1fr);
}

.timeline-page {
  display: grid;
  gap: 18px;
}

.timeline-page article {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 18px 34px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-page article:first-child {
  padding-top: 0;
}

.timeline-page h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 2.35vw, 2.45rem);
}

.timeline-page h3 {
  color: var(--green);
}

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

.course-list h2 {
  font-size: clamp(1.55rem, 2.35vw, 2.45rem);
}

.contact-page {
  min-height: calc(100vh - 142px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 5.2vw, 70px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

@media (max-width: 1050px) {
  .narrative-grid,
  .route-grid,
  .teaching-grid.expanded {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-band,
  .recognition {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    min-height: 300px;
  }

  .stats,
  .route-grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-page article {
    grid-template-columns: 1fr;
  }
}

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

  nav {
    justify-content: flex-end;
    gap: 10px 14px;
    font-size: 0.86rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  .home-hero::before {
    width: 64vw;
  }

  .stats,
  .narrative-grid,
  .route-grid,
  .route-grid.three,
  .teaching-grid.expanded,
  .course-list {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  footer {
    flex-direction: column;
  }
}
