:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #101010;
  --muted: #747474;
  --line: #d7d7d2;
  --rail: clamp(17rem, 24vw, 22rem);
  --pad: clamp(1.2rem, 2.5vw, 2.15rem);
  font-family: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.36;
}

a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: .65rem .8rem;
}
.skip-link:focus { top: 1rem; }

.site-rail {
  position: fixed;
  z-index: 20;
  inset: 0 0 0 auto;
  width: var(--rail);
  padding: 2.2rem 2.2rem 1.6rem;
  background: rgba(255, 255, 255, .94);
  overflow-y: auto;
  text-align: right;
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-block;
  margin: 0 0 4.4rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
}

.nav-group { margin: 0 0 1.15rem; }
.nav-group h2 {
  margin: 0;
  font-size: .86rem;
  line-height: 1.2;
  font-weight: 700;
}
.nav-group-toggle {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  transition: color .18s ease;
}
.nav-group-toggle:hover,
.nav-group-toggle:focus-visible {
  color: #ffd400;
}
.nav-group-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: .22rem;
}
.nav-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-.25rem);
  visibility: hidden;
  transition:
    grid-template-rows .48s cubic-bezier(.22, 1, .36, 1),
    opacity .32s ease,
    transform .48s cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear .48s;
}
.nav-panel > ul { min-height: 0; overflow: hidden; }
.nav-group[data-expanded="true"] .nav-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}
.nav-group ul { margin: 0; padding: .6rem 0 0; list-style: none; }
.nav-group li { margin: .13rem 0; }
.nav-group a {
  display: inline-block;
  color: var(--ink);
  font-size: .82rem;
  line-height: 1.35;
  letter-spacing: .02em;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: transparent;
}
.nav-group a:hover,
.nav-group a:focus-visible { text-decoration-color: currentColor; }
.nav-group a[aria-current="page"] {
  padding: 0 .18rem;
  background: #ffd400;
  text-decoration-color: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.rail-bottom { margin-top: 4.8rem; }
.menu-toggle { display: none; }

.home-stage {
  min-height: 100svh;
  margin-right: var(--rail);
  position: relative;
  overflow: hidden;
  background: #eee;
}

.home-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49% 50%;
}

.project-page { margin-right: var(--rail); }
.project-main { padding: var(--pad); }
.project-intro {
  max-width: 49rem;
  padding: 0 0 4rem;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-copy { max-width: 48rem; letter-spacing: .025em; }
.project-copy p { margin: 0 0 1.3rem; }
.project-copy .status { margin-top: 2.65rem; }

.justified-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: .72rem;
  padding: 0 0 3rem;
}
.justified-gallery::after { content: ""; flex-grow: 999; }
.justified-gallery figure {
  flex: var(--ratio) 1 calc(var(--ratio) * 10.6rem);
  margin: 0;
  overflow: hidden;
}
.justified-gallery img {
  display: block;
  width: 100%;
  height: 12.2rem;
  object-fit: cover;
  cursor: zoom-in;
}

body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(3.25rem, 8vw) minmax(0, 1fr) minmax(3.25rem, 8vw);
  align-items: center;
  background: rgba(0, 0, 0, .96);
  color: #fff;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  min-width: 0;
  height: 100svh;
  margin: 0;
  padding: clamp(2.5rem, 5vh, 4.5rem) 0 1.2rem;
}
.lightbox-image {
  align-self: center;
  display: block;
  max-width: 100%;
  max-height: calc(100svh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-count {
  align-self: end;
  padding-top: .85rem;
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
  letter-spacing: .08em;
}
.lightbox-close,
.lightbox-arrow {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
  outline: 1px solid #ffd400;
  outline-offset: .3rem;
}
.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1.25rem;
  padding: .1rem .35rem;
  font: 300 2rem/1 Arial, Helvetica, sans-serif;
}
.lightbox-arrow {
  align-self: stretch;
  padding: 0;
  font: 300 clamp(2.5rem, 5vw, 4.5rem)/1 Arial, Helvetica, sans-serif;
  transition: color .18s ease, opacity .18s ease;
}
.lightbox-arrow:hover { color: #ffd400; }
.lightbox-arrow:disabled { opacity: .18; cursor: default; }
.lightbox-arrow:disabled:hover { color: #fff; }

.centered-project { max-width: 48rem; padding: .35rem 0 4rem; text-align: center; }
.embedded-project { padding-bottom: 2rem; }
.centered-project h1 {
  margin: 0 auto 2.4rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.centered-project .subhead { margin: -1.95rem 0 2.2rem; letter-spacing: .08em; }
.video-frame { position: relative; width: 100%; padding-top: 56.25%; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-meta { margin: 2.5rem auto 0; line-height: 1.45; letter-spacing: .035em; }
.project-meta a { text-decoration: none; }
.project-description { margin: 4rem 0 0; text-align: left; max-width: 46rem; }
.design-image { display: block; width: min(100%, 35rem); height: auto; margin: 0 auto; }
.compact-heading { padding-bottom: 1rem; }
.left-meta { margin: 1.8rem 0 4rem; text-align: left; }

.editing-intro { max-width: 48rem; margin: 0 0 4rem; }
.editing-intro p { margin: 0; }
.editing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 7vw, 7rem) clamp(1.5rem, 5vw, 4.5rem);
  padding: 0 1.25rem 5rem;
}
.editing-grid a,
.editing-grid > div { display: block; color: inherit; text-align: center; text-decoration: none; }
.editing-grid img { display: block; width: 100%; height: auto; margin-bottom: 1rem; }
.editing-grid span { display: block; max-width: 27rem; margin: 0 auto; }
.editing-grid a:hover span,
.editing-grid a:focus-visible span { text-decoration: underline; text-underline-offset: .2em; }

.about-page { width: min(100%, 25rem); padding-bottom: 4rem; letter-spacing: .025em; }
.about-portrait { display: block; width: 16.4rem; height: auto; margin: 0 0 1.7rem; }
.about-page section { margin: 0 0 2.2rem; }
.about-page h1,
.about-page h2 { margin: 0 0 1.25rem; font: bold 1em/1.35 "Courier New", Courier, monospace; }
.about-page p { margin: 0 0 1.25rem; }
.about-page a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.loading-copy,
.load-error { margin: 0; padding: 3rem 0; color: var(--muted); }

.project-empty {
  min-height: 100svh;
  display: grid;
  align-content: center;
  max-width: 55rem;
}
.project-title {
  margin: 0 0 2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 5vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.055em;
  max-width: 16ch;
}
.project-empty .project-title { max-width: 16ch; }
.project-empty p { max-width: 40rem; }

@media (max-width: 860px) {
  :root { --rail: 0rem; }
  .site-rail {
    inset: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 4.25rem;
    padding: 1.1rem 1.25rem;
    border-left: 0;
    border-bottom: 1px solid rgba(0,0,0,.1);
    text-align: left;
    overflow: visible;
  }
  .brand { margin: .2rem 3.5rem 0 0; font-size: 1.16rem; }
  .menu-toggle {
    display: block;
    position: absolute;
    right: 1.25rem;
    top: 1rem;
    padding: .2rem 0;
    border: 0;
    background: transparent;
    font-size: .8rem;
    text-decoration: underline;
    text-underline-offset: .22em;
  }
  .site-nav {
    display: none;
    max-height: calc(100svh - 4.25rem);
    padding: 2rem 0 1.25rem;
    overflow: auto;
    text-align: left;
  }
  .site-rail[data-open="true"] .site-nav { display: block; }
  .nav-group { margin-bottom: 1.6rem; }
  .nav-group a { padding: .12rem 0; font-size: .9rem; }
  .rail-bottom { margin-top: 2rem; }
  .home-stage { margin: 0; min-height: 100svh; padding-top: 4.25rem; }
  .home-image { top: 4.25rem; height: calc(100% - 4.25rem); }
  .project-page { margin: 0; padding-top: 4.25rem; }
  .project-main { padding: 2rem 1.25rem; }
  .project-intro { padding-bottom: 3rem; }
  .project-title { margin-bottom: 2rem; }
  .justified-gallery { display: block; }
  .justified-gallery figure { margin-bottom: .8rem; }
  .justified-gallery img { height: auto; }
  .lightbox {
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  }
  .lightbox-figure { padding-top: 3.5rem; }
  .lightbox-image { max-height: calc(100svh - 6.5rem); }
  .lightbox-arrow { font-size: 2.8rem; }
  .centered-project { padding-top: 1rem; }
  .project-description { margin-top: 2.75rem; }
  .about-page { width: min(100%, 32rem); }
  .editing-grid { grid-template-columns: 1fr; padding-inline: 0; gap: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-group-toggle,
  .nav-panel,
  .lightbox-arrow { transition: none; }
}

