:root {
  --bg: #f7f6f2;
  --text: #171717;
  --muted: #77736b;
  --gap: clamp(10px, 1.4vw, 22px);
  --edge: clamp(18px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px var(--edge) 0;
  letter-spacing: .01em;
}

.name {
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.label {
  color: var(--muted);
  font-size: 13px;
}

.intro {
  padding: clamp(70px, 11vw, 150px) var(--edge) clamp(48px, 7vw, 96px);
}
.intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 9vw, 132px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
}
.intro p {
  margin: 24px 0 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding: 0 var(--edge);
  align-items: start;
}
.photo {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .45s ease, opacity .25s ease;
}
.photo:hover img { transform: scale(1.012); }
.photo:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.featured { grid-column: 1 / span 6; }
.landscape { grid-column: 7 / span 6; margin-top: 13vw; }
.gallery .photo:nth-child(3) { grid-column: 2 / span 4; margin-top: 5vw; }
.gallery .photo:nth-child(4) { grid-column: 7 / span 4; margin-top: 1vw; }
.gallery .photo:nth-child(5) { grid-column: 4 / span 5; margin-top: 4vw; }

footer {
  display: flex;
  justify-content: flex-end;
  padding: 100px var(--edge) 32px;
  color: var(--muted);
  font-size: 12px;
}

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 40px;
  border: 0;
  background: rgba(15,15,15,.96);
}
.lightbox::backdrop { background: rgba(15,15,15,.96); }
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
}
.close {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 2;
  border: 0;
  background: none;
  color: white;
  font-size: 38px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .site-header { padding-top: 20px; }
  .intro { padding-top: 72px; }
  .gallery { grid-template-columns: 1fr; }
  .featured,
  .landscape,
  .gallery .photo:nth-child(3),
  .gallery .photo:nth-child(4),
  .gallery .photo:nth-child(5) {
    grid-column: 1;
    margin-top: 0;
  }
  .gallery { gap: 12px; }
  .lightbox { padding: 18px; }
}
