/* ----------------------------------------------------------
   Porvenir — splash
   A single word on a sheet of warm paper.
   ---------------------------------------------------------- */

:root {
  --paper:    #ECE2CC;
  --paper-2:  #E4D8BE;
  --ink:      #1A1612;
  --ink-soft: #6B6358;
  --gutter:   clamp(1.25rem, 4vw, 3rem);
}

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

html {
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(140% 100% at 50% 42%, rgba(255,247,228,0.55) 0%, transparent 55%),
    radial-gradient(120% 90% at 50% 100%, rgba(0,0,0,0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--ink);
  font-family: 'Fraunces', 'Hoefler Text', 'Iowan Old Style', Georgia, serif;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  line-height: 1.5;
  overflow: hidden;
  cursor: crosshair;
}

/* Paper grain — barely-there SVG noise. Removes the screen-clean feel. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.085  0 0 0 0 0.07  0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* Stage --------------------------------------------------- */

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Wordmark ------------------------------------------------ */

.wordmark {
  margin: 0;
  width: 100%;
  text-align: center;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(4.5rem, 22vw, 22rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
}

.letter {
  display: inline-block;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'wght' 280;
  transition: font-variation-settings 280ms cubic-bezier(0.2, 0.7, 0.2, 1);

  opacity: 0;
  transform: translateY(0.5em);
  animation:
    rise 1100ms cubic-bezier(0.16, 0.84, 0.24, 1) forwards,
    drift 9000ms ease-in-out infinite;
  animation-delay:
    calc(120ms + var(--i) * 70ms),
    calc(1400ms + var(--i) * 220ms);
}

/* Slight horizontal optical compensation for the italic */
.letter:first-child { margin-left: -0.02em; }
.letter:last-child  { margin-right: -0.02em; }

/* Selection — warm ink, never browser blue */
::selection {
  background: var(--ink);
  color: var(--paper);
}

/* Animations --------------------------------------------- */

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

/* Idle breathing — almost imperceptible, like paper drying. */
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-0.012em); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .letter {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Print — clean single sheet */
@media print {
  body::after { display: none; }
  body { background: #fff; color: #000; cursor: auto; }
  .wordmark { font-size: 6rem; }
}
