@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;6..96,500;6..96,600&family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

:root {
  --wine: #9b104a;
  --paper: #faf7f6;
  --ornament: #d8b8c3;
  --text: #4b1729;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: #eee9e8;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.invitation {
  position: relative;
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 12px 45px rgba(57, 25, 35, .12);
}

.content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 126px 42px 82px;
  display: flex;
  flex-direction: column;
}

.hero { text-align: center; }
.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 0;
  color: var(--wine);
  font-family: "Bodoni Moda", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(39px, 8vw, 49px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: .01em;
}

.heart-mark {
  width: 27px;
  height: 25px;
  flex: 0 0 27px;
  color: var(--wine);
  overflow: visible;
  transform: translateY(-1px);
}

.subtitle {
  margin: 25px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: .012em;
}

.date {
  margin: 39px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: "Bodoni Moda", "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: oldstyle-nums;
}

.date .day { font-weight: 600; }
.date i {
  display: block;
  width: 1.5px;
  height: 22px;
  background: var(--text);
  flex: 0 0 1.5px;
}

.instruction {
  margin: 40px 0 0;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

.actions {
  margin: 34px auto 0;
  width: 100%;
  max-width: 410px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 17px;
  row-gap: 26px;
}

.action {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: .95;
  text-align: center;
  letter-spacing: .012em;
  transition: transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.action:hover { transform: translateY(-3px); }
.action:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; border-radius: 8px; }

.icon-circle {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  flex: 0 0 94px;
  border-radius: 50%;
  background: var(--wine);
}
.icon-circle svg { width: 64px; height: 64px; display: block; }

.botanical {
  position: absolute;
  z-index: 1;
  color: var(--ornament);
  width: 242px;
  height: 186px;
  opacity: .84;
  pointer-events: none;
}
.botanical-tl { top: -2px; left: -18px; }
.botanical-tr { top: -3px; right: -18px; }
.botanical-bl { bottom: -28px; left: -17px; }
.botanical-br { bottom: -29px; right: -17px; }

.anchor-targets { position: absolute; left: 0; bottom: 0; }

@media (max-width: 500px) {
  body { background: var(--paper); }
  .invitation { width: 100%; border-radius: 0; box-shadow: none; }
  .content { padding: 122px 23px 64px; }
  .hero h1 { gap: 10px; font-size: clamp(36px, 10vw, 44px); }
  .heart-mark { width: 25px; height: 23px; flex-basis: 25px; }
  .subtitle { margin-top: 22px; font-size: 15.5px; }
  .date { margin-top: 31px; gap: 8px; font-size: clamp(17px, 5vw, 19px); }
  .date i { height: 20px; }
  .instruction { margin-top: 31px; font-size: 15px; }
  .actions { margin-top: 28px; max-width: 360px; column-gap: 8px; row-gap: 25px; }
  .icon-circle { width: 83px; height: 83px; flex-basis: 83px; }
  .icon-circle svg { width: 58px; height: 58px; }
  .action { gap: 8px; font-size: 14px; }
  .botanical { width: 220px; height: 169px; opacity: .77; }
}

@media (max-width: 355px) {
  .content { padding-left: 17px; padding-right: 17px; }
  .actions { column-gap: 2px; }
  .icon-circle { width: 76px; height: 76px; flex-basis: 76px; }
  .icon-circle svg { width: 53px; height: 53px; }
  .action { font-size: 13px; }
}

@media (min-width: 561px) {
  .invitation { margin-top: 24px; margin-bottom: 24px; min-height: calc(100vh - 48px); }
  .content { min-height: calc(100vh - 48px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .action { transition: none; }
}
