:root{
  --bg: #f6f2ec;
  --panel: rgba(255,255,255,0.72);
  --text: #151515;
  --muted: #5b5b5b;
  --line: rgba(0,0,0,0.10);
  --accent: #6f7f4a;
  --maxw: 980px;
  --stickyH: 250px;
  --topbarH: 56px;
  --vineyard-h: 22vh;            /* tweak */
  --vineyard-max: 400px;         /* tweak */
  --vineyard-min: 140px;         /* tweak */
}

@media (max-width: 600px){
  :root{ --stickyH: 105px; --topbarH: 52px; }
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
}

a{ color: inherit; }

/* Top navigation */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,242,236,0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav{
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--topbarH);
  padding: 0 16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.navlinks{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 26px;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.navlinks a{
  text-decoration:none;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
}

.navlinks a:hover{ border-bottom-color: rgba(111,127,74,0.45); }
.navlinks a.active{ border-bottom-color: var(--accent); }

@media (max-width: 600px){
  .navlinks{ gap: 18px; font-size: 14px; }
}

/* Layout */
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 16px calc(var(--stickyH) + 44px);
}

.section{
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--topbarH) + 12px);
}

.center{ text-align:center; }

/* Hero */
.hero{
  text-align:center;
  padding-top: 22px;
}

.hero .script{
  font-family: "Marck Script", cursive;
  font-size: 44px;
  font-weight: 400;
  color: #1c1c1c;
  letter-spacing: 0.01em;
}
@media (max-width: 600px){
  .hero .script{ font-size: 36px; }
}

.hero .names{
  margin-top: 10px;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (max-width: 600px){
  .hero .names{ font-size: 46px; }
}

.hero .date{
  margin-top: 14px;
  font-size: 34px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
@media (max-width: 600px){
  .hero .date{ font-size: 28px; }
}

.subtitle{
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
}

.ornament{
  margin: 18px auto 6px;
  width: min(340px, 92%);
  height: 28px;
  opacity: 0.85;
}

/* Typography */
.h2{
  font-size: 30px;
  margin: 0 0 12px;
  font-weight: 600;
}

.p{
  font-size: 19px;
  line-height: 1.6;
  color: #222;
  margin: 0 0 10px;
}

.small{ font-size: 14px; color: var(--muted); }

/* Cards */
.card{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 14px 14px;
  background: var(--panel);
}

/* Grid */
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 800px){
  .grid{ grid-template-columns: 1fr; }
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.75);
  cursor: pointer;
  text-decoration:none;
  font-size: 15px;
}
.btn:hover{ background: rgba(255,255,255,0.95); }

/* Program timeline */
.timeline{
  display:flex;
  flex-direction: column;
  gap: 14px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.timeline-item{
  display:grid;
  grid-template-columns: 52px 80px 1fr;
  align-items:center;
  gap: 12px;
  padding: 10px 6px;
}

.ticon{
  width: 40px;
  height: 40px;
  border: 1px solid rgba(111,127,74,0.35);
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--accent);
  background: rgba(255,255,255,0.55);
}

.ttime{ font-size: 16px; letter-spacing: 0.02em; color:#2a2a2a; }
.tlabel{ font-size: 19px; color:#1d1d1d; }

.divider{
  height: 1px;
  background: rgba(111,127,74,0.25);
  width: min(520px, 100%);
  margin: 10px auto;
}

/* FAQ accordion */
details.faq{
  width: min(560px, 100%);
  margin: 10px auto 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.75);
}

details.faq summary{
  list-style:none;
  cursor:pointer;
  padding: 12px 14px;
  font-size: 18px;
}

details.faq summary::-webkit-details-marker{ display:none; }

details.faq .faq-body{
  padding: 0 14px 14px;
  color: #2a2a2a;
  font-size: 16px;
  line-height: 1.6;
}

/* Gallery */
.tabs{
  display:flex;
  gap: 8px;
  justify-content:center;
  flex-wrap:wrap;
  margin: 12px 0 16px;
}

.tab{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.65);
  padding: 8px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-family: inherit;
  font-size: 16px;
}

.tab.active{
  border-color: rgba(111,127,74,0.55);
  background: rgba(255,255,255,0.88);
}

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .gallery-grid{ grid-template-columns: 1fr; }
}

.thumb{
  position: relative;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.65);
}

.thumb img, .thumb video{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display:block;
}

@media (max-width: 520px){
  .thumb img, .thumb video{ height: 240px; }
}

/* Sticky vineyard band */
.sticky-band{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--stickyH);
  z-index: 40;
  pointer-events: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(246,242,236,0.92);
}

.sticky-band::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 28px;
  background: linear-gradient(to bottom, rgba(246,242,236,0.92), rgba(246,242,236,0));
}

.sticky-band img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* Login */
.login-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px 16px calc(var(--stickyH) + 24px);
}

.login-card{
  width: min(420px, 100%);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 18px;
  background: var(--panel);
}

.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.78);
  font-size: 16px;
}

.error{ color: #b00020; font-size: 14px; margin-top: 10px; }

/* Upload progress */
.progress{
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  overflow:hidden;
}

.progress > div{
  height: 100%;
  width: 0%;
  background: rgba(111,127,74,0.65);
}

.vineyard-layer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  height: clamp(var(--vineyard-min), var(--vineyard-h), var(--vineyard-max));
  background: url("./assets/vineyard_band.png") center / cover no-repeat;

  z-index: 0;                    /* behind content */
  pointer-events: none;          /* don't block clicks */
}

.vineyard-layer::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 35%;
  background: linear-gradient(to bottom, #f6f2ec, rgba(252,249,244,0));
}

.page-content{
  position: relative;
  z-index: 1;                    /* over vineyard */

  /* reserve space so last content isn't hidden */
  padding-bottom: clamp(var(--vineyard-min), var(--vineyard-h), var(--vineyard-max));
}

.location-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin: 10px 0 18px;
}

.pill-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;

  /* vineyard-matching soft green tint */
  background: rgba(92, 132, 86, 0.12);
  border: 1px solid rgba(92, 132, 86, 0.28);
  color: rgba(28, 44, 26, 0.92);

  text-decoration:none;
  font-size: 14px;
  line-height: 1;

  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.pill-link:hover{
  background: rgba(92, 132, 86, 0.18);
  border-color: rgba(92, 132, 86, 0.38);
  transform: translateY(-1px);
}

.map-frame{
  width: min(920px, 92vw);
  margin: 0 auto;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.6);
}

.map-frame iframe{
  width:100%;
  height: min(420px, 55vh);
  border:0;
  display:block;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.upload-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 8px;
}

.upload-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding: 14px 16px;
  border-radius: 999px;

  background: rgba(92, 132, 86, 0.12);
  border: 1px solid rgba(92, 132, 86, 0.28);
  color: rgba(28, 44, 26, 0.92);

  font-size: 15px;
  line-height: 1;
  min-width: 140px;

  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.upload-btn:hover{
  background: rgba(92, 132, 86, 0.18);
  border-color: rgba(92, 132, 86, 0.38);
  transform: translateY(-1px);
}

.upload-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.upload-hint{
  margin-top: 12px;
  text-align:center;
  font-size: 12.5px;
  opacity: .75;
}