/* ----------------------------------------------------------------------------
   Bruiloft Marlie & Paul — Shared styles
   Botanical & natural · NL/EN · tweakable palette + fonts + hero + texture
---------------------------------------------------------------------------- */

:root {
  /* Palette — overridden by tweaks (sage & olive default) */
  --bg:       #f4efe4;          /* warm ivory */
  --bg-soft:  #ebe4d4;
  --paper:    #faf6ec;
  --ink:      #2c3a2a;          /* deep forest */
  --ink-soft: #54624f;
  --muted:    #8a907d;
  --line:     #cdc7b3;
  --accent:   #7a8b5c;          /* sage */
  --accent-2: #b89968;          /* dried wheat */
  --leaf:     #5a6f4a;

  /* Typography — overridden by tweaks */
  --font-display: 'Cormorant Garamond', 'Cormorant', serif;
  --font-body:    'Manrope', sans-serif;
  --font-script:  'Pinyon Script', cursive;

  /* Scale */
  --maxw: 1180px;
  --gut:  clamp(20px, 4vw, 56px);
  --radius: 4px;

  /* Texture layer — controlled by tweaks via .texture-* class on <body> */
  --tex-url: none;
  --tex-opacity: 0;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.005em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Texture overlay (paper, linen, botanical, none) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: var(--tex-url);
  background-size: var(--tex-size, 280px);
  opacity: var(--tex-opacity);
  mix-blend-mode: multiply;
}

body.texture-paper {
  --tex-url: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.20  0 0 0 0 0.14  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --tex-opacity: 0.18;
  --tex-size: 320px;
}
body.texture-linen {
  --tex-url:
    repeating-linear-gradient(0deg, rgba(60,55,40,0.07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(60,55,40,0.07) 0 1px, transparent 1px 3px);
  --tex-opacity: 0.55;
  --tex-size: auto;
}
body.texture-botanical {
  --tex-url: url("assets/botanical-bg.svg");
  --tex-opacity: 0.12;
  --tex-size: 540px;
}
body.texture-none {
  --tex-opacity: 0;
}

/* Palette modifier classes — applied to <html> */
html.palette-sage      { /* defaults above */ }
html.palette-forest {
  --bg:       #ecead9;
  --bg-soft:  #d9d8c1;
  --paper:    #f3f1e2;
  --ink:      #1e2a1c;
  --ink-soft: #3d4a37;
  --muted:    #6b7363;
  --line:     #b6b69c;
  --accent:   #3c5234;
  --accent-2: #94794a;
  --leaf:     #2c4024;
}
html.palette-terracotta {
  --bg:       #f6ede0;
  --bg-soft:  #ead9c1;
  --paper:    #fbf3e5;
  --ink:      #3a2a1f;
  --ink-soft: #6b4f3a;
  --muted:    #93826d;
  --line:     #d6c4a6;
  --accent:   #b5683f;
  --accent-2: #7a8459;
  --leaf:     #5b6b3f;
}
html.palette-charcoal {
  --bg:       #ece8df;
  --bg-soft:  #d6d1c2;
  --paper:    #f3efe5;
  --ink:      #1f1f1c;
  --ink-soft: #44443e;
  --muted:    #7a786e;
  --line:     #c3bdaa;
  --accent:   #2f3a2e;
  --accent-2: #97774e;
  --leaf:     #3b4534;
}
html.palette-midnight {
  --bg:       #0d0c0a;
  --bg-soft:  #16140f;
  --paper:    #1a1813;
  --ink:      #f3ead0;
  --ink-soft: #c9bd9a;
  --muted:    #8a7f60;
  --line:     #3a3424;
  --accent:   #d4a84a;
  --accent-2: #f3c64b;
  --leaf:     #97774e;
}
html.palette-midnight body {
  background:
    radial-gradient(120% 80% at 50% 100%, #1a1813 0%, transparent 60%),
    radial-gradient(120% 100% at 50% 0%, #1f1c14 0%, transparent 55%),
    #0a0907;
}
html.palette-midnight .card { background: rgba(255,255,255,0.03); border-color: var(--line); }
html.palette-midnight .field input,
html.palette-midnight .field textarea {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--ink);
}
html.palette-midnight .field input:focus,
html.palette-midnight .field textarea:focus { border-color: var(--accent); }
html.palette-midnight .radio-row label { background: rgba(255,255,255,0.04); border-color: var(--line); }
html.palette-midnight .radio-row label:has(input:checked) { background: var(--accent); color: #0d0c0a; border-color: var(--accent); }
html.palette-midnight .btn { background: var(--accent); color: #0d0c0a; border-color: var(--accent); }
html.palette-midnight .btn.ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
html.palette-midnight .btn.ghost:hover { background: var(--accent); color: #0d0c0a; }
html.palette-midnight .lang-toggle { background: rgba(255,255,255,0.08); border-color: rgba(212,168,74,0.35); }
html.palette-midnight .lang-toggle button { color: var(--ink-soft); }
html.palette-midnight .lang-toggle button.is-active { background: var(--accent); color: #0d0c0a; }
html.palette-midnight footer.foot { background: #0a0907; border-color: var(--line); }
html.palette-midnight .timeline::before { background: var(--line); }
html.palette-midnight .timeline .dot { background: #0d0c0a; border-color: var(--accent); }
html.palette-midnight .info-row { border-color: var(--line); }
html.palette-midnight .info-row:last-child { border-bottom-color: var(--line); }
html.palette-midnight .faq details { border-color: var(--line); }
html.palette-midnight .faq details:last-of-type { border-color: var(--line); }
html.palette-midnight .divider::before, html.palette-midnight .divider::after { background: var(--line); }
html.palette-midnight .script { color: var(--accent-2); }
html.palette-midnight .couple-names .amp { color: var(--accent-2); font-style: italic; }
html.palette-midnight section[style*="bg-soft"] { background: #16140f !important; }

/* Fairy lights hero — used when palette-midnight + hero-centered */
.fairy-lights {
  position: absolute;
  top: 0; left: -5%;
  width: 110%;
  height: 60%;
  pointer-events: none;
  z-index: 2;
}
.fairy-lights svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fairy-lights .string { fill: none; stroke: rgba(180,140,60,0.35); stroke-width: 0.6; }
.fairy-lights .bulb {
  filter: drop-shadow(0 0 6px rgba(243,198,75,0.9)) drop-shadow(0 0 14px rgba(243,198,75,0.45));
}
.fairy-lights .spark {
  animation: twinkle 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.fairy-lights .spark:nth-child(3n)   { animation-delay: -0.4s; animation-duration: 2.6s; }
.fairy-lights .spark:nth-child(3n+1) { animation-delay: -1.2s; animation-duration: 3.2s; }
.fairy-lights .spark:nth-child(3n+2) { animation-delay: -2.0s; animation-duration: 2.8s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* Disco ball */
.discoball {
  width: 110px; height: 110px;
  margin: 40px auto 0;
  position: relative;
  filter: drop-shadow(0 0 24px rgba(243,198,75,0.45));
}
.discoball::before, .discoball::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.4) 0%, transparent 28%),
              conic-gradient(from 0deg,
                #c9c2a8, #f3ead0, #8a7f60, #f3c64b, #f3ead0, #8a7f60, #c9c2a8);
  border-radius: 50%;
  background-blend-mode: overlay;
}
.discoball::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), transparent 40%),
    repeating-conic-gradient(from 0deg,
      #d8c894 0deg 6deg, #8c7a48 6deg 12deg,
      #f4dc8a 12deg 18deg, #6a5a30 18deg 24deg);
}
.discoball::after {
  background:
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(0,0,0,0.18) 8px 9px),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(0,0,0,0.18) 8px 9px);
  border-radius: 50%;
}
.discoball-rays {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(243,198,75,0.5) 0%, transparent 50%);
  border-radius: 50%;
  z-index: -1;
}

/* Glittery gold date text */
.date-glitter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fef3b0 0%, #f3c64b 40%, #b67e1a 80%, #f4dc8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(243,198,75,0.35);
  display: inline-block;
}

/* Index hero — single-viewport layout */
.hero.hero-centered:has(.index-hero) {
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  padding: clamp(72px, 10vh, 110px) var(--gut) clamp(24px, 4vh, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.index-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(10px, 1.6vh, 22px);
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 720px;
}
.index-hero .couple-block .couple-names {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  margin: 0;
}
.index-hero .save-title {
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  margin: 0;
}
.index-hero .invite-line {
  max-width: 460px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  line-height: 1.5;
}
.index-hero .date-glitter {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: clamp(2px, 0.6vh, 8px) 0 0;
}
.index-hero .countdown {
  margin: 0;
  gap: clamp(14px, 3vw, 40px);
}
.index-hero .countdown .num { font-size: clamp(1.4rem, 3.2vw, 2.4rem); }
.index-hero .countdown .lbl { font-size: 0.62rem; margin-top: 4px; }
.index-hero .discoball {
  width: clamp(56px, 8vh, 88px);
  height: clamp(56px, 8vh, 88px);
  margin: clamp(4px, 1vh, 14px) auto 0;
}
.index-hero .hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: clamp(4px, 1vh, 12px) 0 0;
}
.index-hero .hero-btn {
  padding: 12px 22px;
  font-size: 0.72rem;
}
@media (max-width: 480px) {
  .index-hero .hero-ctas { gap: 10px; }
  .index-hero .hero-btn { padding: 11px 18px; font-size: 0.68rem; }
}
.index-hero .followup {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  opacity: 0.8;
  margin: 0;
}
@media (max-height: 700px) {
  .index-hero { gap: 8px; }
  .index-hero .invite-line { display: none; }
}

/* Fairy lights — slimmer for shorter hero */
.fairy-lights {
  height: 50%;
  max-height: 360px;
}

/* Save-the-date title style */
.save-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4em;
  flex-wrap: wrap;
}
.save-title .the {
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  font-size: 0.7em;
  letter-spacing: 0;
  color: var(--ink);
  text-transform: none;
}

/* Font modifier classes — applied to <html> */
html.font-cormorant {
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Manrope', sans-serif;
}
html.font-italiana {
  --font-display: 'Italiana', serif;
  --font-body:    'Karla', sans-serif;
}
html.font-marcellus {
  --font-display: 'Marcellus', serif;
  --font-body:    'DM Sans', sans-serif;
}
html.font-playfair {
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Karla', sans-serif;
  --font-script:  'Mrs Saint Delafield', cursive;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.005em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; color: var(--muted); margin-bottom: 1rem; }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  font-size: 1.4em;
  line-height: 1;
  color: var(--accent);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: inline-block;
}

/* ---- Layout primitives ---- */
.page  { position: relative; z-index: 2; }
.wrap  { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--accent);
  margin: 2rem auto;
  justify-content: center;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line); max-width: 80px;
}
.divider svg { width: 28px; height: 28px; }

section { padding-block: clamp(60px, 8vw, 110px); }

/* ---- Top nav (lang + back) ---- */
.topbar {
  position: absolute; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gut);
  z-index: 10;
}
.topbar a, .topbar button {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent; border: none; cursor: pointer;
  text-decoration: none;
  padding: 6px 0;
}
.lang-toggle {
  display: inline-flex; gap: 2px; align-items: center;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(6px);
}
.lang-toggle button {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.lang-toggle button.is-active {
  background: var(--ink);
  color: var(--bg);
}

.topbar.is-light a, .topbar.is-light button { color: #fff; }
.topbar.is-light .lang-toggle { background: rgba(0,0,0,0.18); border-color: rgba(255,255,255,0.4); }
.topbar.is-light .lang-toggle button { color: rgba(255,255,255,0.8); }
.topbar.is-light .lang-toggle button.is-active { background: #fff; color: var(--ink); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

/* ---- Cards / info blocks ---- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }

@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ---- Footer ---- */
footer.foot {
  border-top: 1px solid var(--line);
  padding: 56px var(--gut) 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  background: var(--bg-soft);
  position: relative; z-index: 2;
}
footer.foot .names {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

/* ---- Hero variants ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Default (centered/frame) hero */
.hero-centered .hero-inner {
  text-align: center;
  padding: 80px var(--gut);
  z-index: 3;
  position: relative;
}
.hero-centered .hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 50% 30%, rgba(255,255,255,0.4), transparent),
    var(--bg);
}
.hero-centered .frame {
  position: absolute;
  inset: 40px;
  border: 1px solid var(--accent);
  pointer-events: none;
  opacity: 0.5;
}
@media (max-width: 600px) {
  .hero-centered .frame { inset: 20px; }
}

/* Full-bleed hero */
.hero-full {
  color: #fff;
}
.hero-full .hero-bg {
  position: absolute; inset: 0;
  background: var(--hero-image, linear-gradient(135deg, #4a5e3e, #2a3826));
  background-size: cover;
  background-position: center;
}
.hero-full .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,28,18,0.35), rgba(20,28,18,0.6));
}
.hero-full .hero-inner {
  position: relative; z-index: 3;
  color: #fff;
  text-align: center;
  padding: 80px var(--gut);
}
.hero-full h1, .hero-full .eyebrow, .hero-full .script { color: #fff; }
.hero-full .eyebrow { color: rgba(255,255,255,0.85); }
.hero-full .script { color: #e8d9a8; }

/* Split hero */
.hero-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.hero-split .hero-image {
  background: var(--hero-image, linear-gradient(135deg, #5a6f4a, #2a3826));
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-split .hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--gut);
  background: var(--bg);
}
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-image { min-height: 50vh; }
}

/* Hero shared elements */
.monogram {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  letter-spacing: 0.5em;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-full .monogram { color: rgba(255,255,255,0.9); }

.couple-names {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 0.2em;
}
.couple-names .amp {
  font-family: var(--font-script);
  font-size: 0.7em;
  font-weight: 400;
  color: var(--accent);
  vertical-align: -0.1em;
  margin: 0 0.05em;
  display: inline-block;
  font-style: italic;
}
.hero-full .couple-names .amp { color: #e8d9a8; }

.wedding-date {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}
.hero-full .wedding-date { color: rgba(255,255,255,0.9); }

/* ---- Countdown ---- */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 52px);
  margin: 36px 0 0;
}
.countdown .unit {
  text-align: center;
  min-width: 60px;
}
.countdown .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}
.countdown .lbl {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.hero-full .countdown .lbl { color: rgba(255,255,255,0.8); }

/* ---- Info blocks ---- */
.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row h4 { margin: 0; }
.info-row .body p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .info-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- Timeline ---- */
.timeline {
  list-style: none; padding: 0; margin: 0;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute;
  left: 80px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 80px 28px 1fr;
  gap: 24px;
  padding: 18px 0;
  align-items: baseline;
}
.timeline .time {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}
.timeline .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--accent);
  justify-self: center;
  margin-top: 8px;
  position: relative; z-index: 2;
}
.timeline .what h3 { margin: 0 0 4px; }
.timeline .what p { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) {
  .timeline::before { left: 60px; }
  .timeline li { grid-template-columns: 60px 20px 1fr; gap: 14px; }
  .timeline .time { font-size: 1.15rem; }
}

/* ---- Image placeholders (botanical illustration) ---- */
.photo {
  position: relative;
  background: linear-gradient(135deg, var(--bg-soft), var(--paper));
  overflow: hidden;
  border-radius: var(--radius);
}
.photo::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--photo-overlay, none);
  background-size: cover; background-position: center;
  opacity: 0.85;
}
.photo .caption {
  position: absolute; bottom: 14px; left: 16px;
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  z-index: 2;
}
.photo.aspect-portrait { aspect-ratio: 3/4; }
.photo.aspect-square { aspect-ratio: 1/1; }
.photo.aspect-landscape { aspect-ratio: 4/3; }
.photo.aspect-wide { aspect-ratio: 16/9; }

/* ---- FAQ ---- */
.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.4rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-top: 10px; color: var(--ink-soft); }

/* ---- RSVP Form ---- */
.rsvp { background: var(--paper); }
.rsvp .card {
  background: transparent;
  border: none;
  padding: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
}
.field textarea { min-height: 100px; resize: vertical; }

.radio-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.radio-row label {
  flex: 1;
  min-width: 140px;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 400;
  transition: all .2s;
}
.radio-row label:has(input:checked) {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.radio-row input[type="radio"] {
  appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  margin: 0;
  position: relative;
  flex-shrink: 0;
}
.radio-row input[type="radio"]:checked::after {
  content: ""; position: absolute;
  inset: 3px; background: currentColor; border-radius: 50%;
}

.rsvp-success {
  text-align: center;
  padding: 40px 0;
}
.rsvp-success .script { font-size: 3rem; display: block; margin-bottom: 18px; }

/* ---- Botanical decorative SVG sprig ---- */
.sprig {
  display: inline-block;
  color: var(--accent);
  vertical-align: middle;
}

/* ---- Tweaks panel (custom, follows host protocol) ---- */
#tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 320px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  color: #1f1f1f;
  z-index: 9999;
  padding: 18px;
  display: none;
}
#tweaks-panel.is-open { display: block; }
#tweaks-panel h3 {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px; font-weight: 600;
  margin: 0 0 4px;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: 0;
  text-transform: none;
  color: #1f1f1f;
}
#tweaks-panel .close-x {
  background: transparent; border: none; cursor: pointer;
  font-size: 18px; line-height: 1; color: #888;
  padding: 0; width: 24px; height: 24px;
}
#tweaks-panel .sub {
  font-size: 12px; color: #6b6b6b; margin-bottom: 14px;
}
#tweaks-panel .tweak-section { margin-top: 16px; }
#tweaks-panel .tweak-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #555; margin-bottom: 8px;
}
#tweaks-panel .swatches {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
#tweaks-panel .swatch {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 6px;
  background: #f7f7f7;
  display: flex; gap: 3px;
  transition: all .15s;
}
#tweaks-panel .swatch.is-active { border-color: #1f1f1f; }
#tweaks-panel .swatch .chip {
  flex: 1; height: 28px; border-radius: 4px;
}
#tweaks-panel .opts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
#tweaks-panel .opts button {
  background: #f6f6f6;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 10px 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  color: #1f1f1f;
  text-align: center;
  transition: all .15s;
}
#tweaks-panel .opts button.is-active {
  background: #1f1f1f; color: #fff; border-color: #1f1f1f;
}
#tweaks-panel .opts .font-preview {
  font-size: 16px; margin-bottom: 2px;
  font-weight: 400;
}
.font-preview-cormorant { font-family: 'Cormorant Garamond', serif; }
.font-preview-italiana { font-family: 'Italiana', serif; }
.font-preview-marcellus { font-family: 'Marcellus', serif; }
.font-preview-playfair { font-family: 'Cormorant Garamond', serif; font-style: italic; }
