:root {
  --ivory: #fffaf0;
  --cream: #f8efdE;
  --beige: #e8d9bd;
  --soft-gold: #b9965a;
  --deep-gold: #8b6b34;
  --ink: #332b22;
  --muted: #756857;
  --paper: rgba(255, 250, 240, 0.94);
  --line: rgba(185, 150, 90, 0.42);
  --shadow: 0 24px 70px rgba(61, 45, 28, 0.14);
  --serif: Georgia, "Times New Roman", Times, serif;
  --script: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  --sans: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ivory);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(185, 150, 90, 0.12), transparent 28rem),
    linear-gradient(180deg, var(--ivory), #f4ead8 52%, var(--ivory));
  font-family: var(--sans);
  line-height: 1.6;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(185, 150, 90, 0.18);
  border-radius: 50%;
  content: "";
}

body::before {
  top: -8rem;
  right: -7rem;
}

body::after {
  bottom: -8rem;
  left: -7rem;
}

.invitation-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-media-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #d9ccb6;
}

.hero-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 17, 12, 0.04), rgba(28, 20, 13, 0.18) 45%, rgba(26, 18, 11, 0.74)),
    linear-gradient(90deg, rgba(255, 250, 240, 0.16), transparent 28%, transparent 72%, rgba(255, 250, 240, 0.16));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 42vh 1.35rem 3rem;
  color: #fff8eb;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.eyebrow,
.section-kicker,
.intro {
  margin: 0;
  color: var(--deep-gold);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4dfb4;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  margin-top: 0.6rem;
  font-size: clamp(3rem, 16vw, 5.8rem);
  line-height: 0.9;
}

.hero-date {
  margin: 1rem 0 0;
  font-family: var(--script);
  font-size: clamp(1.35rem, 6vw, 2rem);
}

.gold-line {
  width: min(12rem, 48vw);
  height: 1px;
  margin: 1.35rem auto 0;
  background: linear-gradient(90deg, transparent, var(--soft-gold), transparent);
}

.details-section,
.countdown-section,
.program-section,
.closing-section {
  position: relative;
  padding: 4.5rem 1.25rem;
  text-align: center;
}

.details-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(248, 239, 222, 0.88)),
    var(--ivory);
}

.floral-mark {
  width: 9.5rem;
  height: 4.5rem;
  margin: 0 auto 1.35rem;
  border-top: 1px solid var(--line);
  border-radius: 50%;
}

.floral-mark::before,
.floral-mark::after {
  display: inline-block;
  width: 3.2rem;
  height: 1.8rem;
  margin-top: -0.35rem;
  border: solid var(--line);
  border-width: 1px 0 0 1px;
  border-radius: 100% 0;
  content: "";
  transform: rotate(-18deg);
}

.floral-mark::after {
  border-width: 1px 1px 0 0;
  transform: rotate(18deg);
}

.intro {
  max-width: 22rem;
  margin: 0 auto 0.75rem;
  letter-spacing: 0.12em;
}

.details-section h2,
.program-section h2 {
  color: var(--ink);
}

.details-section h2 {
  font-family: var(--script);
  font-size: clamp(2.7rem, 13vw, 4.8rem);
  line-height: 1;
}

.detail-grid {
  display: grid;
  gap: 0.9rem;
  margin: 2.4rem auto 0;
  max-width: 34rem;
}

.detail-item {
  padding: 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(185, 150, 90, 0.2);
}

.detail-item span {
  display: block;
  color: var(--deep-gold);
  font-family: var(--serif);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.detail-item strong {
  display: block;
  margin-top: 0.32rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.detail-item small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.actions {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 24rem);
  margin: 2rem auto 0;
}

.button {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--soft-gold);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--soft-gold);
  color: #fffaf0;
}

.button-secondary {
  background: transparent;
}

.countdown-section {
  background: #f2e5cf;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.35rem auto 0;
  max-width: 35rem;
}

.countdown div {
  min-width: 0;
  padding: 0.9rem 0.35rem;
  border: 1px solid rgba(185, 150, 90, 0.38);
  background: rgba(255, 250, 240, 0.58);
}

.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 8vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;
}

.countdown span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.countdown-message {
  margin: 1.25rem auto 0;
  max-width: 26rem;
  color: var(--muted);
}

.program-section {
  background: var(--ivory);
}

.program-section h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.9rem, 8vw, 3rem);
}

.program-list {
  display: grid;
  gap: 0;
  margin: 2rem auto 0;
  max-width: 28rem;
  text-align: left;
}

.program-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.program-item:last-child {
  border-bottom: 1px solid var(--line);
}

.program-time {
  color: var(--deep-gold);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.program-title {
  color: var(--ink);
  font-size: 1rem;
}

.closing-section {
  padding-top: 3.5rem;
  background: linear-gradient(180deg, var(--ivory), var(--cream));
}

.closing-section p {
  max-width: 26rem;
  margin: 1.25rem auto 0;
  font-family: var(--script);
  font-size: clamp(1.8rem, 8vw, 3rem);
  line-height: 1.2;
}

@media (min-width: 680px) {
  body {
    padding: 2rem 1rem;
  }

  .invitation-shell {
    border: 1px solid rgba(185, 150, 90, 0.28);
  }

  .hero {
    min-height: 820px;
  }

  .details-section,
  .countdown-section,
  .program-section,
  .closing-section {
    padding-right: 3rem;
    padding-left: 3rem;
  }

  .detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
