/* =========================================================
   MODERN MINIMAL THEME
   Theme-specific styling for the Modern Minimal wedding invite.
   Clean, editorial, neutral, image-led, and lightweight.
========================================================= */

/* -----------------------------
   1. Theme Variables
----------------------------- */

:root {
  --color-bg: #f7f4ef;
  --color-surface: #ffffff;
  --color-surface-alt: #eeebe5;

  --color-heading: #191715;
  --color-text: #3d3934;
  --color-muted: #777069;

  --color-primary: #2d2a26;
  --color-primary-dark: #11100f;
  --color-primary-soft: rgba(45, 42, 38, 0.1);

  --color-border: rgba(25, 23, 21, 0.12);

  --location-bg-image: url("../../../kimwarren/images/reception.webp");

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Playfair Display", Georgia, "Times New Roman", serif;

  --shadow-soft: 0 22px 60px rgba(25, 23, 21, 0.06);
  --shadow-card: 0 28px 70px rgba(25, 23, 21, 0.12);
  --shadow-strong: 0 34px 90px rgba(25, 23, 21, 0.2);

  --hero-overlay: linear-gradient(
    90deg,
    rgba(10, 10, 9, 0.68) 0%,
    rgba(10, 10, 9, 0.36) 43%,
    rgba(10, 10, 9, 0.12) 100%
  );
}

/* -----------------------------
   2. Body Background
----------------------------- */

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(25, 23, 21, 0.045), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(25, 23, 21, 0.035), transparent 30%),
    var(--color-bg);
  background-attachment: fixed;
}

/* -----------------------------
   3. Typography
----------------------------- */

.section-title,
.detail-card h3,
.story-timeline__item h3,
.entourage-card h3,
.closing__names,
.hero__title {
  letter-spacing: -0.04em;
}

.section-title {
  max-width: 820px;
}

.section-kicker,
.eyebrow,
.site-nav a,
.btn,
.detail-card__kicker,
.countdown__item span {
  font-family: var(--font-body);
}

.section-kicker,
.eyebrow {
  gap: 12px;
  color: var(--color-primary);
}

.hero .eyebrow {
  color: #fff;
}

.hero .eyebrow::before, .hero .eyebrow::after {
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

.section-kicker::before,
.section-kicker::after,
.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}

.signature-block,
.closing__names {
  color: var(--color-heading);
}

.signature-block span:nth-child(2),
.closing__names span:nth-child(2) {
  color: var(--color-muted);
  font-style: italic;
}

/* -----------------------------
   4. Loader
----------------------------- */

.page-loader {
  background: var(--color-bg);
}

.page-loader__mark {
  width: 104px;
  height: 104px;
  border-color: rgba(25, 23, 21, 0.16);
  color: var(--color-heading);
  background: var(--color-surface);
}

.page-loader__mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(25, 23, 21, 0.08);
  border-radius: 50%;
}

.page-loader__text {
  color: var(--color-muted);
}

/* -----------------------------
   5. Header
----------------------------- */

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 7, 0.36), rgba(8, 8, 7, 0));
  pointer-events: none;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.site-header.is-scrolled {
  background: rgba(247, 244, 239, 0.86);
  box-shadow: 0 14px 40px rgba(25, 23, 21, 0.08);
  backdrop-filter: blur(18px);
}

.site-logo__initials {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled .site-logo__initials {
  background: rgba(25, 23, 21, 0.05);
}

.site-nav a {
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.site-header.is-scrolled .site-nav a {
  text-shadow: none;
}

/* -----------------------------
   6. Hero Theme
----------------------------- */

.hero {
  background: #141311;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 60%, rgba(247, 244, 239, 0.72) 92%, var(--color-bg) 100%),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.12), transparent 26%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--color-bg));
  pointer-events: none;
}

.hero__image {
  filter: saturate(0.92) contrast(0.98);
}

.hero__title {
  max-width: 760px;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.hero__amp {
  display: inline-block;
  min-width: auto;
  margin-left: clamp(12px, 5vw, 58px);
  font-size: 0.36em;
  color: rgba(255, 255, 255, 0.82);
}

.hero__subtitle {
  max-width: 520px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.hero__date {
  width: fit-content;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero__date-divider {
  opacity: 0.5;
}

.hero__decor {
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.15);
  opacity: 0.42;
}

.hero__decor--one {
  width: 112px;
  height: 112px;
}

.hero__decor--two {
  width: 56px;
  height: 56px;
}

.hero__decor--three {
  width: 84px;
  height: 84px;
}

.scroll-cue {
  border-color: var(--color-primary);
}
.scroll-cue span {
  background: var(--color-primary);
}

/* -----------------------------
   7. Buttons
----------------------------- */

.btn {
  border-radius: 16px;
}

.btn-primary {
  color: #ffffff;
  background: #1f1d1a;
  box-shadow: 0 16px 38px rgba(25, 23, 21, 0.18);
}

.btn-primary:hover {
  color: #ffffff;
  background: #000000;
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  color: var(--color-heading);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
}

/* -----------------------------
   8. Sections and Cards
----------------------------- */

.wedding-date,
.story,
.dress-code,
.location,
.closing {
  background: var(--color-surface-alt);
}

.invitation,
.details,
.entourage,
.gallery,
.rsvp {
  background:
    radial-gradient(circle at 5% 16%, rgba(25, 23, 21, 0.035), transparent 24%),
    radial-gradient(circle at 92% 78%, rgba(25, 23, 21, 0.035), transparent 24%),
    var(--color-bg);
}

.invitation__image,
.detail-card,
.story__image,
.entourage-card,
.dress-code__image-wrap,
.gallery__item,
.location__card,
.rsvp__inner,
.countdown__item,
.story-timeline__item {
  border-radius: 24px;
}

.invitation__image,
.story__image {
  border: 8px solid rgba(255, 255, 255, 0.78);
}

.story__image--small {
  animation: floatSoft 8s ease-in-out infinite;
}


.invitation__image-wrap::before {
  content: "";
  position: absolute;
  inset: 22px -18px -18px 22px;
  z-index: -1;
  border: 1px solid rgba(25, 23, 21, 0.11);
  border-radius: 28px;
}

.invitation__image-card {
  border-radius: 22px;
  border: 1px solid rgba(25, 23, 21, 0.1);
  color: var(--color-heading);
  background: rgba(255, 255, 255, 0.94);
}

.countdown__item,
.detail-card,
.story-timeline__item,
.entourage-card,
.rsvp__inner {
  border-color: rgba(25, 23, 21, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.countdown__item strong {
  color: var(--color-heading);
}

.detail-card::before,
.entourage-card::before,
.location__card::before,
.rsvp__inner::before {
  content: none;
}

.detail-card__content {
  background: var(--color-surface);
}

.story__images::before {
  content: "";
  position: absolute;
  right: -18px;
  top: 32px;
  width: 72%;
  height: 74%;
  border: 1px solid rgba(25, 23, 21, 0.1);
  border-radius: 28px;
}

.story-timeline__item::after {
  content: none;
}

.story-timeline__item > span {
  color: #ffffff;
  background: var(--color-primary);
}

.entourage-card::after {
  content: none;
}

.dress-code__image-wrap::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  pointer-events: none;
}

.dress-code__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(25, 23, 21, 0.2));
  pointer-events: none;
}

.color-palette__swatch--one {
  background: #fff;
}

.color-palette__swatch--two {
  background: #2563EB;
}

.color-palette__swatch--three {
  background: #20317B;
}

.color-palette__swatch--four {
  background: #000;
}

.gallery__item {
  border: 0;
}

.gallery__item::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.gallery__item:hover::before {
  opacity: 1;
}

/* -----------------------------
   9. Location and RSVP
----------------------------- */

.location__card {
  background:
    linear-gradient(
      90deg,
      rgba(247, 244, 239, 0.96) 0%,
      rgba(247, 244, 239, 0.88) 52%,
      rgba(247, 244, 239, 0.62) 100%
    ),
    var(--location-bg-image);
  background-position: center;
  background-size: cover;
}

.rsvp__inner::after {
  content: "W & K";
  position: absolute;
  right: 28px;
  bottom: 18px;
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1;
  color: rgba(25, 23, 21, 0.045);
  pointer-events: none;
}

/* -----------------------------
   10. Floating Controls
----------------------------- */

.music-toggle,
.back-to-top {
  border-radius: 18px;
  background: #1f1d1a;
}

.music-toggle:hover,
.back-to-top:hover {
  background: #000000;
}

.music-toggle::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 1px solid rgba(25, 23, 21, 0.22);
  border-radius: 24px;
  animation: modernPulse 2.2s ease-in-out infinite;
}

.music-toggle.is-playing::before {
  border-color: rgba(25, 23, 21, 0.5);
}

@keyframes modernPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.14;
  }
}

/* -----------------------------
   11. Mobile Theme Adjustments
----------------------------- */

@media (max-width: 920px) {
  .site-nav {
    background: rgba(247, 244, 239, 0.98);
  }

  body.nav-open .site-nav,
  body.nav-open .site-nav.is-open {
    background: rgba(247, 244, 239, 0.98);
  }

  .story__images::before {
    right: 10px;
    top: 18px;
    width: 72%;
    height: 72%;
  }

  .location__card {
    background:
      linear-gradient(rgba(247, 244, 239, 0.9), rgba(247, 244, 239, 0.9)),
      var(--location-bg-image);
    background-position: center;
    background-size: cover;
  }
}

@media (max-width: 680px) {
  .section-kicker::before,
  .section-kicker::after,
  .eyebrow::before,
  .eyebrow::after {
    width: 22px;
  }

  .hero__amp {
    margin-left: 0;
  }

  .hero__date {
    border-radius: 18px;
  }

  .btn-secondary {
    color: var(--color-heading);
    background: rgba(255, 255, 255, 0.9);
  }

  .invitation__image {
    border-width: 6px;
  }
}
