:root {
  --x: 68%;
  --y: 32%;
  --ink: #120e0c;
  --cream: #f6efe6;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.wash,
.orb,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.wash {
  background:
    radial-gradient(90% 70% at 80% 0%, #3a221c 0%, transparent 55%),
    radial-gradient(80% 60% at 10% 100%, #241612 0%, transparent 50%),
    var(--ink);
}

.orb {
  background: radial-gradient(
    circle at var(--x) var(--y),
    rgba(240, 176, 128, 0.55) 0%,
    rgba(176, 68, 48, 0.28) 22%,
    rgba(80, 24, 18, 0.12) 42%,
    transparent 62%
  );
  transition: background-position 0.2s linear;
}

.grain {
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.top,
footer {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 239, 230, 0.62);
}

.top {
  top: 0;
}

footer {
  bottom: 0;
}

.top p,
footer p,
time {
  margin: 0;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 12vh 6vw 14vh;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(5.2rem, 16vw, 12.5rem);
  line-height: 0.78;
  letter-spacing: -0.045em;
}

h1 span {
  display: block;
  animation: rise 1.1s ease both;
}

h1 span:last-child {
  animation-delay: 0.12s;
  padding-left: 0.12em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  main {
    padding: 18vh 1.3rem 16vh;
  }

  .top,
  footer {
    padding: 1rem 1.15rem;
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1 span {
    animation: none;
  }
}
