/* Art. Set in IBM Plex Mono (SIL Open Font License). */
@font-face { font-family: "IBM Plex Mono"; src: url('../fonts/IBMPlexMono-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url('../fonts/IBMPlexMono-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url('../fonts/IBMPlexMono-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #111;
  --muted: #6b6b6b;
  --line: #ddd;
  --paper: #fff;
  --gutter: clamp(1rem, 3.5vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible, a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-weight: 500; font-size: 1rem; }

/* Header */
.art-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding: 3.25rem var(--gutter) 2.5rem;
}
.art-header nav { display: flex; gap: 1.5rem; }
.muted { color: var(--muted); }

/* Index */
.intro { padding: 0 var(--gutter) 2.5rem; max-width: 44rem; }
.works {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 2.25rem var(--gutter);
  padding: 0 var(--gutter) 4rem;
}
.works a { display: block; }
.works .thumb { aspect-ratio: 4 / 5; background: #f2f2f2; overflow: hidden; margin-bottom: 0.6rem; }
.works .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .35s; }
.works a:hover .thumb img, .works a:focus-visible .thumb img { filter: none; }
.works .thumb.is-empty { display: grid; place-items: center; color: var(--muted); }
.works .t { display: block; }
.works .y { display: block; color: var(--muted); }

/* Work page */
.work {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.6fr);
  gap: 2rem var(--gutter);
  padding: 0 var(--gutter) 4rem;
  align-items: start;
}
.work-info { position: sticky; top: 3.25rem; }
.work-info h1 { margin-bottom: 1rem; }
.work-info dl { display: grid; gap: 0.15rem; }
.work-info dd + dt { margin-top: 0.6rem; }
.work-info dt { color: var(--muted); }
.work-info .note { margin-top: 1rem; }
.work-info .ext { display: inline-block; margin-top: 1rem; }
.pager { display: flex; gap: 1.5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.media { display: grid; gap: 2rem; justify-items: start; }
.media video { width: 100%; max-width: 900px; background: #000; }
.embed { width: 100%; max-width: 900px; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* CV */
.cv { padding: 0 var(--gutter) 4rem; max-width: 46rem; }
.cv h2 { margin: 2.5rem 0 0.75rem; }
.cv table { border-collapse: collapse; }
.cv td { vertical-align: top; padding: 0.15rem 0; }
.cv td:first-child { padding-right: 2rem; color: var(--muted); white-space: nowrap; }

/* Footer */
.art-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 720px) {
  .work { grid-template-columns: 1fr; }
  .work-info { position: static; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
