:root {
  --bg: #08070a;
  --bg-warm: rgba(70, 50, 25, 0.22);
  --ink: #ebdfc9;
  --ink-muted: #9a8e78;
  --gold-deep: #6b5012;
  --gold-mid: #c9a23a;
  --gold-rich: #d6b04a;
  --gold-light: #f3e2a3;
  --gold-pale: #fff4cf;
  --gold-rule: rgba(201, 162, 58, 0.4);
}

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

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow-x: hidden;

  background-image:
    radial-gradient(ellipse at 50% 42%, var(--bg-warm) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(80, 60, 30, 0.10) 0%, transparent 50%);
}

/* Vellum grain texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  mix-blend-mode: overlay;
  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.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 0.92  0 0 0 0 0.7   0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Hairline gold frame */
.frame {
  position: fixed;
  inset: 1.5rem;
  border: 1px solid var(--gold-rule);
  pointer-events: none;
  z-index: 0;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 162, 58, 0.18);
}

main {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  padding: 0 1rem;
}

/* ── Moon ── */
.moon {
  display: flex;
  justify-content: center;
  margin-bottom: 2.75rem;
}

.moon-svg {
  width: clamp(110px, 16vw, 150px);
  height: clamp(110px, 16vw, 150px);
  animation: moonBreathe 14s ease-in-out infinite;
}

/* Outer glow always present — gently expands and contracts */
@keyframes moonBreathe {
  0%, 100% {
    filter:
      drop-shadow(0 0 18px rgba(230, 200, 105, 0.22))
      drop-shadow(0 0 40px rgba(201, 162, 58, 0.13))
      brightness(1.00);
  }
  50% {
    filter:
      drop-shadow(0 0 28px rgba(240, 215, 130, 0.34))
      drop-shadow(0 0 58px rgba(201, 162, 58, 0.20))
      brightness(1.04);
  }
}

/* ── Wordmark ── */
.wordmark {
  font-family: "IM Fell English", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(3rem, 7.5vw, 5rem);
  line-height: 1;
  letter-spacing: 0.005em;
  margin-bottom: 2rem;

  background: linear-gradient(
    135deg,
    #5a4310 0%,
    #8a6a14 25%,
    #c9a23a 50%,
    #8a6a14 75%,
    #5a4310 100%
  );
  background-size: 200% 200%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  animation: shimmer 26s ease-in-out infinite;

  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 30px rgba(201, 162, 58, 0.14));
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── Description ── */
.description {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}

.description em {
  font-style: italic;
  opacity: 0.92;
}

.description .emphasis {
  color: var(--gold-light);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Principal ── */
.principal {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-left: 0.34em;
  margin-bottom: 2.5rem;
}

.inline-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 58, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.4s ease, color 0.4s ease;
}

.inline-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.principal .inline-link {
  letter-spacing: 0.34em;
}

/* ── Contact icon ── */
.contact {
  display: flex;
  justify-content: center;
}

.contact a {
  color: var(--ink-muted);
  display: inline-flex;
  padding: 0.5rem;
  transition: color 0.4s ease, transform 0.4s ease;
}

.contact a:hover {
  color: var(--gold-light);
  transform: translateY(-1px);
}

/* ── Motion / responsive ── */
@media (prefers-reduced-motion: reduce) {
  .wordmark {
    animation: none;
    background-position: 50% 50%;
  }
  .moon-svg {
    animation: none;
  }
  .moon-svg animate {
    animation: none;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1.25rem;
  }
  .frame {
    inset: 0.9rem;
  }
  .principal {
    letter-spacing: 0.26em;
    margin-bottom: 2rem;
  }
  .principal .inline-link {
    letter-spacing: 0.26em;
  }
}
