:root {
  --bg: #f6f0e8;
  --surface: rgba(255, 250, 244, 0.88);
  --text: #4d3c2f;
  --muted: #7d6856;
  --line: rgba(145, 116, 84, 0.24);
  --gold: #b99663;
  --gold-deep: #8f6d3d;
  --shadow: 0 24px 70px rgba(118, 95, 69, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(180deg, #fbf7f1 0%, #f4ecdf 45%, #efe3d2 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
iframe { width: 100%; border: 0; min-height: 340px; border-radius: var(--radius-md); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell { position: relative; overflow: hidden; }
.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
}
.site-shell::before { top: -10vw; right: -8vw; background: radial-gradient(circle, rgba(218, 186, 141, 0.45), transparent 68%); }
.site-shell::after { bottom: -14vw; left: -8vw; background: radial-gradient(circle, rgba(229, 211, 182, 0.4), transparent 65%); }

main {
  padding-top: 6.75rem;
}

.site-header, .section, .site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 1rem auto 0;
  padding: 0.9rem 1.4rem;
  background: rgba(255, 248, 239, 0.84);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(185, 150, 99, 0.18);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(123, 97, 69, 0.14);
}

.brand, h1, h2, h3, .eyebrow, .button { font-family: inherit; }
.brand {
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  flex: 0 1 auto;
  gap: 1.7rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 1.25rem;
}
.site-nav a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.85rem;
  width: 1px;
  height: 1.05rem;
  background: rgba(125, 104, 86, 0.28);
  transform: translateY(-50%);
}
.nav-toggle { display: none; border: 0; background: transparent; padding: 0; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); }

.section { padding: 3rem 0; scroll-margin-top: 5rem; }
.hero { display: grid; grid-template-columns: 1.0fr 1.15fr; align-items: center; gap: 3rem; min-height: calc(100vh - 8rem); }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5.8rem);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hero-text, .section-heading p, .panel p, .venue-card p, .story-copy p, .faq-item p, .timeline-content p { color: var(--muted); line-height: 1.7; }
.hero-text { margin: 1.5rem 0 2rem; max-width: 41rem; font-size: 1.55rem; }
.hero-text-line { display: block; }
.hero-text-line:first-child { white-space: nowrap; }

@media (max-width: 760px) {
  .hero-text { max-width: 100%; }
  .hero-text-line:first-child { white-space: normal; }
}
.eyebrow { margin: 0 0 0.7rem; color: var(--gold-deep); font-size: 1.55rem; font-weight: 900; letter-spacing: 0.02em; }
.eyebrow.hero-eyebrow {
  font-size: 1.55rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.hero-divider {
  display: inline-block;
  margin: 0 0.65rem;
}
.hero-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hashtag { margin-top: 3rem; color: var(--gold-deep); letter-spacing: 0.07em; font-size: 1.35rem; font-weight: 900;
   }
.hero-divider-line {
  width: 30rem;
  height: 1px;
  margin: 1.2rem 0 2rem;
  background: rgba(143, 109, 61, 0.35);
}
.photo-frame, .panel, .venue-card, .map-card, .faq-item, .timeline-item, .gallery-placeholder div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.photo-frame { padding: 0; border: 0; box-shadow: none; transform: rotate(2deg); filter: drop-shadow(0 26px 55px rgba(77, 60, 47, 0.35)); }
.photo-frame img { width: 100%; border-radius: calc(var(--radius-lg) - 10px); }

.two-column-panel, .story-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.section-label { grid-column: 1 / -1; margin-bottom: -0.1rem; }
.panel, .map-card { padding: 2rem; }
.venue-card { padding: 2rem 2rem 1.5rem; }
.panel-accent { background: linear-gradient(180deg, rgba(255, 249, 241, 0.95), rgba(244, 231, 214, 0.95)); }
.two-column-panel > .panel {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
}
.two-column-panel > .panel:first-child {
  padding-bottom: 1rem;
}
.panel-accent#invitation { background: var(--surface); }
.panel-accent#invitation h2 {
  width: 100%;
  text-align: left;
}
.panel-wide { max-width: 860px; margin: 0 auto; text-align: center; }
#gifts .section-heading {
  max-width: none;
}
#gifts .section-heading h2 {
  white-space: nowrap;
}
#contact .section-heading {
  max-width: none;
}
#contact .section-heading h2 {
  white-space: nowrap;
}
.gift-card {
  width: 100%;
}
.photo-share-card {
  width: 100%;
}
.contact-card {
  width: 100%;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 1rem 3.5rem;
  margin-top: 1.5rem;
}
.info-grid > div {
  justify-self: stretch;
  text-align: left;
}
.info-grid dt { font-family: inherit; font-size: 1.2rem; }
.info-grid dd { margin: 0.35rem 0 0; color: var(--muted); }
.info-photo-block {
  width: min(100%, 320px);
  margin: 1.1rem auto 0;
}
.info-photo-block img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 6;
  object-fit: cover;
  border-radius: calc(var(--radius-md) + 6px);
}

.invitation-preview {
  width: min(100%, 320px);
  margin: 1.1rem auto 0;
  border-radius: calc(var(--radius-md) + 6px);
  overflow: hidden;
  border: 1px solid rgba(185, 150, 99, 0.25);
  box-shadow: 0 14px 30px rgba(123, 97, 69, 0.12);
}
.invitation-preview a {
  display: block;
  cursor: zoom-in;
}
.invitation-preview img {
  width: 100%;
  aspect-ratio: 4 / 6;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.invitation-preview a:hover img,
.invitation-preview a:focus-visible img {
  transform: scale(1.02);
}
#invitation > .button {
  justify-self: center;
  align-self: center;
  margin-top: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(53, 37, 19, 0.72);
  backdrop-filter: blur(6px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  max-width: 92vw;
  max-height: 92vh;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.lightbox-image {
  display: block;
  width: auto;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: calc(var(--radius-md) + 4px);
  box-shadow: 0 28px 72px rgba(53, 37, 19, 0.26);
}
.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(77, 60, 47, 0.82);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(53, 37, 19, 0.25);
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(77, 60, 47, 0.95);
}

.section-soft { position: relative; }
.section-soft::before {
  content: "";
  position: absolute;
  inset: 1.5rem 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.6), rgba(238, 225, 205, 0.55));
  border-top: 1px solid rgba(185, 150, 99, 0.1);
  border-bottom: 1px solid rgba(185, 150, 99, 0.1);
}

section.section-soft:nth-of-type(odd)::before {
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}
#photo-sharing::before {
  display: none;
}

.section-heading { max-width: 40rem; margin-bottom: 2.5rem; }
.section-heading h2, .panel h2, .story-copy h2, .story-heading h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.5rem); line-height: 1.05; }

.venue-grid, .map-grid, .dress-grid, .logistics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.venue-card { display: flex; flex-direction: column; }
.card-image {
  margin: -0.4rem -0.4rem 1.5rem;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 1 / 1;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0;
}
.card-copy .eyebrow,
.card-copy h3,
.card-copy p { margin: 0; }

.program-timeline {
  position: relative;
  width: min(100%, 700px);
  margin: 0 auto;
  padding: 1rem 0 1rem;
}
.program-timeline::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: calc(1.125rem - 1px);
  width: 2px;
  background: linear-gradient(180deg, rgba(196, 164, 117, 0.12), rgba(185, 150, 99, 0.9), rgba(196, 164, 117, 0.12));
  z-index: 0;
}
.timeline {
  position: relative;
  display: grid;
  gap: 1.25rem;
  z-index: 1;
}
.timeline-item {
  column-gap: 1.9rem;
  min-height: 5.2rem;
}
.program-timeline .timeline-item {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.timeline-time,
.timeline-title {
  display: inline-flex;
  align-items: center;
}
.timeline-time {
  min-width: 6.7rem;
}
.timeline-title {
  font-size: clamp(1.18rem, 1.55vw, 1.65rem);
}
.timeline-separator {
  flex: 0 0 1px;
  align-self: stretch;
  background: rgba(185, 150, 99, 0.22);
}
.program-timeline .timeline-card {
  background: #fcf8f2;
  box-shadow: 0 18px 32px rgba(126, 98, 68, 0.08);
}
.timeline-content h3, .faq-item h3, .venue-card h3, .map-card h3, .panel h3 { margin: 0 0 0.4rem; font-size: 1.8rem; font-weight: 600; }

.story-section {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  grid-template-areas:
    "heading ."
    "copy timeline";
  gap: 2rem 5rem;
  align-items: start;
}
.story-heading {
  grid-area: heading;
  max-width: 36rem;
  padding-top: 0.5rem;
}
.story-heading .eyebrow {
  margin-bottom: 0.7rem;
}
.story-copy {
  grid-area: copy;
  max-width: 34.75rem;
}
.story-text {
  display: grid;
  gap: 1.3rem;
}
.story-text p {
  margin: 0;
  color: var(--muted);
  font-size: 1.24rem;
  line-height: 1.85;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}
.story-timeline {
  grid-area: timeline;
  position: relative;
  align-self: center;
  padding: 1rem 0 1rem;
}
.story-timeline::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: calc(1.125rem - 1px);
  width: 2px;
  background: linear-gradient(180deg, rgba(196, 164, 117, 0.12), rgba(185, 150, 99, 0.9), rgba(196, 164, 117, 0.12));
  z-index: 0;
}
.story-milestones {
  position: relative;
  display: grid;
  gap: 1.25rem;
  z-index: 1;
}
.milestone {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: center;
  column-gap: 1.55rem;
  min-height: 5.2rem;
}
.milestone::before {
  content: "";
  grid-column: 1;
  justify-self: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #d0aa6f 0%, #b98f4d 100%);
  box-shadow: 0 6px 14px rgba(126, 98, 68, 0.18);
  z-index: 2;
}
.milestone-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  grid-column: 2;
  min-height: 5.2rem;
  padding: 1.25rem 1.55rem;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(251, 246, 239, 0.96));
  border: 1px solid rgba(185, 150, 99, 0.18);
  border-radius: 1.5rem;
  box-shadow: 0 18px 38px rgba(126, 98, 68, 0.1);
  font-size: clamp(1.15rem, 1.35vw, 1.45rem);
  line-height: 1.35;
  color: var(--text);
}
.milestone-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1.55rem;
  width: 1.55rem;
  height: 1px;
  background: rgba(185, 150, 99, 0.55);
  transform: translateY(-50%);
}
.milestone-date,
.milestone-title {
  display: inline-flex;
  align-items: center;
}
.milestone-date {
  flex: 0 0 auto;
  min-width: 6.7rem;
  color: var(--gold-deep);
  font-size: clamp(1.15rem, 1.5vw, 1.55rem);
  font-weight: 600;
  white-space: nowrap;
}
.milestone-title {
  min-width: 0;
  font-size: clamp(1.18rem, 1.55vw, 1.65rem);
}
.milestone-separator {
  flex: 0 0 1px;
  align-self: stretch;
  background: rgba(185, 150, 99, 0.25);
}

.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.faq-item { padding: 1.5rem; }

.inline-link { color: var(--gold-deep); word-break: break-word; }

.gallery-placeholder { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 1rem; }
.gallery-placeholder div {
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(255, 252, 247, 0.8), rgba(239, 225, 203, 0.8)),
    repeating-linear-gradient(-45deg, transparent 0, transparent 12px, rgba(185, 150, 99, 0.06) 12px, rgba(185, 150, 99, 0.06) 24px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, var(--gold) 0%, #d7bc8f 100%); color: #fff9f2; box-shadow: 0 18px 32px rgba(170, 135, 87, 0.25); }
.button-secondary { background: rgba(255, 252, 247, 0.8); border-color: rgba(185, 150, 99, 0.24); }

.site-footer { padding: 1rem 0 2.5rem; text-align: center; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero, .two-column-panel, .story-section, .venue-grid, .map-grid, .dress-grid, .logistics-grid, .faq-list { grid-template-columns: 1fr; }
  .story-section {
    grid-template-areas:
      "heading"
      "copy"
      "timeline";
  }
  .gallery-placeholder { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 3rem; }
  .invitation-preview { width: min(100%, 420px); }
  .info-photo-block { max-width: 420px; }
  .story-copy { max-width: none; }
  .story-heading { max-width: none; padding-top: 0; }
  .story-timeline {
    max-width: 36rem;
  }
}

@media (max-width: 760px) {
  main { padding-top: 6rem; }
  .site-header {
    top: 0;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 1.4rem), 920px);
    margin-top: 0.7rem;
    border-radius: 26px;
  }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: 0;
    display: none;
    flex: initial;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 248, 239, 0.96);
    border: 1px solid rgba(185, 150, 99, 0.18);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(112, 86, 57, 0.12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a + a::before {
    display: none;
  }
  #invitation .button {
    margin-top: 1rem;
  }
  .brand { font-size: 1.05rem; letter-spacing: 0.14em; }
  .program-timeline {
    width: min(100%, 36rem);
  }
  .info-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; scroll-margin-top: 4rem; }
  .hero {
    gap: 2rem;
    padding-top: 2rem;
  }
  .hero-copy {
    min-width: 0;
  }
  .eyebrow.hero-eyebrow {
    max-width: 100%;
    font-size: 1.25rem;
    line-height: 1.45;
  }
  .hero-divider-line {
    width: 100%;
  }
  .hero-copy h1 {
    font-size: clamp(2.15rem, 9vw, 3.4rem);
    line-height: 1.05;
    white-space: normal;
  }
  .hero-text {
    max-width: 100%;
    margin: 1.2rem 0 1.8rem;
    font-size: 1.22rem;
    line-height: 1.58;
  }
  .hero-text-line {
    display: inline;
  }
  .hero-text-line:first-child {
    white-space: normal;
  }
  #gifts .section-heading h2 {
    white-space: normal;
  }
  #contact .section-heading h2 {
    white-space: normal;
  }
  .story-text p {
    line-height: 1.7;
    text-align: left;
  }
  .story-timeline,
  .program-timeline {
    max-width: none;
  }
  .program-timeline::before { left: calc(1.125rem - 1px); }
  .timeline {
    gap: 1.25rem;
  }
  .timeline-item {
    min-height: 4.1rem;
  }
  .timeline-card {
    padding: 0.95rem 1.1rem;
    gap: 0.95rem;
  }
  .timeline-time {
    min-width: 5.4rem;
    font-size: 1.05rem;
  }
  .timeline-title {
    font-size: 1.12rem;
  }
  .timeline-separator {
    align-self: stretch;
  }
  .story-timeline::before { left: calc(1.125rem - 1px); }
  .story-milestones { gap: 1.25rem; }
  .milestone {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    column-gap: 1.1rem;
    min-height: 4.1rem;
  }
  .milestone::before {
    width: 1rem;
    height: 1rem;
  }
  .milestone-card {
    padding: 1.05rem 1.15rem;
    font-size: 1.08rem;
    gap: 0.95rem;
  }
  .milestone-card::before {
    left: -1.1rem;
    width: 1.1rem;
  }
  .milestone-date {
    min-width: 5.4rem;
    font-size: 1.05rem;
  }
  .milestone-title {
    font-size: 1.12rem;
  }
}
