:root {
  color-scheme: light;
  --paper: #f4f1eb;
  --ink: #24251f;
  --muted: #77766d;
  --line: #d9d5cb;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 6.1vw;
}
.site-header { border-bottom: 1px solid var(--line); }
.wordmark { font-size: 15px; font-weight: 600; letter-spacing: -.04em; }
.wordmark span { padding-left: 2px; font-size: 8px; vertical-align: top; }
nav { display: flex; gap: 32px; color: #56564f; font-size: 12px; }
nav a:hover, .site-footer a:hover, .text-link:hover { color: #9a684d; }
.intro { max-width: 990px; margin: 0 auto; padding: 4px 24px 6px; }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h1 { margin: 0; font-size: clamp(18px, 4.5vw, 42px); line-height: 1.02; white-space: nowrap; }
.intro-copy { max-width: 350px; margin: 29px 0 25px; color: #65645b; font-size: 14px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 13px; padding-bottom: 6px; border-bottom: 1px solid #aaa69c; font-size: 12px; transition: color .2s; }
.work { padding: 20px 6.1vw 104px; background: #eae7df; }
.section-heading { display: flex; align-items: end; justify-content: space-between; max-width: 1400px; margin: 0 auto 38px; }
.section-heading .eyebrow { margin-bottom: 12px; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); }
.work-note { margin: 0 0 5px; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: right; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px 20px; max-width: 1400px; margin: auto; }
.photo-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #b6a58f; }
.photo-frame { display: block; width: 100%; padding: 0; border: 0; color: inherit; text-align: left; cursor: zoom-in; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s, transform .7s cubic-bezier(.2,.7,.2,1); }
.photo-frame.has-image img { opacity: 1; }
.photo-frame:hover img { transform: scale(1.025); }
.photo-frame.image-missing::after { position: absolute; inset: auto 0 0; padding: 14px 16px; color: rgba(36,37,31,.7); content: "Add this scan to the images folder"; font-size: 10px; letter-spacing: .04em; }
.tone-1 { background: linear-gradient(145deg,#b5a38d,#d5c7b2 49%,#7e786a); }
.tone-2 { background: linear-gradient(165deg,#8c9a94,#c5c3b1 50%,#6d7167); }
.tone-3 { background: linear-gradient(135deg,#c5ae8e,#e1d4bd 48%,#838275); }
.tone-4 { background: linear-gradient(155deg,#7c8d92,#b5b6a7 52%,#716d5f); }
.tone-5 { background: linear-gradient(145deg,#9d9b88,#d2c5ad 55%,#777969); }
.tone-6 { background: linear-gradient(155deg,#8d9d9b,#bfc6b5 50%,#75796d); }
.photo-caption { padding-top: 13px; }
.photo-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.photo-title-row h3 { margin: 0; font-size: 13px; font-weight: 500; }
.photo-year { color: var(--muted); font-size: 10px; }
.photo-place, .photo-details { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.photo-details { color: #55564f; }
.lightbox:not([open]) { display: none; }
.lightbox[open] {
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 28px;
  border: 0;
  background: transparent;
  color: #f8f7f2;
}
.lightbox::backdrop { background: rgba(10, 10, 9, .94); }
.lightbox-figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 8px; width: 100%; height: 100%; min-height: 0; margin: 0; }
.lightbox-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-caption { max-width: 90vw; color: #e3e0d9; font-size: 12px; line-height: 1.5; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  color: white;
  cursor: pointer;
}
.lightbox-close::before, .lightbox-close::after {
  position: absolute;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}
.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after { transform: rotate(-45deg); }
.lightbox-close:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.about { max-width: 740px; margin: 0 auto; padding: 112px 24px 118px; }
.about .eyebrow { margin-bottom: 14px; }
.about h2 { margin-bottom: 18px; }
.about > p:not(.eyebrow) { max-width: 510px; margin: 0 0 24px; color: #65645b; font-size: 13px; line-height: 1.9; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer a { color: var(--ink); }

@media (max-width: 760px) {
  .site-header, .site-footer { padding-right: 22px; padding-left: 22px; }
  .intro { padding: 4px 24px 6px; }
  .work { padding: 52px 22px 72px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; }
  .section-heading { margin-bottom: 28px; }
  .about { padding-top: 84px; padding-bottom: 90px; }
}
@media (max-width: 520px) {
  nav { gap: 18px; }
  .intro { padding-top: 4px; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .work-note { text-align: left; }
  .photo-grid { grid-template-columns: 1fr; gap: 32px; }
  .photo-frame { aspect-ratio: 4 / 3; }
  .site-footer { flex-wrap: wrap; gap: 12px 18px; }
}
