/* Home hero */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  max-width: 48rem;
}

.home-hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
  margin: 0;
}

.home-hero__title {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--fg-0);
  margin: 0;
  text-wrap: pretty;
}

.home-hero__lead {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--fg-4);
  max-width: 44rem;
  margin: 0;
  text-wrap: pretty;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-3);
}

.home-hero__actions .btn { flex: 0 0 auto; }

@media (max-width: 900px) {
  .home-hero__title { font-size: 3.2rem; }
}

@media (max-width: 560px) {
  .home-hero__title { font-size: 2.4rem; }
  .home-hero__lead { font-size: 1.1rem; }
  .home-hero__actions .btn { flex: 1 1 100%; }
}

/* Archive goal: an editorial stat block at the foot of the home page. */
.home-goal {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(var(--space-6), 5vw, var(--space-8));
  border-top: 1px solid var(--rule);
  margin-top: var(--section-space);
  padding-top: var(--section-space);
}

.home-goal__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.home-goal__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.home-goal__eyebrow {
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
}

.home-goal__title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--fg-0);
  margin: 0;
}

.home-goal__subtitle {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fg-4);
  margin: 0;
}

/* The percentage is set as a figure, not a badge. */
.home-goal__badge {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
}

.home-goal__badge-value {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--fg-0);
}

.home-goal__badge-value .home-goal__badge-pct {
  font-size: 2.1rem;
  color: var(--warm);
}

.home-goal__badge-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-5);
  padding-bottom: 0.5rem;
}

.home-goal__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.home-goal__progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-5);
  margin-bottom: var(--space-2);
}

.home-goal__progress-head > :first-child { color: var(--fg-2); }

.home-goal__progress {
  height: 3px;
  background: var(--rule);
  overflow: hidden;
}

.home-goal__progress + .home-goal__progress-head {
  margin-top: var(--space-5);
}

.home-goal__progress-bar {
  height: 100%;
  background: var(--fg-0);
}

.home-goal__progress-bar--time {
  background: var(--warm);
}

.home-goal__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.home-goal__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  background: var(--bg-0);
}

.home-goal__stat:first-child {
  padding-left: 0;
}

.home-goal__stat-value {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--fg-0);
}

.home-goal__stat-label {
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--fg-5);
}

.home-goal__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.home-goal__cta-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg-0);
  margin: 0 0 var(--space-1);
}

.home-goal__cta-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--fg-4);
  margin: 0;
}

.home-goal__cta-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.home-goal__meta {
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-5);
  margin: 0;
}

@media (max-width: 900px) {
  .home-goal {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 560px) {
  .home-goal__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-goal__stat:nth-child(3) {
    padding-left: 0;
  }

  .home-goal__cta {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Every home section after the hero sits below a full-width hairline with the
   same space on either side of it. */
.home-latest {
  border-top: 1px solid var(--rule);
  margin-top: var(--section-space);
  padding-top: var(--section-space);
}

.home-latest__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-6);
}

.home-latest__title {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.06;
}

.home-latest__more {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-0);
  text-decoration: none;
  padding-bottom: var(--space-1);
  white-space: nowrap;
}

.home-latest__carousel {
  position: relative;
}

.home-latest__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-7) var(--space-6);
}

@media (max-width: 900px) {
  .home-latest__carousel {
    margin-inline: -0.25rem;
  }

  .home-latest__grid {
    display: flex;
    gap: var(--space-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding-inline: 0.25rem;
    padding-inline: 0.25rem;
    padding-bottom: 0.35rem;
  }

  .home-latest__grid::-webkit-scrollbar {
    display: none;
  }

  .home-latest__grid:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius);
  }

  .home-latest__grid > .teaching-card {
    flex: 0 0 82%;
    max-width: 20rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

.home-topics {
  border-top: 1px solid var(--rule);
  margin-top: var(--section-space);
  padding-top: var(--section-space);
}

.home-topics__header {
  margin-bottom: var(--space-5);
  text-align: left;
}

.home-topics__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.home-topics__subtitle {
  margin: var(--space-2) 0 0;
  max-width: 32rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--fg-4);
  font-size: 1.05rem;
  line-height: 1.5;
}

.home-topics__chips {
  gap: var(--space-2);
  justify-content: flex-start;
}

.home-topics__chip {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}
