:root{
  --cream:#FAF6F0;
  --card:#FFFDFA;
  --ink:#1F2E28;
  --green:#2F5D4E;
  --green-dark:#22463A;
  --muted:#6E7F77;
  --line:#E2DCD1;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --wrap:34rem;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
em{font-style:italic}

/* ---------- hero ---------- */
.hero{position:relative;min-height:76svh;display:flex;align-items:flex-end;overflow:hidden}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 32%}
.hero-scrim{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(20,32,27,.10) 35%,rgba(20,32,27,.72) 100%)}
.hero-text{position:relative;padding:0 1.5rem 2.6rem;width:100%;text-align:center;color:#fff}
.hero h1{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(2.9rem,13vw,4.4rem);
  line-height:1.04;
  margin:0;
  letter-spacing:.01em;
  text-shadow:0 1px 18px rgba(0,0,0,.32);
}
.hero h1 .amp{font-style:italic;font-size:.62em;opacity:.9;padding:0 .06em}
.hero-sub{
  margin:.7rem 0 0;
  font-size:.82rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  opacity:.94;
  text-shadow:0 1px 12px rgba(0,0,0,.4);
}

/* ---------- layout ---------- */
main{max-width:var(--wrap);margin:0 auto;padding:0 1.35rem 4rem}
.section{padding:2.1rem 0;border-top:1px solid var(--line)}
.section:first-child{border-top:0}
h2{
  font-family:var(--serif);
  font-weight:500;
  font-size:1.75rem;
  line-height:1.2;
  margin:0 0 1rem;
  color:var(--green-dark);
}
p{margin:0 0 .85rem}
p:last-child{margin-bottom:0}
.lede{color:var(--muted);font-size:.97rem}
.section p a{color:var(--green);text-underline-offset:3px}
.note{color:var(--muted);font-size:.9rem}
.mono{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
footer{padding:2.4rem 0 1rem;text-align:center;border-top:1px solid var(--line)}

/* ---------- buttons ---------- */
.cta{display:flex;flex-direction:column;gap:.6rem;padding:1.7rem 0 .3rem}
.btn{
  display:flex;align-items:center;justify-content:center;gap:.55rem;
  padding:1rem 1.1rem;
  border-radius:11px;
  font-size:1rem;
  font-weight:500;
  text-decoration:none;
  border:1px solid transparent;
  min-height:52px;
  transition:transform .08s ease, background .15s ease;
}
.btn:active{transform:scale(.985)}
.btn svg{width:21px;height:21px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.btn-primary{background:var(--green);color:#fff}
.btn-primary:active{background:var(--green-dark)}
.btn-secondary{background:transparent;color:var(--green-dark);border-color:#CFC7B8}
.btn-secondary:active{background:#F1EBE1}

/* ---------- timeline ---------- */
.timeline{list-style:none;margin:0;padding:0}
.timeline li{display:flex;gap:.95rem;padding:.6rem 0;align-items:baseline}
.timeline li+li{border-top:1px dashed var(--line)}
.timeline .t{
  flex:0 0 5.4rem;
  font-size:.82rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--green);
  font-weight:500;
  padding-top:.12rem;
}
.timeline .what{margin:0;font-weight:500;line-height:1.35}
.timeline .note{margin:.1rem 0 0}
.timeline .what a{
  color:inherit;
  text-decoration:underline;
  text-decoration-color:#B9C9C0;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.timeline .what a:active{color:var(--green)}

/* ---------- photo break ---------- */
.photo-break{margin:0;padding:.6rem 0 0}
.photo-break img{width:100%;border-radius:13px;aspect-ratio:4/3;object-fit:cover}

/* ---------- uploader ---------- */
.uploader{margin-top:1.1rem}
.drop{
  display:flex;flex-direction:column;align-items:center;gap:.28rem;
  padding:2rem 1rem;
  border:1.5px dashed #CFC7B8;
  border-radius:13px;
  background:var(--card);
  cursor:pointer;
  text-align:center;
}
.drop:active{background:#F4EEE4}
.drop svg{width:28px;height:28px;fill:none;stroke:var(--green);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:.3rem}
.drop-title{font-weight:500}
.drop-sub{font-size:.88rem;color:var(--muted)}

.name-field{display:block;margin-top:1rem}
.name-field>span{display:block;font-size:.88rem;color:var(--muted);margin-bottom:.35rem}
.name-field em{font-style:normal;opacity:.75}
input[type=text]{
  width:100%;
  font:inherit;
  font-size:16px;
  padding:.75rem .85rem;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
  color:var(--ink);
}
input[type=text]:focus{outline:2px solid var(--green);outline-offset:1px;border-color:transparent}

.upload-list{list-style:none;margin:1rem 0 0;padding:0}
.upload-list li{padding:.55rem 0;border-top:1px solid var(--line);font-size:.9rem}
.up-row{display:flex;align-items:center;gap:.6rem}
.up-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.up-state{flex:0 0 auto;font-size:.82rem;font-variant-numeric:tabular-nums}
.up-state.ok{color:var(--green)}
.up-state.err{color:#A3402D}
.bar{height:3px;background:var(--line);border-radius:2px;margin-top:.4rem;overflow:hidden}
.bar>i{display:block;height:100%;width:0;background:var(--green);transition:width .25s ease}
.upload-msg{margin-top:.9rem;font-size:.92rem;color:var(--green);min-height:1.2em}
.upload-msg.err{color:#A3402D}

/* ---------- gallery ---------- */
.gallery-head{
  font-family:var(--serif);
  font-weight:500;
  font-size:1.3rem;
  color:var(--green-dark);
  margin:2.2rem 0 .3rem;
  padding-top:1.6rem;
  border-top:1px solid var(--line);
}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.gallery button{
  padding:0;border:0;background:#EDE7DC;border-radius:7px;overflow:hidden;
  aspect-ratio:1;cursor:pointer;position:relative;
}
.gallery img{width:100%;height:100%;object-fit:cover}
.gallery .vid::after{
  content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:0;height:0;border-left:13px solid rgba(255,255,255,.95);
  border-top:9px solid transparent;border-bottom:9px solid transparent;
  filter:drop-shadow(0 0 4px rgba(0,0,0,.5));
}

/* ---------- lightbox ---------- */
.lightbox{position:fixed;inset:0;background:rgba(18,26,22,.95);z-index:50;display:flex;align-items:center;justify-content:center;padding:1rem}
.lightbox[hidden]{display:none}
.lb-body{max-width:100%;max-height:100%}
.lb-body img,.lb-body video{max-width:100%;max-height:88svh;border-radius:8px}
.lb-close{
  position:absolute;top:.5rem;right:.7rem;z-index:2;
  background:none;border:0;color:#fff;font-size:2.4rem;line-height:1;
  padding:.4rem .7rem;cursor:pointer;
}


/* ---------- callout ---------- */
.callout{
  background:var(--card);
  border:1px solid var(--line);
  border-left:3px solid var(--green);
  border-radius:0;
  padding:.9rem 1rem;
  margin:1rem 0;
}
.callout p{font-size:.95rem}
.callout .ref{
  margin:.5rem 0 0;
  font-size:.9rem;
  color:var(--muted);
  letter-spacing:.02em;
}
.callout .ref strong{color:var(--green-dark);letter-spacing:.06em}

/* ---------- sticky section tabs ---------- */
html{scroll-behavior:smooth}
#sections,#boat,#gallery-section,#photos{scroll-margin-top:4rem}

.tabs{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  gap:.28rem;
  padding:.6rem 0;
  margin:0 -1.35rem;
  padding-left:1.35rem;
  padding-right:1.35rem;
  background:rgba(250,246,240,.94);
  backdrop-filter:saturate(160%) blur(8px);
  -webkit-backdrop-filter:saturate(160%) blur(8px);
  border-bottom:1px solid var(--line);
  overflow-x:auto;
  scrollbar-width:none;
}
.tabs::-webkit-scrollbar{display:none}
.tab{
  flex:0 0 auto;
  padding:.45rem .72rem;
  border-radius:20px;
  font-size:.82rem;
  font-weight:500;
  text-decoration:none;
  color:var(--muted);
  border:1px solid transparent;
  white-space:nowrap;
}
.tab.is-active{
  background:var(--green);
  color:#fff;
}
.tab:not(.is-active):active{background:#F1EBE1}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

@media (min-width:600px){
  body{font-size:18px}
  .cta{flex-direction:row}
  .cta .btn{flex:1}
  .gallery{grid-template-columns:repeat(4,1fr)}
}

/* ---------- desktop ----------
   The hero photo is portrait. Stretching it across a wide screen crops it to
   the point that only one face survives, so on desktop it becomes a column of
   its own beside the names rather than a full-bleed background. Everything
   here is inside a min-width query, so the phone layout is untouched. */
@media (min-width:820px){
  main{max-width:40rem}
  .tabs{margin:0;padding-left:0;padding-right:0}

  .hero{
    display:grid;
    grid-template-columns:minmax(0,0.9fr) minmax(0,1fr);
    align-items:center;
    gap:3.5rem;
    min-height:0;
    max-width:64rem;
    margin:0 auto;
    padding:3.5rem 2rem 2.5rem;
  }
  .hero-img{
    position:static;
    width:100%;
    height:auto;
    aspect-ratio:4/5;
    max-height:70svh;
    border-radius:14px;
    object-position:50% 26%;
  }
  .hero-scrim{display:none}
  .hero-text{
    padding:0;
    text-align:left;
    color:var(--ink);
  }
  .hero h1{
    color:var(--green-dark);
    text-shadow:none;
    font-size:clamp(3.2rem,5.4vw,4.6rem);
  }
  .hero-sub{
    color:var(--muted);
    text-shadow:none;
    margin-top:1rem;
  }

  .photo-break img{aspect-ratio:16/9}
}

@media (min-width:820px) and (max-width:1000px){
  .hero{gap:2.5rem;padding:2.5rem 1.5rem 2rem}
}
