:root {
  color-scheme: light;
  --maroon: #7b1f35;
  --maroon-dark: #4c1021;
  --gold: #c9943a;
  --green: #315b48;
  --ink: #2f2225;
  --muted: #6f6060;
  --paper: #fff9ee;
  --rose: #f8e7df;
  --line: rgba(123, 31, 53, 0.18);
  --shadow: 0 24px 70px rgba(76, 16, 33, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(123, 31, 53, 0.08), transparent 36%),
    linear-gradient(245deg, rgba(49, 91, 72, 0.11), transparent 38%),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

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

.hero {
  min-height: 94vh;
  padding: 18px clamp(18px, 4vw, 56px) 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 148, 58, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 148, 58, 0.11) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.topbar {
  width: min(1120px, 100%);
  margin: 0 auto 54px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.brand {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--maroon);
  font-weight: 700;
  background: rgba(255, 249, 238, 0.72);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--green);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.hero-grid {
  width: min(1120px, 100%);
  min-height: 68vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.invite-panel {
  padding-block: 20px;
}

.eyebrow,
.section-label,
.date-kicker,
.venue-date {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 770px;
  color: var(--maroon-dark);
  font-size: clamp(3.1rem, 9vw, 7rem);
  line-height: 0.92;
  font-weight: 500;
}

.blessing {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.names {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  color: var(--maroon);
}

.names span {
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1;
}

.names small {
  color: var(--green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.venue-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.venue-link:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--maroon);
  color: #fffaf1;
}

.secondary,
.venue-link {
  border: 1px solid var(--line);
  color: var(--maroon);
  background: rgba(255, 249, 238, 0.72);
}

.date-panel {
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(255, 249, 238, 0.4), rgba(255, 249, 238, 0.92)),
    #fffaf1;
  box-shadow: var(--shadow);
}

.arch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: min(78%, 360px);
  transform: translateX(-50%);
  opacity: 0.98;
}

.date-panel time {
  display: block;
  color: var(--maroon-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.date-divider {
  width: 100%;
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.place {
  margin: 22px 0 0;
  color: var(--green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
}

.section-heading {
  margin-bottom: 26px;
}

h2 {
  margin: 0;
  color: var(--maroon-dark);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 500;
}

h3 {
  margin: 0;
  color: var(--maroon-dark);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.08;
  font-weight: 500;
}

h4 {
  margin: 0;
  color: var(--maroon-dark);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  font-weight: 500;
}

.event-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.event-day,
.contact-card,
.phone-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 250, 241, 0.76);
}

.day-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.day-head p {
  margin: 0 0 8px;
  color: var(--green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline {
  margin: 20px 0 24px;
}

.timeline div {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(123, 31, 53, 0.12);
}

.timeline dt {
  color: var(--ink);
  font-size: 1.08rem;
}

.timeline dd {
  margin: 0;
  color: var(--maroon);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.event-location {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

address {
  margin: 14px 0 18px;
  color: var(--muted);
  font-style: normal;
  font-size: 1.05rem;
}

.contacts-section {
  background:
    linear-gradient(90deg, rgba(49, 91, 72, 0.1), transparent 45%),
    #fff3e6;
}

.contact-card p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}

.phone-panel {
  margin-top: 18px;
  background:
    linear-gradient(130deg, rgba(123, 31, 53, 0.95), rgba(49, 91, 72, 0.94)),
    var(--maroon);
}

.phone-panel h3 {
  margin-bottom: 18px;
  color: #fffaf1;
}

.phone-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.phone-list a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 241, 0.28);
  border-radius: 8px;
  color: #fffaf1;
  background: rgba(255, 255, 255, 0.08);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.footer {
  min-height: 74px;
  padding: 20px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  background: #fffaf1;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--maroon);
  font-weight: 700;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-bottom: 44px;
  }

  .topbar {
    margin-bottom: 30px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.72rem;
  }

  .hero-grid,
  .two-column,
  .event-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .date-panel {
    min-height: 440px;
  }

  .phone-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 12px;
  }

  .brand {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-end;
  }

  h1 {
    font-size: 3.6rem;
  }

  .names {
    display: grid;
    gap: 6px;
  }

  .names span {
    font-size: 2.55rem;
  }

  .hero-actions,
  .button,
  .venue-link {
    width: 100%;
  }

  .date-panel {
    min-height: 390px;
    padding-top: 180px;
  }

  .arch {
    width: min(86%, 300px);
  }

  .timeline div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px 0;
  }

  .timeline dd {
    white-space: normal;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
