:root {
  --paper: #f4f4f0;
  --ink: #11110f;
  --muted: #65645f;
  --line: rgba(17, 17, 15, 0.22);
  --acid: #d8ff45;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page: min(1520px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

::selection {
  color: var(--ink);
  background: var(--acid);
}

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

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

.site-header {
  width: var(--page);
  margin: 0 auto;
  padding: 24px 0 17px;
  border-bottom: 1px solid var(--line);
}

.brand-line,
.editorial-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-line__name {
  font-size: 0.98rem;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: clamp(44px, 7vw, 120px);
  align-items: start;
  width: var(--page);
  min-height: calc(100svh - 78px);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 108px) 0;
}

.intro__portrait-wrap {
  position: relative;
  width: min(100%, 680px);
}

.intro__portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 2.75;
  object-fit: cover;
  object-position: center 20%;
  background: #dadad6;
}

.intro__copy {
  position: sticky;
  top: 46px;
  padding-top: 3vh;
}

.eyebrow {
  margin: 0 0 42px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.display-title {
  max-width: 8ch;
  margin: 0 0 48px;
  font-family: var(--serif);
  font-size: clamp(4.7rem, 8.5vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.76;
}

.display-title em {
  margin-left: 0.42em;
  font-weight: 400;
}

.bio {
  max-width: 620px;
  margin-left: 5vw;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.55vw, 1.55rem);
  line-height: 1.45;
}

.bio p {
  margin: 0 0 1em;
}

.work {
  padding: 110px 0 140px;
  color: #fff;
  background: var(--ink);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: var(--page);
  margin: 0 auto 44px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.section-head h2,
.section-head p {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(26px, 3.8vw, 64px) clamp(18px, 2.4vw, 38px);
  width: var(--page);
  margin: 0 auto;
}

.project-card {
  grid-column: span 6;
}

.project-card:first-child {
  grid-column: 1 / -1;
}

.project-card__media {
  position: relative;
  overflow: hidden;
  background: #272724;
}

.project-card:first-child .project-card__media {
  aspect-ratio: 16 / 8.6;
}

.project-card:not(:first-child) .project-card__media {
  aspect-ratio: 4 / 5;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease;
}

.project-card:first-child .project-card__media img {
  object-position: center 38%;
}

.project-card--siren .project-card__media img {
  object-position: center 30%;
}

.project-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.project-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.project-card__open {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-card:hover .project-card__media img,
.project-card:focus-visible .project-card__media img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.018);
}

.site-footer {
  padding: 74px 0 30px;
  color: #fff;
  background: var(--ink);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  width: var(--page);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.contact-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list a {
  display: inline-block;
  padding: 2px 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 220ms ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  background-size: 100% 1px;
}

.copyright {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 56px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Editorial pages */
.editorial-page {
  background: #f7f7f5;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-link::before {
  content: "←";
  font-size: 1rem;
  transition: transform 180ms ease;
}

.back-link:hover::before {
  transform: translateX(-4px);
}

.editorial-hero {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 160px) 0 clamp(56px, 7vw, 110px);
}

.editorial-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 11vw, 12.5rem);
  font-weight: 400;
  letter-spacing: -0.072em;
  line-height: 0.76;
}

.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(58px, 9vw, 152px) 28px;
  width: var(--page);
  margin: 0 auto;
  padding-bottom: clamp(96px, 12vw, 190px);
}

.gallery-item {
  grid-column: 3 / span 8;
  margin: 0;
}

.gallery-item--portrait {
  grid-column: 4 / span 6;
}

.gallery-item--narrow-left {
  grid-column: 2 / span 5;
}

.gallery-item--narrow-right {
  grid-column: 7 / span 5;
}

.gallery-item--full {
  grid-column: 2 / span 10;
}

.gallery-item img {
  width: 100%;
  height: auto;
  background: #e3e3df;
}

.editorial-footer {
  padding: 26px 0;
  color: #fff;
  background: var(--ink);
}

.editorial-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--page);
  margin: 0 auto;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

.reveal.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  :root {
    --page: calc(100vw - 36px);
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
    padding: 44px 0 84px;
  }

  .intro__portrait-wrap {
    width: min(82vw, 610px);
  }

  .intro__copy {
    position: static;
    padding-top: 0;
  }

  .display-title {
    margin-bottom: 34px;
    font-size: clamp(4.6rem, 18vw, 8rem);
  }

  .bio {
    margin-left: 13vw;
  }

  .work {
    padding: 80px 0 96px;
  }

  .project-card,
  .project-card:first-child {
    grid-column: 1 / -1;
  }

  .project-card:first-child .project-card__media,
  .project-card:not(:first-child) .project-card__media {
    aspect-ratio: 4 / 5;
  }

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

  .contact-list {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-item,
  .gallery-item--portrait {
    grid-column: 2 / span 10;
  }
}

@media (max-width: 560px) {
  :root {
    --page: calc(100vw - 28px);
  }

  .brand-line,
  .editorial-nav {
    align-items: flex-start;
    font-size: 0.66rem;
    letter-spacing: 0.09em;
  }

  .brand-line__name {
    max-width: 15ch;
    font-size: 0.78rem;
  }

  .intro {
    padding-top: 28px;
  }

  .intro__portrait-wrap {
    width: calc(100% - 22px);
  }

  .eyebrow {
    margin-bottom: 26px;
  }

  .display-title {
    font-size: clamp(4.1rem, 20vw, 6rem);
  }

  .bio {
    margin-left: 0;
    font-size: 1.1rem;
  }

  .section-head p,
  .project-card__open {
    display: none;
  }

  .project-card__title {
    font-size: 2.15rem;
  }

  .copyright {
    flex-direction: column;
    margin-top: 36px;
  }

  .editorial-hero {
    padding-top: 74px;
  }

  .editorial-hero h1 {
    font-size: clamp(4.05rem, 20vw, 7rem);
  }

  .editorial-gallery {
    gap: 44px 14px;
  }

  .gallery-item,
  .gallery-item--portrait,
  .gallery-item--narrow-left,
  .gallery-item--narrow-right,
  .gallery-item--full {
    grid-column: 1 / -1;
  }

  .editorial-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

  .reveal,
  .reveal.reveal-ready {
    opacity: 1;
    transform: none;
  }
}
