@font-face {
  font-family: 'Futura';
  src: url('assets/fonts/futura-medium.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura';
  src: url('assets/fonts/futura-bold.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --max-width: 960px;
  --lightbox-max-width: 1200px;
  --font: 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --text: #000;
  --link: #244586;
  --muted: #444;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --section-space: clamp(2.5rem, 6vw, 5rem);
  --text-base: 1rem;
  --text-title: 1.5rem;
  --text-title-lg: 2rem;
  --text-label: 1.125rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 400;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  word-spacing: normal;
  font-kerning: normal;
  text-align: left;
}

a:hover {
  text-decoration: underline;
}

.site {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.hero {
  position: relative;
  margin: 0 calc(-1 * clamp(1rem, 3vw, 2rem));
  aspect-ratio: 841 / 595;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  position: absolute;
  top: clamp(1rem, 4vw, 2rem);
  left: clamp(1rem, 4vw, 2rem);
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.section {
  padding: var(--section-space) 0;
}

.section + .section {
  border-top: 1px solid #eee;
}

.section__title {
  margin: 0 0 1.25rem;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section__title--lg {
  font-size: var(--text-title-lg);
  letter-spacing: 0.03em;
  text-transform: none;
  font-weight: 500;
}

.prose {
  max-width: 52rem;
}

.prose p {
  margin: 0 0 0.85rem;
  text-align: left;
}

.prose p:last-child {
  margin-bottom: 0;
}

.work {
  display: grid;
  gap: var(--gap);
}

.work--split {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.work__text {
  max-width: 42rem;
}

.work__text p {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.work__text p:last-child {
  margin-bottom: 0;
}

.work__media {
  margin: 0;
}

.gallery figure {
  margin: 0;
}

.work__title {
  margin: 0 0 1rem;
  font-size: var(--text-title);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.work__title.section__title--lg {
  font-size: var(--text-title-lg);
  letter-spacing: 0.03em;
}

.gallery {
  display: grid;
  gap: var(--gap);
}

.gallery--2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery--3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery--4 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery--5 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery--5 figure:nth-child(-n+3) {
  grid-column: span 2;
}

.gallery--5 figure:nth-child(n+4) {
  grid-column: span 3;
}

.work--split .gallery--2 {
  align-self: start;
}

.bio-block h3 {
  margin: 1.75rem 0 0.85rem;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bio-block h3:first-child {
  margin-top: 0;
}

@media (min-width: 769px) {
  .site figure img,
  .site .work__media img,
  .site .hero img {
    cursor: zoom-in;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.95);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: fixed;
  top: clamp(1rem, 3vw, 1.5rem);
  right: clamp(1rem, 3vw, 1.5rem);
  border: 0;
  padding: 0;
  background: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  opacity: 0.55;
}

.lightbox__close:focus,
.lightbox__close:focus-visible {
  outline: none;
  box-shadow: none;
}

.lightbox__image {
  display: block;
  max-width: min(var(--lightbox-max-width), 100%);
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .work--split,
  .gallery--2,
  .gallery--3,
  .gallery--4,
  .gallery--5,
  .gallery--5 figure {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .hero {
    aspect-ratio: 4 / 3;
  }
}
