:root {
  --winter-night: #0b1621;
  --winter-slate: #101f2e;
  --winter-panel: #182b3c;
  --color-brand: #b1e1f3;
  --color-brand-light: #e6f8ff;
}

body {
  background-color: var(--winter-night);
  color: #f1f7fa;
}

[class~="bg-[#0a0a0a]"] {
  background-color: var(--winter-night);
}

[class~="bg-[#111214]"] {
  background-color: var(--winter-slate);
}

[class~="bg-[#181a1d]"] {
  background-color: var(--winter-panel);
}

header nav[aria-label="Main Navigation"] {
  background: linear-gradient(180deg, #08121ef5, #0b1621e6);
  border-bottom: 1px solid #b1e1f326;
}

[aria-label="Mobile Navigation Menu"] {
  --color-black: var(--winter-night);
}

header nav [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.5em;
}

#root :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

section[aria-labelledby="hero-heading"] {
  --color-black: var(--winter-night);
  background: radial-gradient(ellipse at 12% 30%, #223e53, transparent 58%), var(--winter-night);
}

section[aria-labelledby="hero-heading"] > div:first-child {
  background: url("./winter-hero-crystals.svg") right 0.875rem top 7.75rem / min(78%, 29rem) auto no-repeat;
}

.winter-installations {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4em;
  max-width: 100%;
  margin-bottom: 1.25rem;
  color: var(--color-brand-light);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.7vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.winter-installations svg {
  flex: none;
  width: 0.9em;
  height: 0.9em;
  color: var(--color-brand);
}

.winter-installations::after {
  content: "";
  width: clamp(1.5rem, 5vw, 3rem);
  height: 1px;
  background: linear-gradient(90deg, var(--color-brand), transparent);
}

#hero-heading {
  font-size: clamp(2.75rem, 15vw, 5.5rem);
}

#hero-heading .text-brand {
  color: #d6f4ff;
  text-shadow: 0 0 1.8rem #7dc6e04d;
}

section[aria-labelledby="hero-heading"] > div:last-child {
  overflow: hidden;
}

section[aria-labelledby="hero-heading"] > div:last-child > img {
  filter: saturate(0.65) brightness(0.82);
}

section[aria-labelledby="hero-heading"] > div:last-child::after {
  content: "";
  position: absolute;
  inset: -2.5rem 0 0;
  pointer-events: none;
  background-image: url("./winter-flurries.svg"), linear-gradient(155deg, #7eb4d433, transparent 68%);
  background-position: 50% 0, 0 0;
  background-repeat: repeat, no-repeat;
  mask-image: linear-gradient(#000 22%, #000e 65%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  section[aria-labelledby="hero-heading"] > div:last-child::after {
    animation: winter-flurry 4.6s ease-out;
  }
}

@keyframes winter-flurry {
  from {
    transform: translate3d(-0.3rem, -2.5rem, 0);
    opacity: 0.35;
  }

  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

[aria-label="Key Features"] {
  border-top: 1px solid #b1e1f359;
  background-image: linear-gradient(100deg, #1c3447, transparent 70%);
}

[aria-label="Site Footer"] {
  background-image: linear-gradient(180deg, #132536, transparent 75%);
}

@media (max-width: 63.999rem) {
  section[aria-labelledby="hero-heading"] > div:first-child {
    padding-block: 8rem 2rem;
  }

  #hero-heading {
    margin-bottom: 1.75rem;
  }

  #hero-heading + p {
    margin-bottom: 0;
  }

  section[aria-labelledby="hero-heading"] .border-y {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 2rem;
    padding-block: 1.5rem;
    text-align: center;
  }

  section[aria-labelledby="hero-heading"] .border-y .text-5xl {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  section[aria-labelledby="hero-heading"] .border-y .font-medium {
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    color: #a7bdcb;
  }
}

@media (min-width: 64rem) {
  section[aria-labelledby="hero-heading"] > div:first-child {
    padding-top: 9.5rem;
    background-position: right 1.125rem top 9rem;
  }

  #hero-heading {
    font-size: clamp(4rem, 7.2vw, 9rem);
  }

  section[aria-labelledby="hero-heading"] > div:last-child::after {
    mask-image: linear-gradient(112deg, transparent 4%, #000 33%, #000b 72%, transparent);
  }
}
