/* Holiday Lights' page: one picture to look at (an engine house and a tree strung with lights, made by
   web/tools/make_lights.py), and the rest as quiet as RailCom Pro's page. */

.lights-page {
  width: min(var(--content), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 84px) 0 96px;
}

.hl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.hl-back a {
  color: var(--haze);
  font-weight: 650;
  text-decoration: none;
}

.hl-back a:hover {
  color: var(--moon);
  text-decoration: underline;
}

.hl-hero h1 {
  margin-top: 10px;
  font: 800 clamp(46px, 7.4vw, 88px) / 0.95 var(--display);
  font-stretch: 82%;
  letter-spacing: -0.02em;
}

.hl-lead {
  max-width: 30em;
  margin-top: 20px;
  color: var(--haze);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.hl-get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 30px;
}

.hl-download svg {
  width: 19px;
  height: 19px;
}

.hl-get-note {
  color: var(--dim);
  font-size: 15px;
}

.hl-count {
  margin-top: 14px;
  color: var(--haze);
  font-size: 15px;
}

.hl-count b {
  color: var(--amber);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.hl-scene-art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  /* The snow and track fade out at the sides instead of stopping at an edge. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

/* The bulbs twinkle in two sets, in turn, like the lights under the header. */
.lights-a,
.lights-b {
  animation: hl-twinkle 3.4s ease-in-out infinite;
}

.lights-b {
  animation-delay: -1.7s;
}

@keyframes hl-twinkle {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lights-a,
  .lights-b {
    animation: none;
  }
}

/* The rest */
.hl-section {
  margin-top: clamp(56px, 9vw, 104px);
}

.hl-section h2 {
  font: 750 clamp(26px, 3.2vw, 34px) / 1.15 var(--display);
  font-stretch: 88%;
}

.hl-section p {
  max-width: 40em;
  margin-top: 12px;
  color: var(--haze);
  line-height: 1.6;
}

/* What's new in the newest version: its notes, as the update that put it out says them. */
.hl-news .hl-news-when {
  margin-top: 4px;
  color: var(--dim);
  font-size: 15px;
}

.hl-news-notes {
  max-width: 46em;
  margin-top: 18px;
  padding-left: 20px;
  border-left: 3px solid var(--green);
}

.hl-news-notes p {
  margin-top: 10px;
}

.hl-news-notes p:first-child {
  margin-top: 0;
}

.hl-news-notes b {
  color: var(--moon);
  font-weight: 720;
}

.hl-news-all {
  margin-top: 18px;
  font-size: 15.5px;
}

.hl-news-all a {
  color: var(--moon);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.hl-news-all a:hover {
  text-decoration-color: currentColor;
}

.hl-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.hl-way {
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.hl-way h3 {
  font: 750 21px / 1.2 var(--display);
  font-stretch: 88%;
  color: var(--amber);
}

.hl-way p {
  margin-top: 10px;
}

.lights-page kbd {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 27px;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 7px;
  color: var(--moon);
  font: 700 14px / 1 var(--text);
  vertical-align: 1px;
}

.hl-layouts .button {
  margin-top: 18px;
}

.hl-steps {
  display: grid;
  gap: 14px;
  max-width: 46em;
  margin: 20px 0 0;
  padding-left: 26px;
  color: var(--haze);
  line-height: 1.6;
}

.hl-steps li::marker {
  color: var(--pink);
  font-weight: 800;
}

.hl-steps b {
  color: var(--moon);
}

.hl-steps code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(196, 176, 255, 0.1);
  color: var(--moon);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.hl-section .hl-quiet {
  color: var(--dim);
}

.hl-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}

@media (max-width: 960px) {
  .hl-ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hl-hero,
  .hl-ways,
  .hl-pair {
    grid-template-columns: 1fr;
  }

  .hl-scene {
    order: -1;
    margin: 0 -8px;
  }
}
