@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@400;500&display=swap");

:root {
  --paper: #f6e8d8;
  --paper-deep: #eee0cd;
  --ink: #4b2f22;
  --rust: #87331f;
  --gold: #bf7a3b;
  --olive: #606044;
  --line: rgba(143, 53, 31, 0.32);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(143, 53, 31, 0.045) 0.65px, transparent 0.65px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 40%, rgba(188, 121, 59, 0.025));
  background-size: 4px 4px, 100% 100%;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 239, 227, 0.96);
}

.nav-wrap {
  width: min(980px, calc(100% - 52px));
  min-height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monogram {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2.2vw, 32px);
}

.site-nav a {
  position: relative;
  color: #5f3022;
  font-family: var(--serif);
  font-size: clamp(15px, 1.2vw, 18px);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="location"]::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--rust);
  background: transparent;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100svh - 60px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--rust);
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 1;
  top: -11vh;
  width: min(680px, calc(100% - 48px));
  padding: 50px 24px;
  text-align: center;
  text-shadow: none;
  animation: reveal 900ms ease both;
}

.eyebrow,
.date,
.location {
  margin: 0;
  font-family: var(--sans);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero .eyebrow {
  font-size: clamp(15px, 1.3vw, 19px);
}

.couple-names {
  margin: 18px 0;
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 0.92;
  text-transform: uppercase;
}

.couple-names em {
  display: block;
  margin: 16px 0;
  font-size: 0.64em;
  font-weight: 400;
  text-transform: lowercase;
}

.date {
  margin-top: 28px;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
}

.location {
  margin-top: 8px;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 600;
}

.countdown {
  margin: clamp(68px, 10vh, 108px) auto 0;
  font-family: var(--serif);
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown strong {
  display: inline;
  margin-right: 6px;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 38px;
  left: 50%;
  padding: 7px 16px;
  border: 1px solid currentColor;
  color: var(--rust);
  font-family: var(--sans);
  font-size: clamp(9px, 0.7vw, 11px);
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-scroll::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.home-intro {
  min-height: 45vh;
  padding: 76px 24px;
  display: grid;
  place-items: center;
  text-align: center;
}

.home-intro div {
  width: min(650px, 100%);
}

.home-intro h2 {
  margin: 0 0 22px;
  color: var(--rust);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
}

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 22px;
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: clamp(11px, 0.75vw, 13px);
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.button:hover {
  color: var(--paper);
  background: var(--rust);
}

.page-shell {
  position: relative;
  min-height: calc(100svh - 60px);
  padding: clamp(48px, 5vw, 82px) clamp(28px, 5vw, 80px) clamp(68px, 7vw, 108px);
  overflow: hidden;
  scroll-margin-top: 60px;
  font-size: clamp(16px, 1.15vw, 19px);
}

.hero,
.home-intro {
  scroll-margin-top: 60px;
}

.page-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.page-heading {
  margin-bottom: 34px;
  text-align: center;
}

.page-heading h1,
.page-heading h2 {
  margin: 0;
  color: var(--rust);
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(370px, 82%);
  margin: 13px auto 0;
  color: var(--gold);
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.ornament span {
  font-size: 16px;
}

.detail-grid,
.dress-grid,
.registry-grid,
.rsvp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
}

.detail-copy h2,
.detail-copy h3,
.dress-panel h2,
.dress-panel h3,
.registry-card h2,
.registry-card h3 {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: clamp(19px, 1.45vw, 24px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-copy h3,
.dress-panel h3,
.registry-card h3,
.rsvp-note h3 {
  font-weight: 500;
}

.detail-list {
  display: grid;
  gap: 22px;
  margin: 22px 0;
}

.detail-item {
  padding-left: 24px;
  border-left: 1px solid var(--gold);
}

.detail-item p {
  margin: 0;
}

.detail-item strong {
  display: block;
  color: var(--rust);
  font-family: var(--sans);
  font-size: clamp(11px, 0.8vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--gold);
  padding: 8px;
}

.timeline {
  margin-top: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  text-align: center;
}

.timeline-heading {
  margin: 44px 0 0;
  color: var(--rust);
  font-size: clamp(18px, 1.4vw, 23px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.timeline div + div {
  border-left: 1px solid var(--line);
}

.timeline strong {
  display: block;
  color: var(--rust);
  font-family: var(--sans);
  font-size: clamp(11px, 0.8vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dress-lead,
.page-lead {
  width: min(660px, 100%);
  margin: -18px auto 34px;
  text-align: center;
}

.rsvp-deadline {
  font-size: clamp(17px, 1.5vw, 22px);
}

.dress-figure {
  aspect-ratio: 420 / 163;
  width: 86%;
  grid-column: 1 / -1;
  justify-self: center;
  display: grid;
  place-items: end center;
  padding: 0;
  color: transparent;
  background: url("Assets/dress-figures.png") center bottom / cover no-repeat;
}

.dress-figure p {
  display: none;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dress-panel {
  min-height: 100%;
  padding: 24px 30px;
  border: 0;
}

.dress-panel--divided {
  border-left: 1px solid var(--line);
}

.dress-panel--full {
  grid-column: 1 / -1;
  width: min(900px, 100%);
  justify-self: center;
}

.dress-panel--color {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.dress-panel--color .swatches {
  justify-content: center;
}

.dress-panel--note {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 22px 0;
}

.swatch {
  width: 38px;
  height: 38px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.faq-list {
  width: min(850px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

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

.faq-question {
  width: 100%;
  padding: 15px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  color: var(--rust);
  font-size: 24px;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  display: none;
  max-width: 700px;
  padding: 0 30px 20px 4px;
}

.faq-answer.open {
  display: block;
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.photo-gallery {
  width: min(920px, 100%);
  margin: 0 auto;
}

.gallery-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.gallery-slide,
.gallery-slide img {
  width: 100%;
  height: 100%;
}

.gallery-slide {
  margin: 0;
}

.gallery-slide img {
  object-fit: cover;
}

.gallery-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 248, 239, 0.72);
  border-radius: 50%;
  color: #fff8ef;
  background: rgba(75, 47, 34, 0.55);
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.gallery-previous::before {
  transform: translateX(2px) rotate(-135deg);
}

.gallery-next::before {
  transform: translateX(-2px) rotate(45deg);
}

.gallery-button:hover,
.gallery-button:focus-visible {
  background: var(--rust);
}

.gallery-previous {
  left: 18px;
}

.gallery-next {
  right: 18px;
}

.gallery-counter {
  position: absolute;
  right: 16px;
  bottom: 14px;
  margin: 0;
  padding: 5px 9px;
  color: #fff8ef;
  background: rgba(75, 47, 34, 0.7);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.gallery-thumbnails {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(70px, 1fr));
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-thumbnail {
  aspect-ratio: 4 / 3;
  min-width: 70px;
  padding: 3px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.gallery-thumbnail[aria-current="true"] {
  border-color: var(--rust);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rsvp-grid {
  align-items: start;
}

.rsvp-language {
  width: fit-content;
  margin: -12px auto 28px;
  display: flex;
  border: 1px solid var(--line);
}

.rsvp-language button {
  min-width: 92px;
  padding: 9px 14px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.rsvp-language button + button {
  border-left: 1px solid var(--line);
}

.rsvp-language button[aria-pressed="true"] {
  color: #fff8ef;
  background: var(--rust);
}

.rsvp-language button:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.rsvp-note {
  padding: 28px;
  border: 1px solid var(--line);
  background: transparent;
}

.rsvp-note h2,
.rsvp-note h3 {
  margin-top: 0;
  color: var(--rust);
  font-size: 30px;
  font-weight: 500;
}

.rsvp-form {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.25);
  font: inherit;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field-note {
  margin: 7px 0 0;
  font-size: 0.9em;
  font-style: italic;
}

.additional-guests {
  display: grid;
  gap: 18px;
}

.guest-details {
  margin: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
}

.guest-details legend {
  padding: 0 8px;
  color: var(--rust);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp-form .button {
  justify-self: start;
  margin-top: 4px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.form-success {
  padding: 28px;
  border: 1px solid var(--gold);
  text-align: center;
}

.form-error {
  margin: 0;
  color: #8c2f23;
}

.registry-grid {
  align-items: stretch;
}

.registry-card {
  min-height: clamp(190px, 18vw, 260px);
  padding: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  text-align: center;
}

.registry-logo-heading {
  width: 190px;
  height: 54px;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
}

.registry-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.registry-logo--amazon {
  object-position: center;
  mix-blend-mode: multiply;
}

.registry-thanks {
  margin: 38px auto 0;
  color: var(--rust);
  font-size: clamp(21px, 2vw, 28px);
  text-align: center;
}

.registry-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: 50%;
  margin: 0 auto;
}

.site-footer {
  padding: 26px 24px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    justify-content: space-between;
  }

  .monogram {
    display: block;
    color: var(--rust);
    font-size: clamp(18px, 4.8vw, 22px);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    display: grid;
    gap: 0;
    background: var(--paper);
    transition: max-height 260ms ease;
  }

  .site-nav.open {
    max-height: 520px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a {
    padding: 14px 24px;
    font-size: clamp(16px, 4vw, 19px);
    text-align: center;
  }

  .site-nav a::after {
    display: none;
  }

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

  .feature-image {
    aspect-ratio: 16 / 10;
  }

}

@media (min-width: 861px) and (max-width: 1100px) {
  .site-nav {
    gap: 17px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .nav-wrap {
    width: calc(100% - 28px);
  }

  .hero {
    min-height: calc(100svh - 60px);
    background: transparent;
  }

  .hero-content {
    top: -7vh;
  }

  .countdown {
    margin-top: clamp(52px, 8vh, 76px);
  }

  .couple-names {
    font-size: clamp(34px, 11vw, 48px);
  }

  .page-shell {
    padding: 42px 28px 68px;
  }

  .page-heading {
    margin-bottom: 34px;
  }

  .dress-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dress-figure {
    width: 100%;
  }

  .dress-panel--divided {
    padding-top: 28px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .guest-details {
    grid-template-columns: 1fr;
  }

  .timeline,
  .registry-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .timeline div {
    padding: 14px 0;
  }

  .timeline div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .gallery-button {
    width: 38px;
    height: 38px;
  }

  .gallery-previous {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .registry-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}