:root {
  --bg: #f7f2e9;
  --bg-raise: #fffcf6;
  --ink: #453b32;
  --ink-soft: #8c7d6c;
  --hair: #e4d6bc;
  --sand: #c9a877;
  --sand-deep: #a8804c;
  --wine: #a3182f;
  --wine-deep: #7a1029;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--wine);
}

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

::selection {
  background: var(--sand);
  color: #fff;
}

.eyebrow {
  font-family: "Jost", "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.script {
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--wine);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 5vw, 4.5rem);
  background: rgba(247, 242, 233, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.scrolled {
  border-color: var(--hair);
}

.nav .mono {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
}

.nav .links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.navlink {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.navlink.active {
  color: var(--ink);
}

.navlink.rsvp {
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.65rem 1.4rem;
  border-radius: 1px;
}

.navlink.rsvp:hover {
  background: var(--ink);
  color: var(--bg-raise);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

.nav-mobile-panel {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: -35%;
  height: 170%;
  background: radial-gradient(ellipse 900px 640px at 50% 46%, rgba(40, 46, 45, 0.2), transparent 62%),
    linear-gradient(180deg, #ede3e0 0%, #ddbdc1 22%, #c08791 42%, #a8596a 56%, #b7ab8a 72%, #e3d2ac 100%);
  background-image: url("../images/hero-beach.jpg");
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  filter: grayscale(1);
  will-change: transform;
}

/* Narrow phones: the couple sits left-of-center in the source photo, so a
   centered crop pushes Sheryl off the left edge. Shift the crop left. */
@media (max-width: 560px) {
  .hero-bg {
    top: -25%;
    height: 150%;
    background-position: 30% 20%;
  }
}

/* Tablets in landscape are wide-but-short, which crops from the top and
   clips Jeano's head. Show more headroom. */
@media (min-width: 700px) and (max-height: 1000px) and (orientation: landscape) {
  .hero-bg {
    background-position: center 8%;
  }
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(ellipse 900px 640px at 50% 46%, rgba(35, 40, 39, 0.22), transparent 62%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 242, 233, 0.3) 0%, transparent 18%, transparent 80%, rgba(247, 242, 233, 0.38) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  padding: 0 1.5rem;
  max-width: 60rem;
}

.hero-names {
  color: #fffcf6;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.75rem;
}

.hero-headline {
  font-size: clamp(2.6rem, 10.5vw, 8rem);
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.22);
  margin: 0;
  color: #8f142c;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  margin-top: 2.1rem;
  flex-wrap: wrap;
}

.hero-meta span {
  color: #fffcf6;
  font-size: 0.78rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.7);
}

.placeholder-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 252, 246, 0.85);
  border: 1px dashed var(--sand-deep);
  border-radius: 2px;
  padding: 0.5rem 0.85rem;
  max-width: calc(100vw - 3rem);
}

.placeholder-tag svg {
  flex: none;
}

.placeholder-tag span {
  font-size: 0.62rem;
  color: var(--ink-soft);
}

/* ---------- intro ---------- */
.intro {
  padding: clamp(5rem, 10vw, 8rem) 1.5rem clamp(4rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro .eyebrow {
  color: var(--ink-soft);
}

.intro .script {
  font-size: clamp(2rem, 5vw, 3.9rem);
  max-width: 44rem;
  margin-top: 1.6rem;
}

.rule {
  width: 4rem;
  height: 1px;
  background: var(--hair);
  margin-top: 2.4rem;
}

/* ---------- details ---------- */
.details {
  padding: 0 clamp(1.25rem, 5vw, 4.5rem) clamp(5rem, 9vw, 7.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.detail-card {
  text-align: center;
  padding: 2.6rem 1.5rem;
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: var(--bg-raise);
}

.detail-card svg {
  margin: 0 auto 1.1rem;
}

.detail-card .eyebrow {
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.detail-card .value {
  font-size: 1.7rem;
  font-weight: 500;
}

.detail-card .sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 0.4rem;
}

.details-cta {
  display: flex;
  justify-content: center;
  padding: 0 clamp(1.25rem, 5vw, 4.5rem) clamp(5rem, 9vw, 7.5rem);
  margin-top: -1.25rem;
}

/* ---------- rsvp ---------- */
.rsvp-section {
  background: var(--wine);
  padding: clamp(5rem, 9vw, 7.5rem) 1.5rem clamp(5.5rem, 10vw, 8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rsvp-section .eyebrow {
  color: rgba(247, 242, 233, 0.75);
  margin-bottom: 1.1rem;
}

.rsvp-section .script {
  color: var(--bg);
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  margin: 0 0 0.7rem;
}

.rsvp-lede {
  color: rgba(247, 242, 233, 0.75);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 32rem;
  text-align: center;
  margin: 0 0 3rem;
}

.rsvp-lede strong {
  color: var(--bg);
}

.rsvp-card {
  width: 100%;
  max-width: 38rem;
  background-color: var(--bg);
  border: 0;
  padding: clamp(3rem, 7vw, 4rem) clamp(2.25rem, 7vw, 3.5rem);
  box-shadow: 0 24px 60px rgba(69, 59, 50, 0.12);
}

.rsvp-card.login-card {
  padding-block: clamp(2.75rem, 7vw, 3.5rem);
  padding-inline: clamp(2.25rem, 7vw, 3rem);
}

.login-card .submit-btn {
  display: block;
  width: 82%;
  margin-inline: auto;
}

/* cherry-red text on cream background, inverted from the section around it */
.rsvp-card .eyebrow,
.rsvp-card .script {
  color: var(--wine);
}

.rsvp-card .field label {
  color: rgba(163, 24, 47, 0.75);
}

.rsvp-card .field-sub {
  color: rgba(163, 24, 47, 0.7);
}

.rsvp-card .field input[type="text"],
.rsvp-card .field input[type="password"],
.rsvp-card .field select,
.rsvp-card .field textarea {
  color: var(--wine);
  border-bottom-color: rgba(163, 24, 47, 0.35);
}

.rsvp-card .field input::placeholder,
.rsvp-card .field textarea::placeholder {
  color: rgba(163, 24, 47, 0.45);
}

.rsvp-card .field input:focus,
.rsvp-card .field select:focus,
.rsvp-card .field textarea:focus {
  border-bottom-color: var(--wine-deep);
}

.rsvp-card .attend-option {
  border-color: rgba(163, 24, 47, 0.35);
}

.rsvp-card .attend-option.yes {
  border-color: var(--sand-deep);
}

.rsvp-card .attend-option input {
  accent-color: var(--wine);
}

.rsvp-card .attend-option span {
  color: var(--wine);
}

.rsvp-card .attend-option.checked {
  background: rgba(163, 24, 47, 0.08);
}

.rsvp-card .form-note {
  color: rgba(163, 24, 47, 0.7);
}

.field {
  margin-bottom: 1.7rem;
}

.field label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.field-sub {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.9rem;
  margin: -0.35rem 0 0.65rem;
}

.field input[type="text"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  padding: 0.7rem 0.2rem;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--wine);
}

.field textarea {
  resize: none;
}

.attend-row {
  display: flex;
  gap: 1rem;
}

.attend-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--hair);
  border-radius: 2px;
  cursor: pointer;
}

.attend-option.yes {
  border-color: var(--sand-deep);
}

.attend-option input {
  accent-color: var(--wine);
}

.attend-option span {
  font-size: 0.72rem;
}

.attend-option.checked {
  background: rgba(163, 24, 47, 0.08);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 1rem;
  text-align: center;
}

.submit-btn {
  width: 100%;
  padding: 1.05rem;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fffcf6;
  background: var(--wine-deep);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background: #5c0c1f;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- album ---------- */
.album-header {
  padding: clamp(4.5rem, 10vw, 7.5rem) 1.5rem clamp(3.5rem, 7vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.album-header .eyebrow {
  color: var(--ink-soft);
}

.album-header .script {
  font-size: clamp(2.4rem, 6vw, 5rem);
  margin: 1.4rem 0 0;
}

.album-header p {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.1rem;
  max-width: 32rem;
  margin: 1.3rem 0 0;
}

.gallery {
  padding: 0 clamp(1.25rem, 5vw, 4.5rem) clamp(5rem, 9vw, 7.5rem);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1 1 0;
  min-width: 0;
}

.tile {
  display: block;
  width: 100%;
  border: none;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  background: none;
}

.tile img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  filter: grayscale(1);
  transition: opacity 0.2s ease;
}

.tile:hover img {
  opacity: 0.88;
}

/* ---------- lightbox / theater mode ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: #0b0b0c;
}

.lightbox-stage {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  filter: grayscale(1);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox-img.shown {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close,
.lightbox-play,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fffcf6;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-play:hover,
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-play {
  top: 1.25rem;
  left: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
}

.lightbox-play svg.is-hidden {
  display: none;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fffcf6;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

/* ---------- information page ---------- */
.schedule-section {
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem clamp(3rem, 7vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.schedule-section .eyebrow {
  color: var(--ink-soft);
}

.schedule-section .script {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 1.1rem 0 2.8rem;
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 42rem;
  width: 100%;
  text-align: left;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 8.25rem;
  width: 1px;
  background: var(--hair);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 6.75rem 1fr;
  gap: 1.75rem;
  padding: 0 0 2.4rem 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 8.25rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wine-deep);
  transform: translateX(-4px);
}

.timeline-time {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #fffcf6;
  background: var(--wine-deep);
  border-radius: 2px;
  padding: 0.35rem 0.5rem;
  text-align: center;
  align-self: flex-start;
  white-space: normal;
}

.timeline-body {
  padding-left: 1.75rem;
}

.timeline-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.timeline-body p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 0.7rem;
}

.timeline-body p:last-child {
  margin-bottom: 0;
}

.timeline-body strong {
  color: var(--ink);
  font-weight: 500;
}

.timeline-body .highlight {
  background: var(--wine-deep);
  color: #fffcf6;
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .timeline::before {
    left: 0.55rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: 0.55rem;
  }

  .timeline-time {
    display: inline-block;
    align-self: flex-start;
  }

  .timeline-body {
    padding-left: 0;
  }
}

.info-grid {
  padding: 0 clamp(1.25rem, 5vw, 4.5rem) clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.info-card {
  text-align: center;
  padding: 2.6rem 2rem;
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: var(--bg-raise);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-card svg {
  margin-bottom: 1.1rem;
}

.info-card .eyebrow {
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.info-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.info-card-time {
  color: var(--sand-deep);
  font-style: italic;
  font-size: 1.05rem;
  margin-top: 0.35rem;
}

.info-card-address {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 0.9rem;
  line-height: 1.5;
}

.info-card-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: italic;
  max-width: 26rem;
  margin: 0.9rem 0 0;
}

.directions {
  position: relative;
  margin-top: 1.5rem;
}

.btn-directions {
  display: inline-block;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.7rem 1.5rem;
  border-radius: 1px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-directions:hover {
  background: var(--ink);
  color: var(--bg-raise);
}

.directions-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  min-width: 10rem;
  background: var(--bg-raise);
  border: 1px solid var(--hair);
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(69, 59, 50, 0.14);
  padding: 0.35rem;
}

.directions-menu a {
  display: block;
  padding: 0.65rem 0.9rem;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 1px;
}

.directions-menu a:hover {
  background: rgba(163, 24, 47, 0.1);
}

.travel-section {
  padding: clamp(3rem, 7vw, 5rem) 1.5rem clamp(4rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #f5eceb, #f0e2e2);
}

.travel-section .eyebrow {
  color: var(--ink-soft);
}

.travel-section .script {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 1.1rem 0 2.5rem;
}

.travel-visual {
  width: 100%;
  max-width: 40rem;
}

.travel-label {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  fill: var(--ink);
}

.travel-estimate {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 2rem 0 0.4rem;
}

.travel-note {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.95rem;
  max-width: 28rem;
  margin: 0;
}

.dress-code-section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4.5rem) clamp(5rem, 9vw, 7.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dress-code-section .eyebrow {
  color: var(--ink-soft);
}

.dress-code-section .script {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 1.1rem 0 2.5rem;
}

.dress-code-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  max-width: 60rem;
  text-align: left;
}

.dress-code-palette {
  width: 100%;
}

.dress-code-text p {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
}

.dress-code-text p:last-child {
  margin-bottom: 0;
}

.stay-section {
  scroll-margin-top: 5rem;
  padding: clamp(4.5rem, 9vw, 7rem) 0 0;
  background: var(--wine);
  border-top: 1px solid var(--hair);
}

.stay-heading {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.5rem clamp(2.75rem, 6vw, 4.5rem);
  text-align: center;
}

.stay-heading .eyebrow {
  color: rgba(247, 242, 233, 0.75);
}

.area-map-title .eyebrow {
  color: var(--ink-soft);
}

.stay-heading .script {
  color: var(--bg);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 1rem 0 1.25rem;
}

.stay-heading p {
  margin: 0;
  color: rgba(247, 242, 233, 0.75);
  font-size: 1.1rem;
  line-height: 1.65;
}

.stay-grid {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* cherry-red text on cream background, inverted from the section around it */
.stay-grid .info-card {
  background-color: var(--bg);
  backdrop-filter: none;
}

.stay-grid .info-card .eyebrow {
  color: var(--wine);
}

.stay-grid .info-card-title,
.stay-grid .info-card-address {
  color: var(--wine);
}

.stay-grid .info-card-note {
  color: rgba(163, 24, 47, 0.7);
}

.stay-grid .btn-directions {
  color: var(--wine);
  border-color: var(--wine);
}

.stay-grid .btn-directions:hover {
  background: var(--wine);
  color: var(--bg);
}

.area-map {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: var(--bg-raise);
  border: 1px solid rgba(163, 24, 47, 0.18);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 60px rgba(91, 32, 45, 0.07);
  overflow: hidden;
}

.area-map-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(0.35rem, 3vw, 1.5rem) 0;
  text-align: left;
}

.area-map-title .script {
  margin: 0.55rem 0 0;
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.map-north {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  color: var(--wine-deep);
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.map-north svg {
  margin-top: 0.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area-map-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.5rem;
}

.map-boundary,
.map-road,
.map-freeway,
.map-wave,
.map-callout path,
.map-scale path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.map-boundary {
  stroke: rgba(163, 24, 47, 0.13);
  stroke-width: 1;
  stroke-dasharray: 5 8;
}

.map-road {
  stroke: rgba(152, 125, 91, 0.32);
  stroke-linecap: round;
}

.map-road-primary {
  stroke-width: 5;
}

.map-road-secondary {
  stroke-width: 2;
}

.map-road-name,
.map-place-type,
.map-scale text {
  font-family: "Jost", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  fill: var(--ink-soft);
}

.map-road-name {
  font-size: 6px;
}

.map-city-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.08em;
  fill: rgba(69, 59, 50, 0.32);
}

.map-freeway-name {
  fill: rgba(122, 16, 41, 0.52);
}

.map-road-name-faint {
  fill: rgba(69, 59, 50, 0.35);
}

.map-wave {
  stroke: var(--sand-deep);
  stroke-width: 2.5;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}

.map-callout,
.map-pin {
  opacity: 0;
}

.map-callout path {
  stroke: rgba(69, 59, 50, 0.42);
  stroke-width: 1;
}

.map-place-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 500;
  fill: var(--ink);
}

.map-pin {
  filter: url(#pin-shadow);
}

.map-pin > circle:first-child {
  fill: var(--wine-deep);
  stroke: #fffcf6;
  stroke-width: 3;
}

.map-pin-hotel > circle:first-child {
  fill: var(--sand-deep);
}

.map-pin-center {
  fill: #fffcf6;
}

.map-pin path {
  fill: none;
  stroke: #fffcf6;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-pin-home path {
  fill: #fffcf6;
  stroke: none;
}

.map-scale path {
  stroke: var(--ink-soft);
  stroke-width: 1;
}

.map-note {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1rem 0.4rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.55;
}

.area-map.is-visible .map-draw {
  animation: map-line-draw 1.2s cubic-bezier(.22, .72, .24, 1) both;
}

.area-map.is-visible .map-wave {
  animation: map-wave-draw 1.6s 0.28s cubic-bezier(.22, .72, .24, 1) both;
}

.area-map.is-visible .map-pin,
.area-map.is-visible .map-callout {
  animation: map-marker-reveal 0.42s calc(0.05s + var(--marker-delay)) ease-out both;
}

@keyframes map-line-draw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1; stroke-dashoffset: 0; }
}

@keyframes map-wave-draw {
  from { stroke-dashoffset: 1; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes map-marker-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .map-draw,
  .map-wave,
  .map-pin,
  .map-callout,
  .area-map.is-visible .map-draw,
  .area-map.is-visible .map-wave,
  .area-map.is-visible .map-pin,
  .area-map.is-visible .map-callout {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

.placeholder-copy {
  color: var(--sand-deep) !important;
  font-style: italic;
  font-size: 0.9rem !important;
  border: 1px dashed var(--sand-deep);
  border-radius: 2px;
  padding: 0.85rem 1rem;
}

@media (max-width: 860px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .dress-code-body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dress-code-text {
    text-align: left;
  }

  .area-map {
    width: calc(100% - 1.5rem);
    padding: 1.2rem 0.5rem 1.5rem;
    border-radius: 16px 16px 0 0;
  }

  .area-map-title {
    padding-inline: 1rem;
  }

  .area-map-svg {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .area-map-svg {
    width: 128%;
    margin-left: -14%;
  }

  .map-place-name { font-size: 20px; }
  .map-place-type,
  .map-scale text { font-size: 11px; }
  .map-road-name { font-size: 7px; }
  .map-city-name { font-size: 13px; }
}

/* ---------- footer ---------- */
footer {
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

footer .mono {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
}

footer .sub {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.95rem;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .details {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    gap: 1rem;
  }

  .gallery-col {
    gap: 1rem;
  }

  .nav .links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-raise);
    border-bottom: 1px solid var(--hair);
    flex-direction: column;
    padding: 0.5rem clamp(1.25rem, 5vw, 4.5rem) 1.5rem;
    gap: 1.1rem;
  }

  .nav-mobile-panel.open {
    display: flex;
  }

  .nav-mobile-panel .navlink {
    padding: 0.5rem 0;
  }

  .nav-mobile-panel .navlink.rsvp {
    display: inline-block;
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .details {
    grid-template-columns: 1fr;
  }

  .gallery {
    flex-direction: column;
  }

  .lightbox-arrow {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-play {
    top: auto;
    bottom: 1.25rem;
    left: 1.25rem;
  }

  .two-col,
  .attend-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    top: 58%;
  }
}
