:root {
  --paper: #f4ead4;
  --ink: #1b1610;
  --night: #14110e;
  --gold: #c9a15b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 15% 10%, #2a2218 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 80%, #1d2a28 0%, transparent 50%),
    var(--night);
  color: var(--paper);
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.015) 3px,
      rgba(255, 255, 255, 0.015) 4px
    );
  opacity: 0.6;
}

.masthead {
  position: fixed;
  z-index: 2;
  top: 1.1rem;
  left: 1.25rem;
  right: 1.25rem;
  pointer-events: none;
}

.kicker {
  margin: 0 0 0.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold);
}

.masthead h1 {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

#stage {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.quote {
  position: absolute;
  top: 0;
  left: 0;
  width: min(280px, 72vw);
  padding: 1rem 1.1rem 0.95rem;
  border-radius: 4px 12px 8px 6px;
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(80, 50, 20, 0.12);
  will-change: transform;
}

.quote blockquote {
  margin: 0;
}

.quote p {
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.quote footer {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #5a4a38;
}

.quote[data-hue="saffron"] {
  background: #f3d48a;
}

.quote[data-hue="sea"] {
  background: #b9d6c8;
}

.quote[data-hue="rose"] {
  background: #efc4b8;
}

.quote[data-hue="moss"] {
  background: #c9d5a7;
}

.quote[data-hue="ink"] {
  background: #d7c7b3;
}

.quote[data-hue="clay"] {
  background: #e8b48a;
}

.quote[data-hue="lilac"] {
  background: #d5c6e0;
}

.quote[data-hue="amber"] {
  background: #f0c27b;
}

@media (prefers-reduced-motion: reduce) {
  .quote {
    position: relative;
    display: inline-block;
    margin: 0.6rem;
    transform: none !important;
  }

  #stage {
    overflow: auto;
    padding: 5.5rem 1rem 1.5rem;
    height: auto;
    min-height: 100vh;
  }

  html,
  body {
    overflow: auto;
  }
}
