@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --ink: #34263d;
  --muted: #765f7d;
  --lavender: #b59ac6;
  --deep-purple: #674475;
  --soft-lavender: #f4eff7;
  --line: #d9cbe0;
  --white: #fffefd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--soft-lavender);
  font-family: 'DM Sans', sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: '';
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, .85), transparent 28%),
    radial-gradient(circle at 92% 82%, rgba(222, 208, 231, .5), transparent 32%);
}

.invitation-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 4.5rem 2rem;
  overflow: hidden;
}

.invitation-shell::before {
  position: absolute;
  inset: 1.75rem;
  border: 1px solid rgba(103, 68, 117, .25);
  pointer-events: none;
  content: '';
}

.invitation {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  padding: 3rem 4rem 2.75rem;
  text-align: center;
  background: rgba(255, 254, 253, .94);
  box-shadow: 0 24px 70px rgba(74, 45, 82, .13);
  animation: reveal .8s ease both;
}

.eyebrow,
.detail-label,
.rsvp-note {
  margin: 0;
  color: var(--deep-purple);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ornament {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 130px;
  margin: 1.1rem auto .6rem;
  color: var(--lavender);
}

.ornament span {
  height: 1px;
  flex: 1;
  background: currentColor;
}

.ornament i {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: rotate(45deg);
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 5.6rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: .8;
}

h1 em {
  color: var(--deep-purple);
  font-size: .88em;
  font-weight: 500;
}

.intro {
  max-width: 410px;
  margin: 1.75rem auto 2.5rem;
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.event-details {
  display: grid;
  grid-template-columns: 1fr auto 1.45fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-block {
  min-width: 0;
}

.detail-value {
  margin: .65rem 0 0;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.05;
}

.detail-value span {
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.5;
}

.detail-rule {
  width: 1px;
  height: 62px;
  background: var(--line);
}

.rsvp-button {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 2.2rem;
  padding: .85rem 1.7rem;
  color: var(--white);
  background: var(--deep-purple);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.rsvp-button span {
  font-size: 1.1rem;
  line-height: 0;
}

.rsvp-button:hover,
.rsvp-button:focus-visible {
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(103, 68, 117, .22);
  transform: translateY(-2px);
}

.rsvp-button:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 4px;
}

.rsvp-note {
  margin-top: .8rem;
  color: var(--muted);
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .12em;
}

.note-block {
  min-width: 0;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.note-block + .note-block {
  padding-top: 1.25rem;
}

.note-copy,
.registry-links {
  margin: .65rem 0 0;
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.15;
}

.registry-links {
  display: grid;
  gap: .35rem;
}

.registry-links a {
  color: var(--deep-purple);
  text-underline-offset: .18em;
}

.registry-links a:hover,
.registry-links a:focus-visible {
  color: var(--ink);
}

.registry-links a:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
}

.hosts {
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.host-names {
  margin: .7rem 0 0;
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.flower {
  position: absolute;
  z-index: 0;
  width: min(34vw, 400px);
  height: auto;
  pointer-events: none;
  animation: float-in .9s ease both;
}

.flower-left {
  top: -2.5rem;
  left: -3rem;
  transform: rotate(-8deg);
}

.flower-right {
  top: -2.5rem;
  right: -3rem;
  transform: scaleX(-1) rotate(-8deg);
  animation-name: float-in-right;
  animation-delay: .15s;
}

.icon-links {
  margin: .65rem 0 0;
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  line-height: 1.15;
}

.icon-links a {
  color: var(--deep-purple);
  text-underline-offset: .18em;
}

.icon-links a:hover,
.icon-links a:focus-visible {
  color: var(--ink);
}

.icon-links a:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(-18px) rotate(-8deg); }
  to { opacity: 1; transform: translateY(0) rotate(-8deg); }
}

@keyframes float-in-right {
  from { opacity: 0; transform: translateY(-18px) scaleX(-1) rotate(-8deg); }
  to { opacity: 1; transform: translateY(0) scaleX(-1) rotate(-8deg); }
}

@media (max-width: 700px) {
  .invitation-shell {
    min-height: 100svh;
    padding: 5rem 1rem 2rem;
  }

  .invitation-shell::before {
    inset: 1rem;
  }

  .invitation {
    padding: 2.5rem 1.25rem 2rem;
  }

  .flower {
    width: 220px;
  }

  .flower-left {
    top: -3.8rem;
    left: -4.5rem;
  }

  .flower-right {
    top: -3.8rem;
    right: -4.5rem;
  }

  .event-details {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .detail-rule {
    width: 90px;
    height: 1px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
