@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("/static/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/static/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #faf7f2;
  --ink: #2b2724;
  --muted: #8a8079;
  --gold: #b08d57;
  --line: #ebe4d8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.eyebrow { margin: 0; font-size: .78rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.names { margin: .25em 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(3.2rem, 11vw, 7.5rem); line-height: 1; letter-spacing: -.01em; }
.amp { font-style: italic; font-weight: 400; color: var(--gold); padding: 0 .06em; }
.tagline { margin: 1.25rem 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--muted); }
.divider { width: 64px; height: 1px; margin: 2rem auto 0; border: 0; background: var(--gold); }

.btn { font: 500 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--gold); border-radius: 999px; padding: 1.1em 2.2em; cursor: pointer; transition: background .3s, color .3s; }
.btn:hover:not(:disabled) { background: var(--gold); color: #fff; }
.btn:disabled { opacity: .4; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.hero { text-align: center; padding: clamp(4rem, 12vw, 8rem) 16px clamp(3rem, 7vw, 5rem); }
.hero-actions { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.count { min-height: 1.2em; font-size: .8rem; letter-spacing: .12em; color: var(--muted); }

.gallery { max-width: 1680px; margin: 0 auto; padding: 0 16px; }
.grid-row { display: flex; justify-content: space-between; }
.grid-row.partial { justify-content: flex-start; }
.tile { display: block; flex: none; overflow: hidden; border-radius: 2px; background: var(--line); }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .7s ease, transform 1.2s ease; }
.tile img.loaded { opacity: 1; transform: scale(1); }
.tile:hover img.loaded { transform: scale(1.03); }
.tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.empty { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--muted); }

.login { min-height: 100svh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 420px; text-align: center; }
.login-card .names { font-size: clamp(3rem, 14vw, 5rem); }
.field { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.field input { font: 1rem var(--sans); text-align: center; padding: .95em 1em; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); outline: none; transition: border-color .2s; }
.field input:focus { border-color: var(--gold); }
.error { margin: 1.25rem 0 0; color: #a4493d; font-size: .9rem; }

.pswp { --pswp-bg: #0d0c0b; }
.pswp__download { position: relative; }
.dl-menu { position: absolute; top: 100%; right: 8px; min-width: 230px; padding: 6px; background: rgba(28, 26, 24, .96); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.dl-menu[hidden] { display: none; }
.dl-menu a { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border-radius: 6px; color: #fff; text-decoration: none; font: 500 .85rem var(--sans); }
.dl-menu a:hover, .dl-menu a:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.dl-menu span { color: rgba(255, 255, 255, .55); font-weight: 400; }

.footer { max-width: 640px; margin: 0 auto; padding: 5rem 16px 4rem; text-align: center; color: var(--muted); font-size: .9rem; }
.footer h2 { margin: 0 0 1rem; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer strong { color: var(--ink); font-weight: 500; }

.slideshow { position: fixed; inset: 0; z-index: 200000; background: #000; cursor: none; }
.slideshow[hidden] { display: none; }
.slideshow.show-controls { cursor: default; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.2s ease; }
.slide.visible { opacity: 1; }
.slideshow-controls { position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 8px; padding: 8px; background: rgba(0, 0, 0, .5); border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.slideshow.show-controls .slideshow-controls { opacity: 1; pointer-events: auto; }
.slideshow-controls button { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.slideshow-controls button:hover, .slideshow-controls button:focus-visible { background: rgba(255, 255, 255, .15); outline: none; }
.slideshow-controls svg { width: 22px; height: 22px; fill: currentColor; }
.slideshow .icon-play, .slideshow.paused .icon-pause { display: none; }
.slideshow.paused .icon-play { display: block; }
