:root {
  --ivory: #FBF8F4;
  --sage: #8A9A82;
  --sage-dark: #5F7058;
  --rose: #C98A8A;
  --ink: #3A352F;
  --line: #E4DED3;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.hero {
  text-align: center;
  padding: 40px 0 28px;
}
.hero--compact { padding: 32px 0 20px; }

.sprig { margin-bottom: 6px; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin: 0 0 6px;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.05;
  margin: 0 0 4px;
}

.date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--sage-dark);
  font-size: 1.1rem;
  margin: 0 0 14px;
}

.lede {
  color: #6b6459;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 320px;
}

.field {
  display: block;
  margin-bottom: 16px;
}
.field span {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--sage-dark);
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 40px 20px;
  border: 1.5px dashed var(--sage);
  border-radius: var(--radius);
  background: #fff;
  color: var(--sage-dark);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dropzone:active { background: #F4F1EA; }
.dropzone input { display: none; }
.dz-icon { color: var(--sage); margin-bottom: 4px; }
.dz-text { font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.dz-sub { font-size: 0.8rem; color: #8a8478; }

.preview-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 14px;
  padding-bottom: 4px;
}
.preview-strip img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.btn {
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  border: none;
  border-radius: 999px;
  background: var(--sage-dark);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; }

.status {
  text-align: center;
  font-size: 0.88rem;
  min-height: 1.2em;
  margin: 12px 0 0;
}
.status.success { color: var(--sage-dark); font-weight: 600; }
.status.error { color: #B6573F; font-weight: 600; }

.gallery-link {
  display: block;
  text-align: center;
  margin-top: 28px;
  color: var(--sage-dark);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

footer {
  text-align: center;
  margin-top: 36px;
  color: #a39c8d;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.grid-item {
  display: block;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  position: relative;
  cursor: pointer;
}
.grid-item img, .grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.15);
}

.empty {
  text-align: center;
  color: #8a8478;
  padding: 40px 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.94);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open {
  display: flex;
}
.lb-stage {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img, .lb-stage video {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
}
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-close {
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
}
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-close:active, .lb-nav:active { background: rgba(255,255,255,0.24); }

@media (max-width: 480px) {
  .lb-nav { width: 40px; height: 40px; font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.copyright {
  text-align: center;
  margin-top: 8px;
  color: #b0a998;
  font-size: 0.72rem;
  font-family: 'Inter', sans-serif;
  font-style: normal;
}
