/* ─────────────────────────────────────────────────────────────
   Shared design tokens for all wedding site variations.
   Tweaks override these via inline style on :root.
   ───────────────────────────────────────────────────────────── */
:root {
  --ivory: #F5EFE6;
  --ivory-2: #EDE5D6;
  --charcoal: #1C1917;
  --charcoal-2: #2A2622;
  --muted: #6B6259;
  --rule: rgba(28, 25, 23, 0.18);

  /* Accent — used by share section, RSVP highlight states, etc.
     Defaults to charcoal so it's invisible on neutral palettes. */
  --accent: #1C1917;
  --accent-2: #6B6259;

  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --photo-darken: 0.42;
  --photo-grain: 0.08;
  --photo-tint: 0;        /* 0 neutral, 1 warm sepia */

  --rsvp-side: right;     /* right | left | center */
  --rsvp-style: solid;    /* solid | outline | underline */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Photo placeholder — striped portrait, 2:3, with caption */
.photo {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      #b8a892 0px, #b8a892 2px,
      #c4b59f 2px, #c4b59f 4px
    ),
    linear-gradient(180deg, #a89a83, #8a7c66);
  background-blend-mode: multiply;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.photo::before {
  content: attr(data-caption);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  pointer-events: none;
}
/* Darkening + tint overlay */
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, calc(var(--photo-darken) * 0.7)) 0%,
      rgba(0, 0, 0, var(--photo-darken)) 60%,
      rgba(0, 0, 0, calc(var(--photo-darken) * 1.15)) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* Warm tint (controlled by --photo-tint 0..1) */
.photo .tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(146, 86, 28, 0.55), rgba(81, 42, 14, 0.55));
  mix-blend-mode: color;
  opacity: var(--photo-tint);
  pointer-events: none;
}
/* Grain */
.photo .grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: var(--photo-grain);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Tracked uppercase label */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Display headings */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
}

.rule {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.5;
}

/* RSVP fixed CTA */
.rsvp-fab {
  position: fixed;
  bottom: 28px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  background: var(--charcoal);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.rsvp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}
.rsvp-fab .arrow {
  display: inline-block;
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
}
.rsvp-fab .arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
/* RSVP positions */
:root[data-rsvp-side="right"]  .rsvp-fab { right: 28px; left: auto; transform: none; }
:root[data-rsvp-side="left"]   .rsvp-fab { left: 28px; right: auto; }
:root[data-rsvp-side="center"] .rsvp-fab { left: 50%; right: auto; transform: translateX(-50%); }
:root[data-rsvp-side="center"] .rsvp-fab:hover { transform: translateX(-50%) translateY(-2px); }

/* RSVP styles */
:root[data-rsvp-style="outline"] .rsvp-fab {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
:root[data-rsvp-style="underline"] .rsvp-fab {
  background: transparent;
  color: var(--charcoal);
  border-radius: 0;
  padding: 8px 0;
  box-shadow: none;
  border-bottom: 1px solid var(--charcoal);
}

/* Scroll arrow */
.scroll-arrow {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.7);
  animation: bob 2.4s ease-in-out infinite;
  pointer-events: none;
}
.scroll-arrow .stem {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, transparent, rgba(245, 239, 230, 0.7));
}
.scroll-arrow .head {
  width: 8px; height: 8px;
  border-right: 1px solid rgba(245, 239, 230, 0.7);
  border-bottom: 1px solid rgba(245, 239, 230, 0.7);
  transform: rotate(45deg);
  margin-top: -10px;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* Section base */
section { position: relative; }

/* FAQ */
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .a {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 60ch;
}
.faq-item .plus {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--muted);
  transition: transform .2s;
}
.faq-item[open] .plus { transform: rotate(45deg); }

/* Map placeholder */
.map {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, #e8e1d3, #d6cdba),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(0,0,0,0.04) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(0,0,0,0.04) 39px 40px);
  background-blend-mode: multiply;
  position: relative;
  overflow: hidden;
}
.map::before {
  /* fake roads */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(118deg, transparent 48%, rgba(255,255,255,0.7) 48% 52%, transparent 52%),
    linear-gradient(28deg, transparent 60%, rgba(255,255,255,0.5) 60% 63%, transparent 63%),
    linear-gradient(78deg, transparent 30%, rgba(255,255,255,0.4) 30% 32%, transparent 32%);
}
.map .pin {
  position: absolute;
  left: 52%; top: 48%;
  width: 14px; height: 14px;
  background: var(--charcoal);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(28, 25, 23, 0.18);
  transform: translate(-50%, -50%);
}
.map .pin::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(28, 25, 23, 0.35);
  transform: translate(-50%, -50%);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
.map .label {
  position: absolute;
  left: 52%; top: 48%;
  margin: 14px 0 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ivory);
  padding: 4px 8px;
  border: 1px solid var(--rule);
}

/* ─────────────────────────────────────────────────────────────
   Share block — replaces hashtag. Centered message + optional CTA.
   ───────────────────────────────────────────────────────────── */
.share-block {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto;
}
.share-block .message {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.45;
  margin: 0 0 36px;
  color: inherit;
}
.share-block .cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding: 8px 2px;
  transition: color .2s, gap .2s;
}
.share-block .cta:hover { gap: 18px; }
.share-block .cta .arrow {
  display: inline-block;
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
}
.share-block .cta .arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ─────────────────────────────────────────────────────────────
   Mobile-first overrides — anything below 720px tightens up.
   Variations also add their own scoped media queries.
   ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .rsvp-fab {
    bottom: 18px;
    padding: 12px 18px 12px 20px;
    font-size: 11px;
    letter-spacing: 0.24em;
  }
  :root[data-rsvp-side="right"]  .rsvp-fab { right: 18px; }
  :root[data-rsvp-side="left"]   .rsvp-fab { left: 18px; }

  .scroll-arrow { bottom: 24px; font-size: 9px; }
  .scroll-arrow .stem { height: 28px; }

  .faq-item { padding: 18px 0; }
  .faq-item summary { font-size: 18px; gap: 16px; }
  .faq-item .a { font-size: 13.5px; line-height: 1.6; }

  .share-block .message { margin-bottom: 28px; }
  .share-block .cta { font-size: 10px; letter-spacing: 0.28em; gap: 10px; }
}
