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

html {
  background: #080808;
}

body {
  min-height: 100vh;
  background: #080808;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  filter: url(#grain);
  width: 200%;
  height: 200%;
  animation: grain-drift 0.4s steps(1) infinite;
}

@keyframes grain-drift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, -2%); }
  40%  { transform: translate(2%, 3%); }
  60%  { transform: translate(-1%, -3%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(-2%, 2%); }
}

/* Vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, #080808 100%);
}

.letter {
  position: relative;
  z-index: 10;
  max-width: 660px;
  margin: 0 auto;
  padding: 100px 32px 140px;
  font-family: 'Kalam', cursive;
  /* Slightly increased the base clamp size to ensure Kalam reads well */
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.8;
  color: #d9cfc0;
  animation: fade-in 1.5s ease both;
}

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

.opener {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 2.5em;
  color: #ede5d5;
}

.letter p {
  margin-bottom: 2em;
}

.signature {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: #ede5d5;
  margin-top: 3em;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .letter {
    padding: 72px 24px 100px;
  }
}

.postscript {
  margin-top: 5em;
  padding-top: 3em;
  border-top: 1px solid rgba(217, 207, 192, 0.05);
  animation: fade-in 1.5s ease 1s both; /* Slight delay after letter */
}

.postscript p {
  margin-bottom: 2em;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(217, 207, 192, 0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5em;
  color: rgba(217, 207, 192, 0.3);
  font-family: -apple-system, sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-line a {
  color: #ede5d5;
  text-decoration: none;
  border-bottom: 1px solid rgba(237, 229, 213, 0.2);
  transition: all 0.3s ease;
}

.contact-line a:hover {
  border-bottom-color: #ede5d5;
  text-shadow: 0 0 8px rgba(237, 229, 213, 0.2);
}
