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

html {
  scroll-behavior: smooth;
  font-size: 112.5%;
}

body {
  font-family: "Courier Prime", "Courier New", Courier, monospace;
  font-size: var(--text-base);
  background: var(--tm-white);
  color: var(--tm-ink);
  line-height: var(--leading-normal);
  min-height: 100vh;
  overflow-x: clip;
}

.display {
  font-family: "Special Elite", "Courier New", Courier, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.typewriter {
  font-family: "Courier Prime", "Courier New", Courier, monospace;
}

main {
  overflow: visible;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-copy,
.intro-letters,
.intro-envelope,
.essential-item,
.detail-card,
.brief-paper,
.form-card {
  animation: rise-in 0.7s ease both;
}

.intro-envelope { animation-delay: 0.12s; }
.essential-item:nth-child(1) { animation-delay: 0.05s; }
.essential-item:nth-child(2) { animation-delay: 0.15s; }
.essential-item:nth-child(3) { animation-delay: 0.25s; }
.detail-card:nth-child(1) { animation-delay: 0.05s; }
.detail-card:nth-child(2) { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .intro-copy,
  .intro-letters,
  .intro-envelope,
  .essential-item,
  .detail-card,
  .brief-paper,
  .form-card {
    animation: none;
  }
}
