/* Countdown, drop section, password ("opening") page. */
.countdown {
  display: block;
}

.countdown__timer {
  display: flex;
  justify-content: inherit;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.countdown__unit {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
}

.countdown__value {
  font-family: var(--font-heading--family);
  font-size: calc(clamp(2.5rem, 1.5rem + 5vw, 6rem) * var(--heading-scale));
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  color: var(--color-foreground-muted);
}

.countdown__done {
  display: none;
}

drop-countdown[data-done] .countdown__timer {
  display: none;
}

drop-countdown[data-done] .countdown__done {
  display: block;
}

/* ---------- Drop section ---------- */
.drop {
  display: grid;
  gap: 1.5rem;
  padding-block: 5rem;
}

.drop--center {
  justify-items: center;
  text-align: center;
}

.drop--center .countdown__timer {
  justify-content: center;
}

.drop__text {
  max-width: 36rem;
  color: var(--color-foreground-muted);
}

/* ---------- Password page ---------- */
.password-layout main {
  display: grid;
}

.opening {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 1.25rem var(--page-margin) 1.5rem;
}

.opening__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.opening__center {
  display: grid;
  gap: 1.75rem;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.opening__center .countdown__timer {
  justify-content: center;
}

.opening__mark {
  font-size: calc(clamp(3.5rem, 1rem + 10vw, 11rem) * var(--heading-scale));
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.opening__mark img {
  max-width: min(60vw, 32rem);
  height: auto;
}

.opening__message {
  max-width: 34rem;
  color: var(--color-foreground-muted);
}

.opening__signup {
  display: grid;
  gap: 0.5rem;
  width: min(100%, 30rem);
  text-align: start;
}

.opening__signup .newsletter__row {
  display: flex;
}

.opening__signup input {
  flex: 1;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--color-foreground);
  border-inline-end: 0;
  background: transparent;
  color: inherit;
}

.opening__footer {
  text-align: center;
  color: var(--color-foreground-muted);
}

.opening__password {
  display: grid;
  gap: 0.75rem;
}

.opening__password input {
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--color-hairline);
  background: transparent;
  color: inherit;
}

.opening__admin {
  color: var(--color-foreground-muted);
  font-size: 0.8125rem;
}
