:root {
  --ink: #ffffff;
  --ink-soft: #f0f0f0;
  --gold: #d8c39a;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Karla', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);

  background-image: url('matto.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  align-items: center;
  justify-content: center;
}

.memorial {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6vh 6vw;
  animation: rise 1.4s ease-out both;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: 0.01em;
  margin: 0 0 1.4rem 0;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.lifespan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.lifespan .line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

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

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

@media (max-width: 480px) {
  body {
    background-attachment: scroll;
  }
  .lifespan {
    flex-direction: column;
    gap: 0.6rem;
  }
  .lifespan .line {
    width: 24px;
  }
}
