/* =========================================================================
   Makayla & Micah — Wedding Website — styles.css
   Wedding color: PLUM. Supported by sage green, gold, and soft lilac.
   All colors are defined once as variables below — change them in one place.
   ========================================================================= */

:root {
  /* --- Palette (edit these to reskin the whole site) --- */
  --ivory:      #faf7f3;   /* page background */
  --cream:      #f2ebe3;   /* alternating section background */

  --plum:       #6d4270;   /* PRIMARY accent — the wedding color */
  --plum-dark:  #4c2b53;   /* deeper plum for hovers / footer */
  --lilac:      #cbb3d6;   /* soft purple pastel */

  --sage:       #8a9a7b;   /* complementary accent */
  --sage-dark:  #6a7a5c;
  --gold:       #b08d57;   /* fine detail lines, flourishes */

  --charcoal:   #000000;   /* body text — solid black for mobile legibility */
  --muted:      #000000;   /* secondary text — solid black (was soft gray) */
  --white:      #ffffff;

  /* --- Type --- */
  --script:  "MonteCarlo", "Segoe Script", cursive;   /* the couple's names */
  --display: "Forum", "Times New Roman", serif;         /* headings */
  --body:    "Forum", Georgia, serif;                   /* body copy */

  /* --- Spacing rhythm --- */
  --maxw: 1080px;
}

/* --- Reset-ish --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.7;
  font-weight: 400;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--plum); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3 {
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 .4em;
}
/* Section titles in the MonteCarlo script */
h1, h2 {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.25;
}
/* Smaller sub-titles stay in Forum for legibility */
h3 {
  font-family: var(--display);
  font-weight: 500;
}
h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }

.script { font-style: italic; color: var(--plum); }

/* Small caps eyebrow label */
.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  font-weight: 400;
  color: #000;
  margin: 0 0 1rem;
}

/* --- Layout helpers --- */
.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }
.section { padding: 5.5rem 0; }
.section--cream { background: var(--cream); }
.section--plum { background: var(--plum-dark); color: #efe7ee; }
.section--plum h2, .section--plum h3 { color: #fff; }
.section--plum .eyebrow { color: var(--lilac); }

/* Watercolor artwork backgrounds. The cream veil keeps text readable while
   the florals show through — raise/lower the alpha to hide/reveal more art. */
.section--art-story {
  background:
    linear-gradient(rgba(242,235,227,.66), rgba(242,235,227,.66)),
    url("../assets/bg/how-we-got-here.webp") center / cover no-repeat var(--cream);
}
.section--art-ceremony {
  background:
    linear-gradient(rgba(242,235,227,.55), rgba(242,235,227,.55)),
    url("../assets/bg/ceremony-reception.webp") center / cover no-repeat var(--cream);
}
.section--art-herstory {
  background:
    linear-gradient(rgba(250,247,243,.62), rgba(250,247,243,.62)),
    url("../assets/bg/her-his-larkspur.webp") center / cover no-repeat var(--ivory);
}
.section--art-storyintro {
  padding: 7.5rem 0;                 /* ~20% taller than the standard section */
  background:
    linear-gradient(rgba(250,247,243,.63), rgba(250,247,243,.63)),
    url("../assets/photos/story_01.webp") center / cover no-repeat var(--ivory);
}
/* "Our Story" label: a bit bigger and darker */
.section--art-storyintro .eyebrow {
  color: var(--plum-dark);
  font-size: .86rem;
}
/* Intro paragraph: much darker for legibility */
.section--art-storyintro .lede { color: #241f28; }
.section--art-fromcouple {
  background:
    linear-gradient(rgba(250,247,243,.60), rgba(250,247,243,.60)),
    url("../assets/bg/from-couple-lily.webp") center / cover no-repeat var(--ivory);
}
/* Welcome section: plum lettering & text on cream */
.section--welcome .eyebrow,
.section--welcome h2,
.section--welcome .lede { color: var(--plum); }
.center { text-align: center; }

/* Body copy block (From the Couple) */
.prose { max-width: 720px; margin: 2.4rem auto 0; text-align: left; }
.prose p { margin: 0 0 1.3rem; color: var(--charcoal); }
.prose .signoff {
  font-family: var(--script); font-size: 2.6rem; color: var(--plum);
  text-align: center; margin-top: 1.4rem;
}

/* Two side-by-side couple photos (stays two-up on mobile) */
.duo-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  margin: 2rem auto 2.4rem; max-width: 620px;
}
.duo-photos figure { margin: 0; text-align: center; }
.duo-photos img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border: 5px solid var(--white); box-shadow: 0 8px 24px rgba(76,43,83,.18);
  background: var(--cream);
}
.duo-photos figcaption {
  margin-top: .7rem; font-family: var(--display);
  font-size: 1.1rem; color: var(--plum);
}

/* A framed photo used as a wide banner within a section */
.banner-photo {
  width: min(94%, 720px);
  margin: 2.4rem auto 0;
  border: 6px solid var(--white);
  box-shadow: 0 10px 30px rgba(76,43,83,.18);
}
.lede { max-width: 640px; margin: 0 auto; color: var(--muted); }

/* Decorative divider */
.divider {
  width: 60px; height: 1px; background: var(--gold);
  margin: 1.4rem auto; position: relative;
}
.divider::before {
  content: "❦";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: inherit;
  color: var(--gold);
  font-size: 1.1rem;
  padding: 0 .5rem;
  line-height: 1;
}
.divider--onlight { background: var(--gold); }

/* =========================================================================
   Navigation
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 243, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(109, 66, 112, 0.22);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.nav__brand {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .04em;
  color: var(--plum);
}
.nav__links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  color: var(--charcoal);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--gold); }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; color: var(--plum);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  padding: 4rem 0;
  background:
    linear-gradient(rgba(250,247,243,.55), rgba(250,247,243,.70)),
    url("../assets/bg/hero-anemones.webp") center top / cover no-repeat var(--ivory);
}
/* Keep the hero text + photo above the watercolor background */
.hero__inner { max-width: 760px; padding: 0 1.5rem; position: relative; z-index: 1; }
.hero__photo {
  width: min(92%, 500px);
  margin: 1.5rem auto .4rem;
  border: 6px solid var(--white);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(76,43,83,.28);
}
.hero__names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.8rem, 13vw, 8rem);
  line-height: 1.1;
  margin: .2rem 0;
}
.hero__amp { color: var(--gold); }
.hero__tag {
  text-transform: uppercase; letter-spacing: .22em;
  font-size: 1rem; color: #000;
}
.hero__date {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4.2vw, 2.2rem);
  color: #000;
  margin-top: 1rem;
}

/* =========================================================================
   Countdown
   ========================================================================= */
.countdown {
  display: flex; justify-content: center; gap: clamp(1rem, 5vw, 3rem);
  margin: 2.5rem 0 .5rem;
}
.countdown__unit { text-align: center; min-width: 64px; }
.countdown__num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.5vw, 3.7rem);
  color: #000;
  line-height: 1;
}
.countdown__label {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .76rem; color: #000; margin-top: .4rem;
}

/* =========================================================================
   Detail cards (ceremony / reception)
   ========================================================================= */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.card {
  background: var(--white);
  border: 1px solid rgba(109,66,112,.18);
  padding: 2.5rem 2rem;
  text-align: center;
}
.card__icon { font-size: 1.8rem; color: var(--gold); }
.card h3 { margin-top: .8rem; }
.card p { margin: .3rem 0; color: var(--muted); }
.card strong { color: var(--charcoal); font-weight: 500; }

/* =========================================================================
   Schedule / timeline of the day
   ========================================================================= */
.schedule { max-width: 620px; margin: 3rem auto 0; }
.schedule__item {
  display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem;
  padding: 1.2rem 0; border-bottom: 1px dashed rgba(176,141,87,.35);
}
.schedule__time { font-family: var(--display); font-size: 1.2rem; color: var(--plum); }
.schedule__desc strong { display: block; }
.schedule__desc span { color: var(--muted); font-size: .92rem; }

/* =========================================================================
   Story timeline (with optional photos)
   ========================================================================= */
.timeline { max-width: 900px; margin: 3rem auto 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: rgba(109,66,112,.35); transform: translateX(-50%);
}
/* Each entry: text on one side, photo on the other, both tops at the node.
   Reduce --tl-gap to bring the points closer together. */
.tl {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}
.tl:last-child { margin-bottom: 0; }
.tl::after {
  content: ""; position: absolute; top: .2rem; left: 50%; transform: translateX(-50%);
  width: 13px; height: 13px; background: var(--plum);
  border-radius: 50%; border: 2px solid var(--ivory);
}
/* odd: text left, photo right   —   even: photo left, text right */
.tl:nth-child(odd)  .tl__text  { grid-column: 1; grid-row: 1; text-align: right; }
.tl:nth-child(odd)  .tl__photo { grid-column: 2; grid-row: 1; justify-self: start; }
.tl:nth-child(even) .tl__text  { grid-column: 2; grid-row: 1; text-align: left; }
.tl:nth-child(even) .tl__photo { grid-column: 1; grid-row: 1; justify-self: end; }

.tl__year { font-family: var(--display); color: #000; font-size: 1.4rem; }
.tl h3 { margin: .2rem 0; }
.tl p { color: var(--muted); margin: .2rem 0 0; }
.tl__photo {
  display: block; width: 100%; max-width: 300px; height: auto;
  border: 4px solid var(--white); box-shadow: 0 4px 18px rgba(76,43,83,.12);
}

/* =========================================================================
   His Story / Her Story (dual columns)
   ========================================================================= */
.dual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  margin-top: 3rem; text-align: left;
}
.dual__col {
  background: var(--cream);
  border-top: 3px solid var(--plum);
  padding: 2.5rem 2.2rem;
  box-shadow: 0 6px 24px rgba(76,43,83,.07);
}
.dual__col--his { border-top-color: var(--sage); }
.dual__heading {
  font-family: var(--display); font-style: italic;
  font-size: 1.9rem; color: var(--plum); margin-bottom: .2rem;
}
.dual__col--his .dual__heading { color: var(--sage-dark); }
.dual__sub {
  text-transform: uppercase; letter-spacing: .2em; font-size: .68rem;
  color: var(--muted); margin: 0 0 1.4rem;
}
.dual__col p { color: var(--charcoal); }
.dual__portrait {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
  margin: 1.2rem 0 1.4rem;
  border: 5px solid var(--white); box-shadow: 0 6px 20px rgba(76,43,83,.14);
}

/* =========================================================================
   Pet family ("Our Little Zoo")
   ========================================================================= */
/* Our Little Zoo — big script name + a row of that pet's photos.
   Photos share a common HEIGHT; width follows each image's aspect ratio
   (no cropping). Rows span the full width, like the title. */
.zoo { margin: 2.5rem 0 0; text-align: left; }
.zoo-pet { margin-bottom: 2rem; }
.zoo-pet:last-child { margin-bottom: 0; }
.zoo-pet__name {
  font-family: var(--script); color: #fff; text-transform: lowercase;
  font-size: clamp(2.6rem, 7vw, 3.8rem); line-height: 1; margin-bottom: .5rem;
}
.zoo-pet__row { display: flex; flex-wrap: wrap; gap: .8rem; }
.zoo-pet__row img {
  height: 220px; width: auto; flex: 0 0 auto; max-width: 100%;
  border-radius: 6px; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.20);
}
.zoo-memoriam-title {
  font-family: var(--script); color: #fff; text-align: left;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 2.8rem 0 .4rem;
}
@media (max-width: 520px) {
  .zoo-pet__row img { height: 150px; }
}

.memoriam {
  margin-top: 2.5rem; text-align: center;
  font-family: var(--display); font-style: italic; color: #efe7ee;
}
.memoriam strong { color: #fff; font-style: normal; font-weight: 500; }

/* =========================================================================
   From the Parents (quote cards)
   ========================================================================= */
.parents {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; margin-top: 3rem; text-align: left;
}
.parent-card {
  background: var(--white);
  border: 1px solid rgba(109,66,112,.15);
  border-left: 4px solid var(--lilac);
  padding: 2.4rem 2.2rem;
  position: relative;
}
.parent-card::before {
  content: "\201C";               /* opening quotation mark */
  font-family: var(--display);
  font-size: 4.5rem; line-height: 1;
  color: var(--lilac);
  position: absolute; top: .6rem; left: 1.2rem;
}
.parent-card p {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--charcoal);
  margin: 1.4rem 0 1.2rem;
  position: relative;
}
.parent-card__from {
  text-transform: uppercase; letter-spacing: .2em;
  font-size: .72rem; color: var(--plum); font-weight: 400;
}

/* From the Parents — prose style (no boxes) */
.parents-sub {
  font-family: var(--display); font-style: italic;
  font-size: 1.2rem; color: #000; margin: .1rem 0 0;
}
.parent-notes { max-width: 680px; margin: 2.6rem auto 0; text-align: left; }
.parent-note__msg + .parent-note__msg { margin-top: .9rem; }
.parent-note__sign { font-style: italic; margin-top: .5rem; }
.parent-note { margin-bottom: 2.4rem; }
.parent-note:last-child { margin-bottom: 0; }
.parent-note__name {
  font-family: var(--script); font-size: 2.3rem; color: var(--plum); line-height: 1.1;
}
.parent-note__rel {
  text-transform: uppercase; letter-spacing: .2em;
  font-size: .68rem; color: #000; margin-top: .3rem;
}
.parent-note__msg { margin-top: .8rem; color: #000; }

/* =========================================================================
   Photo gallery
   ========================================================================= */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin-top: 3rem;
}
.gallery figure { margin: 0; overflow: hidden; position: relative; }
.gallery img {
  width: 100%; height: 260px; object-fit: cover;
  transition: transform .5s ease; filter: saturate(.97);
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(58,51,57,.65));
  color: #fff; font-size: .8rem; padding: 1.5rem .8rem .6rem;
  letter-spacing: .05em; opacity: 0; transition: opacity .3s ease;
}
.gallery figure:hover figcaption { opacity: 1; }

/* Favorites album — scrapbook flow. Photos share a common height, keep their
   natural width (no cropping); each captioned by its title. */
.album {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.8rem 1.4rem; margin-top: 2.5rem;
}
.album__item { margin: 0; }
.album__item img {
  height: 240px; width: auto; max-width: 100%; display: block;
  border: 5px solid var(--white); box-shadow: 0 6px 18px rgba(76,43,83,.15);
}
.album__item figcaption {
  margin-top: .5rem; font-family: var(--display); color: var(--plum);
  font-size: 1rem; text-align: center;
}
@media (max-width: 520px) { .album__item img { height: 180px; } }

/* =========================================================================
   Travel / info blocks
   ========================================================================= */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin-top: 3rem; text-align: left;
}
.info-block h3 { color: var(--plum); }
.info-block h3 span { color: var(--gold); margin-right: .5rem; }
.info-block p { color: var(--muted); }

.btn {
  display: inline-block; margin-top: .8rem;
  font-family: var(--body); text-transform: uppercase;
  letter-spacing: .16em; font-size: .74rem;
  color: var(--white); background: var(--plum);
  padding: .8rem 1.8rem; border: 1px solid var(--plum);
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: transparent; color: var(--plum); }
.btn--ghost { background: transparent; color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: var(--white); }

/* =========================================================================
   Music toggle (floating)
   ========================================================================= */
.music-toggle {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 100;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: var(--plum); color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(76,43,83,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.music-toggle:hover { transform: scale(1.08); background: var(--plum-dark); }
.music-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.music-toggle__icon { display: block; }

/* Dim slightly when paused, gentle pulsing ring when playing */
.music-toggle { opacity: .78; }
.music-toggle.is-playing { opacity: 1; animation: musicPulse 1.8s ease-in-out infinite; }
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(76,43,83,.35), 0 0 0 0 rgba(203,179,214,.55); }
  50%      { box-shadow: 0 6px 18px rgba(76,43,83,.35), 0 0 0 12px rgba(203,179,214,0); }
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  background: var(--plum-dark); color: #e8ddea;
  text-align: center; padding: 3.5rem 0;
}
.footer__names { font-family: var(--script); font-size: 3rem; line-height: 1.2; color: #fff; }
.footer p { margin: .4rem 0; font-size: .85rem; color: #d3c6d5; }
.footer .divider { background: rgba(255,255,255,.4); }
.footer .divider::before { background: var(--plum-dark); color: #fff; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 820px) {
  .dual { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: var(--ivory); border-bottom: 1px solid rgba(109,66,112,.22);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__links.is-open { max-height: 340px; }
  .nav__links li { text-align: center; padding: .9rem 0; border-top: 1px solid rgba(109,66,112,.12); }
  .nav__toggle { display: block; }

  .timeline::before { left: 18px; }
  .tl { grid-template-columns: 1fr; column-gap: 0; padding-left: 3rem; margin-bottom: 1.6rem; }
  .tl::after { left: 12px; transform: none; }
  .tl:nth-child(odd) .tl__text,
  .tl:nth-child(even) .tl__text { grid-column: 1; grid-row: auto; text-align: left; order: 0; }
  .tl:nth-child(odd) .tl__photo,
  .tl:nth-child(even) .tl__photo { grid-column: 1; grid-row: auto; justify-self: start; order: 1; margin: .7rem 0 0; max-width: 420px; }

  .schedule__item { grid-template-columns: 90px 1fr; gap: 1rem; }
}
