/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

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

:root {
  --gold:       #b5882b;
  --gold-dark:  #7a5c2e;
  --gold-light: #d4a84b;
  --ivory:      #faf6f0;
  --ivory-de:   #f0ece4;
  --ink:        #2a2218;
  --ink-mid:    #4a3f30;
  --ink-light:  #7a6e5e;
  --rule:       #d9ceba;
  --header-h1:  clamp(2.2rem, 6vw, 4.5rem);
}

html { scroll-behavior: smooth; }

body.is-spectral {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--ivory);
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }
a:visited { color: #9b7d45; }  /* muted warm gold — distinct from link #7a5c2e and body text #2a2218 */
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* ── Header ── */
#header {
  position: relative;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 60%, var(--gold-light) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem 3.5rem;
  overflow: hidden;
}

#header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.site-title a {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
}
.site-title a:hover { color: #fff; text-decoration: none; }

/* Meta links inside gold gradient header — white, not gold-on-gold */
.meta-date a,
.meta-location a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.meta-date a:hover,
.meta-location a:hover { color: #fff; text-decoration: underline; }
.meta-date a:visited,
.meta-location a:visited { color: rgba(255,255,255,0.80); }
.meta-date a:focus-visible,
.meta-location a:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 2px; border-radius: 2px; }

/* Label pills as links — keep gold-dark-on-white regardless of global a color */
a.label-tag { text-decoration: none; color: var(--gold-dark); }
a.label-tag:hover { background: var(--gold-dark); color: #fff; text-decoration: none; }
a.label-tag:visited { color: var(--gold-dark); }
a.label-tag:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; border-radius: 2px; }

#header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--header-h1);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(80,40,0,0.3);
  margin-bottom: 0.75rem;
}

.meta-date, .meta-location {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

/* Label pills */
.label-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1rem;
}
.label-tag {
  display: inline-block;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(255,255,255,0.9);
  border-radius: 2rem;
  padding: 0.2em 0.75em;
}

.header-scroll-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: rgba(255,255,255,0.5);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Main wrapper ── */
.wrapper { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

.main { padding: 3rem 0; }

.inner { max-width: 100%; }

/* ── Hero image ── */
.event-hero {
  margin-bottom: 2.5rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(100,70,20,0.18);
}
.event-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Event body ── */
.event-body { width: 100%; }

/* ── Bilingual header ── */
.bilingual-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gold-dark);
  border-radius: 4px 4px 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

/* ── Bilingual rows ── */
.bilingual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.bilingual-row:last-of-type { border-bottom: none; }

.lang-en, .lang-de {
  padding: 1.75rem 1.25rem;
}
.lang-en { background: var(--ivory); }
.lang-de  { background: var(--ivory-de); border-left: 1px solid var(--rule); }

.lang-en p, .lang-de p {
  margin-bottom: 0.9rem;
  font-size: 1rem;
  line-height: 1.85;
}
.lang-en p:last-child, .lang-de p:last-child { margin-bottom: 0; }

.lang-en em, .lang-de em {
  font-style: italic;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1em;
}

/* ── Wedding Candle section ── */
.candle-section {
  margin: 2.5rem 0;
  border-top: 2px solid var(--gold);
  padding-top: 1.5rem;
}
.candle-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-dark);
  text-align: center;
  margin-bottom: 0.25rem;
}
.candle-credit {
  text-align: center;
  color: var(--ink-light);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.candle-poem .lang-en p,
.candle-poem .lang-de p {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ── Vow section ── */
.vow-section {
  margin: 2.5rem 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  border-radius: 4px;
  color: #fff;
  text-align: center;
}
.vow-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  color: #fff;
  margin-bottom: 1rem;
}
.vow-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.vow-question {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.vow-question p {
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.75;
}
.vow-answer {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  font-style: italic;
  color: #fff;
  text-align: center;
  letter-spacing: 0.05em;
  margin: 0.5rem 0 1.25rem;
  padding: 0;
  border: none;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* ── Footer ── */
#footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}
.footer-inner a { color: rgba(255,255,255,0.7); }
.footer-inner a:hover { color: #fff; }
.footer-date { margin-top: 0.3rem; }

/* ── Scrolled state ── */
body.scrolled #header { /* header already fixed-layout, effect on bg */ }

/* ── Breakpoints ── */

/* Tablet: narrow bilingual columns */
@media (max-width: 900px) {
  .lang-en, .lang-de { padding: 1.25rem 1rem; }
}

/* Mobile: stack EN over DE */
@media (max-width: 720px) {
  .bilingual-header {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .bilingual-header span:last-child {
    padding-top: 0.2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .bilingual-row {
    grid-template-columns: 1fr;
  }

  .lang-de {
    border-left: none;
    border-top: 1px solid var(--rule);
  }

  /* Language flag labels on mobile */
  .lang-en::before {
    content: '🇬🇧 EN';
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 0.5rem;
  }
  .lang-de::before {
    content: '🇦🇹 DE';
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 0.5rem;
  }

  .vow-section { padding: 1.5rem 1rem; }
  .vow-answer { font-size: 1.8rem; }

  .candle-section { margin: 1.5rem 0; }

  #header { padding: 2.5rem 1rem 2.5rem; }
}

/* Very small: 320px */
@media (max-width: 400px) {
  :root { --header-h1: 2rem; }
  .lang-en, .lang-de { padding: 1rem 0.75rem; }
  .lang-en p, .lang-de p { font-size: 0.93rem; }
}

/* ── Lightbox ── */
#lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);
  z-index:9999;align-items:center;justify-content:center;
  flex-direction:column;gap:.5rem}
#lightbox img{max-width:90vw;max-height:80vh;object-fit:contain}
.lb-close{position:fixed;top:1rem;right:1.5rem;font-size:2.5rem;
  color:#fff;cursor:pointer;line-height:1;opacity:.8}
.lb-close:hover{opacity:1}
.lb-nav{position:fixed;top:50%;transform:translateY(-50%);font-size:3rem;
  color:#fff;cursor:pointer;padding:.5rem;user-select:none;opacity:.7}
.lb-nav:hover{opacity:1}
.lb-prev{left:1rem}.lb-next{right:1rem}
.lb-caption{color:#ccc;font-size:.9rem;text-align:center;max-width:80vw}
