* {
  box-sizing: border-box;
}

:root {
  --paper: #f4f1ea;
  --ink: #111;
  --muted: rgba(17,17,17,.58);
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 13px;
  letter-spacing: -0.02em;
  overflow-x: hidden;
}

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

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

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  min-height: 74px;
  padding: 22px 24px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--paper);
}

.site-header.is-landing {
  background: transparent;
  color: #fff;
}

.logo {
  font-family: "Alike Angular", serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

/* LANDING */

.landing {
  width: 100vw;
  min-height: 100vh;
  background: #111;
  overflow: hidden;
}

.landing-slideshow {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.landing-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.landing-slideshow .slide.is-active {
  opacity: 1;
}

/* WORKS */

.works-page {
  padding: 140px 24px 96px;
}

.works-list {
  width: 100%;
}

.work-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 32px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid rgba(17,17,17,.16);
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

.work-row:first-child {
  border-top: 1px solid rgba(17,17,17,.16);
}

.work-year {
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--muted);
}

.work-title {
  font-size: 13px;
  line-height: 1.35;
}

.work-arrow {
  text-align: right;
  color: var(--muted);
}

/* PROJECT DETAIL */

.project-page {
  padding: 112px 24px 100px;
}

.back-link {
  display: inline-block;
  margin-bottom: 64px;
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

.project-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 72px;
}

.project-info,
.project-description {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 12px;
  align-content: start;
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

.project-info .label,
.project-description .label {
  color: var(--muted);
}

.project-description p {
  margin: 0;
}

.project-title {
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

/* IMAGE GRID */

.work-images {
  display: grid;
  gap: 18px;
  align-items: start;
}

.image-block {
  margin: 0;
}

.image-block img {
  width: 100%;
  display: block;
}

.image-block figcaption {
  display: none;
}

/* DESKTOP GRID */

@media (min-width: 821px) {
  .work-images {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .image-block.wide {
    grid-column: 1 / -1;
  }

  .image-block.portrait {
    grid-column: span 2;
  }

  .image-block.quarter {
    grid-column: span 1;
  }
}

/* ABOUT */

.about-page {
  min-height: 100vh;
  padding: 140px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 48px;
  align-items: end;
}

.about-text {
  grid-column: 2;
  font-size: 12px;
  line-height: 1.55;
}

.about-text p {
  margin: 0 0 18px;
}

.about-text a {
  border-bottom: 1px solid currentColor;
}


/* SMALL PRACTICES */

.small-practices {
  margin-top: 148px;
}

.small-practices-head {
  padding: 0 0 18px;
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--muted);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.practice-item {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(17,17,17,.04);
}

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

.practice-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 74px 24px 24px;
  background: rgba(244,241,234,.96);
}

.practice-lightbox:target {
  display: flex;
}

.practice-lightbox-inner {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: end;
}

.practice-lightbox-inner img {
  width: 100%;
  max-height: calc(100vh - 148px);
  object-fit: contain;
}

.practice-lightbox-inner p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--ink);
}

.practice-lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 210;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .practice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .practice-lightbox-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .small-practices {
    margin-top: 96px;
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .practice-lightbox {
    padding: 68px 18px 18px;
  }

  .practice-lightbox-inner img {
    max-height: calc(100vh - 180px);
  }
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .about-page {
    grid-template-columns: 1fr;
  }

  .about-text {
    grid-column: 1;
    max-width: 520px;
  }
}

@media (max-width: 820px) {
  html,
  body {
    font-size: 12px;
  }

  .site-header {
    min-height: 68px;
    padding: 18px;
  }

  .logo {
    font-size: 24px;
  }

  .main-nav {
    gap: 16px;
  }

  .works-page {
    padding: 110px 18px 72px;
  }

  .work-row {
    grid-template-columns: 68px minmax(0, 1fr) 24px;
    min-height: 58px;
  }

  .work-title {
    font-size: 12px;
  }

  .project-page {
    padding: 104px 18px 80px;
  }

  .project-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 48px;
  }

  .project-info,
  .project-description {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .work-images {
    grid-template-columns: 1fr;
  }

  .image-block,
  .image-block.wide,
  .image-block.portrait,
  .image-block.quarter {
    grid-column: 1 / -1;
  }

  .about-page {
    padding: 110px 18px 72px;
  }
}