:root {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #252525;
  background: #fff;
  font-synthesis: none;
  --page-side-margin: clamp(24px, 3.3vw, 68px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 3.3vw, 68px) var(--page-side-margin);
  display: flex;
  flex-direction: column;
}

header, main { position: relative; z-index: 1; }
header { pointer-events: none; }
.home-name { pointer-events: auto; color: inherit; text-decoration: none; }
header h1 { font-size: clamp(32.4px, 3.735vw, 79.2px); }
.home-name:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
h1 {
  margin: 0;
  font-size: clamp(36px, 4.15vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}

main { margin-top: auto; padding-top: 120px; }
#projects {
  font-size: clamp(21px, 1.55vw, 34px);
  line-height: 1.3;
  letter-spacing: 0.005em;
  text-align: left;
}
.project {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.project-title { font-weight: 700; }
/* Trailing spacing keeps links flush left when they wrap onto a new line. */
.project:not(:last-child) { margin-right: 0.75em; }
.project-subtitle { color: #252525; font-weight: 400; }
/* Thicken the lettering without changing glyph widths or line wrapping. */
.project.is-active .project-title { -webkit-text-stroke: 0.025em currentColor; }
.project:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.preview {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
  visibility: hidden;
}
.preview.is-visible { visibility: visible; }
.preview img {
  display: block;
  width: 42vw;
  max-width: 1000px;
  max-height: 65vh;
  object-fit: contain;
}

.project-page {
  --project-gap: clamp(24px, 2vw, 40px);
  --page-side-margin: 20vw;
}
.project-page main {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--project-gap);
}
.project-heading {
  padding-right: 0;
  display: flex;
  flex-direction: column;
  gap: var(--project-gap);
}
.project-page h1 { overflow-wrap: anywhere; line-height: 1; }
.project-page .subtitle {
  margin: 0;
  color: #252525;
  font-size: clamp(22px, 2.2vw, 44px);
  font-weight: 300;
  line-height: 1;
}
.credits { margin: 0; font-size: 16px; line-height: 1; color: #252525; }
/* Measure heading gaps from the visible letter edges where supported. */
.project-page h1, .project-page .subtitle, .credits {
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
.credits dt { display: inline; color: #252525; }
.credits dt::after { content: ": "; }
.credits dd { display: inline; margin: 0; }
.credits dd:not(:last-child)::after { content: ""; display: block; height: 12px; }
.credits dd:last-child { margin-bottom: 0; }
.close-project {
  position: fixed;
  top: clamp(24px, 3.3vw, 68px);
  right: var(--page-side-margin);
  width: 48px;
  height: 48px;
  z-index: 3;
  background: #fff;
  color: #252525;
}
.close-project::before, .close-project::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 5px;
  width: 38px;
  height: 4px;
  background: currentColor;
  transform: rotate(45deg);
}
.close-project::after { transform: rotate(-45deg); }
.close-project:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.project-content {
  display: flex;
  flex-direction: column;
  gap: var(--project-gap);
}
.content-block { margin: 0; }
.content-block img { display: block; width: 100%; height: auto; }
.video-block { aspect-ratio: 16 / 9; }
.video-block iframe { display: block; width: 100%; height: 100%; border: 0; }
.image-row { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 30px); }
.image-row figure { margin: 0; }
.image-stack { display: flex; flex-direction: column; gap: clamp(10px, 1.5vw, 30px); min-width: 0; }
.content-block figcaption { margin-top: 10px; color: #777; font-size: 14px; line-height: 1.4; }
.text-block {
  max-width: none;
  font-size: clamp(20px, 1.6vw, 30px);
  line-height: 1.5;
  white-space: pre-line;
  text-align: justify;
  hyphens: auto;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.about-page { color: #fff; background: #ff4000; }
.about-page .close-project { color: #fff; background: #ff4000; }
.about-page main { margin-top: 0; padding-top: 0; padding-right: 70px; }
.biography {
  font-size: clamp(32.4px, 3.735vw, 79.2px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-align: left;
}
.biography p { margin: 0 0 1em; }
.biography a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.biography .biography-name { color: #000; text-decoration: none; }
.biography a:hover { text-decoration-thickness: 2px; }
.biography address { font: inherit; overflow-wrap: anywhere; }

@media (min-width: 601px) {
  .project-page .close-project {
    right: calc(var(--page-side-margin) / 2);
    transform: translateX(50%);
  }
}

@media (max-width: 600px) {
  body { padding: 28px 22px; }
  h1 { font-size: clamp(34px, 8.5vw, 50px); }
  header h1 { font-size: clamp(30.6px, 7.65vw, 45px); }
  main { padding-top: 220px; }
  #projects { font-size: 22px; line-height: 1.4; }
  .preview img { width: 82vw; max-height: 45svh; }
  .project-page main { padding-top: 0; }
  .close-project { top: 28px; right: 22px; width: 36px; height: 36px; }
  .close-project::before, .close-project::after { top: 17px; left: 3px; width: 30px; }
  .project-heading { padding-right: 50px; }
  .image-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-page main { padding-top: 0; padding-right: 0; }
  .biography { font-size: clamp(30.6px, 7.65vw, 45px); }
  .about-page main { padding-right: 48px; }
}
@media (max-width: 380px) {
  .image-row { grid-template-columns: 1fr; }
}
