/* =========================================================================
   Lakshmi & Srinivas — a personal memory journal
   Palette: warm ivory / cream / soft beige, deep brown ink, muted rose,
   dusty pink, a very restrained gold. Editorial, warm, unhurried.
   ========================================================================= */

:root {
  /* surfaces */
  --ivory: #FCFAF6;
  --cream: #F6F0E8;
  --beige: #EDE4D7;

  /* ink */
  --ink: #33291F;
  --prose: #574A3E;
  --muted: #6F6154;
  --faint: #8B7E71;

  /* accents */
  --rose: #A8737A;
  --rose-ink: #8F5F66;
  --pink: #C79BA0;
  --rose-wash: #F3E8E6;
  --gold: #A98F60;

  /* lines */
  --line: rgba(51, 41, 31, 0.10);
  --line-2: rgba(51, 41, 31, 0.17);

  --pad: 96px;
  --maxw: 1240px;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--rose-ink); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ivory);
  padding: 12px 18px;
  z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }


/* visually hidden, still read aloud */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- shared type ---------- */

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rose-ink);
}

.meta {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.h-card {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.4vw, 29px);
  line-height: 1.2;
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.55;
  color: var(--prose);
  max-width: 30em;
}

.prose { font-size: 16.5px; line-height: 1.85; color: var(--prose); max-width: 34em; }
.prose + .prose { margin-top: 18px; }

.rule { width: 56px; height: 1px; background: var(--rose); }

.section { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.section--cream { background: var(--cream); }
.section--tight { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); }

.section-head { max-width: 46em; }
.section-head .h-section { margin-top: 16px; }
.section-head .lede { margin-top: 20px; }

/* a soft marker highlight, used sparingly */
.mark {
  background-image: linear-gradient(180deg, transparent 56%, rgba(199, 155, 160, 0.42) 56%, rgba(199, 155, 160, 0.42) 94%, transparent 94%);
  padding: 0 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* content that has not been filled in yet */
.placeholder {
  color: var(--faint);
  font-style: italic;
}
.placeholder::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border: 1px solid var(--pink);
  transform: rotate(45deg);
  vertical-align: middle;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 250, 246, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img { height: 42px; width: auto; }

.nav ul { display: flex; gap: 26px; align-items: center; }

.nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); }

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { position: relative; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), background 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  /* capped, or on a wide monitor it stretches without limit and the
     photograph slides down to whatever is at the bottom of the frame */
  max-width: 1560px;
  margin: 0 auto;
  min-height: clamp(520px, 76vh, 780px);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 88px) clamp(28px, 4vw, 76px);
  max-width: 680px;
  margin: 0 auto;
}

.hero-text .meta { margin-bottom: 26px; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero .lede { margin: 26px 0 30px; }
.hero .where { color: var(--muted); font-size: 13.5px; letter-spacing: 0.14em; text-transform: uppercase; }

.hero-figure { position: relative; overflow: hidden; background: var(--beige); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue svg { width: 14px; height: 22px; }

/* ---------- opening verse ---------- */

.verse-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.verse-figure { overflow: hidden; background: var(--beige); }
.verse-figure img {
  width: 100%;
  height: clamp(360px, 46vw, 620px);
  object-fit: cover;
  object-position: center 38%;
}

.verse-text { min-width: 0; }

/* a short rule that starts the verse, rather than a lonely centred hairline */
.verse .flourish {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--rose);
  margin-bottom: clamp(26px, 3vw, 40px);
}

.verse p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 13em;
  text-wrap: balance;
}

/* each line steps a little further in, so the verse reads as it falls */
.verse p span { display: block; padding: 0.1em 0; }
.verse p span:nth-child(2) { padding-left: 0.5em; }
.verse p span:nth-child(3) { padding-left: 1em; }
.verse p span:nth-child(4) { padding-left: 1.5em; }

.verse p span:last-child {
  margin-top: 0.6em;
  padding-left: 2em;
  color: var(--rose-ink);
  font-style: italic;
}

/* ---------- together counter ---------- */

.counter { text-align: center; }
.counter .eyebrow { display: block; margin-bottom: 26px; }

.counter-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(28px, 5vw, 68px);
}

.counter-cell { min-width: 92px; }
.counter-cell b {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.counter-cell span {
  display: block;
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.counter-since { margin-top: 30px; }

/* ---------- teaser cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(22px, 3vw, 34px);
  margin-top: 52px;
}

.card { display: block; color: inherit; }
.card figure { overflow: hidden; background: var(--beige); }
.card img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover img { transform: scale(1.045); }
.card h3 { margin-top: 20px; color: var(--ink); transition: color 0.25s ease; }
.card:hover h3 { color: var(--rose-ink); }
.card p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.card .go { display: inline-block; margin-top: 14px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose-ink); }

/* ---------- story timeline ---------- */

.timeline { position: relative; margin-top: 64px; }
.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  background: linear-gradient(180deg, transparent, var(--line-2) 5%, var(--line-2) 95%, transparent);
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  align-items: start;
  gap: 0;
}
.tl-item + .tl-item { margin-top: clamp(48px, 6vw, 84px); }

.tl-marker {
  grid-column: 2;
  justify-self: center;
  margin-top: 4px;
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
  background: var(--ivory);
  border: 1px solid var(--rose);
  box-shadow: 0 0 0 7px var(--ivory);
  position: relative;
  z-index: 1;
}
.section--cream .tl-marker { background: var(--cream); box-shadow: 0 0 0 7px var(--cream); }
.tl-item--open .tl-marker { border-style: dashed; border-color: var(--pink); }

.tl-body { grid-column: 1; padding-right: clamp(24px, 4vw, 64px); text-align: right; }
.tl-figure { grid-column: 3; padding-left: clamp(24px, 4vw, 64px); }

.tl-item:nth-child(even) .tl-body { grid-column: 3; padding-right: 0; padding-left: clamp(24px, 4vw, 64px); text-align: left; }
.tl-item:nth-child(even) .tl-figure { grid-column: 1; padding-left: 0; padding-right: clamp(24px, 4vw, 64px); }

.tl-date {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose-ink);
}
.tl-body h2 { margin-top: 14px; }
.tl-body p { margin-top: 14px; font-size: 16px; line-height: 1.8; color: var(--prose); }
.tl-body .where { margin-top: 12px; font-size: 13px; color: var(--muted); font-style: italic; }

.tl-figure img { width: 100%; height: clamp(280px, 34vw, 460px); object-fit: cover; background: var(--beige); }

/* ---------- firsts ---------- */

.firsts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.first {
  background: var(--ivory);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}
.section--cream .first { background: var(--cream); }
.first .eyebrow { color: var(--rose-ink); }
.first h2 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; color: var(--ink); }
.first .when { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.first p { font-size: 15px; line-height: 1.75; color: var(--prose); margin-top: 2px; }
.first--empty h2 { color: var(--faint); }

.first figure { margin: 6px -30px -34px; overflow: hidden; }
.first figure img { width: 100%; height: 190px; object-fit: cover; transition: transform 0.8s var(--ease); }
.first:hover figure img { transform: scale(1.05); }

/* ---------- little moments (asymmetric) ---------- */

.moments {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: 56px;
}

.moment { grid-column: span 4; }
.moment--wide { grid-column: span 8; }
.moment--half { grid-column: span 6; }
.moment figure { overflow: hidden; background: var(--beige); }
.moment img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.8s var(--ease); }
.moment--wide img, .moment--half img { height: 360px; }
.moment:hover img { transform: scale(1.04); }
.moment figcaption { margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.moment figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--ink); margin-bottom: 4px; }
.moment--offset { margin-top: clamp(20px, 4vw, 56px); }

/* ---------- album ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.filters button {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.filters button:hover { color: var(--ink); border-color: var(--rose); }
.filters button[aria-pressed="true"] { color: var(--ivory); background: var(--rose-ink); border-color: var(--rose-ink); }

.masonry { column-count: 3; column-gap: clamp(14px, 1.8vw, 22px); margin-top: 40px; }
.masonry figure { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 clamp(14px, 1.8vw, 22px); }
.masonry img {
  width: 100%;
  height: auto;
  background: var(--beige);
  cursor: zoom-in;
  transition: opacity 0.3s ease, transform 0.6s var(--ease);
}
.masonry img:hover { opacity: 0.94; transform: scale(1.012); }
.masonry figure[hidden] { display: none; }

/* ---------- places ---------- */

.places { margin-top: 56px; border-top: 1px solid var(--line); }

.place {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(26px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.place h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.place .when { display: block; margin-top: 10px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.place p { font-size: 16px; line-height: 1.8; color: var(--prose); }
.place figure { overflow: hidden; background: var(--beige); }
.place img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.8s var(--ease); }
.place:hover img { transform: scale(1.05); }
.place--empty h2 { color: var(--faint); }

/* ---------- us ---------- */

.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: 56px; }

.person figure { overflow: hidden; background: var(--beige); }
.person figure img { width: 100%; height: clamp(300px, 34vw, 420px); object-fit: cover; }
.person .eyebrow { display: block; margin-top: 26px; }
.person h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; margin-top: 12px; }

.facts { margin-top: 26px; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--ink); }
.facts dd.placeholder { font-size: 15px; font-family: var(--sans); }

.together {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.together figure { overflow: hidden; background: var(--beige); }
.together img { width: 100%; height: clamp(280px, 32vw, 420px); object-fit: cover; }

/* ---------- years ---------- */

.year { border-top: 1px solid var(--line-2); padding: clamp(36px, 5vw, 64px) 0; }
.year:last-of-type { border-bottom: 1px solid var(--line-2); }

.year-head { display: flex; align-items: baseline; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.year-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(52px, 9vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.year--future .year-head h2 { color: var(--pink); }
.year-head p { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 25px); color: var(--muted); }

.year-items { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.year-item { background: var(--ivory); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 26px 28px; }
.section--cream .year-item { background: var(--cream); }
.year-item .when { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose-ink); }
.year-item h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-top: 10px; color: var(--ink); }
.year-item p { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin-top: 8px; }

.empty-state {
  margin-top: 30px;
  padding: 34px 30px;
  border: 1px dashed var(--line-2);
  text-align: center;
  color: var(--faint);
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
}

/* ---------- what's next ---------- */

.wishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.wish { background: var(--ivory); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 28px 34px; min-height: 180px; }
.section--cream .wish { background: var(--cream); }
.wish .eyebrow { color: var(--rose-ink); }
.wish h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-top: 14px; }
.wish p { margin-top: 10px; font-size: 15px; line-height: 1.7; }

/* ---------- closing ---------- */

.closing { position: relative; text-align: center; overflow: hidden; }
.closing-figure { position: absolute; inset: 0; }
.closing-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.closing-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 22, 16, 0.62), rgba(28, 22, 16, 0.74)); }
.closing-inner { position: relative; padding: clamp(84px, 12vw, 168px) 0; color: #F7F2EA; }
.closing h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 6vw, 76px); line-height: 1.05; letter-spacing: 0.01em; }
.closing p { margin-top: 24px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.3vw, 26px); color: rgba(247, 242, 234, 0.86); max-width: 24em; margin-left: auto; margin-right: auto; }
.closing .names { margin-top: 44px; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(247, 242, 234, 0.92); }
.closing .since { margin-top: 12px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(247, 242, 234, 0.6); }
.closing .heart { color: var(--pink); }

/* ---------- next link ---------- */

.pagenext { border-top: 1px solid var(--line); display: flex; justify-content: flex-end; padding: 30px 0; }
.pagenext a { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 46px 0 52px; }
.site-footer img { height: 34px; width: auto; margin: 0 auto 20px; }
.site-footer .names { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.site-footer .names .heart { color: var(--rose); }
.site-footer .tag { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.site-footer .rights { margin-top: 20px; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }

/* =========================================================================
   Photo viewer
   ========================================================================= */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(24, 19, 14, 0.95);
  overscroll-behavior: contain;
}
.lb.open { display: flex; }

.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lb-img { max-width: 92vw; max-height: 84vh; transform-origin: center center; will-change: transform; user-select: none; -webkit-user-drag: none; }
.lb.zoomed .lb-img { cursor: grab; }
.lb.zoomed .lb-img:active { cursor: grabbing; }

.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(247, 242, 234, 0.28);
  border-radius: 50%;
  background: rgba(24, 19, 14, 0.5);
  color: #F7F2EA;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lb-btn:hover { background: rgba(247, 242, 234, 0.16); border-color: rgba(247, 242, 234, 0.5); }

.lb-close { position: absolute; top: 22px; right: 22px; z-index: 2; }
.lb-nav { position: absolute; top: 50%; margin-top: -24px; z-index: 2; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

.lb-bar { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 18px; }
.lb-count { min-width: 62px; text-align: center; font-size: 11px; letter-spacing: 0.18em; color: rgba(247, 242, 234, 0.72); }
.lb-caption {
  position: absolute;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 80vw;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(247, 242, 234, 0.82);
}

/* =========================================================================
   Motion
   ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }

  .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.05s var(--ease); }
  .reveal-img.in { clip-path: inset(0 0 0 0); }

  .hero h1 .line > span { display: block; animation: rise 1.05s var(--ease) both; }
  .hero h1 .line:nth-child(1) > span { animation-delay: 0.12s; }
  .hero h1 .line:nth-child(2) > span { animation-delay: 0.26s; }
  .hero-text .meta, .hero .lede, .hero .where, .hero .scroll-cue { animation: fade-up 0.9s var(--ease) both; }
  .hero-text .meta { animation-delay: 0.05s; }
  .hero .lede { animation-delay: 0.5s; }
  .hero .where { animation-delay: 0.62s; }
  .hero .scroll-cue { animation-delay: 0.78s; }
  .hero-figure img { animation: hero-in 1.4s var(--ease) 0.15s both; }

  .scroll-cue svg { animation: nudge 2.4s ease-in-out infinite; }

  .lb { animation: fade 0.25s ease both; }
  .lb-img { transition: transform 0.18s ease-out; }
  .lb.zoomed .lb-img { transition: none; }
}

@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-in { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1120px) {
  :root { --pad: 56px; }
  .place { grid-template-columns: 170px 1fr 240px; }
}

@media (max-width: 900px) {
  :root { --pad: 32px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 22px; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; }
  .nav a { display: block; padding: 15px 0; font-size: 13px; }
  .nav a::after { display: none; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-figure { order: -1; height: 58vh; min-height: 340px; }
  .hero-text { margin-left: 0; padding: 44px var(--pad) 56px; }

  .verse-grid { grid-template-columns: 1fr; gap: 34px; }
  .verse-figure { order: -1; }
  .verse-figure img { height: clamp(300px, 56vw, 420px); }
  .verse p { max-width: none; }
  .verse p span:nth-child(2),
  .verse p span:nth-child(3),
  .verse p span:nth-child(4) { padding-left: 0; }
  .verse p span:last-child { padding-left: 0; }

  .timeline::before { left: 7px; }
  .tl-item { grid-template-columns: 15px 1fr; column-gap: 22px; align-items: start; }
  .tl-item + .tl-item { margin-top: 44px; }
  .tl-marker { grid-column: 1; margin-top: 6px; }
  .tl-body,
  .tl-item:nth-child(even) .tl-body { grid-column: 2; grid-row: 1; padding: 0; text-align: left; }
  .tl-figure,
  .tl-item:nth-child(even) .tl-figure { grid-column: 2; grid-row: 2; padding: 0; margin-top: 22px; }
  .tl-figure img { height: clamp(240px, 52vw, 340px); }

  .moment, .moment--wide, .moment--half { grid-column: span 6; }
  .moment--offset { margin-top: 0; }
  .moment img, .moment--wide img, .moment--half img { height: 260px; }

  .masonry { column-count: 2; }

  .place { grid-template-columns: 1fr; gap: 18px; }
  .place figure { order: -1; }
  .place img { height: 220px; }

  .people { grid-template-columns: 1fr; gap: 48px; }
  .together { grid-template-columns: 1fr; }
  .together figure { order: -1; }

  .counter-row { gap: 26px; }
  .facts div { grid-template-columns: 120px 1fr; gap: 14px; }
}

@media (max-width: 620px) {
  :root { --pad: 20px; }
  body { font-size: 15.5px; }

  .brand img { height: 36px; }
  .hero-figure { height: 52vh; min-height: 300px; }
  .card img { height: 240px; }
  .moment, .moment--wide, .moment--half { grid-column: span 12; }
  .moment img, .moment--wide img, .moment--half img { height: 300px; }
  .masonry { column-count: 1; }
  .firsts, .wishes, .year-items { grid-template-columns: 1fr; }
  .counter-row { flex-wrap: wrap; gap: 20px 34px; }
  .counter-cell { min-width: 76px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .lb-img { max-width: 96vw; max-height: 74vh; }
  .lb-btn { width: 42px; height: 42px; }
  .lb-close { top: 14px; right: 14px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-caption { bottom: 84px; font-size: 15px; }
}
