:root {
  --ground: #07080a;
  --ink: #ece7de;
  --quiet: #9c978f;
  --gold: #e9dcc4;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  left: 50%;
  top: 44%;
  width: min(120vw, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(233, 214, 178, 0.16),
    rgba(196, 160, 110, 0.07) 45%,
    rgba(7, 8, 10, 0) 100%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(0.96); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.04); }
}

main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 12vh 1.5rem 4rem;
  animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both;
}

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

h1 {
  margin: 0;
  max-width: 14em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 6.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 0 28px rgba(233, 214, 178, 0.35);
}

.lede {
  margin: 2rem 0 0;
  max-width: 34em;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  line-height: 1.6;
  color: var(--quiet);
  text-wrap: balance;
}

.mark {
  margin: 2.6rem 0 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.mark::before, .mark::after {
  content: "";
  display: inline-block;
  width: 1.8em;
  height: 1px;
  margin: 0 0.9em;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, rgba(233, 220, 196, 0.6), transparent);
}

footer {
  position: relative;
  padding: 0 1.5rem 2rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5d5952;
}

@media (max-width: 34rem) {
  .mark { letter-spacing: 0.18em; line-height: 1.9; }
  .mark::before, .mark::after { display: none; }
  .glow { width: 150vw; }
}

@media (prefers-reduced-motion: reduce) {
  .glow, main { animation: none; }
}
