:root {
  --warm-white: #fbfaf6;
  --ivory: #efe9df;
  --beige: #d8d0c4;
  --olive: #5f6f4f;
  --olive-dark: #202820;
  --sage: #b8c5b1;
  --water: #cddedc;
  --gold: #c4a465;
  --muted: #6d7469;
  --line: rgba(95, 111, 79, 0.18);
  --shadow: 0 24px 70px rgba(32, 40, 32, 0.08);
  --title: "Cormorant Garamond", "Georgia", serif;
  --text: "Lato", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(205, 222, 220, 0.34), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(196, 164, 101, 0.12), transparent 20rem),
    linear-gradient(180deg, var(--warm-white) 0%, var(--ivory) 100%);
  color: var(--olive-dark);
  font-family: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
}

.journey-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.journey-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-link img {
  width: 46px;
  height: auto;
}

.brand-link span {
  color: rgba(32, 40, 32, 0.68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journey-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.journey-nav a,
.quiet-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.56);
  color: var(--olive);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.journey-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: end;
  padding: clamp(52px, 9vw, 108px) 0 clamp(42px, 7vw, 78px);
}

.kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--title);
  font-weight: 400;
  line-height: 1.02;
}

h1 {
  max-width: 720px;
  font-size: clamp(56px, 10vw, 118px);
}

.subtitle {
  margin: 24px 0 0;
  color: var(--olive);
  font-family: var(--title);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.18;
}

.welcome {
  max-width: 550px;
  margin: 30px 0 0;
  color: rgba(32, 40, 32, 0.72);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-panel {
  min-height: 420px;
  display: grid;
  align-content: end;
  padding: 32px;
  border: 1px solid rgba(95, 111, 79, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.08), rgba(251, 250, 246, 0.72)),
    url("../assets/img/banner.webp") center / cover;
  box-shadow: var(--shadow);
}

.hero-panel p {
  max-width: 310px;
  margin: 0;
  color: rgba(32, 40, 32, 0.72);
  font-family: var(--title);
  font-size: 27px;
  line-height: 1.18;
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-intro h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.today-section {
  padding-bottom: clamp(40px, 6vw, 74px);
}

.today-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: start;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid rgba(95, 111, 79, 0.15);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 8%, rgba(205, 222, 220, 0.24), transparent 18rem),
    rgba(251, 250, 246, 0.84);
  box-shadow: var(--shadow);
}

.today-heading h2 {
  max-width: 360px;
  font-size: clamp(38px, 6vw, 70px);
}

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

.today-item {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(95, 111, 79, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.32);
}

.today-item span,
.today-item small {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.today-item strong {
  margin-top: 18px;
  color: var(--olive-dark);
  font-family: var(--title);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.1;
}

.today-item small {
  margin-top: 10px;
  color: rgba(95, 111, 79, 0.72);
}

.today-action {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(95, 111, 79, 0.24);
  border-radius: 999px;
  background: var(--olive);
  color: var(--warm-white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: clamp(56px, 8vw, 92px);
}

.journey-card {
  min-height: 286px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid rgba(95, 111, 79, 0.15);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.78);
  box-shadow: 0 16px 46px rgba(32, 40, 32, 0.055);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.journey-card:hover,
.journey-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(95, 111, 79, 0.34);
  background: rgba(251, 250, 246, 0.96);
}

.card-number {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.journey-card h3 {
  margin-top: 34px;
  font-size: 34px;
}

.journey-card p {
  margin: 16px 0 26px;
  color: rgba(32, 40, 32, 0.68);
  font-size: 14px;
}

.card-action {
  width: fit-content;
  padding-top: 9px;
  border-top: 1px solid rgba(95, 111, 79, 0.24);
  color: var(--olive);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.placeholder-main {
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: center;
  padding: clamp(42px, 8vw, 90px) 0;
}

.placeholder-card {
  max-width: 760px;
  padding: clamp(34px, 7vw, 76px);
  border: 1px solid rgba(95, 111, 79, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 8%, rgba(205, 222, 220, 0.28), transparent 18rem),
    rgba(251, 250, 246, 0.84);
  box-shadow: var(--shadow);
}

.placeholder-card h1 {
  font-size: clamp(46px, 8vw, 86px);
}

.placeholder-card p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(32, 40, 32, 0.7);
  font-size: 17px;
}

.pathways-main {
  padding-bottom: clamp(56px, 8vw, 92px);
}

.pathways-hero {
  padding: clamp(52px, 8vw, 96px) 0 clamp(24px, 4vw, 44px);
}

.pathways-hero h1 {
  font-size: clamp(56px, 9vw, 104px);
}

.pathways-hero p:not(.kicker) {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(32, 40, 32, 0.7);
  font-size: clamp(16px, 2vw, 19px);
}

.pathways-section {
  padding-top: clamp(22px, 5vw, 48px);
}

.pathways-intro {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(32, 40, 32, 0.66);
  font-size: 15px;
  line-height: 1.75;
}

.pathways-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 8px;
}

.pathway-card {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(95, 111, 79, 0.15);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.84);
  box-shadow: 0 16px 46px rgba(32, 40, 32, 0.055);
}

.pathway-card:first-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
}

.pathway-image {
  position: relative;
  min-height: 260px;
  background: var(--ivory);
}

.pathway-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.9);
}

.pathway-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(32, 40, 32, 0.28));
}

.pathway-image span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(251, 250, 246, 0.72);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.82);
  color: var(--olive);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pathway-content {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 38px);
}

.pathway-meta {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.pathway-content h3 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 0.98;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.pathway-card:first-child .pathway-content h3 {
  font-size: clamp(38px, 4.4vw, 58px);
}

.pathway-content > p:not(.pathway-meta) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(32, 40, 32, 0.68);
  font-size: 14.5px;
}

.pathway-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--olive);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pathway-line span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.pathway-line span:not(:last-child)::after {
  content: "→";
  color: var(--gold);
  font-size: 13px;
  line-height: 1;
}

.pathway-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: chapter;
}

.pathway-chapters li {
  position: relative;
  padding-left: 28px;
  color: rgba(32, 40, 32, 0.66);
  font-size: 13px;
  line-height: 1.45;
  counter-increment: chapter;
}

.pathway-chapters li::before {
  content: counter(chapter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
}

.pathway-button {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 16px;
  border: 1px solid rgba(95, 111, 79, 0.24);
  border-radius: 999px;
  background: var(--olive);
  color: var(--warm-white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.pathway-button.is-disabled {
  background: transparent;
  color: rgba(95, 111, 79, 0.62);
  cursor: default;
  opacity: 0.72;
}

.pathways-error,
.today-error {
  padding: 28px;
  border: 1px solid rgba(95, 111, 79, 0.16);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.8);
  color: var(--muted);
}

.library-main {
  padding-bottom: clamp(56px, 8vw, 92px);
}

.library-hero {
  padding: clamp(52px, 8vw, 96px) 0 clamp(24px, 4vw, 44px);
}

.library-hero h1 {
  font-size: clamp(56px, 9vw, 104px);
}

.library-hero p:not(.kicker) {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(32, 40, 32, 0.7);
  font-size: clamp(16px, 2vw, 19px);
}

.library-section {
  padding-top: clamp(22px, 5vw, 48px);
}

.library-tools {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 10px 0 24px;
}

.library-tools input {
  width: 100%;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(95, 111, 79, 0.2);
  border-radius: 999px;
  outline: 0;
  background: rgba(251, 250, 246, 0.72);
  color: var(--olive-dark);
  font-family: var(--text);
  font-size: 13px;
}

.library-tools input:focus {
  border-color: rgba(95, 111, 79, 0.44);
  box-shadow: 0 0 0 4px rgba(205, 222, 220, 0.22);
}

.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library-filters button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(95, 111, 79, 0.2);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.62);
  color: var(--olive);
  font-family: var(--text);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.library-filters button.is-active {
  background: var(--olive);
  color: var(--warm-white);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.library-card {
  overflow: hidden;
  border: 1px solid rgba(95, 111, 79, 0.15);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.84);
  box-shadow: 0 16px 46px rgba(32, 40, 32, 0.055);
}

.library-image {
  position: relative;
  min-height: 190px;
  background: var(--ivory);
}

.library-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  filter: saturate(0.9);
}

.library-image span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.84);
  color: var(--olive);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.library-image span.is-soon {
  color: rgba(95, 111, 79, 0.66);
}

.library-content {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 24px;
}

.library-meta,
.library-pathway {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.library-pathway {
  margin-top: 12px;
  color: rgba(95, 111, 79, 0.7);
}

.library-content h3 {
  font-size: 30px;
}

.library-content > p:not(.library-meta):not(.library-pathway) {
  margin: 16px 0 0;
  color: rgba(32, 40, 32, 0.68);
  font-size: 14px;
}

.library-button {
  width: fit-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid rgba(95, 111, 79, 0.24);
  border-radius: 999px;
  background: var(--olive);
  color: var(--warm-white);
  font-family: var(--text);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
}

.library-button.is-soon {
  background: transparent;
  color: rgba(95, 111, 79, 0.62);
  cursor: pointer;
  opacity: 0.78;
}

.library-button.is-soon:hover,
.library-button.is-soon:focus-visible {
  border-color: rgba(95, 111, 79, 0.34);
  background: rgba(251, 250, 246, 0.7);
}

.library-modal[hidden] {
  display: none;
}

.library-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.library-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 40, 32, 0.36);
}

.library-modal-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(30px, 6vw, 54px);
  border: 1px solid rgba(95, 111, 79, 0.15);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(205, 222, 220, 0.26), transparent 18rem),
    var(--warm-white);
  box-shadow: 0 34px 90px rgba(32, 40, 32, 0.2);
}

.library-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--olive);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.library-modal-card h2 {
  max-width: 560px;
  font-size: clamp(36px, 6vw, 62px);
}

.library-modal-description,
.library-modal-content {
  max-width: 560px;
  color: rgba(32, 40, 32, 0.72);
}

.library-modal-description {
  margin-top: 20px;
  font-size: 17px;
}

.library-modal-content {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(95, 111, 79, 0.16);
  font-size: 15px;
  line-height: 1.8;
}

.soon {
  display: inline-flex;
  margin-top: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(196, 164, 101, 0.36);
  border-radius: 999px;
  color: var(--olive);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.primary-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--warm-white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.journey-footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(95, 111, 79, 0.12);
  color: rgba(32, 40, 32, 0.54);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

  .today-panel {
    grid-template-columns: 1fr;
  }

  .today-action {
    grid-column: auto;
  }

  .pathways-grid,
  .library-grid,
  .pathway-card,
  .pathway-card:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pathway-card,
  .pathway-card:first-child {
    grid-template-columns: 1fr;
  }

  .pathway-image {
    min-height: 230px;
  }

  .pathway-content h3,
  .pathway-card:first-child .pathway-content h3 {
    font-size: clamp(34px, 7vw, 52px);
  }

  .library-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .journey-shell {
    width: min(100% - 24px, 1120px);
  }

  .journey-header,
  .section-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .journey-nav {
    justify-content: flex-start;
  }

  .journey-hero {
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(50px, 17vw, 76px);
  }

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

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

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

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

  .pathway-content {
    padding: 24px;
  }

  .pathway-content h3,
  .pathway-card:first-child .pathway-content h3 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .pathway-content > p:not(.pathway-meta) {
    font-size: 14px;
    line-height: 1.7;
  }

  .pathway-chapters {
    grid-template-columns: 1fr;
  }

  .journey-card {
    min-height: 236px;
    padding: 24px;
  }
}
