/* Chloe & Jonathan — pastel cool Mexican resort invitation system
   Palette pulled from theme-resort illustration (sage sky, cream, pale tan, soft olive, cool water) */
:root {
  /* Soft muted sage / dusty seafoam (illustration sky) — NOT dark forest olive */
  --sage: #A8B5AA;
  --sage-soft: #B7C1B6;
  --sage-mid: #8A9688;
  --sage-deep: #5C675A;
  --sage-panel: #4A5448;
  /* Readable ink on light sage */
  --ink: #3E4A3F;
  --ink-muted: rgba(62, 74, 63, 0.72);
  --ink-soft: rgba(62, 74, 63, 0.55);
  --ink-faint: rgba(62, 74, 63, 0.13);
  /* Cream + warm sand from clouds / stone / chairs */
  --cream: #F2EDE3;
  --cream-warm: #E8E0D2;
  --sand: #C9BBA8;
  /* Cool pastel water */
  --water: #8FA49A;
  --water-soft: #A3B5AC;
  /* Legacy aliases (de-emphasize dark olive; map to new system) */
  --olive: var(--sage);
  --olive-deep: var(--sage-panel);
  --olive-soft: var(--sage-deep);
  --cream-muted: var(--ink-muted);
  --cream-soft: var(--ink-soft);
  --cream-faint: var(--ink-faint);
  --hairline: rgba(62, 74, 63, 0.22);
  --serif: "Bodoni Moda", "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --serif-display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
  --max: 860px;
  --pad: clamp(1.5rem, 5.5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--sage);
  background-image:
    radial-gradient(ellipse 110% 70% at 8% -5%, rgba(242, 237, 227, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 10%, rgba(143, 164, 154, 0.28), transparent 50%),
    linear-gradient(165deg, rgba(242, 237, 227, 0.22) 0%, transparent 42%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { opacity: 0.8; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--cream); color: var(--sage-panel); padding: 0.5rem 1rem;
}

/* —— Header: invitation chrome only (C&J) —— */
.site-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem var(--pad) 0.65rem;
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 0;
  padding: 0.15rem 0.1rem 0.2rem;
  cursor: pointer;
}

.logo picture { display: block; line-height: 0; }

.logo-img {
  display: block;
  width: auto;
  height: clamp(40px, 7.5vw, 52px);
  max-height: 52px;
}

.logo:hover { opacity: 1; }

.logo-menu-label {
  display: block;
  font-family: var(--serif-display);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* optical center with letter-spacing */
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.78;
  transition: opacity 0.35s ease, text-shadow 0.35s ease;
}
.logo[data-menu-trigger]:hover .logo-menu-label,
.logo[data-menu-trigger]:focus-visible .logo-menu-label {
  opacity: 0.95;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}


/* Soft cream halo — slow elegant blink to invite menu tap */
.logo[data-menu-trigger] {
  position: relative;
  border-radius: 50%;
  z-index: 1;
}
.logo[data-menu-trigger]::before {
  content: "";
  position: absolute;
  inset: -12px -16px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.45) 32%,
    rgba(242, 237, 227, 0.2) 55%,
    transparent 76%);
  pointer-events: none;
  z-index: -1;
  animation: menu-halo-blink 5.2s ease-in-out infinite;
}
.logo[data-menu-trigger]::after {
  content: "";
  position: absolute;
  inset: -3px -7px;
  border-radius: 999px;
  box-shadow:
    0 0 10px 2px rgba(255, 255, 255, 0.55),
    0 0 24px 6px rgba(255, 255, 255, 0.28),
    0 0 44px 12px rgba(242, 237, 227, 0.18);
  pointer-events: none;
  z-index: -1;
  animation: menu-halo-blink 5.2s ease-in-out infinite;
}
@keyframes menu-halo-blink {
  0%, 100% {
    opacity: 0.28;
    transform: scale(0.96);
  }
  42% {
    opacity: 0.35;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  58% {
    opacity: 0.42;
    transform: scale(0.99);
  }
  72% {
    opacity: 0.3;
    transform: scale(0.97);
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo[data-menu-trigger]::before,
  .logo[data-menu-trigger]::after {
    animation: none;
    opacity: 0.75;
    transform: none;
  }
}

/* Mid nav hidden — menu opens from C&J */
.nav-desktop { display: none !important; }

/* Visually hidden hamburger — menu opens via C&J */
.menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(74, 84, 72, 0.985);
  padding: 5.5rem var(--pad) 2rem;
  flex-direction: column;
  align-items: center;
  gap: 0;
  backdrop-filter: blur(8px);
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  display: block;
  width: min(100%, 260px);
  text-align: center;
  padding: 1.2rem 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 237, 227, 0.14);
  color: var(--cream);
}

.nav-drawer a:first-of-type { border-top: 1px solid rgba(242, 237, 227, 0.14); }

.drawer-close {
  position: absolute;
  top: 1.2rem;
  right: var(--pad);
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.55;
}
.drawer-close:hover { opacity: 1; }

/* —— Layout —— */
main {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 5rem;
}

/* Floral motif — white florals + palm fronds (soft-masked on olive) */
.floral-motif {
  width: min(88%, 560px);
  margin: 0.45rem auto 0.15rem;
  pointer-events: none;
  user-select: none;
}

.floral-motif picture,
.floral-motif img {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.floral-motif img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  max-height: none;
  background: transparent;
  filter:
    drop-shadow(0 12px 28px rgba(62, 74, 63, 0.22))
    drop-shadow(0 2px 6px rgba(62, 74, 63, 0.12));
}

.floral-motif--compact {
  width: min(58%, 300px);
  margin: 0.4rem auto 0.15rem;
}

.floral-motif--compact img {
  filter:
    drop-shadow(0 8px 18px rgba(62, 74, 63, 0.2))
    brightness(1.02);
}

@media (min-width: 700px) {
  .floral-motif { width: min(62%, 640px); }
  .floral-motif--compact { width: min(38%, 320px); }
}

/* Invitation masthead */
.hero {
  text-align: center;
  padding: 1.15rem 0 0.15rem;
}

.hero h1 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.55rem, 6.6vw, 3.55rem);
  letter-spacing: 0.26em;
  line-height: 1.12;
  margin: 0 0 1.05rem;
  text-transform: uppercase;
  padding-left: 0.26em;
  white-space: nowrap;
  color: var(--ink);
}

.hero .meta {
  font-family: var(--serif);
  font-size: clamp(0.58rem, 1.65vw, 0.72rem);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin: 0;
  padding-left: 0.34em;
}

.hairline {
  display: block;
  width: min(120px, 32%);
  height: 1px;
  background: var(--hairline);
  margin: 2.25rem auto 2.4rem;
  border: none;
}

/* Two-column weekend summary — invitation face */
.events-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1.35rem;
  align-items: start;
  text-align: center;
  margin: 0 auto 0.5rem;
  max-width: 620px;
}

.event-card h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(0.95rem, 2.9vw, 1.28rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  padding-left: 0.22em;
}

.event-card .date-line {
  font-family: var(--serif);
  font-size: clamp(0.55rem, 1.55vw, 0.68rem);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin: 0 0 0.5rem;
  padding-left: 0.24em;
}

.event-card .attire {
  font-family: var(--serif);
  font-size: clamp(0.78rem, 2.1vw, 0.95rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cream-soft);
  margin: 0;
  text-transform: none;
}

.event-card .timeline { margin-top: 0.95rem; max-width: none; }

.timeline {
  list-style: none;
  margin: 1rem auto 0;
  padding: 0;
  max-width: 22rem;
}

.timeline li {
  display: block;
  padding: 0.22rem 0;
  border: none;
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--cream-soft);
  line-height: 1.5;
  font-weight: 400;
}

.timeline .t-time {
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.timeline .t-label {
  color: var(--cream-soft);
  font-weight: 400;
}

.timeline-inline li {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.timeline-inline .t-time::after {
  content: " –";
  letter-spacing: 0;
  font-weight: 400;
}

@media (min-width: 720px) {
  .events-summary {
    gap: 2.25rem 3.75rem;
    max-width: 640px;
  }
  .event-card h2 {
    font-size: 1.35rem;
    letter-spacing: 0.24em;
  }
}

/* Details accordion — below the invitation fold */
.details-fold {
  margin-top: 3.25rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.details-fold > summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  font-family: var(--serif);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--cream-soft);
  padding: 1.1rem 0;
  border-top: 1px solid var(--cream-faint);
  border-bottom: none;
  transition: color 0.2s;
  user-select: none;
}

.details-fold > summary::-webkit-details-marker { display: none; }
.details-fold > summary::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.65rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  opacity: 0.7;
  vertical-align: middle;
}
.details-fold[open] > summary::after {
  transform: translateY(0.1rem) rotate(225deg);
}
.details-fold > summary:hover { color: var(--ink); }

.events-detail {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.section {
  text-align: center;
  padding: 2.35rem 0 2.5rem;
}

.section + .section {
  border-top: 1px solid var(--cream-faint);
}

.section h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.8vw, 1.75rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  padding-left: 0.2em;
}

.section .date-line,
.section .detail {
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin: 0.25rem 0;
  font-weight: 400;
}

.section .attire {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0.85rem 0 1rem;
  text-transform: none;
  color: var(--cream-soft);
}

.section p.body {
  max-width: 30rem;
  margin: 0.85rem auto 0;
  font-size: 0.92rem;
  color: var(--cream-muted);
  text-transform: none;
  letter-spacing: 0.025em;
  line-height: 1.85;
  font-weight: 300;
}

.section .timeline { margin-top: 1.5rem; }

.section .timeline li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--cream-faint);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.section .timeline li:first-child { border-top: none; padding-top: 0; }
.section .timeline .t-time {
  display: block;
  font-size: 0.68rem;
  margin-bottom: 0.15rem;
}
.section .timeline .t-label {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.events-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 720px) {
  .events-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  .events-grid .section { padding-top: 0; border-top: none; }
}

.page-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  margin: 1.1rem 0 2rem;
  padding-left: 0.24em;
}

.card-block {
  text-align: center;
  padding: 1.6rem 0 2.1rem;
  max-width: 34rem;
  margin: 0 auto;
}

.card-block h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 3.3vw, 1.65rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  padding-left: 0.16em;
}

.card-block p {
  color: var(--cream-muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.85;
}

.card-block p strong {
  color: var(--ink);
  font-weight: 500;
}

.address {
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--cream-muted);
  margin: 0 0 0.5rem;
}

.phone {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin: 0.5rem 0 1.5rem;
}

.deadline {
  display: block;
  margin: 1rem auto 1.35rem;
  padding: 0;
  border: none;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.7;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 0.15rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
}

.btn:hover { opacity: 0.78; }

.btn-primary {
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.55rem;
}

.btn-ghost {
  background: transparent;
  color: var(--cream-muted);
  border-bottom: 1px solid var(--hairline);
}

.btn-pill {
  border-radius: 0;
  padding: 0.7rem 0.15rem 0.55rem;
}

.gate-card .btn {
  background: var(--cream);
  color: var(--sage-panel);
  border: none;
  padding: 0.85rem 1.6rem;
  letter-spacing: 0.16em;
  font-weight: 500;
}

.gate-card .btn:hover { opacity: 0.9; }

.note {
  font-size: 0.88rem;
  color: var(--cream-muted);
  max-width: 34rem;
  margin: 1rem auto;
}

.hours {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  max-width: 26rem;
  font-size: 0.88rem;
  color: var(--cream-muted);
}
.hours li { margin: 0.35rem 0; }

.site-footer {
  text-align: center;
  padding: 3rem var(--pad) 3.5rem;
  border-top: none;
  margin-top: 0.5rem;
}

.site-footer .mono {
  margin: 0 0 0.35rem;
  line-height: 0;
}

.site-footer .mono picture { display: inline-block; line-height: 0; }

.site-footer .mono-img {
  display: inline-block;
  width: auto;
  height: clamp(72px, 16vw, 104px);
  margin: 0 auto;
}

.site-footer .hairline {
  margin: 1.1rem auto 0.95rem;
  width: min(88px, 24%);
}

.site-footer .foot-date {
  font-family: var(--serif);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin: 0;
  font-weight: 400;
  padding-left: 0.28em;
}

/* —— Password gate —— */
#gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(242, 237, 227, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(143, 164, 154, 0.2), transparent 50%),
    var(--sage-panel);
  padding: var(--pad);
  color: var(--cream);
}

#gate[hidden] { display: none !important; }

.gate-card {
  text-align: center;
  width: min(100%, 340px);
}

.gate-monogram {
  display: flex;
  justify-content: center;
  margin: 0 0 0.85rem;
  line-height: 0;
}

.gate-monogram picture { display: block; line-height: 0; }

.gate-monogram img {
  display: block;
  width: auto;
  height: clamp(96px, 28vw, 132px);
  margin: 0 auto;
}
.gate-card p {
  color: rgba(242, 237, 227, 0.72);
  font-size: 0.88rem;
  margin: 0 0 1.5rem;
}

.gate-card input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(242, 237, 227, 0.28);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.25rem;
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  outline: none;
}

.gate-card .btn { width: 100%; }

.gate-err {
  color: #e8c4b8;
  font-size: 0.8rem;
  min-height: 1.2em;
  margin: 0 0 0.5rem;
}

body.gated-locked { overflow: hidden; }
body.gated-locked main,
body.gated-locked .site-header,
body.gated-locked .site-footer {
  visibility: hidden;
}

/* —— Editorial media frames (Travel + Home atmosphere) —— */
.media-frame {
  margin: 0 auto 2.75rem;
  max-width: 36rem;
  text-align: center;
}

.media-frame picture,
.media-frame > img {
  display: block;
  width: 100%;
}

.media-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.35rem;
  box-shadow:
    0 0 0 1px rgba(62, 74, 63, 0.16),
    0 0 0 8px rgba(242, 237, 227, 0.55),
    0 16px 36px rgba(62, 74, 63, 0.18);
}

.media-frame figcaption {
  font-family: var(--serif);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-soft);
  margin: 0.95rem 0 0;
  padding-left: 0.32em;
}

/* Travel hero — illustrated resort art, landscape editorial */
.media-frame--hero {
  max-width: min(100%, 42rem);
  margin: 0.25rem auto 3.25rem;
}

.media-frame--hero img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 45%;
  border-radius: 0.4rem;
}

/* Conrad aerial — portrait photo card */
.media-frame--photo {
  max-width: min(100%, 22rem);
  margin: 0.35rem auto 2.15rem;
}

.media-frame--photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 0.35rem;
}

.card-block--hotel {
  max-width: 36rem;
  padding-top: 0.5rem;
}

.page-travel .page-title {
  margin-bottom: 1.65rem;
}

.page-travel .hairline {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Home — quiet full-bleed atmosphere below Details */
.atmosphere-band {
  margin: 3.75rem calc(-1 * var(--pad)) 0;
  width: calc(100% + 2 * var(--pad));
  max-width: none;
}

.atmosphere-band .media-frame--band {
  max-width: none;
  margin: 0;
}

.atmosphere-band .media-frame--band img {
  width: 100%;
  max-height: 220px;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.92;
  filter: saturate(0.92) brightness(1.02);
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
}

.atmosphere-band .media-frame--band figcaption {
  margin-top: 1.1rem;
  margin-bottom: 0.25rem;
  opacity: 0.85;
}

@media (min-width: 700px) {
  .media-frame--hero {
    max-width: 48rem;
  }
  .media-frame--photo {
    max-width: 24rem;
  }
  .atmosphere-band .media-frame--band img {
    max-height: 280px;
  }
}


/* —— Resort illustration hero motif (pastel theme) —— */
.hero-motif {
  width: min(92%, 640px);
  margin: 0.35rem auto 1.15rem;
  text-align: center;
}

.hero-motif picture,
.hero-motif img {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.hero-motif img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 0.45rem;
  box-shadow:
    0 0 0 1px rgba(62, 74, 63, 0.14),
    0 0 0 9px rgba(242, 237, 227, 0.5),
    0 18px 40px rgba(62, 74, 63, 0.16);
  /* Soft mask into sage world */
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}

.hero-motif figcaption {
  font-family: var(--serif);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.85rem 0 0;
  padding-left: 0.3em;
}

@media (min-width: 700px) {
  .hero-motif { width: min(78%, 720px); }
}

/* Deeper sage panels that keep cream type (gate already; utility) */
.on-panel { color: var(--cream); }
.on-panel a { color: var(--cream); }

.drawer-close { color: var(--cream) !important; }

/* —— Menu drawer monogram (under Gift Registry) —— */
.drawer-monogram {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}
.drawer-monogram picture,
.drawer-monogram img {
  display: block;
  width: auto;
  height: clamp(72px, 18vw, 96px);
  max-width: 140px;
  margin: 0 auto;
  opacity: 0.92;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

/* —— Elegant restaurant tabs (Things to Do) —— */
.dining-intro {
  margin: 0 0 1.5rem;
}

.resto-tabs {
  margin: 0.35rem 0 1.35rem;
}

.resto-tablist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid var(--hairline);
  margin: 0 auto 1.35rem;
  max-width: 420px;
}

.resto-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.7rem 0.95rem 0.85rem;
  font-family: var(--serif);
  font-size: clamp(0.72rem, 2.4vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.resto-tab:hover {
  color: var(--ink);
  opacity: 1;
}
.resto-tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--sage-deep);
}
.resto-tab:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.resto-panels {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto;
  min-height: 11rem;
}

.resto-panel[hidden] {
  display: none;
}

.resto-tagline {
  font-family: var(--serif);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
  padding-left: 0.28em;
}

.resto-panel p {
  margin: 0 0 0.85rem;
}

.resto-meta {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 1.15rem !important;
}

.resto-panel .btn-row {
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 420px) {
  .resto-tab {
    flex: 1 1 auto;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
  }
}


/* —— Drawer monogram: blend on dark panel —— */
.drawer-monogram {
  margin-top: 2.75rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  justify-content: center;
}
.drawer-monogram picture,
.drawer-monogram img {
  background: transparent !important;
  width: clamp(100px, 26vw, 132px);
  height: auto;
  opacity: 0.96;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.14));
}

/* —— Dining tabs: elegant touch halo —— */
.resto-tab {
  position: relative;
  transition: color 0.35s ease, text-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.resto-tab::before {
  content: "";
  position: absolute;
  inset: -6px -10px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(242, 237, 227, 0.22) 42%,
    transparent 72%);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: -1;
}
.resto-tab:hover,
.resto-tab:focus-visible {
  color: var(--ink);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.55), 0 0 24px rgba(242, 237, 227, 0.35);
}
.resto-tab:hover::before,
.resto-tab:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}
.resto-tab[aria-selected="true"] {
  color: var(--ink);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.65), 0 0 28px rgba(242, 237, 227, 0.4);
  border-bottom-color: var(--ink);
}
.resto-tab[aria-selected="true"]::before {
  opacity: 1;
  transform: scale(1.02);
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(242, 237, 227, 0.28) 45%,
    transparent 74%);
}
.resto-tab:active {
  transform: scale(0.98);
}
.resto-panel .dining-link,
.resto-panel .btn-pill,
.resto-panel a.btn {
  position: relative;
  transition: box-shadow 0.35s ease, text-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.resto-panel a.btn:hover,
.resto-panel a.btn:focus-visible,
.resto-panel .btn-pill:hover,
.resto-panel .btn-pill:focus-visible {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 18px 4px rgba(255, 255, 255, 0.35),
    0 0 36px 8px rgba(242, 237, 227, 0.2);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .resto-tab,
  .resto-tab::before,
  .resto-panel a.btn { transition: none; }
}


/* Event details — illuminated invitation cards */
.section-welcome-featured,
.section-wedding-featured {
  position: relative;
  isolation: isolate;
  margin: 2.35rem auto 1.85rem;
  padding: 1.9rem 1.35rem 1.65rem;
  max-width: 34rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(242, 237, 227, 0.22) 48%, rgba(242, 237, 227, 0.32) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 18px 2px rgba(255, 255, 255, 0.45),
    0 0 42px 10px rgba(255, 255, 255, 0.22),
    0 0 72px 18px rgba(242, 237, 227, 0.18),
    0 12px 36px rgba(62, 74, 63, 0.08);
  animation: details-glow 4.2s ease-in-out infinite;
}
.section-welcome-featured::before,
.section-wedding-featured::before {
  content: "";
  position: absolute;
  inset: -18px -14px;
  border-radius: 22px;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.22) 38%,
    rgba(242, 237, 227, 0.12) 58%,
    transparent 76%);
  pointer-events: none;
  z-index: -1;
  animation: details-halo 4.2s ease-in-out infinite;
}
.section-welcome-featured::after,
.section-wedding-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 0 rgba(62, 74, 63, 0.04);
  pointer-events: none;
  z-index: 0;
}
.section-welcome-featured > *,
.section-wedding-featured > * {
  position: relative;
  z-index: 1;
}
.section-welcome-featured h2,
.section-wedding-featured h2 {
  letter-spacing: 0.28em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.55), 0 0 36px rgba(242, 237, 227, 0.35);
}
@keyframes details-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.32),
      0 0 16px 2px rgba(255, 255, 255, 0.38),
      0 0 38px 8px rgba(255, 255, 255, 0.18),
      0 0 64px 16px rgba(242, 237, 227, 0.14),
      0 12px 36px rgba(62, 74, 63, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.5),
      0 0 22px 4px rgba(255, 255, 255, 0.55),
      0 0 52px 14px rgba(255, 255, 255, 0.28),
      0 0 88px 24px rgba(242, 237, 227, 0.24),
      0 14px 40px rgba(62, 74, 63, 0.07);
  }
}
@keyframes details-halo {
  0%, 100% { opacity: 0.72; transform: scale(0.985); }
  50% { opacity: 1; transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .section-welcome-featured,
  .section-wedding-featured {
    animation: none;
  }
  .section-welcome-featured::before,
  .section-wedding-featured::before {
    animation: none;
    opacity: 0.9;
  }
}
.section-wedding-featured .timeline {
  margin-top: 1.1rem;
  margin-bottom: 1.1rem;
}
.section-wedding-featured .t-time:empty {
  display: none;
}
.section-wedding-featured li:has(.t-time:empty) {
  justify-content: center;
}
.section-wedding-featured .t-label {
  font-size: 0.95em;
}
.timeline-inline .t-time:empty {
  display: none;
}

/* Align attire on the same row across summary columns */
.events-summary {
  align-items: start;
}
.event-card {
  display: flex;
  flex-direction: column;
}
.event-card .date-line {
  min-height: 1.4em;
}
.event-card .attire {
  order: 0;
  margin-top: 0.55rem;
  margin-bottom: 0.75rem;
  min-height: 1.5em;
}
.event-card .detail {
  margin-top: 0;
}
.event-card .timeline-inline {
  margin-top: 0.15rem;
}

/* —— Hair & Makeup reservations —— */
.page-hair-makeup .page-title {
  letter-spacing: 0.12em;
  line-height: 1.25;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
.hair-intro p {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
.hair-date {
  margin-top: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hair-form-card {
  margin-top: 1.5rem;
}
.hm-hidden-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.hm-form {
  margin-top: 1.25rem;
  text-align: left;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.hm-field {
  margin: 0 0 1.35rem;
  border: 0;
  padding: 0;
}
.hm-field > label,
.hm-field > legend {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.hm-field input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(62, 74, 63, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.hm-field input[type="text"]:focus {
  border-color: rgba(62, 74, 63, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55), 0 0 18px rgba(242, 237, 227, 0.45);
}
.hm-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.45rem 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
}
.hm-choice input {
  margin-top: 0.2rem;
  accent-color: var(--ink);
}
.hm-field .req {
  color: var(--ink);
  opacity: 0.7;
}
.hm-status {
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  color: var(--ink);
  margin: 0.5rem 0 1rem;
}
.hm-fallback {
  text-align: center;
  margin-top: 1rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hm-form-link {
  text-align: center;
  margin: 1.5rem auto 2rem;
  max-width: 34rem;
  padding: 0 1rem;
  word-break: break-all;
}
.hm-form-link a {
  font-family: var(--sans);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  opacity: 0.85;
  transition: opacity 0.25s ease, text-shadow 0.25s ease;
}
.hm-form-link a:hover,
.hm-form-link a:focus-visible {
  opacity: 1;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.hm-click-row {
  margin: 1.75rem auto 2.25rem;
}
.hm-click-tab {
  position: relative;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--serif-display);
  font-size: 0.82rem;
  padding: 0.85rem 1.75rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45),
    0 0 18px 4px rgba(255, 255, 255, 0.28),
    0 0 36px 8px rgba(242, 237, 227, 0.16);
  transition: box-shadow 0.35s ease, transform 0.35s ease, text-shadow 0.35s ease;
}
.hm-click-tab:hover,
.hm-click-tab:focus-visible {
  transform: translateY(-1px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6),
    0 0 22px 6px rgba(255, 255, 255, 0.38),
    0 0 48px 12px rgba(242, 237, 227, 0.22);
}
