/* Waiting page for abitareellle.it.
   Wine field from the brand banner; only the mark and one line of type. */

:root {
  --wine: #461726;
  --gold: #d4b27a;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  color: var(--gold);
  font-family: var(--serif);
  background-color: var(--wine);
}

::selection {
  background: var(--gold);
  color: var(--wine);
}

.stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4vh, 2.75rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.mark {
  display: block;
  width: min(340px, 78vw);
  height: auto;
}

.soon {
  margin: 0;
  font-size: clamp(1.05rem, 0.85rem + 1vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.38em;
  padding-left: 0.38em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Entrance: mark fades in and rises, then the line follows and settles.
   Disabled entirely for reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
  .mark {
    animation: rise 1.2s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }

  .soon {
    animation: settle 1.6s cubic-bezier(0.2, 0.6, 0.2, 1) 0.6s both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    letter-spacing: 0.6em;
  }

  to {
    opacity: 1;
    letter-spacing: 0.38em;
  }
}
