:root {
  --sage: #2c3e2e;
  --sage-soft: #4a5d4a;
  --cream: #f7f5f0;
  --paper: #ebe8e0;
  --muted: #6b7c6b;
  --gold: #9a8b6e;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Josefin Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-ui);
  font-weight: 300;
  color: var(--sage);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}

.glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(
      ellipse 50% 40% at 50% 0%,
      rgba(44, 62, 46, 0.09) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(154, 139, 110, 0.12) 0%,
      transparent 45%
    ),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 45%);
  pointer-events: none;
}

.card {
  position: relative;
  width: 100%;
  max-width: 26rem;
  text-align: center;
  animation: rise 1s var(--ease) both;
}

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

.photo-frame {
  margin: 0 auto 1.75rem;
  width: min(72vw, 15.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(
    145deg,
    rgba(44, 62, 46, 0.35) 0%,
    rgba(154, 139, 110, 0.45) 50%,
    rgba(44, 62, 46, 0.25) 100%
  );
  box-shadow:
    0 24px 48px rgba(44, 62, 46, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  border: 3px solid var(--cream);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.photo:hover {
  transform: scale(1.02);
}

.photo:focus {
  outline: none;
}

.photo:focus-visible {
  box-shadow:
    0 0 0 3px var(--cream),
    0 0 0 5px var(--sage-soft);
}

/* Softer treatment if photo is missing or fails to load */
.photo:not([src]),
.photo[src=""] {
  object-fit: none;
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.names {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  line-height: 1.15;
  font-style: italic;
  color: var(--sage);
  letter-spacing: 0.02em;
}

.names .and {
  display: block;
  font-size: 0.42em;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin: 0.2em 0;
  letter-spacing: 0.12em;
}

.rule {
  width: 3rem;
  height: 1px;
  margin: 1.5rem auto;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent
  );
}

.soon {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--sage-soft);
  letter-spacing: 0.04em;
}

.hint {
  margin: 0 0 1.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-soft);
}

.meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}

.foot {
  position: relative;
  margin-top: clamp(2rem, 6vw, 3rem);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(107, 124, 107, 0.65);
  animation: rise 1s 0.15s var(--ease) both;
}

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