:root {
  --paper: #eef3f0;
  --paper-lift: #f7faf8;
  --mist: #d5e3dc;
  --ink: #1a2420;
  --ink-soft: #4a5a53;
  --sage: #2a6b5c;
  --sage-soft: rgba(42, 107, 92, 0.16);
  --font-display: "Great Vibes", "Segoe Script", "Apple Chancery", cursive;
  --font-body: "Raleway", "Avenir Next", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--paper);
}

.atmosphere__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 50% -5%, var(--paper-lift), transparent 58%),
    linear-gradient(165deg, #f4f8f5 0%, var(--paper) 48%, #e4ece7 100%);
}

.atmosphere__wash {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(46% 38% at 22% 28%, rgba(213, 227, 220, 0.85), transparent 70%),
    radial-gradient(42% 36% at 78% 68%, rgba(42, 107, 92, 0.1), transparent 72%),
    radial-gradient(36% 30% at 60% 20%, rgba(255, 255, 255, 0.55), transparent 68%);
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  will-change: transform;
}

.atmosphere__flourish {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  transform: translate3d(calc(var(--px, 0) * 0.55), calc(var(--py, 0) * 0.45), 0);
  will-change: transform;
}

.atmosphere__mist {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(50% 40% at 70% 40%, rgba(247, 250, 248, 0.55), transparent 70%),
    radial-gradient(40% 32% at 30% 70%, rgba(213, 227, 220, 0.45), transparent 72%);
  transform: translate3d(calc(var(--px, 0) * -0.6), calc(var(--py, 0) * -0.5), 0);
  will-change: transform;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
}

.atmosphere__edge {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 45%, transparent 40%, rgba(180, 196, 188, 0.28) 100%),
    linear-gradient(
      180deg,
      rgba(238, 243, 240, 0.35) 0%,
      transparent 18%,
      transparent 82%,
      rgba(212, 222, 216, 0.45) 100%
    );
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.mark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5.5rem, 20vw, 13rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.mark::after {
  content: "";
  display: block;
  width: 0.55em;
  height: 1px;
  margin: 0.1em auto 0;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  opacity: 0.7;
}

.line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.5rem;
  margin: 1.1rem 0 0;
  max-width: min(54rem, 94vw);
  padding: 0 0.5rem;
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.line__item {
  white-space: nowrap;
}

.line .sep {
  color: rgba(74, 90, 83, 0.35);
  letter-spacing: 0;
}

.line a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.line a:hover,
.line a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--sage);
  outline: none;
}

.credit {
  position: fixed;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: rgba(74, 90, 83, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
  .atmosphere__wash {
    animation: wash-drift 32s ease-in-out infinite alternate;
  }

  .atmosphere__flourish {
    animation: flourish-breathe 28s ease-in-out infinite alternate;
  }

  .atmosphere__mist {
    animation: mist-drift 26s ease-in-out infinite alternate;
  }

  .mark {
    opacity: 0;
    transform: translateY(0.1em);
    animation: mark-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
  }

  .mark::after {
    transform: scaleX(0);
    transform-origin: center;
    animation: rule-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
  }

  .line {
    opacity: 0;
    transform: translateY(0.4rem);
    animation: line-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
  }

  .credit {
    opacity: 0;
    animation: line-in 0.9s ease 1.15s forwards;
  }
}

@keyframes mark-in {
  from {
    opacity: 0;
    letter-spacing: 0.12em;
    transform: translateY(0.14em);
  }
  to {
    opacity: 1;
    letter-spacing: 0.04em;
    transform: translateY(0);
  }
}

@keyframes rule-in {
  to {
    transform: scaleX(1);
  }
}

@keyframes line-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wash-drift {
  from {
    transform: translate3d(calc(var(--px, 0) - 0.8%), calc(var(--py, 0) + 0.4%), 0);
  }
  to {
    transform: translate3d(calc(var(--px, 0) + 1%), calc(var(--py, 0) - 0.6%), 0);
  }
}

@keyframes flourish-breathe {
  from {
    opacity: 0.75;
    transform: translate3d(calc(var(--px, 0) * 0.55), calc(var(--py, 0) * 0.45), 0)
      scale(1.01);
  }
  to {
    opacity: 1;
    transform: translate3d(calc(var(--px, 0) * 0.55), calc(var(--py, 0) * 0.45), 0)
      scale(1.04);
  }
}

@keyframes mist-drift {
  from {
    transform: translate3d(calc(var(--px, 0) * -0.6), calc(var(--py, 0) * -0.5), 0);
  }
  to {
    transform: translate3d(
      calc(var(--px, 0) * -0.6 + 1.2%),
      calc(var(--py, 0) * -0.5 - 0.8%),
      0
    );
  }
}

@media (max-width: 640px) {
  .mark {
    font-size: clamp(4.5rem, 22vw, 7rem);
  }

  .line {
    letter-spacing: 0.1em;
    column-gap: 0.4rem;
  }
}
