@font-face {
  font-family: "Just Another Hand";
  src: url("fonts/just-another-hand-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --police: "Just Another Hand", "Segoe Print", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(ellipse at 50% 40%, #2c2c2c 0%, #1a1a1a 55%, #0c0c0c 100%);
  color: #fff;
  font-family: var(--police);
  text-align: center;
}

main { width: min(100%, 44rem); }

h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(5rem, 22vw, 11rem);
  line-height: .95;
  letter-spacing: .02em;
  text-shadow: 0 .04em .35em rgba(0, 0, 0, .6);
  animation: apparition 1.2s ease-out both;
}

.trait {
  display: block;
  width: min(70%, 22rem);
  height: 1.5rem;
  margin: .6rem auto 1.4rem;
  overflow: visible;
}
.trait path {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: trace 1.4s .7s ease-out forwards;
}

.annonce {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.1;
  animation: apparition 1.2s 1.2s ease-out both;
}

@keyframes apparition {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes trace {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  h1, .annonce { animation: none; }
  .trait path { animation: none; stroke-dashoffset: 0; }
}
