/* Kite v2 — sparse lithograph page */

:root {
  --paper: #e6dfd2;
  --ink: #141210;
  --smoke: #6b6458;
  --ash: #9a9184;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "Spectral", "Palatino Linotype", Palatino, serif;
}

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

body {
  min-height: 100svh;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  width: min(34rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 6.5rem) 0 clamp(4rem, 14vh, 7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 0.65rem;
  animation: rise 1.1s var(--ease) both;
}

.year {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--ash);
  margin-bottom: clamp(2.5rem, 8vh, 4rem);
  animation: rise 1.1s var(--ease) 0.08s both;
}

.title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 14vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  animation: rise 1.2s var(--ease) 0.16s both;
}

.epigraph {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.85rem, 3.4vw, 1.35rem);
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
  margin-bottom: clamp(2.25rem, 7vh, 3.5rem);
  animation: rise 1.2s var(--ease) 0.26s both;
}

.plate {
  width: 100%;
  margin-bottom: clamp(2.25rem, 7vh, 3.5rem);
  animation: rise 1.4s var(--ease) 0.36s both;
}

.plate img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.04) brightness(0.94) sepia(0.06);
}

.body {
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  color: var(--smoke);
  margin-bottom: clamp(2.5rem, 8vh, 3.75rem);
  animation: rise 1.2s var(--ease) 0.48s both;
}

.mail {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 18, 16, 0.28);
  padding-bottom: 0.15em;
  transition: border-color 0.35s ease;
  animation: rise 1.2s var(--ease) 0.58s both;
}

.mail:hover {
  border-bottom-color: var(--ink);
}

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

@media (prefers-reduced-motion: reduce) {
  .mark,
  .year,
  .title,
  .epigraph,
  .plate,
  .body,
  .mail {
    animation: none;
  }
}
