:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #686868;
  --gap: 16px;
  --edge: clamp(16px, 5vw, 50px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.5;
}
a { color: inherit; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px var(--edge);
}
.site-title { font-weight: 600; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 1.05rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

main { max-width: 1340px; margin: 0 auto; padding: 0 var(--edge); }
.page-title {
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 2.7rem);
  letter-spacing: -0.02em;
  margin: clamp(40px, 9vw, 120px) 0 clamp(24px, 4vw, 48px);
}
.intro { font-size: 1.1rem; max-width: 60ch; margin: -12px 0 32px; }
.empty { color: var(--muted); }

/* Masonry: site.js deals tiles into columns in reading order.
   Without JS the tiles fall back to CSS columns. */
.gallery { column-count: 3; column-gap: var(--gap); }
.gallery.is-laid-out { column-count: auto; display: flex; gap: var(--gap); align-items: flex-start; }
.gallery .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.tile { margin: 0 0 var(--gap); break-inside: avoid; }
.gallery.is-laid-out .tile { margin: 0; }
.tile a { display: block; aspect-ratio: var(--ratio); background: #f3f2ee; overflow: hidden; cursor: zoom-in; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.tile a:hover img { opacity: .92; }
@media (max-width: 700px) { .gallery { column-count: 2; --gap: 10px; } }

.site-footer { padding: clamp(80px, 12vw, 160px) var(--edge) 60px; }
.footer-title { font-weight: 600; font-size: 1.9rem; margin: 0 0 12px; letter-spacing: -0.02em; }
.footer-tagline { margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(255, 255, 255, .97); color: var(--text);
}
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100% - 48px); object-fit: contain; }
.lightbox figcaption { min-height: 24px; margin-top: 12px; text-align: center; font-size: .95rem; }
.lightbox figcaption strong { font-weight: 500; }
.lb-btn {
  position: absolute; border: 0; background: none; font: inherit; font-size: 2rem; line-height: 1;
  color: var(--text); cursor: pointer; padding: 12px 16px;
}
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lb-btn:focus-visible { outline: 2px solid var(--text); }
@media (max-width: 700px) { .lightbox figure { padding: 56px 8px 16px; } .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }
