:root {
  --bg: #f4f1ea;
  --paper: #fbfaf7;
  --ink: #161616;
  --muted: #6b675f;
  --line: rgba(22,22,22,.14);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
img { display: block; width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244,241,234,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: Georgia, 'Times New Roman', serif; font-size: 1.4rem; letter-spacing: .02em; }
.brand-sub { margin-top: 6px; font-size: .67rem; text-transform: uppercase; letter-spacing: .26em; color: var(--muted); }
.site-nav { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; font-size: .95rem; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle { display: none; border: 0; background: none; font-size: 1.45rem; cursor: pointer; }

.hero { position: relative; min-height: 72vh; display: grid; align-items: end; overflow: hidden; background: #202020; }
.hero-image { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 52%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.03) 18%, rgba(0,0,0,.68) 100%); }
.hero-content { position: relative; color: #fff; padding-bottom: 64px; max-width: 900px; margin-left: max(20px, calc((100vw - min(calc(100% - 40px), var(--max)))/2)); margin-right: 20px; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .19em; font-size: .72rem; font-weight: 700; }
.hero h1 { margin: 0; max-width: 780px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2.7rem, 6vw, 6rem); line-height: .98; }
.hero-copy { max-width: 650px; margin: 22px 0 28px; font-size: 1.05rem; color: rgba(255,255,255,.88); }
.button { display: inline-block; padding: 13px 18px; background: #fff; color: #111; text-decoration: none; border: 1px solid #fff; font-weight: 700; }
.button:hover { background: transparent; color: #fff; }
.button-dark { background: #111; color: #fff; border-color: #111; }
.button-dark:hover { background: transparent; color: #111; }

.section { padding: 88px 0; }
.section-muted { background: #e9e5dc; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 32px; }
h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 1px solid var(--line); background: transparent; padding: 9px 13px; cursor: pointer; }
.filter:hover, .filter.is-active { background: #111; color: #fff; border-color: #111; }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.photo-card { margin: 0; grid-column: span 6; overflow: hidden; background: #ddd; }
.photo-card:nth-child(3n+1) { grid-column: span 7; }
.photo-card:nth-child(3n+2) { grid-column: span 5; }
.photo-card.is-hidden { display: none; }
.photo-open { width: 100%; padding: 0; border: 0; background: none; color: #fff; text-align: left; position: relative; cursor: zoom-in; overflow: hidden; }
.photo-open img { aspect-ratio: 3/2; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.photo-open:hover img { transform: scale(1.025); filter: brightness(.78); }
.photo-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 17px; background: linear-gradient(transparent, rgba(0,0,0,.72)); display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.photo-meta strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; }
.photo-meta em { font-style: normal; font-size: .8rem; opacity: .82; }

.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; }
.prose { max-width: 760px; font-size: 1.12rem; }
.prose p:first-child { margin-top: 0; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px; border: 1px solid var(--line); background: var(--paper); }
.contact-panel p { margin-bottom: 0; color: var(--muted); }
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner a { text-underline-offset: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; padding: 64px 30px 46px; }
.lightbox.is-open { display: flex; flex-direction: column; }
.lightbox img { max-width: min(1500px, 95vw); max-height: 80vh; width: auto; height: auto; box-shadow: 0 15px 60px rgba(0,0,0,.45); }
.lightbox p { color: #fff; margin: 14px 0 0; }
.lightbox-close { position: absolute; top: 18px; right: 24px; border: 0; background: transparent; color: white; font-size: 2.4rem; cursor: pointer; }

@media (max-width: 800px) {
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px 20px 24px; flex-direction: column; gap: 14px; }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .hero { min-height: 64vh; }
  .hero-content { padding-bottom: 42px; }
  .section { padding: 64px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; }
  .photo-card, .photo-card:nth-child(3n+1), .photo-card:nth-child(3n+2) { grid-column: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-panel { align-items: flex-start; flex-direction: column; padding: 30px; }
}

@media (max-width: 520px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { height: 68px; }
  .site-nav { top: 68px; }
  .hero-content { margin-left: 14px; margin-right: 14px; }
  .photo-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .footer-inner { flex-direction: column; }
}
