@font-face {
  font-family: "EVE Baseline";
  src: url("assets/montserrat-light-subset.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

html {
  background: #000;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  /* Largeur du logo : fluide, avec un minimum et un maximum */
  --logo: clamp(184px, calc(6.5vw + 164px), 460px);
  /* Centrage optique : le bloc est remonté d'environ 2 % de la hauteur visible */
  --lift: 4.4vh;

  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  color: #fff;
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    calc(max(24px, env(safe-area-inset-bottom)) + var(--lift))
    max(24px, env(safe-area-inset-left));
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 0;
  font-size: 0;
  line-height: 0;
  animation: appear 2.4s cubic-bezier(.4, 0, .2, 1) both;
}

.logo {
  display: block;
  width: var(--logo);
  height: auto;
  aspect-ratio: 126.84 / 94.59;
}

@keyframes appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Écrans très bas (smartphone en paysage) : on réduit la remontée optique */
@media (max-height: 480px) {
  body { --lift: 2vh; }
}

@media (prefers-reduced-motion: reduce) {
  h1, p { animation: none; }
}
