:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #dde3ea;
  --paper: #fbfbf8;
  --panel: #ffffff;
  --green: #315c4b;
  --gold: #c78b3b;
  --blue: #203a5f;
  --shadow: 0 24px 70px rgba(20, 31, 45, 0.12);
}

* {
  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(251, 251, 248, 0.9);
  border-bottom: 1px solid rgba(221, 227, 234, 0.85);
  backdrop-filter: blur(16px);
}

.mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  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:
    linear-gradient(90deg, rgba(49, 92, 75, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(49, 92, 75, 0.05) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 88px 88px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(300px, 0.64fr);
  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);
}

.home-hero::before {
  position: absolute;
  inset: 10% auto auto 50%;
  width: 42vw;
  height: 72%;
  min-width: 420px;
  content: "";
  background: var(--green);
  opacity: 0.08;
  transform: skewX(-10deg);
  transform-origin: top;
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  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.65rem, 4.9vw, 5.15rem);
  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: 8px;
  font-weight: 750;
}

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

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

.hero-visual {
  width: min(100%, 420px);
  justify-self: center;
}

.hero-visual::before {
  position: absolute;
  inset: -16px 22px 34px -18px;
  content: "";
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 8px;
}

.portrait-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
  background: #efe6d4;
  box-shadow: 0 32px 90px rgba(20, 31, 45, 0.18);
  aspect-ratio: 3.9 / 5;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}

.focus-note {
  position: absolute;
  right: -18px;
  bottom: 24px;
  width: min(240px, 62%);
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(20, 31, 45, 0.14);
  backdrop-filter: blur(12px);
}

.focus-note span,
.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;
}

.focus-note strong {
  display: block;
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  line-height: 1;
}

.focus-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

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

.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: var(--green);
}

.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:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
    var(--green);
  background-size: 88px 88px;
}

.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-visual {
    width: min(100%, 380px);
    justify-self: start;
  }

  .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 {
    min-width: 0;
    width: 70vw;
  }

  .focus-note {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 12px;
  }

  .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;
  }
}
