@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-VariableFont.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #000;
  --muted: #000;
  --line: #000;
  --soft: #fff;
  --accent: #000;
  --max: 1640px;
  --pad: clamp(1rem, 2.8vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  text-transform: none;
}

body.project-open {
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  translate: 0 -150%;
  background: var(--ink);
  color: var(--paper);
  padding: .7rem .9rem;
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 1.15rem var(--pad);
  background: var(--paper);
  color: var(--ink);
}

.brand,
.site-nav a,
.menu-button,
.close-project {
  letter-spacing: 0;
  font-size: clamp(.78rem, .85vw, .92rem);
  font-weight: 300;
}

.brand,
.site-nav a {
  text-transform: uppercase;
  font-weight: 400;
}

.brand,
.nav-primary a {
  font-size: clamp(.84rem, .95vw, 1rem);
}

.site-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .4rem 1.2rem;
  padding: 1rem var(--pad);
  background: var(--paper);
}

.nav-meta,
.nav-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.2rem;
}

.nav-meta {
  font-size: clamp(.68rem, .72vw, .8rem);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.at-page-end .nav-meta {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.is-active,
.brand:hover {
  color: var(--ink);
}

.site-nav a.is-active {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

.menu-button {
  display: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
}

.menu-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.menu-icon-close,
.menu-button[aria-expanded="true"] .menu-icon-open {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-icon-close {
  display: block;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 7rem) var(--pad);
}

.intro {
  position: relative;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  display: block;
  padding: 0;
  border: 0;
}

.intro-copy {
  max-width: 40rem;
}

.kicker,
.section-head p,
.project-meta,
.facts dt,
.profile-note,
.project-count {
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(3.1rem, 8vw, 9.5rem);
  font-weight: 200;
  line-height: .9;
  letter-spacing: 0;
  margin: .2em 0 .25em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 4.5rem);
  font-weight: 200;
  line-height: .96;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 2.45rem);
  font-weight: 300;
  line-height: 1;
}

.intro-copy p:last-child,
.profile-text p {
  max-width: 44rem;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  text-transform: none;
}

.intro-image img,
.thumb-card img,
.project-gallery img {
  background: var(--soft);
  object-fit: cover;
}

.intro-image img {
  width: 100%;
  height: calc(100vh - 3.5rem);
  height: calc(100svh - 3.5rem);
  object-position: center;
}

.intro-image {
  height: 100vh;
  height: 100svh;
  padding-top: 3.5rem;
  margin: 0;
}

.intro-link {
  display: block;
  cursor: pointer;
}

@media (min-width: 821px) {
  body {
    padding-bottom: 3.4rem;
  }
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.project-row:hover h3 {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.project-row-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .75rem;
  color: var(--muted);
  font-size: .85rem;
}

.project-count {
  padding-top: .3rem;
  font-size: .85rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
}

.filter-button {
  min-height: 2.25rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: .35rem .7rem;
  cursor: pointer;
  font-weight: 300;
}

.filter-button.is-active,
.filter-button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.thumb-grid {
  columns: 3 18rem;
  column-gap: 1rem;
}

.thumb-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  break-inside: avoid;
}

.thumb-media {
  position: relative;
  display: block;
}

.thumb-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background-color 180ms ease;
}

.thumb-media img {
  aspect-ratio: var(--ratio, 4 / 5);
}

.thumb-card:hover .thumb-media::after,
.thumb-card:focus-visible .thumb-media::after {
  background: rgba(0, 0, 0, .22);
}

.thumb-caption {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  padding-top: .55rem;
  font-size: .86rem;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .65fr);
  gap: var(--pad);
  align-items: start;
}

.profile-portrait {
  margin: 0;
}

.profile-portrait img {
  aspect-ratio: 1000 / 962;
  object-fit: cover;
}

.profile-text h2 {
  margin-bottom: 1.5rem;
}

.profile-text h3 {
  margin: .45rem 0 1.5rem;
}

.profile-text > p + p {
  margin-top: 1rem;
}

.facts {
  display: grid;
  gap: .85rem;
  max-width: 44rem;
  margin: 2rem 0 0;
}

.facts div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-top: .75rem;
}

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

.profile-note {
  padding-left: 0;
  text-transform: none;
}

.contact address {
  display: grid;
  gap: .45rem;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: clamp(1.5rem, 4vw, 4.6rem);
  line-height: 1;
}

.contact a:hover,
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.project-view {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: auto;
  background: var(--paper);
  padding: 1rem var(--pad) 4rem;
}

.close-project {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  margin-left: auto;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  width: 2.75rem;
  height: 2.75rem;
  padding: .5rem;
  cursor: pointer;
  font-weight: 300;
}

.close-project img {
  width: 100%;
  height: 100%;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(18rem, 1.2fr);
  gap: var(--pad);
  align-items: end;
  min-height: 72vh;
}

.project-copy h2 {
  margin-left: -.04em;
}

.project-copy p {
  margin-top: 1rem;
  max-width: 42rem;
  text-transform: none;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.project-meta-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 2rem;
  color: var(--muted);
}

.project-meta-block div {
  display: grid;
  gap: .2rem;
  padding-top: .6rem;
}

.project-meta-block strong {
  font-weight: 400;
}

.project-meta-block a:hover,
.project-meta-block a:focus-visible {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
}

.project-gallery img:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

.project-gallery img {
  min-height: 14rem;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-top: clamp(3rem, 7vw, 7rem);
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  font-weight: 300;
}

.project-back img {
  width: 1.35rem;
  height: 1.35rem;
}

.project-back:hover span,
.project-back:focus-visible span {
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
    backdrop-filter: none;
  }

  .menu-button {
    display: block;
    position: fixed;
    top: .75rem;
    right: var(--pad);
    z-index: 30;
    background: var(--paper);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 25;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: .25rem;
    padding: 5rem var(--pad) 2rem;
    background: var(--ink);
    color: var(--paper);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-primary {
    order: 1;
    display: grid;
    gap: .25rem;
  }

  .nav-meta {
    order: 2;
    margin-top: 2rem;
    gap: .5rem 1rem;
    font-size: .78rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-primary a {
    color: var(--paper);
    font-size: clamp(2rem, 10vw, 4.5rem);
    font-weight: 200;
    line-height: 1.05;
  }

  .nav-meta,
  .nav-meta a {
    color: var(--paper);
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    color: var(--paper);
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .site-header {
    color: var(--paper);
    background: transparent;
    border-color: transparent;
  }

  body.menu-open .brand,
  body.menu-open .menu-button {
    position: relative;
    z-index: 30;
    color: var(--paper);
  }

  body.menu-open .menu-button {
    background: transparent;
  }

  body.menu-open .menu-icon-close {
    filter: invert(1);
  }

  .intro,
  .profile,
  .project-hero {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: 100vh;
    min-height: 100svh;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .project-row-details,
  .project-meta-block {
    grid-template-columns: 1fr 1fr;
  }

  .profile-note {
    padding: 1rem 0 0;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery img:nth-child(3n + 1) {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .project-row {
    grid-template-columns: 1fr;
  }

  .project-row-details,
  .project-meta-block,
  .facts div {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

}

.legal-page {
  text-transform: none;
}

.legal-header,
.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--pad);
  text-transform: uppercase;
  font-size: .85rem;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
}

.legal-content {
  width: min(100%, 58rem);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
}

.legal-content h1 {
  margin: .35rem 0 clamp(3rem, 7vw, 6rem);
}

.legal-content section {
  padding: 1.5rem 0;
}

.legal-content h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.1;
}

.legal-content p {
  max-width: 48rem;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.legal-missing {
  color: var(--ink);
  font-weight: 500;
}
