/* ========================================
   Joseph & Kelly — Wedding Site Styles
   Romantic Coastal Elegance
   ======================================== */

/* ----- Custom Fonts ----- */
@font-face {
  font-family: 'Core Bandi';
  src: url('../fonts/core-bandi.woff2') format('woff2'),
       url('../fonts/core-bandi.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Themysion';
  src: url('../fonts/themysion.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Madelyn';
  src: url('../fonts/Madelyn-Trial-Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Madelyn Fill';
  src: url('../fonts/MadelynFill-Trial-Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-Light.ttf') format('truetype');
  font-display: swap;
}

/* ----- Palette ----- */
:root {
  --ivory:        #faf8f4;
  --cream:        #f3efe8;
  --lavender:     #c4b5d4;
  --lavender-light:#ebe4f0;
  --mauve:        #b8929a;
  --sage:         #9aaa8e;
  --sage-light:   #dce5d5;
  --chambray:     #a3b5c8;
  --blush:        #e8cfd0;
  --text:         #4a4148;
  --text-light:   #756d72;
  --rule:         #d4cad8;

  --font-script:  'Great Vibes', cursive;
  --font-display: 'Core Bandi', 'Petit Formal Script', serif;
  --font-body:    'Cormorant Garamond', 'Core Bandi', 'Petit Formal Script', 'Georgia', serif;
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* Home page: fill viewport with lavender */
body:not(.page-bg) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--lavender-light);
}

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

a {
  color: inherit;
}

/* ----- Hero Card (home page) ----- */
.hero-card-wrapper {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  background: var(--lavender-light);
}

.hero-card-wrapper .hero-invitation {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.hero-card {
  max-width: 960px;
  margin: 0 auto;
  background:
    linear-gradient(rgba(250, 248, 244, 0.55), rgba(250, 248, 244, 0.55)),
    url('../pics/hydrangea.png') center / 500px repeat;
  border-radius: 12px;
  border: 1px solid var(--rule);
  box-shadow:
    0 8px 32px rgba(74, 65, 72, 0.08),
    0 2px 8px rgba(74, 65, 72, 0.04);
  padding: 1.5rem 2rem 2rem;
  position: relative;
}

.hero-card .hero-names {
  margin-bottom: 0.75rem;
  line-height: 0;
}

.hero-names-svg {
  width: 100%;
  max-width: 700px;
  height: auto;
  overflow: visible;
}

.hero-names-svg text {
  font-family: 'Themysion', var(--font-script);
  font-size: 82px;
  font-weight: 400;
  fill: #8b6fa3;
}

.hero-card-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-detail-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 120px;
}

.hero-detail {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8b6fa3;
  text-align: center;
}

.hero-squiggle {
  width: 110px;
  height: auto;
  margin-top: 0;
  opacity: 0.6;
}

.hero-card-body .video-embed {
  width: 100%;
  max-width: 560px;
  min-width: 0;
  padding-top: 0;
  aspect-ratio: 16 / 9;
  flex: 1;
}

/* ----- Hero (sub-pages) ----- */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background:
    url('../pics/hydrangea.png') center / 600px repeat,
    linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
  position: relative;
}

/* Soft fade at the bottom of the hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--ivory));
  pointer-events: none;
}

.hero-invitation {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.hero-names {
  font-family: 'Themysion', var(--font-script);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero-ampersand {
  color: inherit;
}

.hero-date {
  font-family: var(--font-body);
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: var(--text-light);
}

/* Thin ornamental rule under the hero */
.hero-date::after {
  content: '';
  display: block;
  width: 120px;
  height: 1px;
  background: var(--rule);
  margin: 2rem auto 0;
}

/* ----- Content containers ----- */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
}

.content--wide {
  max-width: 1000px;
}

/* ----- Video embed ----- */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(74, 65, 72, 0.08),
    0 1px 4px rgba(74, 65, 72, 0.05);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ----- Navigation Table (home page) ----- */
.nav-table {
  background: var(--lavender-light);
  padding: 0 2rem 2.5rem;
  flex-grow: 1;
}

.nav-table-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ivory);
  box-shadow:
    0 4px 20px rgba(74, 65, 72, 0.06),
    0 1px 4px rgba(74, 65, 72, 0.03);
}

.nav-table-link {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-table-link:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .nav-table-inner {
    flex-direction: row;
    max-width: 960px;
    flex-wrap: nowrap;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
  }

  .nav-table-link {
    white-space: nowrap;
    padding: 0.9rem 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    border-bottom: none;
    border-right: 1px solid var(--rule);
  }

  .nav-table-link:last-child {
    border-right: none;
  }
}

.nav-table-link:hover,
.nav-table-link:focus-visible {
  color: var(--text);
  background: var(--lavender-light);
}

.nav-table-link--rsvp {
  color: #fff;
  background: var(--sage);
  font-weight: 400;
  letter-spacing: 0.25em;
}

.nav-table-link--rsvp:hover,
.nav-table-link--rsvp:focus-visible {
  background: #8a9b7e;
  color: #fff;
}

/* ----- RSVP Button ----- */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1rem 3rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn--sage {
  background: var(--sage);
  color: #fff;
  border: 1px solid var(--sage);
}

.btn--sage:hover,
.btn--sage:focus-visible {
  background: #8a9b7e;
  border-color: #8a9b7e;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(154, 170, 142, 0.35);
}

/* ----- Ornament ampersand ----- */
.ornament {
  display: block;
  text-align: center;
  margin: 1.5rem auto 2rem;
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--lavender);
  opacity: 0.7;
}

/* ----- Utility ----- */
.mt-md {
  margin-top: 2rem;
}

/* ----- Nav (used on sub-pages) ----- */
.site-nav {
  padding: 0.75rem 2rem 0;
  background: var(--ivory);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  color: var(--text-light);
  border: 1px solid transparent;
  border-bottom: 1px solid var(--rule);
  border-radius: 8px 8px 0 0;
  transition: color 0.2s ease, background 0.2s ease;
  margin-bottom: -1px;
}

.nav-link:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

/* ----- Sub-page layout ----- */
.page-bg {
  background:
    linear-gradient(rgba(250, 248, 244, 0.45), rgba(250, 248, 244, 0.45)),
    url('../pics/hydrangea.png') center / 500px repeat fixed;
  min-height: 100vh;
}

.page-bg .content {
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow:
    0 0 40px rgba(74, 65, 72, 0.06);
  min-height: calc(100vh - 60px);
}

/* ----- Page title (sub-pages) ----- */
.page-title {
  font-family: 'Themysion', var(--font-script);
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.page-tagline {
  font-family: var(--font-body);
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ----- Active nav link (folder tab) ----- */
.nav-link--active,
.nav-link--active:hover {
  color: var(--text);
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-bottom: 1px solid var(--ivory);
}

/* ----- Typography ----- */
h2 {
  font-family: 'Madelyn Fill', 'Madelyn', var(--font-script);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 2rem 0 0.75rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ----- Script utility classes ----- */
.script {
  font-family: var(--font-script);
  font-weight: 400;
}

.script-lg {
  font-size: clamp(2.2rem, 8vw, 4rem);
}

.script-md {
  font-size: 1.6rem;
}

/* ----- Dividers ----- */
.divider {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 2rem auto;
}

.divider--short {
  max-width: 120px;
}

/* ----- Cards ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card-grid--two-col {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.card-grid--two-col > .card-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-grid--narrow {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(74, 65, 72, 0.08);
}

.card-grid--two-col .card {
  transform: none;
  overflow: hidden;
}

.card--accent-top {
  border-top: 3px solid var(--lavender);
}

.card-photo {
  width: 100%;
  margin: 1rem 0 0;
  object-fit: cover;
  display: block;
}

.card-name {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0;
}

.card-role {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-light);
}

.card-address {
  font-size: 1.05rem;
  color: var(--text-light);
  font-style: italic;
}

/* ----- Card Blurb Dropdown ----- */
.card-blurb,
.card-blurb:first-of-type {
  text-align: center;
  border: none;
  padding: 0.75rem 0 0;
  margin: 0;
  overflow: hidden;
}

.card-blurb summary {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: #7b5ea7;
  text-align: center;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.card-blurb summary::after {
  content: '\25BE';
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.card-blurb[open] summary::after {
  transform: rotate(180deg);
}

.card-blurb summary::before {
  display: none;
}

.card-blurb summary:hover {
  color: var(--text);
}

.card-blurb .card-text,
.card-blurb p {
  padding: 0;
  margin: 0.25rem 0;
  animation: blurb-open 0.8s ease;
}

@keyframes blurb-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-photo + .card-blurb {
  margin-top: 0.75rem;
}

/* ----- Accommodations ----- */
.stay-block {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  margin: 1.5rem 0;
}

.stay-block--featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0.75rem 2rem;
  align-items: start;
}

.stay-featured-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 2.8rem;
  margin: 0;
}

.stay-badge--footer {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0.5rem 0 0;
}

.stay-photo {
  display: block;
  width: 320px;
  border-radius: 8px;
}

.stay-details {
  flex: 1;
  font-size: 1.05rem;
}

.stay-details h2 {
  font-size: 1.8rem;
}

.stay-details .stay-booking {
  margin-top: 1rem;
  padding-top: 1rem;
}

.stay-block h2 {
  margin-top: 0;
}

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

.stay-disclaimers {
  grid-column: 1 / -1;
  text-align: center;
}


.stay-disclaimers .stay-fine-print {
  margin: 0.25rem 0;
}

@media (max-width: 680px) {
  .stay-two-col {
    grid-template-columns: 1fr;
  }
  .stay-block--featured {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .stay-photo {
    width: 100%;
    max-width: 350px;
  }
}

.stay-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lavender);
  border: 1px solid var(--lavender);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}

.stay-booking {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.stay-code {
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin: 0;
}

.stay-fine-print {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  margin: 0.75rem 0;
}

/* ----- Other Hotels Link Bar ----- */
.stay-hotel-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.stay-hotel-link {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  background: var(--ivory);
  transition: all 0.2s ease;
}

.stay-hotel-link:hover,
.stay-hotel-link:focus-visible {
  background: var(--lavender-light);
  border-color: var(--lavender);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 181, 212, 0.25);
}

/* ----- Registry Card ----- */
.registry-card {
  max-width: 440px;
  margin: 1rem auto 0;
  padding: 2.5rem 2rem 2rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-align: center;
  box-shadow:
    0 6px 24px rgba(74, 65, 72, 0.07),
    0 1px 4px rgba(74, 65, 72, 0.04);
}

.registry-card-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.registry-card-title {
  font-family: 'Madelyn Fill', 'Madelyn', var(--font-script);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.registry-card-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 360px;
  margin: 0 auto 1.5rem;
}

.registry-card-btn {
  font-size: 0.9rem;
  padding: 0.85rem 2.5rem;
}

/* ----- Guide List (Things to Do) ----- */
.guide-list {
  text-align: left;
  max-width: 600px;
  margin: 1rem auto 0;
}

.guide-item {
  position: relative;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.guide-name a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.guide-item:has(.guide-name a):hover {
  cursor: pointer;
}

.guide-item:has(.guide-name a):hover .guide-name a {
  color: var(--lavender);
}

.guide-photo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.guide-body {
  flex: 1;
  min-width: 0;
}

.guide-item:first-child {
  border-top: 1px solid var(--rule);
}

.guide-name {
  font-family: var(--font-body);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 0.25rem;
  display: inline;
}

.guide-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.guide-name a:hover,
.guide-name a:focus-visible {
  color: var(--lavender);
}

.guide-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-light);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.guide-addr {
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0.2rem 0 0;
}

.guide-note {
  font-size: 1.05rem;
  color: var(--text-light);
  margin: 0.35rem 0 0;
}

/* ----- Venue Photo ----- */
.venue-photo {
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto 1rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 20px rgba(74, 65, 72, 0.08);
}

/* ----- Timeline (Weekend Details) ----- */
.timeline {
  max-width: 600px;
  margin: 1rem auto;
  text-align: left;
}

.timeline-item {
  position: relative;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 1px solid var(--rule);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 1.3rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lavender);
}

.timeline-time {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lavender);
}

.timeline-title {
  font-family: 'Madelyn Fill', 'Madelyn', var(--font-script);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0.2rem 0;
}

.timeline-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Day header with shell icon */
.day-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 2rem auto 0.75rem;
  max-width: 600px;
}

.day-header .day-header-icon {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  object-fit: contain;
  object-position: center;
}

.day-header h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
}

.day-header-icon {
  height: 60px;
  width: auto;
  opacity: 0.75;
}

/* ----- Tabs (Wedding Party) ----- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.tab {
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--ivory);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover {
  border-color: var(--lavender);
  color: var(--text);
}

.tab--active {
  background: var(--lavender-light);
  border-color: var(--lavender);
  color: var(--text);
}

/* ----- FAQ Accordion ----- */
details {
  text-align: left;
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}

details:first-of-type {
  border-top: 1px solid var(--rule);
}

summary {
  font-family: var(--font-body);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: '+';
  display: inline-block;
  width: 1.5rem;
  font-size: 1.1rem;
  color: var(--lavender);
  font-weight: 400;
}

details[open] summary::before {
  content: '\2013';
}

summary:hover {
  color: var(--lavender);
}

details p {
  padding: 0.5rem 0 0.25rem 1.5rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

/* ----- Dress code ----- */
.dress-code-label {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--text);
  margin: 1rem 0 0.5rem;
}

.dress-code-note {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--mauve);
  margin: 0.75rem 0;
}

/* ----- RSVP iframe ----- */
.iframe-container {
  position: relative;
  width: 100%;
  min-height: 600px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.iframe-container iframe {
  width: 100%;
  height: 600px;
  border: none;
}

/* ----- Default button (outline) ----- */
.btn:not(.btn--sage) {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--text);
}

.btn:not(.btn--sage):hover {
  background: var(--lavender-light);
  border-color: var(--lavender);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 181, 212, 0.25);
}

/* ----- Inline CSS variable fallbacks ----- */
:root {
  --space-xs:        0.5rem;
  --text-small:      0.85rem;
  --color-text-light: var(--text-light);
}

/* ----- Mobile ----- */
@media (max-width: 767px) {
  /* Show hydrangea background on all pages */
  html, body {
    background:
      linear-gradient(rgba(250, 248, 244, 0.45), rgba(250, 248, 244, 0.45)),
      url('../pics/hydrangea.png') center / 500px repeat;
  }

  /* Sub-pages: reveal hydrangea below content */
  .page-bg .content {
    min-height: auto;
    border-radius: 0 0 12px 12px;
  }

  .page-bg {
    padding-bottom: 7.5rem;
  }

  /* Home page: round top and bottom to create card effect */
  .hero-card-wrapper {
    border-radius: 12px 12px 0 0;
    padding: 3rem 1.25rem 2rem;
  }

  .nav-table {
    border-radius: 0 0 12px 12px;
    padding: 0 1.25rem 2rem;
  }

  /* Add spacing around home page for hydrangea reveal */
  body:not(.page-bg) {
    padding: 1.5rem 0 7.5rem;
  }

  /* Sub-pages: round top of nav to create card effect */
  .site-nav {
    border-radius: 12px 12px 0 0;
    padding: 0.5rem 1rem 0;
  }

  .hero {
    padding: 3.5rem 1.5rem 2.5rem;
  }

  .hero-squiggle {
    display: none;
  }

  .hero-names {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero-card {
    padding: 2rem 1.25rem 1.5rem;
  }

  .hero-card-body {
    flex-direction: column;
  }

  .content {
    padding: 2rem 1.25rem;
  }

  .nav-table-link {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin: 0 auto 0.5rem;
  }

  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

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

  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
  }

  .hero--page {
    padding: 2.5rem 1.5rem 2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-grid--two-col {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .card-grid--two-col > .card-col {
    display: contents;
  }

  .card-grid--two-col > .card-col .card {
    width: 100%;
    order: 2;
  }

  .card-grid--two-col > .card-col .card.card--accent-top {
    order: 0;
  }

  .tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab {
    width: 100%;
    max-width: 280px;
  }

  .guide-name {
    display: block;
  }

  .guide-tag {
    margin-left: 0;
    margin-top: 0;
  }

  .timeline {
    margin-left: 0.5rem;
  }
}
