/* Front page (/). Shared fonts, colours, nav and language
   buttons live in theme.css; this file only has the front-page layout. */

/* Hero */
.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

/* The SVG is exported at full design height, so it fills the window height */
.home-watermark {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translateX(-49.4%);
  pointer-events: none;
  user-select: none;
}

.home-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--u) * 32.8) 1.6rem calc(var(--u) * 6);
  white-space: nowrap;
}

.home-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-garland);
  font-size: calc(var(--u) * 11.4);
  line-height: 1.32;
  text-transform: uppercase;
}

.home-date {
  font-family: var(--font-garland);
  font-size: calc(var(--u) * 4.3);
  line-height: 1;
  margin: calc(var(--u) * 3.6) 0 0;
}

.home-venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: calc(var(--u) * 5.9) 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: max(1.3rem, calc(var(--u) * 2.02));
  line-height: 1.42;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-green);
}

/* Compensate for trailing letter-spacing so the lines stay centred */
.home-venue > * {
  margin-right: -0.3em;
}

/* Countdown, top-left */
body[data-page="home"] .hero-countdown-corner {
  top: 2.4rem;
  left: 2.4rem;
  gap: 1.6rem;
}

body[data-page="home"] .countdown-unit span {
  font-family: var(--font-garland);
  font-size: 2.6rem;
  line-height: 1.2;
}

body[data-page="home"] .countdown-unit small {
  font-family: var(--font-garland);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

/* "Ebens hjørne" badge, bottom-left */
body[data-page="home"] .hero-badge {
  z-index: 2;
}

body[data-page="home"] .hero-badge-text-svg text,
body[data-page="home"] .gallery-title {
  font-family: var(--font-garland);
}

body[data-page="home"] .hero-badge-text-svg text {
  font-size: 2.6rem;
}

body[data-page="home"] .hero-badge-circle {
  animation: none;
  background: var(--color-green);
}

@media (max-width: 700px) {
  body[data-page="home"] .home-hero {
    --u: 1.15vw;
  }

  .home-watermark {
    top: 50%;
    height: auto;
    width: 115vw;
    transform: translate(-49.4%, -50%);
  }

  .home-hero {
    align-items: center;
  }

  .home-center {
    padding-top: 0;
  }
}
