:root {
  --ink: #5d6b71;        /* slate blue-gray, headings */
  --text: #6d747a;       /* body */
  --muted: #94999e;
  --bg: #fbfaf7;         /* warm off-white */
  --line: #e4e1d9;
  --accent: #8fa6ae;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --max: 760px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* watercolor accents, fixed to the page corners like the original theme */
.wc { position: fixed; z-index: 0; pointer-events: none; user-select: none; }
/* full-width watercolor wash across the bottom of the page */
.wc.br { left: 0; right: 0; bottom: 0; width: 100%; opacity: 0.92; }
.content { position: relative; z-index: 1; }

/* header + nav */
header { text-align: center; padding: 40px 20px 6px; }
.names-top { font-size: clamp(30px, 6vw, 52px); font-weight: 500; letter-spacing: 0.16em; color: var(--ink); text-transform: uppercase; }
.names-top a { color: inherit; text-decoration: none; }

nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  text-align: center; padding: 16px 10px; margin-top: 18px;
}
nav a {
  color: var(--ink); text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 15px; margin: 0 clamp(8px, 2.4vw, 22px);
  white-space: nowrap; border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: border-color 0.2s, color 0.2s;
}
nav a:hover { color: var(--accent); border-color: var(--accent); }
nav a.active { color: var(--accent); border-color: var(--accent); }

section { max-width: var(--max); margin: 0 auto; padding: 74px 24px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.28em; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
h2 { font-weight: 500; color: var(--ink); font-size: clamp(26px, 4.5vw, 38px); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
h3 { font-weight: 600; color: var(--ink); font-size: 22px; letter-spacing: 0.06em; margin-bottom: 4px; }
.hearts { font-size: 26px; color: var(--accent); letter-spacing: 4px; margin: 22px 0; }
p { margin: 0 auto 16px; max-width: 60ch; }
a.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.soft { color: var(--muted); }

/* hero */
.hero { padding-top: 40px; padding-bottom: 60px; }
.hero .names { font-size: clamp(30px, 7vw, 58px); color: var(--ink); letter-spacing: 0.1em; line-height: 1.25; text-transform: uppercase; font-weight: 500; }
.hero .amp { display: block; font-size: 0.5em; color: var(--muted); letter-spacing: 0.3em; margin: 6px 0; text-transform: lowercase; font-style: italic; }
.hero .date { margin-top: 22px; font-size: clamp(20px, 3vw, 26px); letter-spacing: 0.24em; color: var(--ink); text-transform: uppercase; }
.hero .place { letter-spacing: 0.24em; color: var(--muted); text-transform: uppercase; font-size: 16px; margin-top: 6px; }
/* intro (date + location) shown above the hero photos */
.hero-top { padding-top: 34px; padding-bottom: 6px; }
.hero-top .hearts { margin-bottom: 4px; }

/* overlapping two-photo collage (Hero 1 higher-left, Hero 2 lower-right) */
.hero-collage { display: flex; justify-content: center; align-items: flex-start; max-width: 960px; margin: 40px auto 6px; padding: 0 24px; position: relative; z-index: 1; }
.hero-collage a { display: block; position: relative; cursor: zoom-in; }
.hero-collage img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 10px 30px rgba(93,107,113,0.22); transition: transform 0.25s; }
.hero-collage a:hover img { transform: translateY(-3px); }
.hero-collage .img1 { width: 47%; z-index: 1; }
.hero-collage .img2 { width: 47%; margin-left: -7%; margin-top: 15%; z-index: 2; }
@media (max-width: 640px) {
  .hero-collage { flex-direction: column; align-items: center; }
  .hero-collage .img1, .hero-collage .img2 { width: 82%; margin: 0 0 14px 0; }
}

/* click-to-enlarge lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(40,44,46,0.9); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95%; max-height: 92vh; border-radius: 4px; box-shadow: 0 12px 44px rgba(0,0,0,0.5); }

/* info blocks */
.card { margin-top: 10px; }
.card .time { letter-spacing: 0.12em; color: var(--ink); }
.stack { margin-top: 34px; }
.stack .place-name { font-size: 20px; color: var(--ink); letter-spacing: 0.05em; }

/* gallery */
.gallery-wide { max-width: 1120px; }
/* Balanced mosaic: two large photos on a diagonal (top-left + bottom-right),
   square tiles filling the rest with no gaps (14 photos -> exactly 5 rows x 4).
   The grid is a fixed 4x5 sized by the container's aspect-ratio, so every row
   height is exact (not guessed from content) — the big photos always tile. */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(5, 1fr); aspect-ratio: 4 / 5; gap: 12px; margin-top: 28px; }
.grid a { overflow: hidden; border-radius: 6px; box-shadow: 0 6px 20px rgba(93,107,113,0.14); cursor: zoom-in; min-width: 0; min-height: 0; }
.grid a.f1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.grid a.f2 { grid-column: 3 / 5; grid-row: 4 / 6; }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
.grid a:hover img { transform: scale(1.045); }
/* Below 4 columns the featured mosaic can't tile evenly, so fall back to a
   uniform even grid (last partial row centered) — never lopsided. */
@media (max-width: 860px) {
  .grid { display: flex; flex-wrap: wrap; justify-content: center; aspect-ratio: auto; }
  .grid a { flex: 0 0 calc(33.333% - 8px); aspect-ratio: 1; }
}
@media (max-width: 560px) {
  .grid a { flex-basis: calc(50% - 6px); }
  nav a { margin: 0 8px; font-size: 13px; }
}

/* standalone page (e.g. /pics): centered, no header/nav/footer */
.standalone { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; }
.standalone .eyebrow { margin-bottom: 14px; }

/* button (e.g. the photo-upload link) */
.btn { display: inline-block; margin-top: 26px; padding: 15px 40px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 999px; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; transition: transform 0.15s, opacity 0.15s; }
.btn:hover { transform: translateY(-2px); opacity: 0.92; }
.hint { margin-top: 24px; font-size: 0.85rem; color: var(--muted); }

/* faq */
.faq { text-align: left; margin-top: 20px; }
.faq .q { color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; font-size: 17px; margin-top: 26px; }
.faq .a { margin-top: 6px; }

footer { text-align: center; padding: 50px 20px 90px; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; font-size: 14px; position: relative; z-index: 1; }
