/* The landing page in the Brand Book's own manner: type set on
   full-bleed photographs, Spectral at display sizes, one loud opening and a
   quiet page after it. Layered over style.css; everything is scoped to .landing. */

.landing {
  --lp-gutter: clamp(20px, 5vw, 72px);
  --lp-measure: 1320px;
  /* Left and right edge of content in full-bleed sections, so it lines up
     with the sections that are centred inside the measure. */
  --lp-side: max(var(--lp-gutter), calc((100% - var(--lp-measure)) / 2 + var(--lp-gutter)));
}
.landing main {
  overflow-x: clip;
}
.landing h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
.landing h2 em,
.lp-hero-title em {
  font-style: italic;
  font-weight: 300;
}

/* Header: clear over the photograph, solid once the page moves. */
.lp-header.site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  left: 0;
  position: fixed;
  right: 0;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.lp-header .wrap {
  max-width: none;
  padding-left: var(--lp-side);
  padding-right: var(--lp-side);
}
.lp-header .brand img {
  height: 26px;
}
.lp-header .lp-mark-dark {
  display: none;
}
.lp-header .site-nav a {
  color: #fff;
  text-transform: uppercase;
}
.lp-header .site-nav a.is-active {
  color: #fff;
  text-decoration-color: #fff;
}
.lp-header .locale-toggle {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}
.lp-header .locale-toggle button {
  color: #fff;
}
.lp-header .locale-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
}
.lp-header.scrolled {
  background: rgba(253, 250, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--rule-soft);
}
.lp-header.scrolled .lp-mark-light {
  display: none;
}
.lp-header.scrolled .lp-mark-dark {
  display: block;
}
.lp-header.scrolled .site-nav a {
  color: var(--ink);
}
.lp-header.scrolled .site-nav a.is-active {
  text-decoration-color: var(--accent);
}
.lp-header.scrolled .locale-toggle {
  background: transparent;
  border-color: var(--rule);
}
.lp-header.scrolled .locale-toggle button {
  color: var(--ink-muted);
}
.lp-header.scrolled .locale-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

/* The opening: one photograph, the question, the field. */
.lp-hero {
  align-items: center;
  color: #fff;
  display: grid;
  min-height: 100svh;
  padding: 120px var(--lp-gutter) 96px;
  position: relative;
}
.lp-hero-photo {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: 62% 50%;
  position: absolute;
  width: 100%;
  animation: lp-photo-settle 2.4s var(--ease) both;
}
.lp-hero::after {
  background:
    linear-gradient(180deg, rgba(8, 44, 87, 0.42) 0%, rgba(8, 44, 87, 0) 26%),
    linear-gradient(0deg, rgba(60, 24, 6, 0.5) 0%, rgba(60, 24, 6, 0) 46%),
    radial-gradient(ellipse at 50% 46%, rgba(70, 28, 6, 0.34), rgba(70, 28, 6, 0) 62%);
  content: "";
  inset: 0;
  position: absolute;
}
.lp-hero-inner {
  margin: 0 auto;
  max-width: 1100px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 2;
}
.lp-hero-title {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(46px, 8.6vw, 136px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.94;
  margin: 0 0 clamp(28px, 4vw, 52px);
  text-shadow: 0 2px 40px rgba(60, 24, 6, 0.35);
}
.lp-hero-title span,
.lp-hero-title em {
  animation: lp-rise 1.3s var(--ease) both;
  display: block;
}
.lp-hero-title em {
  animation-delay: 0.16s;
}
.lp-search {
  animation: lp-rise 1.3s var(--ease) 0.34s both;
  margin: 0 auto;
  max-width: 720px;
  position: relative;
}
.lp-search .loyda-search {
  border: 0;
  box-shadow: 0 24px 60px -24px rgba(40, 14, 0, 0.7);
  margin: 0 0 18px;
  max-width: none;
  padding: 8px;
}
.lp-search .loyda-search input {
  font-size: clamp(16px, 1.5vw, 19px);
  padding: 16px 20px;
}
.lp-search .loyda-search button {
  flex-basis: 56px;
  font-size: 28px;
  height: 56px;
}
.lp-search .loyda-filter-row {
  justify-content: center;
  max-width: none;
}
.lp-search .loyda-filter {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 13px;
  padding: 11px 17px;
}
.lp-search .loyda-filter > span:first-child {
  color: #fff;
}
.lp-search .loyda-filter:hover:not(:disabled),
.lp-search .loyda-filter[aria-expanded="true"],
.lp-search .loyda-filter.is-selected {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.lp-search .loyda-filter:hover > span:first-child,
.lp-search .loyda-filter[aria-expanded="true"] > span:first-child,
.lp-search .loyda-filter.is-selected > span:first-child {
  color: var(--accent);
}
.lp-search .loyda-filter-panel {
  left: 0;
  margin-left: auto;
  margin-right: auto;
  right: 0;
  text-align: left;
}
.lp-search .loyda-search-status {
  color: #fff;
}
.lp-hero-down {
  bottom: 30px;
  color: #fff;
  font-size: 15px;
  left: var(--lp-side);
  line-height: 1.5;
  max-width: 34ch;
  position: absolute;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 5px;
  z-index: 2;
}
.lp-hero-down:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* The thought: a large statement beside a tall photograph. */
.lp-thought {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 96px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  margin: 0 auto;
  max-width: var(--lp-measure);
  padding: clamp(72px, 11vw, 168px) var(--lp-gutter);
  scroll-margin-top: 60px;
}
.lp-thought-lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 68px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0 0 clamp(28px, 3vw, 44px);
  text-wrap: balance;
}
.lp-thought-text p:not(.lp-thought-lead) {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 56ch;
}
.lp-thought-photo {
  border-radius: var(--radius-hero);
  margin: 0;
  overflow: hidden;
}
.lp-thought-photo img {
  aspect-ratio: 4 / 5;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.lp-link {
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
  display: inline-block;
  font: 600 15px/1.3 var(--sans);
  margin-top: 10px;
  padding-bottom: 4px;
  text-decoration: none;
}
.lp-link:hover {
  border-bottom-color: var(--ink);
}

/* What is here: a directory set as type, not as tiles. */
.lp-kinds {
  margin: 0 auto;
  max-width: var(--lp-measure);
  padding: 0 var(--lp-gutter) clamp(72px, 10vw, 150px);
}
.lp-kinds h2 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.lp-kinds-list {
  border-top: 1px solid var(--ink);
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-kinds-list li {
  border-bottom: 1px solid var(--rule);
}
.lp-kinds-list a {
  align-items: baseline;
  color: var(--ink);
  display: grid;
  gap: clamp(16px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: clamp(18px, 2.4vw, 34px) 0;
  text-decoration: none;
  transition: padding-left 0.4s var(--ease), color 0.2s var(--ease);
}
.lp-kind-name {
  font-family: var(--serif);
  font-size: clamp(34px, 5.6vw, 84px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}
.lp-kind-note {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  max-width: 44ch;
}
.lp-kinds-list a:hover,
.lp-kinds-list a:focus-visible {
  padding-left: clamp(10px, 1.6vw, 26px);
}
.lp-kinds-list a:hover .lp-kind-name,
.lp-kinds-list a:focus-visible .lp-kind-name {
  color: var(--accent-deep);
  font-style: italic;
}

/* Second photograph, with the chat invitation set on it. */
.lp-band {
  align-items: end;
  color: #fff;
  display: grid;
  min-height: min(86svh, 820px);
  padding: clamp(40px, 7vw, 96px) var(--lp-side);
  position: relative;
}
.lp-band-photo {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: 50% 66%;
  position: absolute;
  width: 100%;
}
.lp-band::after {
  background:
    linear-gradient(270deg, rgba(8, 30, 20, 0.66) 0%, rgba(8, 30, 20, 0.2) 46%, rgba(8, 30, 20, 0) 64%),
    linear-gradient(0deg, rgba(8, 30, 20, 0.4) 0%, rgba(8, 30, 20, 0) 40%);
  content: "";
  inset: 0;
  position: absolute;
}
/* The whole text block sits to the right of the figure, as one unit. */
.lp-band-inner {
  justify-self: end;
  max-width: 540px;
  position: relative;
  width: 100%;
  z-index: 2;
}
.landing .lp-band h2 {
  color: #fff;
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 0.98;
  margin-bottom: 22px;
}
.lp-band p {
  color: #fff;
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 28px;
  margin-top: 0;
}
.lp-button-light {
  background: #fff;
  border-radius: 999px;
  color: var(--ink);
  display: inline-block;
  font: 600 16px/1 var(--sans);
  padding: 19px 30px;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lp-button-light:hover {
  background: var(--accent);
  color: #fff;
}

/* Picks from the live feed, larger than the current tiles. */
.lp-picks.loyda-feed {
  margin: 0 auto;
  max-width: var(--lp-measure);
  padding: clamp(72px, 10vw, 150px) var(--lp-gutter) 0;
}
.lp-picks-heading {
  align-items: baseline;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: clamp(24px, 3vw, 44px);
}
.landing .lp-picks-heading h2 {
  font-size: clamp(36px, 5vw, 72px);
}
.lp-picks-grid.loyda-feed-grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .lp-picks-grid.loyda-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .lp-picks-grid.loyda-feed-grid {
    grid-template-columns: 1fr;
  }
}
.lp-picks .loyda-card h3 {
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 400;
}

/* Sections carried over from the earlier page, set to this page's measure
   and display scale. Their inner workings are untouched. */
.lp-guided {
  margin: 0 auto;
  max-width: var(--lp-measure);
  padding: 0 var(--lp-gutter);
}
.lp-guided .guided-entry {
  margin-top: clamp(40px, 6vw, 80px);
}
.landing .home-moments.wrap,
.landing .loyda-worklife.wrap,
.landing .news-band.wrap {
  max-width: var(--lp-measure);
  padding-left: var(--lp-gutter);
  padding-right: var(--lp-gutter);
}
.landing .home-moments.wrap {
  padding-top: clamp(72px, 10vw, 150px);
}
.landing .home-moments-heading h2,
.landing .news-band h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.02;
}
.landing .home-moments-heading {
  margin-bottom: clamp(24px, 3vw, 44px);
}
.lp-trending {
  margin: 0 auto;
  max-width: var(--lp-measure);
  padding: clamp(56px, 7vw, 100px) var(--lp-gutter) 0;
}
.lp-trending:has(.loyda-trending[hidden]) {
  display: none;
}
.landing .loyda-worklife.wrap {
  margin-top: clamp(72px, 10vw, 150px);
}
.landing .loyda-worklife h2 {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.02;
}
.landing .news-band.wrap {
  border-top: 0;
  margin-top: clamp(72px, 10vw, 150px);
}

/* Wish: kept plain, it is a utility. */
.lp-wish {
  align-items: center;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: clamp(72px, 9vw, 130px) auto 0;
  max-width: var(--lp-measure);
  padding: clamp(40px, 5vw, 72px) var(--lp-gutter);
}
.landing .lp-wish h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  margin-bottom: 14px;
}
.lp-wish p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  max-width: 46ch;
}

/* Join: the brand's lavender, pink and peach gradient, used once. */
.lp-join {
  background: linear-gradient(118deg, var(--atm-lavender) 0%, var(--atm-pink) 52%, var(--atm-peach) 100%);
  padding: clamp(72px, 10vw, 150px) var(--lp-side) clamp(56px, 6vw, 90px);
}
.landing .lp-join h2 {
  font-size: clamp(42px, 7.4vw, 116px);
  line-height: 0.96;
  margin-bottom: 26px;
}
.lp-join > p {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-right: min(40%, 520px);
}
.lp-join-ways {
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}
.lp-join-ways li + li {
  border-left: 1px solid rgba(8, 44, 87, 0.25);
}
.lp-join-ways a {
  color: var(--ink);
  display: block;
  padding: 26px clamp(14px, 2vw, 30px) 6px;
  text-decoration: none;
}
.lp-join-ways li:first-child a {
  padding-left: 0;
}
.lp-join-ways strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.lp-join-ways span {
  font-size: 16px;
  line-height: 1.5;
}
.lp-join-ways a:hover strong {
  font-style: italic;
}

@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}
@keyframes lp-photo-settle {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}

@media (max-width: 860px) {
  .lp-thought,
  .lp-wish {
    grid-template-columns: 1fr;
  }
  .lp-thought-photo {
    order: -1;
  }
  .lp-thought-photo img {
    aspect-ratio: 16 / 11;
  }
  .lp-kinds-list a {
    gap: 8px;
    grid-template-columns: 1fr;
  }
  .lp-join > p {
    padding-right: 0;
  }
  .lp-join-ways {
    grid-template-columns: 1fr;
  }
  .lp-join-ways li + li {
    border-left: 0;
    border-top: 1px solid rgba(8, 44, 87, 0.25);
  }
  .lp-join-ways a,
  .lp-join-ways li:first-child a {
    padding: 22px 0 18px;
  }
  .lp-hero-down {
    display: none;
  }
  .lp-hero {
    padding-top: 150px;
  }
  .lp-band-inner {
    justify-self: start;
  }
  .lp-band::after {
    background: linear-gradient(0deg, rgba(8, 30, 20, 0.78) 0%, rgba(8, 30, 20, 0.15) 62%, rgba(8, 30, 20, 0) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-photo,
  .lp-hero-title span,
  .lp-hero-title em,
  .lp-search {
    animation: none;
  }
  .lp-kinds-list a {
    transition: none;
  }
}

/* The continue button only means something once a card is answered. Until
   then it stays out of sight rather than sitting there looking broken. */
.landing #home-moment-continue {
  transition: opacity 0.4s var(--ease);
}
.landing #home-moment-continue:disabled {
  opacity: 0;
  pointer-events: none;
}

/* What is coming up: a dated course, event or retreat says when. Navy, not
   orange, because the brand keeps orange away from small text. */
.loyda-card-when {
  background: var(--atm-blue);
  border-radius: 999px;
  color: var(--ink);
  display: inline-block;
  font: 600 12px/1 var(--sans);
  margin: 0 0 12px;
  padding: 7px 11px;
}

/* News set as an editorial column: one lead story, then unboxed entries under
   hairlines, the same way the kinds of support are set above. */
.landing .news-feed {
  column-gap: clamp(24px, 3vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 0;
}
.landing .news-card {
  background: none;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--rule);
  box-shadow: none;
  padding: 26px 0 30px;
}
.landing .news-card-kicker {
  color: var(--ink-soft);
  font: 600 13px/1.3 var(--sans);
  margin: 0 0 6px;
}
.landing .news-card-title {
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.16;
}
.landing .news-card-summary {
  font-size: 16px;
  line-height: 1.6;
}
.landing .news-card:first-child {
  border-top-color: var(--ink);
  grid-column: 1 / -1;
  padding: 30px 0 48px;
}
.landing .news-card:first-child .news-card-title {
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.landing .news-card:first-child .news-card-title {
  max-width: 20ch;
}
.landing .news-card:first-child .news-card-summary {
  font-size: 19px;
  line-height: 1.6;
  max-width: 56ch;
}
@media (max-width: 860px) {
  .landing .news-feed {
    grid-template-columns: 1fr;
  }
}

/* The shared footer follows the gradient band directly and keeps this page's
   content edge. */
.landing .site-footer {
  margin-top: 0;
}
.landing .site-footer .wrap {
  max-width: var(--lp-measure);
  padding-left: var(--lp-gutter);
  padding-right: var(--lp-gutter);
}

/* The carried-over sections expect their headings to keep a bottom margin. */
.landing .loyda-worklife h2,
.landing .news-band h2 {
  margin-bottom: 18px;
}
