:root {
  --bg: #1f1f1f;
  --bg-soft: #2a2a2a;
  --fg: #ededed;
  --muted: #8a8a8a;
  --line: #262626;
  --accent: #f5f5f5;
  --max: 1500px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px clamp(20px, 5vw, 70px);
  max-width: var(--max);
  margin: 0 auto;
}

.wordmark {
  font-size: 15px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}

.site-nav a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
  padding: 4px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle { display: none; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 8px; }
.nav-toggle svg { display: block; }

/* ---------- Hero / intro ---------- */
.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 9vw, 110px) clamp(20px, 5vw, 70px) clamp(36px, 6vw, 70px);
}

.intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.intro p {
  color: var(--muted);
  margin-top: 26px;
  max-width: 52ch;
  font-size: 1.05rem;
}

/* ---------- Gallery ---------- */
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 70px) clamp(60px, 10vw, 130px);
  column-gap: clamp(28px, 4vw, 64px);
  column-count: 2;
}

@media (max-width: 620px)  { .gallery { column-count: 1; } }

.shot {
  break-inside: avoid;
  margin-bottom: clamp(34px, 5vw, 70px);
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  box-sizing: border-box;
  background: #fbfbf9;
  padding: clamp(14px, 4%, 34px);
  filter: brightness(0.97);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.shot:hover img { filter: brightness(1.03); }

.shot figcaption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shot .title {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shot .blurb {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Content pages ---------- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 90px) clamp(20px, 5vw, 40px) clamp(70px, 12vw, 140px);
}

.page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.page h2 {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 48px 0 16px;
  font-weight: 600;
}

.page p { margin-bottom: 20px; font-size: 1.07rem; color: #d4d4d4; }
.page p.lead { font-size: 1.2rem; color: var(--fg); }
.page p.flourish {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  line-height: 1.4;
  color: var(--fg);
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 22ch;
}
.page a.link { color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color 0.25s; }
.page a.link:hover { border-color: var(--fg); }

.about-portrait {
  width: 100%;
  margin-bottom: 44px;
  filter: grayscale(1) brightness(0.97);
}

/* ---------- Contact form ---------- */
.field { margin-bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--fg);
  font: inherit;
  padding: 14px 16px;
  border-radius: 2px;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: #4d4d4d; }
.field textarea { resize: vertical; min-height: 150px; }

button.submit {
  background: var(--fg);
  color: var(--bg);
  border: 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}
button.submit:hover { opacity: 0.82; }

.contact-meta { margin-top: 40px; color: var(--muted); font-size: 0.95rem; }
.contact-meta a { color: var(--fg); border-bottom: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 70px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--fg); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  flex-direction: column;
  padding: clamp(20px, 5vh, 70px) clamp(16px, 5vw, 90px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox .lb-caption {
  margin-top: 26px;
  text-align: center;
  max-width: 60ch;
}
.lightbox .lb-title {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lightbox .lb-blurb { color: var(--muted); font-size: 14px; margin-top: 8px; }

.lb-btn {
  position: absolute;
  background: none;
  border: 0;
  color: #cfcfcf;
  cursor: pointer;
  padding: 18px;
  font-size: 26px;
  line-height: 1;
  transition: color 0.2s;
}
.lb-btn:hover { color: #fff; }
.lb-close { top: 14px; right: 18px; font-size: 30px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

@media (max-width: 620px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    transform: translateX(100%);
    transition: transform 0.32s ease;
    z-index: 90;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { font-size: 15px; }
  .nav-toggle.is-open { position: fixed; right: 18px; top: 34px; z-index: 95; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
