:root {
  --light-cream: #e8e6dc;
  --cream: #d8d6c6;
  --light-lime-green: #b4cfa9;
  --lime-green: #9bbf8a;
  --light-olive-green: #6d6d4b;
  --olive-green: #7a8f71;
  --light-grass-green: #7db289;
  --grass-green: #5c6e48;
  --white: #fffafa;
  --black: #111;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--light-cream);
  font-family: "Miller Display Italic", serif;
  color: var(--light-olive-green);
}

.card {
  position: relative;
  background-color: var(--light-olive-green);
  background-image: url("/assets/paper-texture.jpg");
  background-size: cover;
  background-repeat: repeat;
  background-blend-mode: multiply;
  font-family: Georgia, serif;
  width: 400px;
  height: 600px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

@keyframes cardEntrance {
  to {
    opacity: 1;
		color: var(--white);
  }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.card h2,
.card p {
  margin: 0.5rem 0;
  line-height: 1.4;
}

.initial {
  position: absolute;
  font-size: 20rem;
  z-index: 0;
	opacity: 0;
	animation: cardEntrance 1200ms ease-out 120ms forwards;
}

.initial.e {
  top: -50px;
  left: -5px;
  font-family: "Pinyon Script", cursive;
  transform: rotate(-10deg);
}

.initial.s {
  bottom: -100px;
  right: -30px;
  font-family: Didot, serif;
}

.text {
  position: relative;
  z-index: 1;
}

.text small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 0.75rem;
  font-family: Tinos, serif;
	opacity: 0;
	animation: cardEntrance 1200ms ease-out 700ms forwards;
}

.text h2 {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  font-family: Georgia, serif;
	text-transform: uppercase;
	opacity: 0;
	animation: cardEntrance 1200ms ease-out 120ms forwards;
}

.text p {
  font-size: 1.05rem;
  font-style: italic;
  word-spacing: 2px;
  letter-spacing: 1.5px;
  line-height: 1.25;
	opacity: 0;
	animation: cardEntrance 1200ms ease-out 700ms forwards;
}

.ampersand {
  font-size: 2.3rem;
  vertical-align: middle;
  font-weight: 100;
  font-family: Carattere, cursive;
  margin: 0 0.3rem;
}

@media (max-width: 450px) {
  .card {
    width: 100vw;
    height: 100vh;
  }

  .text h2 {
    font-size: 1.55rem;
    line-height: 1.1;
  }

  .text p {
    font-size: 1rem;
  }

  .ampersand {
    font-size: 2.1rem;
  }

  .initial.e {
    top: -3%;
    left: -1.6%;
    font-size: calc((100vh + 100vw) * 0.6 / 2);
  }

  .initial.s {
    bottom: -9%;
    right: -9%;
    font-size: calc((100vh + 100vw) * 0.6 / 2);
  }
}
