@font-face {
  font-family: "Atlas Grotesk";
  src: url("typefaces/AtlasGroteskLCGWeb-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  --rail-width: 32px;
  --type-size: 16px;
  --page-gap: 16px;
  --paper: #fafaf8;
  --rule: #111;
  --blue: #0012ac;
  --yellow: #ffed53;
  --gray: #b9b9b9;
  --work-peek: 88px;
}

html,
body {
  min-height: 100%;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: #000;
  background: var(--paper);
  font: var(--type-size)/1.08 "Atlas Grotesk", Arial, sans-serif;
}

::selection {
  color: #fff;
  background: var(--blue);
}

a {
  color: inherit;
}

.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-width);
  border-right: 1px solid var(--rule);
  z-index: 10;
  background: var(--paper);
  font: var(--type-size)/1 "Atlas Grotesk", Arial, sans-serif;
}

.rail-links {
  position: absolute;
  top: calc(13px + env(safe-area-inset-top, 0px));
  left: 0;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.rail-home {
  position: absolute;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 0;
}

.rail a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: inherit;
  text-decoration: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.rail a:hover,
.rail a:focus-visible {
  background: var(--yellow);
}

.slide-zone:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.site {
  margin-left: var(--rail-width);
}

.six-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--page-gap);
}

.cover {
  position: relative;
  height: calc(100vh - var(--work-peek));
  overflow: hidden;
  background: var(--gray);
  touch-action: pan-y;
}

.cover-project-link,
.slideshow-image {
  display: block;
  width: 100%;
  height: 100%;
}

.slideshow-image {
  object-fit: cover;
  user-select: none;
}

.slide-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  padding: 0;
  border: 0;
  z-index: 2;
  background: transparent;
}

.slide-previous {
  left: 0;
  cursor: w-resize;
}

.slide-next {
  right: 0;
  cursor: e-resize;
}

.slide-caption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 3;
  color: #000;
  pointer-events: none;
}

.slide-caption a,
.slide-caption span {
  padding: 2px 8px 1px;
  background: var(--yellow);
  font: inherit;
  line-height: 1;
}

.slide-caption a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.project-index {
  min-height: 100vh;
  scroll-margin-top: 0;
  padding: 10px var(--page-gap) 40px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.section-title {
  margin: 0 0 10px;
  font: inherit;
  text-align: center;
}

.projects {
  row-gap: 68px;
}

.project {
  grid-column: span 2;
  min-width: 0;
}

.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
  background: var(--gray);
  object-fit: cover;
}

.project-image.graphic-placeholder {
  display: flex;
  align-items: flex-start;
  min-height: 0;
  padding: 2px 4px;
  color: var(--ink);
}

.project h2,
.project p {
  margin: 0;
  font: inherit;
}

.project h2 {
  font-style: italic;
}

.project p {
  margin-top: 4px;
  letter-spacing: .04em;
}

.about-page {
  background: var(--yellow);
}

.about {
  min-height: auto;
  scroll-margin-top: 0;
  padding: clamp(34px, 4.5vw, 58px) var(--page-gap) clamp(48px, 6vw, 78px);
  background: var(--yellow);
}

.about-grid {
  align-items: start;
  row-gap: clamp(22px, 3.2vw, 42px);
}

.about-bio {
  grid-column: span 2;
  grid-row: 1;
}

.about-interests {
  grid-column: 3 / span 1;
  grid-row: 1;
}

.about-image {
  grid-column: 3 / span 1;
  grid-row: 2;
}

.about-awards {
  grid-column: 1 / span 2;
  grid-row: 2;
}

.about-colophon {
  grid-column: 5 / span 2;
  grid-row: 2;
  padding-top: clamp(12px, 2vw, 26px);
}

.about-contact {
  grid-column: 3 / span 2;
  grid-row: 3;
}

.about-bio,
.about-awards,
.about-interests,
.about-contact,
.about-image,
.about-colophon {
  min-width: 0;
}

.about h1,
.about h2 {
  margin: 0 0 18px;
  font: inherit;
}

.about p {
  margin: 0;
  line-height: 1.14;
}

.about p + p {
  margin-top: 22px;
}

.about-contact p {
  max-width: 32ch;
}

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

.about a.about-highlight {
  color: #fff;
  background: #001a9f;
  padding: 0 2px;
}

.about a.about-inline-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.about-image {
  margin: 0;
  padding-top: 0;
}

.about-image div,
.about-image img {
  width: 100%;
  background: var(--gray);
}

.about-image img {
  display: block;
  height: auto;
}

.about-contact {
  scroll-margin-top: 20px;
}

.colophon {
  grid-column: 5 / span 2;
}

.project-page {
  background: var(--paper);
}

.project-layout {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 100vh;
}

.project-notes {
  grid-column: span 2;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: 100vh;
  min-height: 0;
  overflow-y: hidden;
  overscroll-behavior: contain;
  padding: 14px 16px 20px;
  border-right: 1px solid var(--rule);
}

.project-heading h1,
.project-heading p,
.project-description p {
  margin: 0;
  font: inherit;
}

.project-heading h1 {
  font-style: italic;
}

.project-heading p {
  margin-top: 3px;
}

.project-heading .project-date {
  margin-top: 0;
}

.project-index-links {
  display: grid;
  gap: 5px;
  margin-top: 22px;
}

.project-index-links a {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0;
  justify-self: start;
  color: inherit;
  background: var(--yellow);
  text-decoration: none;
}

.project-index-links a span {
  padding: 1px 4px;
}

.project-index-links a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.project-description {
  max-width: 62ch;
  margin-top: clamp(28px, 7vh, 70px);
}

.project-description p + p {
  margin-top: 1em;
  text-indent: 30px;
}

.project-description a {
  color: royalblue;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-links {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 18px;
}

.project-text-link {
  color: royalblue;
  text-decoration: none;
}

.project-links .project-text-link::before {
  content: "• ";
}

.project-text-link-separated {
  margin-bottom: 22px;
}

.project-link-label {
  margin: 0;
  color: var(--ink);
}

.project-text-link .link-label {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-text-link:hover,
.project-text-link:focus-visible {
  color: royalblue;
  background: transparent;
}

.project-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: auto 0 0;
}

@media (max-height: 760px) and (min-width: 601px) {
  .project-notes {
    overflow-y: auto;
  }
}

.project-facts div {
  min-width: 0;
}

.project-facts dt,
.project-facts dd {
  margin: 0;
}

.project-facts dt {
  margin-bottom: 3px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-facts .plain-credit-label {
  text-decoration: none;
}

.project-images {
  grid-column: span 4;
  display: grid;
  min-width: 0;
  gap: 0;
  align-content: start;
}

.project-chapter {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 0;
  scroll-margin-top: 0;
}

.project-chapter + .project-chapter {
  margin-top: -1px;
}

.chapter-heading {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: baseline;
  min-height: 34px;
  min-width: 0;
  padding: 7px 12px 6px;
  border: 1px solid var(--rule);
  border-left: 0;
  z-index: 4;
  background: var(--yellow);
}

.chapter-heading > span,
.chapter-heading h2,
.chapter-heading p {
  justify-self: start;
  min-width: 0;
  margin: 0;
  font: inherit;
}

.chapter-heading h2 {
  font-style: italic;
}

.chapter-heading h2:last-child {
  grid-column: 2 / -1;
}

.chapter-heading p {
  justify-self: end;
  text-align: right;
}

.project-images figure {
  margin: 0;
  background: var(--paper);
}

.project-chapter > :nth-child(n + 3) {
  border-top: 1px solid var(--rule);
}

.project-chapter:has(> .image-wide:last-child .project-video) + .project-chapter .chapter-heading {
  border-top: 0;
}

.project-images img {
  display: block;
  width: 100%;
  height: auto;
}

.zoomable-image {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
  background: rgba(250, 250, 248, 0.9);
}

.image-lightbox.is-open {
  display: grid;
}

.image-lightbox-frame {
  display: grid;
  max-width: 94vw;
  max-height: 92vh;
  margin: 0;
  padding: 0;
  background: transparent;
}

.image-lightbox-frame img {
  display: block;
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.image-lightbox-close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 101;
  width: 48px;
  height: 48px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-open {
  overflow: hidden;
}

.image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
}

.image-pair figure {
  min-width: 0;
}

.image-pair img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.paper-bleed {
  display: grid;
  align-items: center;
  background: #fff;
  padding: clamp(12px, 2vw, 28px);
}

.paper-bleed img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.model-embed {
  display: grid;
  gap: 8px;
  padding: clamp(10px, 1.6vw, 22px);
  background: #fff;
}

.model-embed-fullbleed {
  padding: 0;
}

.model-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  background: var(--gray);
}

.project-video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--gray);
}

.video-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
}

.video-triptych::before,
.video-triptych::after {
  content: "";
  display: block;
  background: var(--paper);
}

.video-triptych video {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.video-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
}

.video-pair figure {
  min-width: 0;
  background: var(--gray);
}

.video-pair video {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.video-embed {
  justify-items: center;
}

.video-embed iframe {
  width: min(100%, 520px);
  aspect-ratio: 9 / 16;
}

.paper-bleed-pair {
  gap: 1px;
  background: var(--rule);
}

.paper-bleed-pair figure {
  display: grid;
  align-items: center;
  background: #fff;
  padding: clamp(12px, 2vw, 28px);
}

.event-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 1px;
  background: var(--rule);
}

.event-pair figure {
  min-width: 0;
}

.event-pair img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fill-pair img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.crop-wide {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.crop-pair figure {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.crop-pair img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.image-pair .no-crop img,
.event-pair .no-crop img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.image-pair.paper-bleed-pair img,
.event-pair.paper-bleed-pair img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.confession-grid .image-pair figure,
.confession-grid .image-wide {
  display: grid;
  align-items: center;
  background: #fff;
}

.confession-grid .image-pair img,
.confession-grid .image-wide img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.outreach-pair figure {
  min-height: clamp(340px, 36vw, 600px);
  padding: clamp(10px, 1.6vw, 24px);
}

.project-images .graphic-placeholder {
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  padding: 10px 12px;
  background: var(--gray);
  color: #fff;
}

.graphic-landscape {
  aspect-ratio: 16 / 9;
}

.graphic-spread {
  aspect-ratio: 3 / 2;
}

.graphic-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 1px;
  background: var(--rule);
}

.graphic-poster {
  aspect-ratio: 2 / 3;
}

.graphic-pair-square .graphic-placeholder {
  min-height: 0;
  aspect-ratio: 1;
}

@media (max-width: 900px) {
  .six-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project {
    grid-column: span 1;
  }

  .about-bio {
    grid-column: span 2;
    grid-row: auto;
  }

  .about-awards {
    grid-column: span 2;
    grid-row: auto;
  }

  .about-interests {
    grid-column: span 1;
    grid-row: auto;
  }

  .about-image {
    grid-column: 3 / span 1;
    grid-row: auto;
  }

  .about-contact {
    grid-column: 2 / span 2;
    grid-row: auto;
  }

  .about-colophon {
    grid-column: span 2;
    grid-row: auto;
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  :root {
    --page-gap: 10px;
    --work-peek: 74px;
  }

  .rail-links {
    top: calc(12px + env(safe-area-inset-top, 0px));
    gap: 18px;
  }

  .rail-home {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

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

  .project-index {
    padding-top: 8px;
  }

  .projects {
    row-gap: 42px;
  }

  .project h2,
  .project p {
    font-size: 13px;
  }

  .about {
    padding-top: 16px;
  }

  .about-bio,
  .about-awards,
  .about-interests,
  .about-contact,
  .about-image,
  .about-colophon {
    grid-column: span 2;
  }

  .about-image {
    padding-top: 18px;
  }

  .about-contact p {
    max-width: 32ch;
  }

  .slide-zone {
    width: 32%;
  }

  .project-layout {
    display: block;
  }

  .project-notes {
    position: static;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 12px 10px 20px;
    border-right: 0;
    border-bottom: 0;
  }

  .project-description {
    margin-top: 30px;
  }

  .project-index-links {
    margin-top: 20px;
  }

  .project-facts {
    margin-top: 34px;
  }

  .chapter-heading {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .chapter-heading p {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .project-images .graphic-placeholder {
    min-height: 0;
  }
}
