:root {
  --paper: #f2eee6;
  --ink: #1b1b18;
  --muted: #77746c;
  --line: rgba(27, 27, 24, 0.22);
  --gutter: clamp(1.25rem, 3.4vw, 3.75rem);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100vh;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.6rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem var(--gutter) 1rem;
  background: var(--paper);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.7vw, 1.65rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.15rem);
  padding-top: 0.1rem;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 0.25rem 0 0.4rem;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.page { min-height: calc(100vh - 7rem); }

.home-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 20vw);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: end;
  padding: clamp(1rem, 2vw, 2rem) var(--gutter) clamp(2.5rem, 6vw, 6rem);
}

.home-image {
  width: min(100%, 76rem);
  margin: 0;
  align-self: center;
}

.home-image img {
  width: 100%;
  max-height: calc(100vh - 11rem);
  object-fit: contain;
  object-position: left center;
}

.image-loading img {
  opacity: 0;
  transition: opacity 600ms ease;
}

.image-loading.is-loaded img { opacity: 1; }

.home-intro {
  align-self: end;
  padding-bottom: 0.2rem;
}

.home-intro p {
  max-width: 17rem;
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.35vw, 2.55rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.text-link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: baseline;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease;
}

.text-link:hover,
.text-link:focus-visible { border-color: var(--ink); }

.page-heading {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(18rem, 2.25fr) minmax(10rem, 1fr);
  gap: 2rem;
  align-items: end;
  padding: clamp(5rem, 10vw, 10rem) var(--gutter) clamp(7rem, 13vw, 14rem);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-heading h1,
.about-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.page-heading h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6.8vw, 7.6rem);
  line-height: 0.9;
}

.page-deck {
  max-width: 16rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.35;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(7rem, 16vw, 18rem);
  padding: 0 var(--gutter) clamp(10rem, 18vw, 20rem);
}

.gallery-item { margin: 0; }
.gallery-item-1 { width: min(72vw, 76rem); align-self: flex-start; }
.gallery-item-2 { width: min(44vw, 40rem); align-self: flex-end; margin-right: 4vw; }
.gallery-item-3 { width: min(35vw, 32rem); align-self: center; }
.gallery-item-4 { width: min(48vw, 48rem); align-self: flex-start; margin-left: 9vw; }
.gallery-item-5 { width: min(60vw, 62rem); align-self: flex-end; }
.gallery-item-6 { width: min(43vw, 39rem); align-self: center; }

.photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.photo-button img {
  width: 100%;
  height: auto;
  transition: opacity 600ms ease, filter 220ms ease;
}

.photo-button:hover img { filter: brightness(0.96); }
.photo-button:focus-visible { outline: 1px solid var(--ink); outline-offset: 0.4rem; }

.gallery-item figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.about-page {
  padding: clamp(4rem, 8vw, 9rem) var(--gutter) clamp(8rem, 14vw, 15rem);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(3rem, 10vw, 10rem);
  align-items: center;
  max-width: 90rem;
  margin: 0 auto;
}

.about-portrait {
  width: min(100%, 34rem);
  margin: 0;
}

.about-copy { max-width: 37rem; }
.about-copy .eyebrow { margin-bottom: 1.6rem; }

.about-copy h1 {
  margin-bottom: clamp(2.25rem, 5vw, 4.5rem);
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  line-height: 0.8;
}

.about-copy p:not(.eyebrow) {
  max-width: 31rem;
  margin: 0 0 1.35rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  line-height: 1.4;
}

.about-copy .text-link { margin-top: 2.25rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.63rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 15, 14, 0.97);
  color: #f3f0e9;
}

.lightbox::backdrop { background: rgba(15, 15, 14, 0.97); }
.lightbox[open] { display: grid; grid-template-columns: 4rem 1fr 4rem; align-items: center; }

.lightbox figure {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 4.5rem 1rem 2.5rem;
}

.lightbox figure img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
}

.lightbox figcaption {
  align-self: end;
  margin-top: 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.lightbox-close,
.lightbox-arrow {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.lightbox-close {
  position: fixed;
  z-index: 2;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lightbox-arrow {
  width: 100%;
  height: 100%;
  font-size: 1.4rem;
}

.lightbox button:focus-visible { outline: 1px solid currentColor; outline-offset: -0.5rem; }
.lightbox-open { overflow: hidden; }

@media (max-width: 760px) {
  .site-header { align-items: flex-end; padding-top: 1rem; }
  .site-nav { gap: 0.85rem; font-size: 0.61rem; letter-spacing: 0.09em; }
  .wordmark { font-size: 1.2rem; }

  .home-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
    min-height: calc(100svh - 4rem);
    padding-top: 1.75rem;
  }

  .home-image { margin: auto 0 0; }
  .home-image img { max-height: 60svh; object-position: center; }
  .home-intro { padding-bottom: 0; }
  .home-intro p { max-width: 10ch; font-size: 2rem; }

  .page-heading {
    display: block;
    padding-top: 6.5rem;
    padding-bottom: 8rem;
  }

  .page-heading .eyebrow { margin-bottom: 2rem; }
  .page-heading h1 { font-size: clamp(3.3rem, 16vw, 5.5rem); }
  .page-deck { margin-top: 2rem; }

  .gallery { gap: 8.5rem; padding-bottom: 10rem; }
  .gallery-item-1,
  .gallery-item-2,
  .gallery-item-3,
  .gallery-item-4,
  .gallery-item-5,
  .gallery-item-6 {
    width: auto;
    max-width: 100%;
    align-self: stretch;
    margin-right: 0;
    margin-left: 0;
  }

  .gallery-item:nth-child(3n + 2) { margin-left: 12vw; }
  .gallery-item:nth-child(3n) { margin-right: 15vw; }

  .about-layout { display: flex; flex-direction: column; align-items: stretch; gap: 5rem; }
  .about-portrait { width: 80vw; align-self: flex-end; }
  .about-copy h1 { font-size: 18vw; }
  .about-copy p:not(.eyebrow) { font-size: 1.25rem; }

  .lightbox[open] { grid-template-columns: 2.5rem 1fr 2.5rem; }
  .lightbox figure { padding: 4rem 0.25rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
