/*
 * Ermine Films — temporary Coming Soon page.
 * Brand palette: Ermine Cream #F5F1EF, Ermine Black #000000.
 */
:root {
  --cream: #F5F1EF;
  --black: #000000;
  /* Logo width drives the whole composition, so proportions hold at every size. */
  --logo-w: clamp(11.5rem, 24vw, 21rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Portrait tablets: a slightly larger mark fills the tall canvas better */
@media (min-width: 600px) and (orientation: portrait) {
  :root {
    --logo-w: clamp(13rem, 30vw, 21rem);
  }
}

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

html {
  height: 100%;
  background: var(--cream);
  color: var(--black);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", Helvetica, "Inter", Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  /* Optical centre: a composition reads as centred when it sits slightly high */
  padding-bottom: calc(2rem + 4vh);
}

.logo {
  width: var(--logo-w);
  margin: 0;
  line-height: 0;
  font-size: inherit;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.status {
  margin: calc(var(--logo-w) * 0.2) 0 0;
  font-size: clamp(0.6875rem, 0.62rem + 0.2vw, 0.78rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  /* Letter spacing adds space after the last letter; pull it back so the word is truly centred */
  margin-right: -0.42em;
}

/* Entrance: the logo surfaces first, then the line settles into place */
@media (prefers-reduced-motion: no-preference) {
  .logo {
    animation: surface 1800ms var(--ease) 150ms both;
  }

  .status {
    animation: settle 1600ms var(--ease) 900ms both;
  }

  @keyframes surface {
    from {
      opacity: 0;
      transform: translateY(0.75rem);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes settle {
    from {
      opacity: 0;
      letter-spacing: 0.7em;
      margin-right: -0.7em;
    }
    to {
      opacity: 1;
      letter-spacing: 0.42em;
      margin-right: -0.42em;
    }
  }
}
