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

:root {
  --bg: #0b0b0b;
  --fg: #e8e4dc;
  --muted: #9a958d;
  --line: #1f1f1f;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--serif); font-weight: 300;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
body.lb-open { overflow: hidden; }

/* Hero */
.hero { padding: var(--pad) var(--pad) 0; max-width: 1480px; margin: 0 auto; }
.hero-img img { width: 100%; cursor: zoom-in; }
.brand { text-align: center; padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 10vw, 140px); }
.wordmark {
  margin: 0; font-weight: 300; font-size: clamp(44px, 7vw, 92px);
  letter-spacing: 0.42em; margin-right: -0.42em; line-height: 1;
}
.tagline {
  margin: 1.4em 0 0; font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
}

/* Gallery: justified rows — every image in a row shares one height, no cropping */
main { padding: 0 var(--pad); max-width: 1480px; margin: 0 auto; }
.gallery { --gap: clamp(24px, 3.2vw, 48px); }
.row { display: flex; gap: var(--gap); margin: 0 auto clamp(48px, 6vw, 96px); }
.row-wide { max-width: 94%; }
.row-pair { max-width: 66%; }
.item { flex: var(--ar) 1 0; min-width: 0; }
.item a { display: block; cursor: zoom-in; outline-offset: 4px; }
.item img { width: 100%; transition: opacity .3s ease; }
.item a:hover img, .item a:focus-visible img { opacity: .86; }
.item figcaption {
  margin-top: 12px; font-style: italic; font-size: 15px; color: var(--muted); letter-spacing: .02em;
}

@media (max-width: 1000px) {
  .row-wide { max-width: 100%; }
  .row-pair { max-width: 84%; }
}
@media (max-width: 600px) {
  .row, .row-wide, .row-pair { flex-direction: column; max-width: 100%; gap: 0; margin-bottom: 0; }
  .item { flex: none; margin-bottom: 44px; }
  .hero { padding-top: 20px; }
  .tagline { font-size: 10px; letter-spacing: .26em; }
}

/* Footer */
.site-footer {
  text-align: center; padding: clamp(64px, 10vw, 140px) var(--pad) clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line); max-width: 1480px; margin: clamp(24px, 4vw, 60px) auto 0;
}
.mail {
  font-size: clamp(20px, 2.4vw, 26px); text-decoration: none; letter-spacing: .04em;
  border-bottom: 1px solid #3a3835; padding-bottom: 3px; transition: border-color .2s;
}
.mail:hover, .mail:focus-visible { border-color: var(--fg); }
.copy {
  margin: 28px 0 0; font-family: var(--sans); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5,5,5,.985);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-fig {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; padding: 56px 72px 48px;
}
.lb-img { max-width: 100%; max-height: calc(100% - 36px); width: auto; height: auto; object-fit: contain; }
.lb-cap { margin-top: 14px; font-style: italic; font-size: 15px; color: var(--muted); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--fg); cursor: pointer;
  font-family: var(--serif); font-weight: 300; line-height: 1; padding: 12px; opacity: .7;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lb-close { top: 10px; right: 14px; font-size: 40px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 56px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lightbox.single .lb-nav { display: none; }
@media (max-width: 600px) {
  .lb-fig { padding: 56px 12px 40px; }
  .lb-nav { top: auto; bottom: 4px; transform: none; font-size: 44px; }
}
