
:root {
  --paper: #f8f1e8;
  --paper-deep: #eadccf;
  --ink: #4d2d2d;
  --wine: #7d2735;
  --rose: #c9858f;
  --sage: #7c8069;
  --line: rgba(125, 39, 53, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 52px 24px 96px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.72), transparent 40%),
    linear-gradient(150deg, #f9f2e9 0%, #edd8d3 50%, #e2c2c3 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  width: 72vw;
  max-width: 460px;
  aspect-ratio: 0.72;
  border: 1px solid rgba(125, 39, 53, 0.22);
  border-radius: 50% 50% 8px 8px;
  content: "";
}

.hero::after {
  width: calc(72vw - 18px);
  border-color: rgba(255, 255, 255, 0.7);
}

.eyebrow,
.section-kicker {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.eyebrow {
  position: absolute;
  top: 34px;
  color: var(--wine);
}

.seal {
  position: absolute;
  top: 76px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--wine);
  color: var(--wine);
  font-size: 22px;
  transform: rotate(5deg);
}

.hero-copy {
  width: 100%;
  text-align: center;
}

.pretitle {
  margin: 0 0 24px;
  font-size: 13px;
  letter-spacing: 0.18em;
}

h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--wine);
  font-size: clamp(38px, 12vw, 72px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.ampersand {
  margin: 0 14px;
  color: var(--rose);
  font-family: Baskerville, Georgia, serif;
  font-size: 0.75em;
  font-style: italic;
}

.date-line {
  margin: 30px 0 12px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.32em;
}

.location-line {
  margin: 0;
  color: rgba(77, 45, 45, 0.72);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(77, 45, 45, 0.6);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.scroll-cue i {
  width: 1px;
  height: 32px;
  background: var(--wine);
  animation: breathe 1.8s ease-in-out infinite;
}

.petal {
  position: absolute;
  z-index: -1;
  width: 92px;
  height: 140px;
  border-radius: 100% 0 100% 0;
  background: rgba(125, 39, 53, 0.08);
  transform: rotate(32deg);
}

.petal-one {
  top: 17%;
  left: -42px;
}

.petal-two {
  right: -52px;
  bottom: 14%;
  transform: rotate(208deg);
}

.section {
  padding: 88px 24px;
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--rose);
}

h2 {
  margin: 0;
  color: var(--wine);
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.letter {
  position: relative;
  background:
    linear-gradient(rgba(125, 39, 53, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  text-align: center;
}

.letter::before {
  position: absolute;
  inset: 22px;
  border: 1px solid var(--line);
  content: "";
  pointer-events: none;
}

.letter h2 {
  margin-bottom: 24px;
}

.letter p:not(.section-kicker, .signature) {
  margin: 16px 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 2.05;
}

.flourish {
  margin: 0 0 28px;
  color: var(--rose);
  font-size: 8px;
}

.signature {
  margin: 32px 0 0;
  color: var(--wine);
  font-family: Baskerville, Georgia, serif;
  font-size: 20px;
  font-style: italic;
}

.date-section {
  display: grid;
  gap: 38px;
  align-items: center;
  background: var(--wine);
  color: #f8f1e8;
}

.calendar-card {
  width: min(100%, 320px);
  margin: auto;
  padding: 22px 24px;
  border: 1px solid rgba(248, 241, 232, 0.55);
  text-align: center;
}

.calendar-card > p {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(248, 241, 232, 0.3);
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.42em;
}

.calendar-card strong {
  display: block;
  font-family: Baskerville, Georgia, serif;
  font-size: 112px;
  font-weight: 400;
  line-height: 1;
}

.calendar-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(248, 241, 232, 0.3);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.date-copy {
  text-align: center;
}

.date-section h2 {
  color: #fff9f2;
}

.date-copy > p:not(.section-kicker) {
  margin: 18px 0 0;
  letter-spacing: 0.12em;
}

.date-copy .muted {
  color: rgba(248, 241, 232, 0.64);
  font-size: 13px;
}

.text-link {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.venue {
  position: relative;
  background: #eee5db;
  text-align: center;
}

.venue::before {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 1px;
  height: 68px;
  background: var(--rose);
  content: "";
}

.venue-mark {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 32px auto 24px;
  place-items: center;
  border: 1px solid var(--wine);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.venue-mark span {
  width: 16px;
  height: 16px;
  border: 1px solid var(--wine);
  border-radius: 50%;
}

.address {
  margin: 0 0 30px;
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 2;
}

.primary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: var(--wine);
  color: #fff9f2;
  font-size: 13px;
  letter-spacing: 0.16em;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.primary-button:active {
  transform: scale(0.97);
}

.rsvp {
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 133, 143, 0.16), transparent 26%),
    #fbf7f1;
}

.rsvp-intro {
  max-width: 560px;
  margin: 0 auto 38px;
  text-align: center;
}

.rsvp-intro > p:last-child {
  margin: 18px 0 0;
  color: rgba(77, 45, 45, 0.7);
  font-size: 14px;
  line-height: 1.8;
}

form {
  display: grid;
  max-width: 560px;
  margin: auto;
  gap: 24px;
}

form > label,
fieldset {
  display: grid;
  gap: 10px;
}

form > label > span,
legend {
  font-size: 13px;
  letter-spacing: 0.08em;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

input,
select {
  height: 46px;
}

textarea {
  padding: 12px 0;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--wine);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.attendance-options label {
  display: grid;
  gap: 6px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  text-align: center;
  cursor: pointer;
}

.attendance-options label.selected {
  border-color: var(--wine);
  background: rgba(125, 39, 53, 0.06);
}

.attendance-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.attendance-options strong {
  color: var(--wine);
  font-size: 15px;
  font-weight: 500;
}

.attendance-options small {
  color: rgba(77, 45, 45, 0.58);
  font-size: 11px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.submit-button {
  width: 100%;
  margin-top: 8px;
  border-radius: 2px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.privacy-note,
.form-error {
  margin: -12px 0 0;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.privacy-note {
  color: rgba(77, 45, 45, 0.5);
}

.form-error {
  color: var(--wine);
}

.success-card {
  max-width: 560px;
  margin: auto;
  padding: 42px 24px;
  border: 1px solid var(--line);
  text-align: center;
}

.success-card span {
  display: grid;
  width: 46px;
  height: 46px;
  margin: auto;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: white;
}

.success-card h3 {
  margin: 20px 0 8px;
  color: var(--wine);
  font-size: 24px;
  font-weight: 500;
}

.success-card p {
  margin: 0;
  color: rgba(77, 45, 45, 0.64);
}

footer {
  padding: 72px 24px 98px;
  background: #52222d;
  color: rgba(255, 249, 242, 0.76);
  text-align: center;
}

footer p {
  margin: 10px 0;
  font-size: 13px;
  letter-spacing: 0.1em;
}

footer .footer-names {
  margin-bottom: 18px;
  color: #fff9f2;
  font-family: Baskerville, Georgia, serif;
  font-size: 30px;
  font-style: italic;
}

footer span {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
}

.mobile-rsvp {
  position: fixed;
  z-index: 10;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 10px 28px rgba(82, 34, 45, 0.26);
  color: white;
  font-size: 11px;
  letter-spacing: 0.08em;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.65);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (min-width: 720px) {
  .section {
    padding: 120px max(8vw, 48px);
  }

  .date-section {
    grid-template-columns: minmax(300px, 420px) minmax(300px, 480px);
    justify-content: center;
    gap: 9vw;
  }

  .date-copy {
    text-align: left;
  }

  .hero::before {
    max-width: 530px;
  }

  .hero::after {
    max-width: 512px;
  }

  .mobile-rsvp {
    right: 30px;
    bottom: 30px;
    width: 72px;
    height: 72px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
