/* Optima font kit — http://font.download */

@font-face {
  font-family: "Optima";
  font-style: normal;
  font-weight: 400;
  src: local("Optima"), url("OPTIMA.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Optima";
  font-style: italic;
  font-weight: 400;
  src: local("Optima Italic"), url("Optima_Italic.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Optima";
  font-style: normal;
  font-weight: 500;
  src: local("Optima Medium"), url("Optima Medium.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Optima";
  font-style: normal;
  font-weight: 700;
  src: local("Optima Bold"), url("OPTIMA_B.woff") format("woff");
  font-display: swap;
}

/* --- Splash page --- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Optima", "Segoe UI", Candara, sans-serif;
  font-weight: 400;
  color: #f5f7f8;
  background-color: rgb(22, 24, 37);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(2.5rem, 8vh, 4.5rem) clamp(1.25rem, 5vw, 3rem) clamp(2rem, 6vh, 3.5rem);
  text-align: center;
}

.splash__header {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.splash__brand {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 18.5rem);
  max-width: 100%;
}

.splash__logo {
  display: block;
  width: 100%;
  height: auto;
}

/* Tagline scale matches logo.svg art: ~14 unit text vs ~22.5 unit wordmark, with gap ~12 units */
.splash__strapline {
  margin: calc(100cqw * 12 / 286.523) 0 0;
  font-size: calc(6cqw);
  line-height: 1;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  .splash__brand {
    width: min(100%, 22rem);
  }
}

.splash__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 42rem;
  margin: clamp(2rem, 6vh, 3.5rem) auto;
  font-size: 14px;
  line-height: 24px;
}

.splash__content p {
  margin: 0;
}

.splash__content p + p {
  margin-top: 0.35em;
}

.splash__tagline em {
  font-family: "Optima", "Segoe UI", Candara, sans-serif;
  font-style: italic;
  font-weight: 700;
}

.splash__footer {
  flex-shrink: 0;
  width: 100%;
}

.splash__email {
  color: inherit;
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.splash__email:hover,
.splash__email:focus-visible {
  opacity: 0.75;
}

.splash__email:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

@media (max-width: 479px) {
  .splash__content {
    max-width: none;
  }
}

@media (min-width: 768px) {
  .splash__content {
    font-size: 22px;
    line-height: 33px;
    max-width: 44rem;
  }
}

/* Staggered fade-in */

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in,
.svg-fade {
  opacity: 0;
  animation: fade-rise 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--fade-delay, 0ms);
}

.fade-in--text {
  animation-name: fade-in;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .svg-fade {
    opacity: 1;
    animation: none;
    transform: none;
  }
}
