@font-face {
  font-family: "Gabarito";
  src: url("/fonts/Gabarito-var.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --red: #E4412B;
  --paper: #FAF5EC;
  --sans: "Gabarito", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--red);
  color: var(--paper);
}

body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(28px, 5vmin, 48px);
  padding: 48px 16px;
  text-align: center;
}

.seal {
  display: block;
  width: clamp(200px, 44vmin, 380px);
  height: auto;
  animation: press 1.1s cubic-bezier(.2, .8, .2, 1) both;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  /* Waits until the seal has settled (1.1s), then rises slowly. */
  animation: rise 1.4s 1.3s cubic-bezier(.2, .8, .2, 1) both;
}

/* The seal lands like a stamp: a little large and turned, then pressed flat. */
@keyframes press {
  from { opacity: 0; transform: scale(1.12) rotate(8deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

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