:root {
  --ink: #22212a;
  --cream: #f6f1e8;
  --paper: #fffdf8;
  --clay: #c88f86;
  --terracotta: #9e6450;
  --terracotta-dark: #845340;
  --sage: #a6aea1;
  --sage-dark: #8a9384;
  --gold: #b89b62;
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 26px;
  background:
    radial-gradient(circle at 8% 12%, rgb(200 143 134 / 16%), transparent 27rem),
    radial-gradient(circle at 92% 86%, rgb(166 174 161 / 20%), transparent 28rem),
    var(--cream);
  isolation: isolate;
}

.page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

.glow {
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  border: 1px solid rgb(184 155 98 / 27%);
  border-radius: 50%;
  animation: drift 10s ease-in-out infinite;
}

.glow::after {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgb(200 143 134 / 20%);
  border-radius: 50%;
}

.glow--one { top: -190px; right: 6%; }
.glow--two {
  bottom: -215px;
  left: 3%;
  width: 350px;
  height: 350px;
  animation-delay: -5s;
}

.card {
  position: relative;
  width: min(100%, 720px);
  padding: 76px 80px 68px;
  text-align: center;
  background: rgb(255 253 248 / 82%);
  border: 1px solid rgb(158 100 80 / 20%);
  box-shadow: 0 24px 70px rgb(34 33 42 / 10%);
  opacity: 0;
  transform: translateY(18px);
}

.is-ready .card { animation: arrive 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }

.card__edge {
  position: absolute;
  inset: 10px;
  border: 1px solid rgb(184 155 98 / 22%);
  pointer-events: none;
}

.mark {
  position: absolute;
  top: -41px;
  left: 50%;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgb(158 100 80 / 20%);
  opacity: 0;
  transform: translateX(-50%) scale(0.7) rotate(-8deg);
}

.is-ready .mark { animation: seal 850ms 350ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.mark img { display: block; width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  margin: 0 0 22px;
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.7rem, 6vw, 4.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h1 span {
  display: block;
  color: var(--terracotta);
  font-style: italic;
  font-weight: 400;
}

.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 27px auto 25px;
}

.flourish span { width: 44px; height: 1px; background: var(--gold); opacity: 0.55; }
.flourish svg { width: 28px; fill: var(--sage); }

.copy {
  max-width: 550px;
  margin: 0 auto;
  color: #55545a;
  font-family: Lora, Georgia, serif;
  font-size: 1.03rem;
  line-height: 1.85;
}

.contact {
  width: fit-content;
  margin: 30px auto 0;
  padding: 18px 28px;
  background: rgb(232 207 201 / 38%);
}

.contact p { margin: 0 0 5px; color: #6c696b; font-size: 0.8rem; }
.contact a {
  color: var(--terracotta-dark);
  font-family: Lora, Georgia, serif;
  font-size: 0.98rem;
  text-decoration-color: rgb(132 83 64 / 35%);
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.contact a:hover, .contact a:focus-visible { color: var(--ink); text-decoration-color: var(--ink); }

.signoff {
  margin: 30px 0 0;
  color: var(--sage-dark);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.25;
}
.signoff span { display: block; color: #55545a; font-style: normal; }

footer {
  width: min(100%, 720px);
  margin-top: 28px;
  color: #777971;
  font-size: 0.7rem;
  letter-spacing: 0.035em;
  text-align: center;
}

@keyframes arrive {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes seal {
  to { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(0, 12px, 0) rotate(3deg); }
}

@media (max-width: 640px) {
  .page { justify-content: flex-start; padding: 70px 16px 24px; }
  .card { padding: 66px 25px 45px; }
  h1 { font-size: clamp(2.55rem, 13vw, 3.5rem); }
  .copy { font-size: 0.93rem; line-height: 1.75; }
  .contact { width: 100%; padding: 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .mark { opacity: 1; transform: none; }
  .is-ready .card, .is-ready .mark, .glow { animation: none; }
}
