@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("../fonts/press-start-2p-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --vx-ink: #f4f7f2;
  --vx-ink-muted: rgba(244, 247, 242, 0.72);
  --vx-ink-faint: rgba(244, 247, 242, 0.48);
  --vx-grass: #5edc52;
  --vx-sky: #141618;
  --vx-brand: "Press Start 2P", "Segoe UI", system-ui, sans-serif;
}

/* Home chrome: keep Material sticky, just restyle colors. */
.md-header,
.md-header--lifted,
.md-header--shadow,
.md-header[data-md-state],
.md-tabs {
  background: var(--vx-sky) !important;
  background-color: var(--vx-sky) !important;
  box-shadow: none !important;
  color: var(--vx-ink);
}

.md-header__title,
.md-header__button,
.md-header__topic,
.md-source,
.md-source__repository,
.md-tabs__link,
.md-search__input,
.md-search__input + .md-search__icon {
  color: var(--vx-ink);
}

.md-search__input {
  background-color: rgba(244, 247, 242, 0.08);
}

.md-header__button:hover,
.md-tabs__link:hover,
.md-tabs__link--active,
.md-source:hover {
  color: var(--vx-grass);
}

.md-main__inner {
  margin-top: 0;
}

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    display: none;
  }
}

@media screen and (min-width: 60em) {
  .md-sidebar--secondary {
    display: none;
  }
}

.md-content {
  max-width: 46rem;
  margin: 0 auto;
}

.md-content__inner {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
  padding: 0 1.25rem 2rem;
}

.md-typeset h2,
.md-typeset h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.md-container {
  padding: 0;
}

.vx-home {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end start;
  min-height: calc(100vh - 4.8rem);
  min-height: calc(100dvh - 4.8rem);
  margin: 0;
  overflow: hidden;
  color: var(--vx-ink);
  background: var(--vx-sky);
}

.vx-home__backdrop,
.vx-home__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vx-home__backdrop {
  z-index: -2;
  overflow: hidden;
  background: var(--vx-sky);
}

.vx-home__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.25s ease;
}

.vx-home__slide.is-active {
  opacity: 1;
}

.vx-home__veil {
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(12, 14, 16, 0.45) 0%,
      rgba(12, 14, 16, 0.12) 28%,
      rgba(12, 14, 16, 0.28) 52%,
      rgba(12, 14, 16, 0.78) 100%
    ),
    radial-gradient(
      120% 70% at 18% 88%,
      rgba(94, 220, 82, 0.16),
      transparent 55%
    );
}

.vx-home__stage {
  width: min(42rem, calc(100% - 3rem));
  margin: 0 0 clamp(2.5rem, 8vh, 5.5rem) clamp(1.25rem, 5vw, 4.5rem);
  animation: vx-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vx-home__brand {
  margin: 0 0 0.75rem;
  color: #dfd;
  font-family: var(--vx-brand);
  font-size: clamp(2.1rem, 6.5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-wrap: balance;
  -webkit-text-stroke: 0.05em rgba(8, 10, 12, 0.92);
  paint-order: stroke fill;
  text-shadow:
    0 0.04em 0 rgba(0, 0, 0, 0.95),
    0 0.08em 0.02em rgba(0, 0, 0, 0.85),
    0 0.12em 0.2em rgba(0, 0, 0, 0.7),
    0 0.2em 0.45em rgba(0, 0, 0, 0.55),
    0 0 0.55em rgba(0, 0, 0, 0.45);
}

.vx-home__headline {
  margin: 0 0 0.85rem;
  max-width: 22ch;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--vx-grass);
  text-shadow: 0 0.05em 0.25em rgba(0, 0, 0, 0.4);
}

.vx-home__lede {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--vx-ink-muted);
  text-wrap: pretty;
}

.vx-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  animation: vx-rise 1.05s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vx-home__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.vx-home__btn--primary {
  color: #10140f !important;
  background: var(--vx-grass);
  box-shadow: 0 0.45rem 1.4rem rgba(47, 158, 58, 0.28);
}

.vx-home__btn--primary:hover,
.vx-home__btn--primary:focus-visible {
  color: #0b100b !important;
  background: #78e86a;
  transform: translateY(-2px);
  box-shadow: 0 0.65rem 1.6rem rgba(47, 158, 58, 0.38);
}

.vx-home__btn--ghost {
  color: var(--vx-ink) !important;
  background: rgba(20, 22, 24, 0.35);
  border-color: rgba(244, 247, 242, 0.34);
  backdrop-filter: blur(6px);
}

.vx-home__btn--ghost:hover,
.vx-home__btn--ghost:focus-visible {
  color: var(--vx-ink) !important;
  border-color: var(--vx-grass);
  background: rgba(20, 22, 24, 0.55);
  transform: translateY(-2px);
}

.vx-home__note {
  margin: 0;
  max-width: 34rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--vx-ink-faint);
  animation: vx-rise 1.15s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes vx-rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 59.9375em) {
  .vx-home {
    place-items: end stretch;
    min-height: calc(100vh - 5.6rem);
    min-height: calc(100dvh - 5.6rem);
  }

  .vx-home__stage {
    width: auto;
    margin: 0 1.25rem 2.25rem;
  }

  .vx-home__veil {
    background:
      linear-gradient(
        180deg,
        rgba(12, 14, 16, 0.7) 0%,
        rgba(12, 14, 16, 0.28) 30%,
        rgba(12, 14, 16, 0.55) 58%,
        rgba(12, 14, 16, 0.88) 100%
      ),
      radial-gradient(
        120% 70% at 50% 100%,
        rgba(94, 220, 82, 0.14),
        transparent 55%
      );
  }
}

@media (prefers-reduced-motion: reduce) {
  .vx-home__slide,
  .vx-home__stage,
  .vx-home__actions,
  .vx-home__note,
  .vx-home__btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .vx-home__slide {
    opacity: 0;
  }

  .vx-home__slide.is-active {
    opacity: 1;
  }
}
