:root {
  --bg: #F7F3EC;
  --ink: #211D17;
  --ink-soft: #3B352C;
  --muted: #8A8177;
  --gold: #B08D57;
  --gold-soft: #C6A15B;
  --hairline: rgba(33, 29, 23, 0.18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(176, 141, 87, 0.10), transparent 60%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px);
}

/* ---------- Stage ---------- */
.stage {
  width: 100%;
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vh, 40px);
}

/* ---------- Monogram ---------- */
.monogram {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(72px, 16vw, 128px);
  line-height: 1;
  letter-spacing: -0.04em;
  display: inline-flex;
  user-select: none;
}

.monogram .m-fill {
  color: var(--ink);
}

.monogram .m-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  margin-left: -0.02em;
}

/* ---------- Name ---------- */
.name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(13px, 2.4vw, 16px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: -8px;
}

/* ---------- Hairline rule with dot ---------- */
.rule {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(220px, 60%);
  height: 1px;
  background: var(--hairline);
  position: relative;
}

.rule-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--bg);
}

/* ---------- Verse ---------- */
.verse {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 28px);
}

.verse-text {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 4.6vw, 40px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 auto;
  text-wrap: balance;
}

.verse-ref {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(12px, 2vw, 14px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Thanks ---------- */
.thanks {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 2.8vw, 21px);
  color: var(--ink-soft);
}

/* ---------- Colophon ---------- */
.colophon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.colophon .sep { color: var(--gold); }

.colophon a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.colophon a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Entrance ---------- */
.monogram, .name, .rule, .verse, .thanks, .colophon {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.name       { animation-delay: 0.10s; }
.rule       { animation-delay: 0.20s; }
.verse      { animation-delay: 0.30s; }
.thanks     { animation-delay: 0.40s; }
.colophon   { animation-delay: 0.50s; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; opacity: 1 !important; }
}
