.vote-page {
  --vote-night: #081514;
  --vote-soil: #142823;
  --vote-footer-overlap: clamp(3.5rem, 9svh, 6.5rem);
}

.vote {
  --vote-cream: #f7f2df;
  --vote-citrine: #dce989;
  --vote-muted: #ced8ce;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding-block: 8rem clamp(3.75rem, 11svh, 7.5rem);
  overflow: clip;
  color-scheme: dark;
  color: var(--vote-cream);
  background: var(--vote-night);
}

.vote :focus-visible { outline-color: var(--vote-citrine); }

.vote__scene,
.vote::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vote__scene { z-index: -2; }

.vote__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 47%;
}

.vote::before {
  z-index: -1;
  content: "";
  background:
    linear-gradient(0deg, var(--vote-soil), #081514bb 18%, #0815145c 41%, transparent 72%),
    linear-gradient(90deg, #081514ec 0%, #081514b2 30%, #08151430 58%, transparent 78%),
    linear-gradient(180deg, #081514a6, transparent 24%);
}

.vote__content { width: min(100%, 37rem); }

.vote__content h1 {
  font-size: clamp(4.25rem, 8.3vw, 8.25rem);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.022em;
}

.vote__content h1 span {
  display: block;
  font-size: .64em;
  font-weight: 700;
  letter-spacing: 0;
}

.vote__content h1 strong {
  display: block;
  margin-top: .1em;
  font-weight: inherit;
}

.vote__lead {
  max-width: 34ch;
  margin-top: 1.5rem;
  color: var(--vote-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.vote__listing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 44rem;
  gap: .8rem 1.1rem;
  margin-top: clamp(1.45rem, 3.4svh, 2.2rem);
  padding-top: 1.15rem;
  border-top: 1px solid #bac9ba63;
}

.vote__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .75rem;
  width: 100%;
}

.vote__links[hidden] { display: none; }

.vote__action--multi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  min-height: 58px;
  padding: .65rem 1rem;
  text-align: left;
}

.vote__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 3px;
  background: rgba(23, 37, 21, .16);
  color: #172515;
  font-family: var(--font-heading), sans-serif;
  font-size: .82rem;
  font-weight: 800;
}

.vote__label-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.vote__site-name {
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vote__site-host {
  font-size: .74rem;
  opacity: .74;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vote__arrow {
  flex: none;
  font-size: 1rem;
}

.vote__status {
  color: var(--vote-muted);
  font-size: .95rem;
  overflow-wrap: anywhere;
}

.vote__action {
  min-height: 52px;
  padding-inline: 1.2rem;
  border: 1px solid #dce989;
  border-radius: 2px;
  color: #172515;
  background: var(--vote-citrine);
  box-shadow: 0 3px 0 #7f8f48;
}

.vote__action:hover { background: #ebf4aa; }
.vote__action:active { box-shadow: 0 1px 0 #7f8f48; }

.vote-footer {
  --footer-soil: var(--vote-soil);
  --footer-base: #0d1c1a;
  position: relative;
  /* Let the decorative horizon sit over the scene's fade. */
  margin-top: calc(-1 * var(--vote-footer-overlap));
  background-color: transparent;
}

.vote-footer .site-footer__horizon {
  height: var(--vote-footer-overlap);
  background: none;
  pointer-events: none;
}

.vote-footer .site-footer__grass i { background-color: #344c3f; }
.vote-footer .site-footer__grass i:nth-child(2) { background-color: #293f32; }
.vote-footer .site-footer__grass i:nth-child(3) { background-color: #435a47; }
.vote-footer .site-footer__base { background-color: var(--footer-base); }

@media (prefers-reduced-motion: no-preference) {
  .vote[data-enter] .vote__content {
    animation: vote-content-in 700ms cubic-bezier(.22, 1, .36, 1) both;
  }

  .vote[data-enter] .vote__scene img {
    animation: vote-scene-in 1050ms cubic-bezier(.22, 1, .36, 1) both;
  }
}

@keyframes vote-content-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes vote-scene-in {
  from { transform: scale(1.03); }
  to { transform: none; }
}

@media (max-width: 680px) {
  .vote-page { --vote-footer-overlap: 2.5rem; }

  .vote {
    padding-block: 25rem 3rem;
    padding-top: max(20rem, 51svh);
  }

  .vote__scene { top: var(--nav-offset); bottom: 25%; }
  .vote__scene img { object-position: center 18%; }

  .vote::before {
    background:
      linear-gradient(0deg, var(--vote-soil), transparent 7rem),
      linear-gradient(0deg, #081514 26%, #081514e8 39%, #08151428 62%, transparent 76%),
      linear-gradient(180deg, #081514ad, transparent 24%);
  }

  .vote__content h1 { font-size: clamp(3.6rem, 12vw, 5.5rem); }
  .vote__lead { margin-top: 1.15rem; }
  .vote__action { flex: 0 0 100%; justify-content: space-between; }
}
