:root {
  --bar-side: max(16px,3vw);
  --bar-top: max(10px,env(safe-area-inset-top));
  --bar-font-family: "SFMono-Regular",Menlo,Consolas,monospace;
  --bar-font: 400 clamp(12px,1vw,14px)/1.3 var(--bar-font-family);
}
#navigation, .gallery-bar, .project-list { font: var(--bar-font); letter-spacing: .025em; color: #191917 }
#navigation {
  position: fixed; inset: var(--bar-top) var(--bar-side) auto;
  z-index: 4; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; pointer-events: none;
}
#navigation a { pointer-events: auto; justify-self: start; min-height: 44px; display: inline-flex; align-items: center; padding: 0; white-space: nowrap; text-decoration: none; color: #191917; background: transparent }
#navigation a::before, .gallery-bar > *::before { content: '['; margin-right: .66em }
#navigation a::after, .gallery-bar > *::after { content: ']'; margin-left: .66em }
#navigation a:last-child { justify-self: end }
@media (hover:hover) and (pointer:fine) {
  #navigation a:hover span, #back-wall:hover span { text-decoration: underline; text-underline-offset: .19em }
}
#index-page, #about-page { position: fixed; inset: 0; z-index: 2; overflow: auto; background: #faf9f7 }
.entrance-mask, .entrance-text { display: block }
.entrance-mask { overflow: clip }
#about-page {
  padding: max(96px, calc(var(--bar-top) + 60px)) var(--bar-side) max(40px, env(safe-area-inset-bottom));
}
#about-pencil { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none }
.about-content { position: relative }
.about-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: clamp(16px, 2vw, 32px);
  border-top: 1px solid #93908a;
  padding-top: 12px;
}
.about-row + .about-row { margin-top: clamp(32px, 5vw, 72px) }
#about-title, .about-row h2, .about-contact { margin: 0; font: var(--bar-font); letter-spacing: .025em }
#about-title { margin-bottom: clamp(34px, 4vw, 58px) }
.about-biography { max-width: 60ch; font-family: var(--bar-font-family); font-size: clamp(19px, 2vw, 30px); line-height: 1.3 }
.about-biography p { margin: 0 }
.about-biography p + p { margin-top: .9em }
.about-contact { padding: 0; list-style: none; display: grid; gap: 6px; justify-items: start }
.about-contact a { display: inline-block; color: inherit; text-decoration: none }
.about-contact a:focus-visible { outline-offset: 4px }
@media (hover: hover) {
  .about-contact a:hover { background: #000; color: #fff }
}
@media (max-width: 600px) {
  .about-row { grid-template-columns: minmax(0, 1fr); gap: 12px }
}
#index-page {
  inset-block-start: calc(var(--bar-top) + 50px);
  padding: 8px var(--bar-side) max(24px, env(safe-area-inset-bottom));
}
.project-list {
  width: 100%; table-layout: fixed; border-spacing: 0;
  border-top: 1px solid #93908a;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: #55514b;
  text-transform: uppercase;
}
.project-list :is(th, td) {
  padding: 6px 8px;
  border-bottom: 1px solid #aaa7a1;
  text-align: left;
  overflow-wrap: anywhere;
}
.project-list th { font-weight: inherit; color: #68655f }
.project-list th:first-child { width: clamp(50px, 7vw, 96px) }
.project-list th:nth-child(2) { width: 30% }
.project-list :is(th, td):last-child { text-align: right }
.project-list th:last-child { width: clamp(53px, 10vw, 140px) }
.project-list tbody tr { position: relative }
.project-list button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer }
.project-list button::after { content: ''; position: absolute; inset: 0 }
.project-list tr:has(button:focus-visible) { color: #e2e0da; background: #111 }
.project-list button:focus-visible { outline: none }
.project-list button:focus-visible::after { outline: 2px solid currentColor; outline-offset: -4px }
#project-preview { position: fixed; z-index: 1; pointer-events: none; object-fit: contain }

@media (hover: hover) and (pointer: fine) {
  .project-list tbody tr:hover { color: #e2e0da; background: #111 }
}
@media (pointer: coarse) {
  .project-list td { padding-block: 11px }
}
