:root {
  color-scheme: light;
  --paper: #f4eee5;
  --paper-deep: #e7ddd0;
  --ink: #2b211d;
  --ink-soft: #665953;
  --wine: #7b403e;
  --rose: #bd6f64;
  --sage: #68705e;
  --blue: #526779;
  --white: #fffdfa;
  --line: rgba(43, 33, 29, 0.18);
  --shadow: 0 20px 60px rgba(50, 35, 27, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(189, 111, 100, 0.055), transparent 30rem),
    radial-gradient(circle at 88% 58%, rgba(82, 103, 121, 0.045), transparent 34rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 23%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(43, 33, 29, 0.012) 3px 4px);
  mix-blend-mode: soft-light;
}

img,
svg {
  display: block;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 1200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--ink);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 4px;
}

.eyebrow {
  margin: 0;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  background: var(--paper-deep);
}

.hero__copy {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.35rem, 3vw, 3.2rem) clamp(1.35rem, 4vw, 5rem);
}

.wordmark {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1;
  text-decoration: none;
}

.hero__title-wrap {
  width: max-content;
  max-width: none;
  margin-top: auto;
  margin-bottom: auto;
  padding-block: 3rem;
}

.hero__title-wrap .eyebrow {
  margin-bottom: 1.35rem;
  color: var(--wine);
  animation: rise-in 900ms 180ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero h1 {
  position: relative;
  z-index: 4;
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(5.3rem, 13.2vw, 13.4rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.72;
  white-space: nowrap;
  animation: rise-in 1100ms 80ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__note {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-style: italic;
  animation: rise-in 900ms 300ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__cue {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__cue svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 180ms ease;
}

.hero__cue:hover svg {
  transform: translateY(0.25rem);
}

.hero__media {
  position: relative;
  display: block;
  min-width: 0;
  height: 100svh;
  overflow: hidden;
  background: #bdb8b2;
  animation: image-in 1300ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(43, 33, 29, 0.1), transparent 22%);
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(1.012);
}

.hero__rule {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 42%;
  width: 1px;
  background: rgba(244, 238, 229, 0.54);
}

.collection {
  position: relative;
  padding: clamp(6rem, 12vw, 12rem) clamp(1.15rem, 4.6vw, 5.6rem)
    clamp(7rem, 14vw, 13rem);
}

.collection__header {
  display: grid;
  width: min(100%, 86rem);
  margin: 0 auto clamp(7rem, 12vw, 12rem);
  grid-template-columns: 2fr 6fr 4fr;
  align-items: end;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.collection__header .eyebrow {
  align-self: start;
  color: var(--wine);
}

.collection__header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 8vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.82;
}

.collection__header > p:last-child {
  max-width: 28rem;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.gallery-story {
  width: min(100%, 94rem);
  margin-inline: auto;
}

.story-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 2.25vw, 2.7rem);
  margin-block: clamp(5.5rem, 11vw, 11rem);
}

.story-row:first-child {
  margin-top: 0;
}

.story-row:last-child {
  margin-bottom: 0;
}

.story-row--opening > :first-child {
  grid-column: 2 / span 4;
}

.story-row--opening > :last-child {
  grid-column: 7 / span 6;
  margin-top: clamp(4rem, 10vw, 10rem);
}

.story-row--trio-portraits > :nth-child(1) {
  grid-column: 1 / span 3;
}

.story-row--trio-portraits > :nth-child(2) {
  grid-column: 4 / span 5;
  margin-top: clamp(7rem, 14vw, 13rem);
}

.story-row--trio-portraits > :nth-child(3) {
  grid-column: 10 / span 3;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.story-row--sunlit > :first-child {
  grid-column: 1 / span 5;
}

.story-row--sunlit > :last-child {
  grid-column: 8 / span 4;
  margin-top: clamp(5rem, 12vw, 12rem);
}

.story-row--formal > :nth-child(1) {
  grid-column: 1 / span 5;
}

.story-row--formal > :nth-child(2) {
  grid-column: 7 / span 6;
  margin-top: clamp(4rem, 8vw, 8rem);
}

.story-row--formal > :nth-child(3) {
  grid-column: 3 / span 8;
  margin-top: clamp(3rem, 7vw, 7rem);
}

.story-row--archive > :first-child {
  grid-column: 2 / span 3;
}

.story-row--archive > :last-child {
  grid-column: 6 / span 7;
  margin-top: clamp(7rem, 13vw, 13rem);
}

.story-row--panorama > * {
  grid-column: 2 / span 10;
}

.story-row--celebration > :first-child,
.story-row--motion > :first-child {
  grid-column: 1 / span 4;
}

.story-row--celebration > :last-child,
.story-row--motion > :last-child {
  grid-column: 6 / span 7;
  margin-top: clamp(6rem, 11vw, 11rem);
}

.story-row--closing > :nth-child(1) {
  grid-column: 1 / span 4;
}

.story-row--closing > :nth-child(2) {
  grid-column: 6 / span 3;
  margin-top: clamp(8rem, 18vw, 17rem);
}

.story-row--closing > :nth-child(3) {
  grid-column: 10 / span 3;
  margin-top: clamp(2rem, 5vw, 5rem);
}

.photo-card {
  position: relative;
  display: block;
  min-width: 0;
  align-self: start;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.photo-card:focus-visible {
  border-radius: 1px;
  outline: 3px solid var(--wine);
  outline-offset: 7px;
}

.photo-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.photo-frame::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(43, 33, 29, 0.04);
  pointer-events: none;
}

.photo-frame picture,
.photo-frame img {
  display: block;
  width: 100%;
}

.photo-frame img {
  height: auto;
  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms ease;
}

.photo-number {
  position: absolute;
  z-index: 3;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  min-width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid rgba(43, 33, 29, 0.14);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(244, 238, 229, 0.9);
  box-shadow: 0 8px 28px rgba(43, 33, 29, 0.12);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.84;
  backdrop-filter: blur(12px);
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    background-color 180ms ease;
}

.photo-card:hover .photo-frame img {
  filter: saturate(1.035) contrast(1.012);
  transform: scale(1.018);
}

.photo-card:hover .photo-number {
  color: var(--white);
  background: var(--wine);
  opacity: 1;
  transform: translate(-0.18rem, -0.18rem);
}

.js .reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1050ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 4.6vw, 5.6rem);
  border-top: 1px solid rgba(244, 238, 229, 0.16);
  color: rgba(255, 253, 250, 0.76);
  background: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer__name {
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.76;
  text-transform: none;
}

.site-footer a {
  justify-self: end;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
}

.lightbox {
  position: fixed;
  z-index: 1500;
  inset: 0;
  display: none;
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--white);
  background: rgba(12, 10, 9, 0.975);
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 5.25rem 1fr 5.25rem;
  grid-template-rows: 5.25rem 1fr 2.4rem;
}

.lightbox::backdrop {
  background: rgba(12, 10, 9, 0.98);
}

.lightbox__toolbar {
  z-index: 3;
  display: flex;
  grid-column: 1 / -1;
  grid-row: 1;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem clamp(0.75rem, 2vw, 1.75rem);
}

.lightbox__counter {
  margin: 0;
  color: rgba(255, 253, 250, 0.8);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(12px);
}

.icon-button:hover {
  color: var(--ink);
  border-color: var(--paper);
  background: var(--paper);
  transform: scale(1.04);
}

.icon-button:focus-visible {
  outline-color: var(--rose);
}

.icon-button svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.lightbox__nav {
  z-index: 3;
  align-self: center;
  justify-self: center;
}

.lightbox__nav--previous {
  grid-column: 1;
  grid-row: 2;
}

.lightbox__nav--next {
  grid-column: 3;
  grid-row: 2;
}

.lightbox__stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  margin: 0;
  grid-column: 2;
  grid-row: 2;
  place-items: center;
  touch-action: pan-y;
}

.lightbox__stage picture {
  display: contents;
}

.lightbox__stage img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 8rem);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__stage img.is-changing {
  opacity: 0.25;
  transform: scale(0.985);
}

body.lightbox-open {
  overflow: hidden;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes image-in {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 899px) {
  .collection__header {
    grid-template-columns: 1fr 3fr;
  }

  .collection__header h2 {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .collection__header > p:last-child {
    grid-column: 2;
    grid-row: 1;
  }

  .story-row {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .story-row > .photo-card {
    grid-column: span 4 !important;
    margin-top: 0 !important;
  }

  .story-row--formal > :last-child,
  .story-row--archive > :last-child,
  .story-row--panorama > *,
  .story-row--celebration > :last-child,
  .story-row--motion > :last-child {
    grid-column: 2 / span 6 !important;
    margin-top: 2rem !important;
  }

  .story-row--trio-portraits > :nth-child(3),
  .story-row--closing > :nth-child(3) {
    grid-column: 3 / span 4 !important;
  }

  .story-row--closing > .photo-card--intimate {
    grid-column: 3 / span 3 !important;
    margin-top: 5rem !important;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 759px) {
  .hero {
    display: block;
    min-height: 100svh;
    color: var(--white);
    background: var(--ink);
  }

  .hero::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    content: "";
    background:
      linear-gradient(180deg, rgba(20, 14, 12, 0.46), transparent 30%),
      linear-gradient(0deg, rgba(20, 14, 12, 0.78), transparent 58%);
    pointer-events: none;
  }

  .hero__copy {
    min-height: 100svh;
    padding: 1.2rem;
  }

  .hero__media {
    position: absolute;
    inset: 0;
    height: 100svh;
  }

  .hero__media::after {
    display: none;
  }

  .hero__media img {
    object-position: 50% 35%;
  }

  .hero__title-wrap {
    width: 100%;
    padding-block: 2rem;
  }

  .hero__title-wrap .eyebrow {
    color: rgba(255, 253, 250, 0.8);
  }

  .hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(5rem, 27vw, 9rem);
    line-height: 0.78;
    white-space: normal;
  }

  .hero__note {
    color: rgba(255, 253, 250, 0.8);
  }

  .hero__rule {
    display: none;
  }

  .wordmark {
    width: 2.6rem;
    height: 2.6rem;
  }
}

@media (max-width: 639px) {
  .collection {
    padding-inline: 1rem;
  }

  .collection__header {
    display: block;
    margin-bottom: 5rem;
  }

  .collection__header .eyebrow {
    margin-bottom: 1.5rem;
  }

  .collection__header h2 {
    margin-bottom: 2rem;
  }

  .story-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.1rem;
    margin-block: 5.3rem;
  }

  .story-row > .photo-card,
  .story-row--formal > :last-child,
  .story-row--archive > :last-child,
  .story-row--panorama > *,
  .story-row--celebration > :last-child,
  .story-row--motion > :last-child,
  .story-row--trio-portraits > :nth-child(3),
  .story-row--closing > :nth-child(3) {
    width: 100%;
    grid-column: 1 !important;
    margin-top: 0 !important;
  }

  .story-row--closing > .photo-card--intimate {
    width: 72%;
    grid-column: 1 !important;
    justify-self: center;
    margin-top: 1rem !important;
  }

  .photo-number {
    right: 0.55rem;
    bottom: 0.55rem;
  }

  .site-footer {
    display: flex;
    min-height: 15rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }

  .site-footer a {
    align-self: flex-end;
  }

  .lightbox[open] {
    grid-template-columns: 3.8rem 1fr 3.8rem;
    grid-template-rows: 4.5rem 1fr 4.6rem;
  }

  .lightbox__toolbar {
    padding: 0.65rem 0.7rem;
  }

  .icon-button {
    width: 2.7rem;
    height: 2.7rem;
  }

  .lightbox__stage {
    grid-column: 1 / -1;
    padding-inline: 0.75rem;
  }

  .lightbox__stage img {
    max-height: calc(100svh - 10rem);
  }

  .lightbox__nav {
    align-self: end;
    margin-bottom: 0.45rem;
  }

  .lightbox__nav--previous {
    grid-column: 1;
    grid-row: 3;
  }

  .lightbox__nav--next {
    grid-column: 3;
    grid-row: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
