:root {
  color-scheme: dark;
  --navy-950: #040b1d;
  --navy-900: #07132f;
  --navy-850: #09183a;
  --navy-800: #0b1a3d;
  --navy-700: #0d2252;
  --indigo-600: #343a78;
  --gold-400: #f4d479;
  --gold-300: #fff1b8;
  --ivory-100: #f8f1df;
  --ivory-70: rgba(248, 241, 223, 0.72);
  --lavender-400: #8a82b8;
  --ink-900: #07132f;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    "URW Palladio L", Palatino, Georgia, "Times New Roman", serif;
  --font-body: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia,
    "Iowan Old Style", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hairline: rgba(244, 212, 121, 0.34);
  --measure: 68ch;
  --shell: 76rem;
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--navy-950);
}

body {
  margin: 0;
  color: var(--ivory-100);
  background:
    radial-gradient(circle at 82% 28%, rgba(52, 58, 120, 0.18), transparent 28rem),
    var(--navy-900);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold-300);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--gold-400);
}

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 4px;
}

::selection {
  color: var(--ink-900);
  background: var(--gold-300);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  color: var(--ink-900);
  background: var(--gold-300);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--hairline);
  background: rgba(4, 11, 29, 0.93);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--shell));
  min-height: 4.7rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.wordmark {
  flex: 0 0 auto;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.5vw, 1.45rem);
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 0.76rem;
}

.desktop-nav a,
.language-links a,
.mobile-menu a {
  color: var(--ivory-100);
  text-decoration: none;
}

.desktop-nav a {
  padding-block: 1.35rem;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="location"] {
  color: var(--gold-300);
  border-bottom-color: var(--gold-400);
}

.language-links {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--hairline);
  font-family: var(--font-ui);
  font-size: 0.72rem;
}

.language-links a {
  min-width: 2.25rem;
  min-height: 2.25rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
}

.language-links a:hover,
.language-links a[aria-current="page"] {
  color: var(--ink-900);
  background: var(--gold-300);
}

.mobile-menu {
  display: none;
  margin-left: auto;
  font-family: var(--font-ui);
}

.mobile-menu summary {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  color: var(--gold-300);
  border: 1px solid var(--hairline);
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  max-height: calc(100dvh - 4.7rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.2rem max(1rem, calc((100vw - var(--shell)) / 2));
  border-bottom: 1px solid var(--hairline);
  background: var(--navy-950);
}

.mobile-menu-panel nav,
.mobile-menu-panel .mobile-languages {
  display: grid;
  gap: 0.2rem;
}

.mobile-menu-panel a {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  padding-inline: 0.5rem;
}

.mobile-languages {
  grid-template-columns: repeat(4, 1fr) !important;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
}

.mobile-languages a {
  justify-content: center;
}

main {
  position: relative;
}

.wayline {
  position: absolute;
  z-index: 3;
  top: 100vh;
  bottom: 18rem;
  left: max(1.25rem, calc((100vw - var(--shell)) / 2 - 2.25rem));
  width: 1px;
  pointer-events: none;
  background: rgba(244, 212, 121, 0.22);
}

.wayline::before {
  content: "";
  position: absolute;
  inset: 0;
  height: var(--wayline-progress, 0%);
  background: linear-gradient(var(--gold-300), var(--gold-400));
  box-shadow: 0 0 14px rgba(244, 212, 121, 0.38);
}

.hero {
  position: relative;
  min-height: calc(100svh - 4.7rem);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background:
    linear-gradient(90deg, rgba(4, 11, 29, 0.98) 0%, rgba(4, 11, 29, 0.88) 38%, rgba(4, 11, 29, 0.2) 70%),
    linear-gradient(0deg, rgba(4, 11, 29, 0.35), transparent 55%),
    url("assets/images/the-life-that-is-here-background-artwork.png") center 62% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(66vw, 50rem);
  aspect-ratio: 1;
  left: -18rem;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(244, 212, 121, 0.24);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(244, 212, 121, 0.025),
    0 0 80px rgba(244, 212, 121, 0.06);
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.hero-copy {
  max-width: 48rem;
  padding-block: clamp(5rem, 10vw, 8rem);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--gold-400);
  font-family: var(--font-ui);
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
.hero-question,
.pull-quote {
  font-family: var(--font-display);
  font-weight: 400;
}

h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--gold-300);
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  letter-spacing: -0.045em;
  line-height: 0.91;
}

.subtitle {
  max-width: 44rem;
  margin: 1.6rem 0 0;
  color: var(--ivory-70);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-style: italic;
}

.hero-question {
  max-width: 20ch;
  margin: clamp(2.5rem, 6vh, 4.5rem) 0 0;
  font-size: clamp(1.75rem, 3.4vw, 3.35rem);
  line-height: 1.12;
  text-wrap: balance;
}

.hero-summary {
  max-width: 43rem;
  margin: 1.35rem 0 0;
  color: var(--ivory-70);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--gold-400);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  color: var(--ink-900);
  background: var(--gold-400);
}

.button-primary:hover {
  color: var(--ink-900);
  background: var(--gold-300);
}

.button-secondary {
  color: var(--gold-300);
  background: rgba(7, 19, 47, 0.72);
}

.section {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--hairline);
}

.section::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 50%;
  left: max(0.72rem, calc((100vw - var(--shell)) / 2 - 2.65rem));
  width: 0.48rem;
  height: 0.48rem;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold-400);
  box-shadow: 0 0 12px var(--gold-400);
}

.section-alt {
  background:
    linear-gradient(135deg, rgba(52, 58, 120, 0.12), transparent 42%),
    var(--navy-850);
}

.section h2 {
  max-width: 18ch;
  margin: 0 0 2rem;
  color: var(--gold-300);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

.section-lead {
  max-width: var(--measure);
  margin: 0;
  color: var(--ivory-70);
  font-size: clamp(1.12rem, 1.7vw, 1.3rem);
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(20rem, 1.2fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.book-art {
  position: relative;
  margin: 0;
}

.book-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -9% -6% 8%;
  border: 1px solid rgba(244, 212, 121, 0.3);
}

.book-art img {
  width: 100%;
  height: auto;
  max-height: 48rem;
  object-fit: cover;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.38);
}

.book-art figcaption {
  margin-top: 1rem;
  color: var(--ivory-70);
  font-family: var(--font-ui);
  font-size: 0.72rem;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1.35rem;
}

.pull-quote {
  margin: 2.4rem 0 0;
  padding: 1.8rem 0 0 1.6rem;
  color: var(--gold-300);
  border-top: 1px solid var(--gold-400);
  border-left: 1px solid var(--gold-400);
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  line-height: 1.3;
}

.three-listens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.three-listens article {
  padding: 2rem;
  border-right: 1px solid var(--hairline);
}

.three-listens article:first-child {
  padding-left: 0;
}

.three-listens article:last-child {
  padding-right: 0;
  border-right: 0;
}

.three-listens h3,
.week h3,
.principle h3 {
  margin: 0 0 0.8rem;
  color: var(--gold-300);
  font-size: 1.45rem;
}

.three-listens p,
.principle p {
  margin: 0;
  color: var(--ivory-70);
}

.reflection-shell {
  width: min(100%, 53rem);
  margin-inline: auto;
}

.reflection-shell h2 {
  max-width: none;
}

.reflection-text {
  position: relative;
  margin-top: 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--gold-400);
  border-bottom: 1px solid var(--gold-400);
  background: rgba(4, 11, 29, 0.42);
}

.reflection-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.68rem;
  height: 0.68rem;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--navy-850);
  border: 2px solid var(--gold-400);
  box-shadow: 0 0 0 0.7rem var(--navy-850);
}

.reflection-question {
  margin: 2rem 0 0;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
}

.journey-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.journey-intro h2 {
  margin-bottom: 0;
}

.journey-weeks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 4rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.week {
  padding: 2.4rem;
  border-right: 1px solid var(--hairline);
}

.week:first-child {
  padding-left: 0;
}

.week:last-child {
  padding-right: 0;
  border-right: 0;
}

.week-number {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold-400);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.week ol {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: day;
}

.week li {
  min-height: 3.3rem;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.7rem;
  align-items: baseline;
  padding-block: 0.65rem;
  border-top: 1px solid rgba(244, 212, 121, 0.14);
  color: var(--ivory-70);
  counter-increment: day;
}

.week li::before {
  content: counter(day, decimal-leading-zero);
  color: var(--gold-400);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.grounding-line {
  max-width: 52rem;
  margin: 3rem auto 0;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  text-align: center;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.production-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.production-note strong {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid var(--hairline);
}

.principle {
  padding: 2.2rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.principle:nth-child(odd) {
  padding-left: 0;
}

.principle:nth-child(even) {
  padding-right: 0;
  border-right: 0;
}

.disclosure {
  max-width: var(--measure);
  margin-top: 3rem;
  padding: 2rem;
  border-left: 2px solid var(--gold-400);
  background: rgba(244, 212, 121, 0.055);
}

.disclosure h3 {
  margin: 0 0 0.8rem;
  color: var(--gold-300);
  font-size: 1.5rem;
}

.disclosure p {
  margin: 0;
}

.site-footer {
  padding-block: 4rem;
  background: var(--navy-950);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 4rem;
  align-items: start;
}

.footer-copy {
  max-width: 52ch;
  margin: 1rem 0 0;
  color: var(--ivory-70);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.35rem 2rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
}

.footer-links a {
  min-height: 2.4rem;
  display: flex;
  align-items: center;
}

.locale-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.2rem;
  color: var(--ivory-70);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-ui);
  font-size: 0.75rem;
}

.gateway {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: 3rem;
  background:
    linear-gradient(rgba(4, 11, 29, 0.46), rgba(4, 11, 29, 0.9)),
    url("assets/images/the-life-that-is-here-background-artwork.png") center / cover no-repeat;
}

.gateway-inner {
  width: min(calc(100% - 2rem), 62rem);
  margin-inline: auto;
  text-align: center;
}

.gateway-star {
  margin: 0 auto 1.5rem;
  color: var(--gold-400);
  font-size: 2rem;
}

.gateway h1 {
  max-width: none;
  font-size: clamp(3rem, 9vw, 7.5rem);
}

.gateway-intro {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  color: var(--ivory-70);
}

.gateway-copy {
  display: grid;
}

.gateway-copy > span {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 650ms ease, visibility 650ms;
}

.gateway-copy > .is-current {
  opacity: 1;
  visibility: visible;
}

.gateway-motion {
  height: 2.75rem;
  margin-top: 0.75rem;
}

.gateway-cycle-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  color: var(--ivory-70);
  background: transparent;
  font: 1rem var(--font-ui);
  cursor: pointer;
}

.gateway-cycle-toggle:hover,
.gateway-cycle-toggle:focus-visible {
  color: var(--gold-300);
  background: rgba(4, 11, 29, 0.5);
}

.gateway-languages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 1.5rem;
  border: 1px solid var(--hairline);
  background: var(--hairline);
}

.gateway-languages a {
  min-height: 8rem;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  padding: 1.5rem;
  color: var(--ivory-100);
  background: rgba(4, 11, 29, 0.89);
  text-decoration: none;
}

.gateway-languages a:hover {
  color: var(--ink-900);
  background: var(--gold-300);
}

.gateway-languages strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.gateway-languages span {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.js .reveal {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 69rem) {
  .desktop-nav {
    display: none;
  }

  .header-inner > .language-links {
    margin-left: auto;
  }

  .mobile-menu {
    display: block;
    margin-left: 0;
  }

  .wayline,
  .section::before {
    display: none;
  }
}

@media (max-width: 48rem) {
  body {
    font-size: 1rem;
  }

  .header-inner {
    min-height: 4.2rem;
  }

  .mobile-menu-panel {
    max-height: calc(100dvh - 4.2rem);
  }

  .header-inner > .language-links {
    display: none;
  }

  .mobile-menu {
    margin-left: auto;
  }

  .hero {
    min-height: calc(100svh - 4.2rem);
    background:
      linear-gradient(90deg, rgba(4, 11, 29, 0.96), rgba(4, 11, 29, 0.6)),
      linear-gradient(0deg, rgba(4, 11, 29, 0.42), transparent 50%),
      url("assets/images/the-life-that-is-here-background-artwork.png") 62% center / cover no-repeat;
  }

  .hero-copy {
    padding-block: 4rem;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.8rem);
  }

  .hero-question {
    font-size: clamp(1.65rem, 8vw, 2.5rem);
  }

  .button {
    width: 100%;
  }

  .book-layout,
  .journey-intro,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .book-art {
    width: min(82%, 25rem);
    margin-inline: auto;
  }

  .three-listens,
  .journey-weeks,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .three-listens article,
  .three-listens article:first-child,
  .three-listens article:last-child,
  .week,
  .week:first-child,
  .week:last-child,
  .principle,
  .principle:nth-child(odd),
  .principle:nth-child(even) {
    padding: 1.7rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .three-listens article:last-child,
  .week:last-child,
  .principle:last-child {
    border-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .locale-note {
    grid-column: auto;
  }

  .gateway-languages {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 24rem) {
  .header-inner {
    gap: 0.5rem;
  }

  .wordmark {
    min-width: 0;
    overflow: hidden;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-overflow: ellipsis;
  }

  .header-inner > .wordmark {
    flex: 1 1 auto;
  }

  .gateway-languages {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
