*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #2c2c2c;
  background: #fff;
  line-height: 1.7;
}

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--color-secondary);
  z-index: 100;
  padding: .75rem 0;
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: .05em;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #555;
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: .9rem;
  letter-spacing: .03em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--color-primary); }

.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.45));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 2rem;
}
.hero-names {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: normal;
  letter-spacing: .1em;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-date {
  font-family: system-ui, sans-serif;
  font-size: clamp(.9rem, 2vw, 1.1rem);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: .75rem;
  opacity: .9;
}

.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--color-secondary); }
.section-inner { max-width: 800px; margin: 0 auto; }

h2 {
  font-size: 1.8rem;
  font-weight: normal;
  color: var(--color-accent);
  letter-spacing: .05em;
  margin-bottom: 2rem;
  text-align: center;
}
h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  margin: .75rem auto 0;
}
.section-subtitle { text-align: center; color: #666; margin-bottom: 2rem; }

.timeline { max-width: 500px; margin: 0 auto; }
.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: .75rem 0;
  border-bottom: 1px solid #eee;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-time {
  font-family: system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary);
  min-width: 4rem;
  flex-shrink: 0;
}
.timeline-event { color: #444; }

.venues { display: grid; gap: 2rem; }
@media (min-width: 600px) { .venues { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.venue-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.venue-img { width: 100%; height: 200px; object-fit: cover; }
.venue-info { padding: 1.25rem; }
.venue-info h3 { color: var(--color-accent); margin-bottom: .35rem; font-weight: normal; }
.venue-address { font-size: .85rem; color: #777; margin-bottom: .75rem; font-family: system-ui, sans-serif; }

.btn {
  display: inline-block;
  margin-top: .75rem;
  padding: .5rem 1.25rem;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: .85rem;
  transition: background .2s;
}
.btn:hover { background: var(--color-accent); }

.gifts-text { text-align: center; max-width: 600px; margin: 0 auto; font-size: 1.05rem; color: #555; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  transition: transform .2s;
}
.gallery-item img:hover { transform: scale(1.02); }

.upload-zone {
  border: 2px dashed var(--color-primary);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255,255,255,.5);
  transition: background .2s, border-color .2s;
  max-width: 500px;
  margin: 0 auto;
}
.upload-zone.dragover {
  background: rgba(181,105,78,.08);
  border-color: var(--color-accent);
}
.upload-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.upload-link { color: var(--color-primary); cursor: pointer; text-decoration: underline; }
.upload-progress { max-width: 500px; margin: 1rem auto; }
.progress-bar { height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; margin-bottom: .5rem; }
.progress-fill { height: 100%; background: var(--color-primary); width: 0%; transition: width .3s; }
#progress-text { font-family: system-ui, sans-serif; font-size: .85rem; color: #666; text-align: center; }
#upload-results { max-width: 500px; margin: 1rem auto; font-family: system-ui, sans-serif; font-size: .85rem; }
.upload-result-item { padding: .35rem 0; }
.upload-result-item.success { color: #2d7a2d; }
.upload-result-item.error { color: #a33; }

.footer {
  background: var(--color-accent);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 1.5rem;
  font-family: system-ui, sans-serif;
  font-size: .85rem;
}

@media (max-width: 480px) { .nav-links { display: none; } }
