:root {
  --paper: #fffdf9;
  --paper-warm: #fbf7f0;
  --ink: #4c4034;
  --muted: #8d7b68;
  --gold: #a77b3e;
  --gold-deep: #8c642e;
  --gold-soft: #d8c5aa;
  --sage: #8f9a82;
  --line: rgba(167, 123, 62, 0.25);
  --shadow: 0 22px 80px rgba(76, 64, 52, 0.13);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 197, 170, 0.2), transparent 28rem),
    linear-gradient(180deg, #fffaf4 0%, var(--paper) 38%, var(--paper-warm) 100%);
  font-family: var(--sans);
  line-height: 1.65;
  letter-spacing: 0;
}

main > section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.hero {
  content-visibility: visible;
}

img {
  display: block;
  max-width: 100%;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 3rem));
  min-height: 76px;
  margin: 0 auto;
  padding: 0 1rem;
}

.brand-mini {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  z-index: 2;
  display: none;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

.brand-mini span {
  display: inline-block;
  margin: 0 -0.12em;
  font-size: 0.58em;
  vertical-align: middle;
}

.main-nav {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(6, auto);
  justify-content: center;
  gap: clamp(1.4rem, 3.4vw, 3.5rem);
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.main-nav a {
  padding: 0.6rem 0;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(700px, 100svh, 940px);
  overflow: hidden;
  isolation: isolate;
  background: #fdfaf6;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 54%;
  min-height: clamp(700px, 100svh, 940px);
  padding: 6.7rem clamp(2rem, 6vw, 7rem) 4rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.monogram {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  line-height: 0.86;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    conic-gradient(from 20deg, transparent, rgba(167, 123, 62, 0.45), transparent, rgba(167, 123, 62, 0.35), transparent) border-box;
}

.monogram.large {
  position: relative;
  width: clamp(116px, 10vw, 148px);
  height: clamp(116px, 10vw, 148px);
  margin-bottom: 1.25rem;
  border: 0;
  background: rgba(255, 253, 249, 0.28);
  box-shadow: inset 0 0 0 1px rgba(167, 123, 62, 0.66);
}

.monogram.large::before,
.monogram.large::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px dotted rgba(167, 123, 62, 0.72);
  border-radius: 50%;
  transform: rotate(9deg);
}

.monogram.large::after {
  inset: -13px 1px;
  border-style: dashed;
  border-color: rgba(167, 123, 62, 0.42);
  transform: rotate(-17deg);
}

.monogram span {
  font-size: 2rem;
}

.monogram.large span {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
}

.monogram small {
  font-size: 1rem;
  margin: -0.45rem 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.88rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0.09em;
}

h2 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: 0.24em;
}

.date-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.3vw, 1.8rem);
  letter-spacing: 0.32em;
}

.hero-countdown-label {
  margin: 1.55rem 0 0.75rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-timer {
  width: min(100%, 480px);
  margin-top: 0;
}

.hero-timer article {
  padding: 0 1rem;
}

.hero-timer strong {
  font-size: clamp(1.75rem, 2.8vw, 2.55rem);
}

.hero-timer span {
  font-size: 0.56rem;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  width: min(100%, 490px);
  margin-top: 1.55rem;
}

.hero-actions .gold-button,
.hero-actions .outline-button {
  min-height: 42px;
  margin: 0;
  padding: 0.7rem 1rem;
  font-size: 0.64rem;
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 253, 249, 0.74);
  font-size: 0.75rem;
  transform: translateX(-50%);
}

.date-line span {
  width: clamp(36px, 6vw, 72px);
  height: 1px;
  background: var(--gold-soft);
}

.section,
.section-soft {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) max(1.25rem, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(167, 123, 62, 0.14);
}

.section-soft {
  padding-top: 2.2rem;
  text-align: center;
  background: var(--paper);
}

.chevron {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 1.4rem;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 150px));
  justify-content: center;
  gap: 0;
  margin-top: 1rem;
}

.timer article {
  padding: 0 1.4rem;
  border-left: 1px solid var(--line);
}

.timer article:first-child {
  border-left: 0;
}

.timer strong {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.1;
}

.timer span,
.schedule p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-title {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin-bottom: 2.6rem;
  text-align: center;
}

.section-title span,
.section-title i {
  position: relative;
  color: var(--gold);
  font-size: 0.75rem;
}

.section-title span::before,
.section-title span::after,
.section-title i::before {
  position: relative;
  z-index: 2;
}

.section-title span::before,
.section-title span::after,
.section-title i::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 54px;
  height: 1px;
  background: var(--line);
}

.section-title span::before {
  right: calc(100% + 12px);
}

.section-title span::after,
.section-title i::after {
  left: calc(100% + 12px);
}

.section-title i {
  display: inline-grid;
  place-items: center;
}

.section-title i::before {
  color: var(--gold);
}

.section-title i::after {
  box-shadow: -66px 0 0 var(--line);
}

.align-left {
  justify-items: start;
  text-align: left;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.schedule article {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
}

.schedule article > i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--gold);
  font-size: 2rem;
}

.schedule time {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.12em;
}

.schedule p {
  margin: 0;
}

.story,
.location {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.2rem, 7vw, 6.5rem);
}

.story-photo {
  justify-self: center;
  width: min(410px, 100%);
  aspect-ratio: 0.92;
  padding: 0.7rem;
  border: 1px solid rgba(167, 123, 62, 0.18);
  border-radius: 48% 48% 8px 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.story-photo img {
  width: 100%;
  height: 100%;
  border-radius: 46% 46% 6px 6px;
  object-fit: cover;
  object-position: center 24%;
}

.story-copy {
  max-width: 500px;
  text-align: center;
}

.story-copy .align-left {
  justify-items: center;
  text-align: center;
}

.story-copy p {
  margin: 0 auto 1.25rem;
  max-width: 420px;
  color: #6f6256;
  font-family: var(--serif);
  font-size: 1rem;
}

.script,
.venue {
  color: var(--gold);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.gallery {
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 247, 240, 0.65));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-grid a {
  display: block;
  min-width: 0;
  height: clamp(220px, 24vw, 305px);
  overflow: hidden;
  border-radius: 2px;
  background: #eee4d5;
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  transform: scale(1.045);
}

.outline-button,
.gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.85rem 2.7rem;
  border: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.outline-button {
  margin-top: 1.35rem;
  color: var(--gold-deep);
  background: transparent;
}

.gold-button {
  color: #fffdf9;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  box-shadow: 0 12px 28px rgba(140, 100, 46, 0.18);
}

.gold-button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.outline-button:hover,
.gold-button:hover {
  transform: translateY(-1px);
}

.location {
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
}

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

.location-copy .align-left {
  justify-items: center;
  text-align: center;
}

.location-copy p {
  margin: 0 0 0.45rem;
  color: #6f6256;
  font-family: var(--serif);
}

.location-copy .gold-button {
  width: min(100%, 280px);
  margin-top: 1.35rem;
}

.map-card {
  position: relative;
  min-height: 275px;
  overflow: hidden;
  border: 1px solid rgba(143, 154, 130, 0.28);
  background: #eaf0e5;
}

.map-card iframe {
  display: block;
  width: 100%;
  min-height: 275px;
  height: 100%;
  border: 0;
  filter: saturate(0.78) sepia(0.08) brightness(1.03);
}

.rsvp {
  overflow: hidden;
  text-align: center;
}

.rsvp-note {
  margin: -1.4rem 0 1.6rem;
  color: #6f6256;
  font-family: var(--serif);
}

.rsvp-form {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.2rem;
  width: min(760px, 100%);
  margin: 0 auto;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(167, 123, 62, 0.28);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  outline: 0;
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder,
.rsvp-form select {
  color: #a19282;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rsvp-form textarea,
.rsvp-form button,
.form-status {
  grid-column: 1 / -1;
}

.rsvp-form button {
  justify-self: center;
  min-width: min(320px, 100%);
  margin-top: 0.3rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--gold-deep);
  font-family: var(--serif);
}

.form-status.is-error {
  color: #9b3f32;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 2.2rem 1.25rem 3rem;
  border-top: 1px solid rgba(167, 123, 62, 0.14);
  text-align: center;
}

.site-footer p {
  margin: 0.5rem 0 0;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer time,
.site-footer small {
  color: var(--gold);
  font-family: var(--serif);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.socials {
  display: flex;
  gap: 0.85rem;
  margin: 0.65rem 0;
}

.socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    width: 100%;
    min-height: 64px;
    padding: 0.55rem 1rem;
  }

  .brand-mini {
    display: none;
  }

  .menu-toggle {
    grid-column: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--gold-deep);
    background: transparent;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0 0 8px 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a,
  .main-nav a:nth-child(4) {
    grid-column: auto;
    padding: 0.86rem 1rem;
    border-bottom: 1px solid rgba(167, 123, 62, 0.12);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: max(700px, 100svh);
  }

  .hero-copy {
    justify-content: flex-start;
    width: 100%;
    min-height: max(700px, 100svh);
    padding: 5.35rem 1.25rem 15rem;
  }

  .hero-bg img {
    object-position: center top;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.8rem);
    letter-spacing: 0.08em;
  }

  .date-line {
    gap: 0.65rem;
    letter-spacing: 0.22em;
  }

  .hero-scroll {
    display: none;
  }

  .section,
  .section-soft {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

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

  .timer article {
    padding: 0 0.65rem;
  }

  .schedule-grid {
    grid-template-columns: repeat(5, minmax(104px, 1fr));
    overflow-x: auto;
    padding: 0 0.2rem 0.8rem;
    scroll-snap-type: x mandatory;
  }

  .schedule article {
    scroll-snap-align: center;
  }

  .story,
  .location {
    grid-template-columns: 1fr;
  }

  .story-copy {
    justify-self: center;
  }

  .location {
    gap: 2rem;
  }

  .map-card {
    min-height: 235px;
  }

  .map-card iframe {
    min-height: 235px;
  }

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

  .gallery-grid a {
    height: clamp(180px, 58vw, 320px);
  }

  .gallery-grid a:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    line-height: 1.55;
  }

  .hero {
    min-height: max(680px, 100svh);
  }

  .hero-copy {
    min-height: max(680px, 100svh);
    padding: 4.65rem 1rem 13rem;
  }

  .monogram.large {
    width: 94px;
    height: 94px;
    margin-bottom: 0.9rem;
  }

  .monogram.large span {
    font-size: 2.25rem;
  }

  .eyebrow {
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.26em;
  }

  h1 {
    font-size: clamp(2.25rem, 10.5vw, 3rem);
  }

  .date-line {
    margin-top: 0.85rem;
    font-size: 0.95rem;
  }

  .date-line span {
    width: 28px;
  }

  .timer:not(.hero-timer) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 0;
  }

  .timer:not(.hero-timer) article:nth-child(3) {
    border-left: 0;
  }

  .hero-countdown-label {
    margin-top: 0.95rem;
    margin-bottom: 0.5rem;
    font-size: 0.54rem;
  }

  .hero-timer article {
    padding: 0 0.45rem;
  }

  .hero-timer strong {
    font-size: 1.45rem;
  }

  .hero-timer span {
    font-size: 0.46rem;
    letter-spacing: 0.12em;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    width: min(100%, 360px);
    margin-top: 0.95rem;
  }

  .hero-actions .gold-button,
  .hero-actions .outline-button {
    min-height: 37px;
    padding: 0.55rem 1rem;
    font-size: 0.55rem;
  }

  .story-photo {
    border-radius: 44% 44% 8px 8px;
  }

  .gallery-grid {
    gap: 0.55rem;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .site-footer small {
    max-width: 280px;
    line-height: 1.8;
  }
}
@media (max-width: 600px) {
  html { scrollbar-width: none; }
  body::-webkit-scrollbar { display: none; }
}
