:root {
  --paper: #eceae4;
  --paper-2: #d8d5ce;
  --ink: #11110f;
  --muted: #706f69;
  --line: rgba(17, 17, 15, .2);
  --white: #f6f5f1;
  --ease: cubic-bezier(.2, .72, .22, 1);
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.lightbox-open { overflow: hidden; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform .2s ease;
}

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

.grain {
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  background:
    repeating-radial-gradient(circle at 17% 19%, rgba(0, 0, 0, .14) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(97deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

.site-header a { pointer-events: auto; }

.monogram {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.05em;
}

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

.site-header nav a {
  position: relative;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transition: right .35s var(--ease);
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after { right: 0; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #1b1b19;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #1b1b19;
  cursor: zoom-in;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(.76);
  transform: scale(1.035) translate3d(var(--hero-x, 0), var(--hero-y, 0), 0);
  transition: transform 1.1s var(--ease), filter .6s ease;
}

.hero__media:hover img { filter: contrast(1.05) brightness(.84); }

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .08) 42%, rgba(0, 0, 0, .7));
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  padding: clamp(120px, 15vh, 180px) var(--gutter) 42px;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.hero__copy a { pointer-events: auto; }

.eyebrow,
.section-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  margin: 18px 0 26px;
  flex-direction: column;
  font-family: Baskerville, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(4.1rem, 12.7vw, 12rem);
  font-weight: 400;
  line-height: .73;
  letter-spacing: -.072em;
}

.hero h1 span:last-child {
  align-self: flex-end;
  font-style: italic;
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .46);
}

.hero__foot p {
  margin: 0;
  font-family: Baskerville, "Iowan Old Style", serif;
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.15;
}

.hero__foot a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero__foot a span { transition: transform .3s var(--ease); }
.hero__foot a:hover span { transform: translateY(5px); }

.hero__index {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: calc(var(--gutter) * .45);
  margin: 0;
  font-size: 10px;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.view-cue {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 50%;
  color: var(--white);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .35s ease, transform .45s var(--ease);
}

.hero .view-cue { top: 32%; left: 53%; }

.photo-open:hover .view-cue,
.photo-open:focus-visible .view-cue {
  opacity: 1;
  transform: scale(1);
}

.intro {
  display: grid;
  grid-template-columns: 2fr 5fr 3fr;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(110px, 17vw, 240px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.intro h2,
.work__header h2 {
  margin: -.12em 0 0;
  font-family: Baskerville, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.3vw, 8rem);
  font-weight: 400;
  line-height: .87;
  letter-spacing: -.055em;
}

.intro__text {
  align-self: end;
  max-width: 430px;
}

.intro__text p {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 18px);
}

.intro__text p + p {
  margin-top: 1.5em;
  color: var(--muted);
}

.work { padding: clamp(100px, 14vw, 200px) var(--gutter); }

.work__header {
  display: grid;
  grid-template-columns: 2fr 7fr 2fr;
  gap: clamp(24px, 4vw, 68px);
  align-items: start;
  margin-bottom: clamp(90px, 15vw, 220px);
}

.work__header h2 em { font-weight: 400; }

.work__count {
  margin: 0;
  padding-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  row-gap: clamp(110px, 18vw, 260px);
}

.photo { margin: 0; }

.photo--bridge { grid-column: 1 / span 5; }
.photo--birch { grid-column: 8 / span 5; margin-top: 18vw; }
.photo--lake { grid-column: 2 / span 8; }
.photo--mountain { grid-column: 5 / span 8; }

.photo-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #bebcb6;
  cursor: zoom-in;
}

.photo-open img {
  width: 100%;
  height: auto;
  transition: transform .9s var(--ease), filter .6s ease;
}

.photo .photo-open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .04);
  transition: background .45s ease;
}

.photo .photo-open:hover img { transform: scale(1.025); }
.photo .photo-open:hover::after { background: rgba(0, 0, 0, 0); }

.photo .view-cue {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.7);
}

.photo-open:hover .view-cue,
.photo-open:focus-visible .view-cue { transform: translate(-50%, -50%) scale(1); }

.photo figcaption {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.photo figcaption span:first-child { color: var(--muted); }

.closing {
  display: grid;
  grid-template-columns: 2fr 7fr 2fr;
  gap: clamp(24px, 4vw, 68px);
  align-items: end;
  padding: clamp(120px, 17vw, 240px) var(--gutter);
  background: var(--ink);
  color: var(--white);
}

.closing__line {
  margin: 0;
  font-family: Baskerville, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 10rem);
  line-height: .82;
  letter-spacing: -.065em;
}

.archive-link {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .5);
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.archive-link span:last-child {
  font-size: 22px;
  transition: transform .35s var(--ease);
}

.archive-link:hover span:last-child { transform: translate(5px, -5px); }

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px var(--gutter);
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 .reveal:nth-child(2) { transition-delay: .1s; }
.hero__foot.reveal { transition-delay: .18s; }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #0b0b0a;
  color: var(--white);
}

.lightbox::backdrop { background: rgba(0, 0, 0, .92); }

.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: lightbox-in .38s var(--ease) both;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lightbox__bar p { margin: 0; }

.lightbox__close,
.lightbox__nav {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.lightbox__close { text-transform: uppercase; }

.lightbox__stage {
  display: grid;
  min-height: 0;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
}

.lightbox__stage figure {
  display: grid;
  height: 100%;
  min-height: 0;
  margin: 0;
  place-items: center;
  padding: 24px;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100svh - 150px);
  object-fit: contain;
}

.lightbox__nav {
  font-size: 24px;
  transition: transform .25s var(--ease);
}

.lightbox__prev:hover { transform: translateX(-5px); }
.lightbox__next:hover { transform: translateX(5px); }

.lightbox__source {
  justify-self: center;
  margin: 0 0 18px;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header { padding-top: 18px; }
  .hero__copy { padding-top: 130px; }
  .hero h1 { line-height: .82; }
  .hero h1 span:last-child { align-self: flex-start; }
  .hero__index { display: none; }

  .intro,
  .work__header,
  .closing {
    grid-template-columns: 1fr;
  }

  .intro h2,
  .work__header h2 { max-width: 750px; }

  .intro__text { margin-top: 24px; }
  .work__count { display: none; }

  .closing { align-items: start; }
  .archive-link { margin-top: 38px; }
}

@media (max-width: 640px) {
  .site-header nav { gap: 17px; }
  .site-header nav a { font-size: 10px; }
  .site-header nav a:nth-child(2) { display: none; }

  .hero__copy { padding-bottom: 25px; }
  .hero h1 { margin-top: 12px; font-size: clamp(3.7rem, 19vw, 6rem); }
  .hero__foot { align-items: center; }
  .hero__foot p { display: none; }

  .intro { padding-top: 100px; padding-bottom: 100px; }
  .intro h2, .work__header h2 { font-size: clamp(3.2rem, 15vw, 5rem); }

  .work { padding-top: 100px; }
  .work__header { margin-bottom: 90px; }
  .gallery { display: block; }
  .photo { margin: 0 0 90px; }
  .photo--birch { margin-top: 0; margin-left: 18%; }
  .photo--bridge { margin-right: 16%; }
  .photo--lake, .photo--mountain { margin-left: 0; margin-right: 0; }

  .closing__line { font-size: clamp(4rem, 20vw, 6.4rem); }

  .lightbox__stage { grid-template-columns: 46px 1fr 46px; }
  .lightbox__stage figure { padding: 10px; }
  .lightbox__bar { padding-top: 14px; padding-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
