:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --ink: #2b2420;
  --muted: #7a6d62;
  --accent: #a4622f;
  --accent-soft: #f1e3d3;
  --line: #e6dccf;
  --ph: linear-gradient(135deg, #efe4d6, #e2d2bf);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
img { display: block; max-width: 100%; }
.eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px; font-weight: 600;
}

/* ---------- Placeholder ---------- */
.ph {
  background: var(--ph);
  display: grid; place-items: center; align-content: center; gap: 6px;
  color: var(--muted); font-size: 13px; text-align: center;
  width: 100%; height: 100%;
}
.ph::before { content: "📷"; display: block; font-size: 22px; opacity: .6; }
.ph.video::before { content: "▶"; font-size: 28px; }

/* ---------- Gate ---------- */
.gate {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(ellipse at top, #f3e6d6, var(--bg) 70%);
}
.gate-card {
  width: 100%; max-width: 400px; text-align: center;
  background: var(--surface); padding: 40px 28px; border-radius: 20px;
  box-shadow: 0 20px 50px -20px rgba(80, 50, 20, .25);
}
.gate-title { font-size: 40px; margin-bottom: 8px; }
.gate-sub { color: var(--muted); margin: 0 0 24px; }
.gate input, .gate button {
  width: 100%; font: inherit; padding: 14px 16px; border-radius: 10px;
}
.gate input { border: 1px solid var(--line); background: var(--bg); margin-bottom: 12px; }
.gate input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate button {
  border: 0; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer;
}
.gate button:hover { filter: brightness(1.08); }
.gate-error { color: #b23b2a; min-height: 1.4em; margin: 12px 0 0; font-size: 14px; }
.shake { animation: shake .4s; }
@keyframes shake { 25%{transform:translateX(-8px)} 50%{transform:translateX(8px)} 75%{transform:translateX(-4px)} }

/* ---------- Hero ---------- */
.hero {
  max-width: 1080px; margin: 0 auto; padding: 56px 16px 40px;
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center;
}
.hero-photo {
  aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; box-shadow: 0 20px 40px -20px rgba(80, 50, 20, .35);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 12px; }
.hero-meta { color: var(--muted); margin: 0 0 20px; }
.hero-welcome { font-size: 18px; max-width: 56ch; margin: 0; }

/* ---------- Tabs ---------- */
.tabs {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: center; gap: 4px;
  background: rgba(250, 246, 239, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 10px 16px;
}
.tabs button {
  font: 500 15px var(--sans); color: var(--muted);
  background: none; border: 0; padding: 10px 18px; border-radius: 999px; cursor: pointer;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }

main { max-width: 1080px; margin: 0 auto; padding: 48px 16px 80px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--line); transform: translateX(-50%);
}
.tl-item {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  margin-bottom: 64px;
}
.tl-item::before {
  content: ""; position: absolute; left: 50%; top: 10px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent); transform: translateX(-50%);
}
.tl-text { text-align: right; }
.tl-item:nth-child(even) .tl-text { order: 2; text-align: left; }
.tl-year { font: 600 14px var(--sans); color: var(--accent); letter-spacing: .08em; }
.tl-text h3 { font-size: 30px; margin: 4px 0 10px; }
.tl-text p { margin: 0; color: var(--muted); }
.tl-photos {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  width: 100%; max-width: 420px; align-self: start;
}
.tl-item:nth-child(even) .tl-photos { justify-self: end; }
.tl-photo { cursor: zoom-in; margin: 0; }
.tl-photo .frame {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: 0 8px 24px -12px rgba(80, 50, 20, .35);
  transition: transform .2s;
}
.tl-photo:hover .frame { transform: translateY(-3px) rotate(-.5deg); }
.tl-photo img { width: 100%; height: 100%; object-fit: cover; }
.tl-photo figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Gallery ---------- */
/* Row-by-row grid so photos read left to right in date order */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.g-item {
  margin: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: 0 8px 24px -14px rgba(80, 50, 20, .35);
}
.g-item .frame { aspect-ratio: var(--ar, 4 / 3); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item figcaption { padding: 10px 14px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.g-item figcaption span { color: var(--muted); }

/* ---------- Videos ---------- */
/* Two large videos per row on desktop, one per row on phones */
.videos { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
#videos { margin: 0 calc(50% - min(50vw, 640px) + 16px); }
.v-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 24px -14px rgba(80, 50, 20, .35);
}
.v-media { aspect-ratio: 16 / 9; background: #000; }
.v-media video, .v-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.v-body { padding: 16px 18px 20px; }
.v-body h3 { font-size: 24px; }
.v-rel { font-size: 13px; color: var(--accent); font-weight: 600; margin: 2px 0 8px; }
.v-body p { margin: 0; color: var(--muted); font-size: 15px; }
.v-quote {
  margin: 10px 0 0; padding-left: 14px; border-left: 3px solid var(--accent-soft);
  font: italic 500 19px/1.4 var(--serif); color: var(--ink);
}

/* ---------- Quotes collage ---------- */
.q-intro { text-align: center; margin-bottom: 36px; }
.q-intro h2 { font-size: clamp(34px, 5vw, 48px); }
.quotes { columns: 3 280px; column-gap: 20px; }
.q-card {
  break-inside: avoid; margin: 0 0 20px; padding: 24px 24px 20px;
  border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 8px 24px -16px rgba(80, 50, 20, .35);
}
/* Rotate through a few warm tints so the collage feels hand-assembled */
.q-card:nth-child(4n+2) { background: var(--accent-soft); }
.q-card:nth-child(4n+3) { background: #f6efe4; transform: rotate(-.6deg); }
.q-card:nth-child(4n) { transform: rotate(.5deg); }
.q-card blockquote {
  margin: 0; font: italic 500 21px/1.4 var(--serif); color: var(--ink);
}
.q-card figcaption {
  margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent);
}
.q-big { padding: 32px 28px 26px; background: var(--accent) !important; transform: none !important; }
.q-big blockquote { font-size: 27px; line-height: 1.3; color: #fff; }
.q-big figcaption { color: #f1e3d3; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 14, 10, .92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
#lb-media img { max-height: 80vh; max-width: 90vw; border-radius: 8px; }
#lb-media .ph { width: min(70vw, 600px); aspect-ratio: 4 / 3; border-radius: 8px; }
.lightbox figcaption { color: #f1e3d3; margin-top: 12px; font-family: var(--serif); font-size: 22px; }
.lightbox button {
  background: none; border: 0; color: #fff; cursor: pointer; font-size: 44px; line-height: 1; padding: 8px 14px;
}
.lb-close { position: absolute; top: 12px; right: 12px; }
.lb-nav { opacity: .7; }
.lb-nav:hover { opacity: 1; }

.footer { text-align: center; color: var(--muted); font-size: 14px; padding: 32px 16px 48px; border-top: 1px solid var(--line); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; text-align: center; }
  .hero-photo { width: 220px; margin: 0 auto; }
  .hero-welcome { margin: 0 auto; }
  .tabs button { padding: 8px 12px; font-size: 14px; }
  .timeline::before { left: 8px; }
  .tl-item { grid-template-columns: 1fr; gap: 16px; padding-left: 36px; margin-bottom: 44px; }
  .tl-item::before { left: 8px; top: 6px; }
  .tl-text, .tl-item:nth-child(even) .tl-text { text-align: left; order: 0; }
  .tl-item:nth-child(even) .tl-photos { justify-self: start; }
  .lb-nav { position: absolute; bottom: 16px; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
}
