/* Theme color variables and shared design tokens */
:root {
  --ink: #1f1b17;
  --muted: #5f5b53;
  --line: rgba(31, 27, 23, 0.14);
  --shadow: 0 20px 60px rgba(43, 31, 22, 0.14);
  --coral: #dc7b68;
  --coral-soft: rgba(240, 179, 164, 0.68);
  --green: #385f54;
  --green-soft: rgba(123, 159, 143, 0.42);
  --paper: rgba(255, 250, 244, 0.82);
}

/* Make box-sizing consistent across all elements */
* {
  box-sizing: border-box;
}

/* Prevent horizontal overflow and set smooth scrolling */
html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Base body typography and page background */
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f6efe7;
}

/* Image reset for responsive media */
img {
  display: block;
  max-width: 100%;
}

/* Links inherit surrounding text color */
a {
  color: inherit;
}

/* Accessible visually hidden helper class */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus-visible outline styling for keyboard users */
:focus-visible {
  outline: 3px solid rgba(220, 123, 104, 0.72);
  outline-offset: 4px;
}

/* Disable smooth scroll for users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Shell and main panel layout */
.site-shell {
  min-height: 100vh;
}

/* Shared gradient background styling for decorative sections */
.shared-gradient-section {
  background:
    radial-gradient(circle at 18% 16%, var(--coral-soft), transparent 22%),
    radial-gradient(circle at 82% 78%, var(--green-soft), transparent 24%),
    linear-gradient(180deg, #f5e8dc 0%, #d9e5d8 55%, #f5e8dc 100%);
}

/* Section panel base styling with snap scrolling support */
.panel {
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px 20px 32px;
  display: grid;
  align-items: center;
  justify-items: center;
  position: relative;
  scroll-snap-align: start;
}

/* Hero panel variant with layered color overlay */
.panel-hero {
  overflow: hidden;
  scroll-snap-align: center;
  background:
    linear-gradient(180deg, rgba(31, 28, 25, 0.18) 0%, rgba(31, 28, 25, 0.34) 48%, rgba(31, 28, 25, 0.68) 100%),
    linear-gradient(140deg, rgba(220, 123, 104, 0.24) 8%, rgba(220, 123, 104, 0.08) 36%, rgba(56, 95, 84, 0.1) 62%, rgba(56, 95, 84, 0.3) 100%);
}

/* Full-bleed hero background image */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Responsive width constraints for hero copy and content cards */
.hero-copy,
.content-card {
  width: 100%;
  max-width: 800px;
}


/* Hero text container styling */
.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fffaf3;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

/* Heading typography setup */
h1,
h2,
h3 {
  margin: 0;
  text-align: center;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: bolder;
  color: #000000;
}

/* Primary hero headline style */
h1 {
  font-size: clamp(3.1rem, 10vw, 4.8rem);
  line-height: 0.95;
  color: #dc7b68;
}

/* Hero subtitle styling for stacked text */
h1 span {
  display: block;
  margin: 10px 0;
  font-size: 0.5em;
  color: #ffd5c7;
}

/* Date text styling in hero */
.hero-date {
  margin: 14px 0 0;
  text-align: center;
  font-size: 1rem;
  color: rgba(255, 247, 239, 0.94);
}

/* Scroll indicator button styling */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 247, 239, 0.34);
  background: rgba(255, 247, 239, 0.2);
  color: #fffaf3;
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(31, 28, 25, 0.16);
  z-index: 1;
}

/* Hover state for scroll prompt */
.scroll-cue:hover {
  background: none;
  color: #FFFFFF;
  border: none;
  opacity: 1;
}

/*
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  top: 90svh;
  transform: translate(-50%, -100%);
  white-space: nowrap;
}
*/

/*.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 4vh;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(220, 123, 104, 0.4);
  color: var(--coral);
	background-color: var(--coral);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1.8rem;
}*/

/*.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 4vh;
    transform: translateX(-50%);

    width: auto;
    height: auto;

    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}*/

/* Scroll cue button position inside hero section */
.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 4vh;
    transform: translateX(-50%);

    width: 50px;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: transparent;
    border: none;
    box-shadow: none;
}

/* Adjust hero cue layout on larger screens */
@media (min-width: 768px) {
  .hero-scroll-cue {
    top: auto;
    bottom: 4svh;
    transform: translateX(-50%);
  }
}

/* Detail and RSVP sections share top/bottom spacing */
.panel-details,
.panel-rsvp {
  padding-top: 40px;
  padding-bottom: 40px;
  background: transparent;
}

/* Glassmorphism content card styling for section panels */
.content-card {
  min-height: auto;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 28px;
  
  /* Enhanced Glassmorphism Settings */
  background: rgba(255, 250, 244, 0.4); /* Increased transparency */
  backdrop-filter: blur(20px);         /* Increased blur for deeper glass effect */
  -webkit-backdrop-filter: blur(20px); /* Added for Safari compatibility */
  
  /* Refined border for a light "glass edge" highlight */
  border: 1px solid rgba(255, 255, 255, 0.6); 
  
  /* Softer, more diffused shadow */
  box-shadow: 0 8px 32px 0 rgba(31, 27, 23, 0.08); 
}

/* Soft card variant for alternate background */
.content-card-soft {
  background: linear-gradient(180deg, rgba(255, 248, 241, 0.9), rgba(240, 250, 243, 0.82));
}

/* Small uppercase label styling used for section labels */
.eyebrow,
.map-label {
  margin: 1rem 0 1.2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Section heading sizing */
h2 {
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  line-height: 0.95;
  margin-bottom: 14px;
}

/* Subheading style */
h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

/* Body text styling for lead copy, footer notes, and grid paragraphs */
.lede,
.footer-note,
.detail-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.detail-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  justify-items: center;
}

.detail-grid article {
  width: 100%;
  max-width: 420px;
  padding: 10px 0;
  text-align: center;
}

.map-thumbnail {
  display: block;
  width: 90%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 50px rgba(43, 31, 22, 0.12);
}

.map-thumbnail-image {
  position: relative;
  min-height: clamp(168px, 44vw, 220px);
  background:
    radial-gradient(circle at 25% 30%, rgba(216, 135, 115, 0.35), transparent 18%),
    radial-gradient(circle at 70% 65%, rgba(123, 159, 143, 0.35), transparent 20%),
    linear-gradient(135deg, #f5e8dc 0%, #d9e5d8 100%);
}

.map-thumbnail-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 95, 84, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 95, 84, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--coral);
  color: #fffaf3;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(220, 123, 104, 0.35);
}

.map-thumbnail-copy {
  padding: 20px 20px 20px;
  text-align: center;
}

.map-thumbnail-copy p {
  margin: 0 0 12px;
  color: var(--muted);
}

.map-thumbnail-copy span {
  color: #a95745;
  font-weight: 600;
}

/* CTA button styling for forms and actions */
.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 50px;
  margin-top: 24px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--green);
  color: #fffaf3;
  text-decoration: none;
  font-weight: 600;
}

/* Button hover state with color inversion and lift */
.form-button:hover {
  background: #fffaf3;
  color: var(--green);
  border: 2px solid var(--green);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(56, 95, 84, 0.2);
  cursor: pointer;
}

/* Interactive hover lift for thumbnails and buttons */
.map-thumbnail:hover,
.form-button:hover {
  transform: translateY(-1px);
}

/* Smooth transition for hover and state changes */
.scroll-cue,
.map-thumbnail,
.form-button {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

/* Footer note small print styling */
.footer-note {
  margin-top: 14px;
  font-size: 0.95rem;
}

/* Mobile padding adjustment for map card copy text */
@media (max-width: 767px) {
  .map-thumbnail-copy {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Mobile height adjustment for detail and RSVP cards */
@media (max-width: 767px) {
  .panel-details .content-card,
  .panel-rsvp .content-card {
    min-height: 70vh;
  }
}


  .panel-details,
  .panel-rsvp {
    display: flex;
    align-items: center;
    justify-content: center;
  }


@media (min-width: 768px) {
  body,
  .site-shell {
    scroll-snap-type: y proximity;
  }

  .panel {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1100px) {
  body,
  .site-shell {
    scroll-snap-type: y mandatory;
  }

  .panel {
    padding: 48px 56px;
  }

  .hero-copy:not(.sr-only),
  .content-card {
    width: min(90%, 800px);
  }

  .content-card {
    min-height: min(80vh, 850px);
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Desktop card layout reset for detail and RSVP panels */
  .panel-details .content-card,
  .panel-rsvp .content-card {
    min-height: auto;
  }

  /* Larger-screen hero copy panel styling */
  .hero-copy:not(.sr-only) {
    padding: 32px 36px;
    border-radius: 32px;
    background: rgba(20, 27, 24, 0.2);
    backdrop-filter: blur(10px);
  }

  h1 {
    font-size: clamp(5rem, 6vw, 7rem);
  }

  h2 {
    font-size: clamp(2.8rem, 4vw, 2.8rem);
  }

  .lede,
  .hero-date {
    font-size: 1.25rem;

  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    width: min(100%, 600px);
    margin: 40px auto 0;
  }

  .detail-grid article {
    max-width: none;
    padding: 20px 0;
  }
}


/* Heading spacing when a button precedes a section heading */
.form-button + h2 {
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: none;
}

/* Decorative horizontal rule styling */
rh {
  border: 0;
  height: 1px;
  width: 70%;
  margin: 3rem auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(56, 95, 84, 0.25),
    transparent
  );
}

/* Extra spacing for RSVP section label */
/*.panel-rsvp .eyebrow {
  margin-bottom: 1rem;
}*/


/* Focus-visible state for the hero scroll cue */
.hero-scroll-cue:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(220, 123, 104, 0.25),
    0 0 20px rgba(220, 123, 104, 0.4);
}

/* Optional heart button variant (commented out) */
/*.heart-button {
    width: 70px;
    height: 70px;
    background: var(--coral);
    color: white;
    border: none;

    clip-path: path("M35 62 L8 35 C-4 20 0 0 18 0 C28 0 35 10 35 10 C35 10 42 0 52 0 C70 0 74 20 62 35 Z");
}*/

/* Heart shape icon using pseudo-elements */
.heart {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    background: red;
    transform: rotate(-45deg);
}

.heart::before,
.heart::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: #dc7b68;
    border-radius: 50%;
}

.heart::before {
    top: -15px;
    left: 0;
}

.heart::after {
    top: 0;
    left: 15px;
}

/* Ensure the hero scroll cue content is visible outside its bounds */
.hero-scroll-cue {
    overflow: visible;
}

/* Hero scroll cue transition setup */
.hero-scroll-cue {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hero scroll cue hover color state */
.hero-scroll-cue:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #ffffff;
}

/* Hero scroll cue hover scale effect */
.hero-scroll-cue:hover {
    color: #ffffff !important;
    transform: translateX(-50%) scale(1.4);
}

.detail-grid article:nth-child(2) h3 {
    margin-bottom: 0.9rem;
}

.detail-grid article {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
	padding: 8px 0;
}
