:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  color: #111;
  background: #fff;
  --gutter: clamp(24px, 3vw, 54px);
  --top: clamp(28px, 4.5vh, 56px);
}
* { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
[hidden] { display: none !important; }
a, button { color: inherit; font: inherit; }
a { text-decoration: none; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
#cover {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
}
.cover-logo { display: block; width: min(47vw, 600px, 85vh); }
.cover-logo img, .utilities img { display: block; width: 100%; height: auto; }
#inside { display: grid; grid-template-columns: minmax(180px, 22%) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.rail {
  align-self: start;
  position: sticky;
  top: 0;
  padding: var(--top) 0 var(--gutter) var(--gutter);
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#navigation { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
#navigation a { font-size: clamp(1.5rem, 2.2vw, 2.125rem); line-height: 1.23; font-weight: 400; }
#navigation a[aria-current], .back:hover, .languages [aria-pressed="true"] {
  text-decoration: underline; text-underline-offset: .17em;
}
@media (hover: hover) {
  #navigation a:hover, .project-list a:hover .entry-title, .contact-email:hover { text-decoration: underline; text-underline-offset: .16em; }
}
.utilities { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 22px; }
.utilities > a { display: block; width: 43px; }
.languages { display: flex; gap: 11px; }
.languages button, .back, .field, .section-kicker, .metadata, .entry-year, .entry-info { font-size: .875rem; }
.languages button { padding: 5px 0; }
#content { min-width: 0; padding: var(--top) var(--gutter) var(--gutter) clamp(16px, 3.5vw, 72px); }
.section-kicker, .field { font-weight: 400; line-height: 1.4; }
.section-kicker { text-transform: uppercase; margin: 3px 0 28px; }
h1.section-kicker { text-transform: none; }
.statement, .contact-email { font-size: clamp(1.625rem, 3.35vw, 3.75rem); line-height: 1.13; font-weight: 400; letter-spacing: -.035em; }
.statement { max-width: 21ch; }
.field { color: #585858; margin: clamp(34px, 6vh, 76px) 0 8px; }
.details { font-size: clamp(1rem, 1.4vw, 1.375rem); line-height: 1.4; }
.contact-email { overflow-wrap: anywhere; }
.project-list { list-style: none; padding: 0; }
.project-list a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid #d4d4d4; }
.project-list li:last-child { border-bottom: 1px solid #d4d4d4; }
.entry-title, .project-title { font-size: clamp(1.125rem, 1.8vw, 1.875rem); line-height: 1.18; font-weight: 400; letter-spacing: -.025em; }
.entry-info, .entry-year, .metadata { color: #555; line-height: 1.45; }
.entry-year, #counter { font-variant-numeric: tabular-nums; }
.research-heading { margin-top: 36px; margin-bottom: 12px; }
.project-header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.metadata { margin-top: 6px; }
.back { flex: none; }
.image-frame {
  --photo-height: min(73svh, 1050px);
  display: grid; align-items: center; justify-items: start;
  min-width: 0; height: var(--photo-height); margin-top: 22px;
}
.photo-stage {
  position: relative; aspect-ratio: var(--photo-ratio);
  width: min(100%, calc(var(--photo-height) * var(--photo-ratio)));
}
#project-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
#controls { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.photo-half {
  min-width: 0; cursor: default; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.photo-half:focus-visible {
  outline: 2px solid white; outline-offset: -4px; box-shadow: inset 0 0 0 5px #222;
}
#counter {
  position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); pointer-events: none;
  padding: 2px 6px; color: white; background: rgb(0 0 0 / 48%); font-size: .8125rem;
}
@media (hover: hover) and (pointer: fine) {
  .photo-stage:not(:hover):not(:focus-within) #counter { opacity: 0; }
}
@media (max-width: 720px) {
  :root { --gutter: 22px; --top: 28px; }
  .cover-logo { width: min(68vw, 430px, 85vh); }
  #inside { display: block; }
  .rail { height: auto; position: static; padding: var(--top) var(--gutter) 0; align-items: flex-start; flex-direction: row; gap: 20px; }
  #navigation { gap: 1px; }
  #navigation a { font-size: 1.5rem; line-height: 1.5; }
  .utilities { flex-direction: column; align-items: flex-end; gap: 8px; }
  .utilities > a { width: 38px; }
  #content { padding: 38px var(--gutter) 22px; }
  .section-kicker { margin-bottom: 19px; }
  .project-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .entry-info { grid-column: 1; grid-row: 2; }
  .entry-year { grid-column: 2; grid-row: 1; }
  .image-frame { --photo-height: min(56svh, 580px); margin-top: 18px; }
  .project-header { gap: 12px; }
  .statement { max-width: 19ch; }
}
