@charset "UTF-8";
:root {
  --bg: #efcdd3;
  --ink: #2f2628;
  --muted: #8d7176;
  --faint: #b99ca1;
  --cols: 12;
  --gutter: clamp(16px, 1.6vw, 28px);
  --margin: clamp(22px, 3.6vw, 64px);
  --text: clamp(15px, 1.05vw, 18px);
  --lead: 1.3;
  --sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial,
    sans-serif;
  color-scheme: light;
}

:root[data-theme=dark] {
  --bg: #241d1f;
  --ink: #ead4d7;
  --muted: #94797e;
  --faint: #5e4c50;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text);
  font-weight: 400;
  line-height: var(--lead);
  letter-spacing: -0.006em;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 768px) and (min-height: 560px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
}
h1,
h2 {
  font: inherit;
}

ul {
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

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

.skip-link {
  position: absolute;
  left: var(--margin);
  top: 8px;
  z-index: 1;
  padding: 0.15em 0.4em;
  background: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}

.text-link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease;
}
@media (hover: hover) {
  .text-link:hover {
    text-decoration-color: currentColor;
  }
}

.external-link::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.3em;
  font-size: 0.85em;
  color: var(--muted);
}

.home {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: var(--gutter);
  row-gap: calc(var(--lead) * 2em);
  padding: var(--margin);
  align-items: start;
}

.colophon-group + .colophon-group {
  margin-top: calc(var(--lead) * 1em);
}

.project-index {
  grid-column: 7/10;
  grid-row: 1/-1;
}

.art-index {
  grid-column: 4/7;
  grid-row: 1/-1;
}

.project-title {
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--muted);
}

html,
.project-index,
.art-index {
  scrollbar-width: thin;
  scrollbar-color: var(--faint) transparent;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--faint);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
  }
}
@media (min-width: 768px) and (min-height: 560px) {
  .project-index,
  .art-index {
    align-self: stretch;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
.project-summary {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.project-summary::-webkit-details-marker {
  display: none;
}
@media (hover: hover) {
  .project-summary:hover .project-name {
    text-decoration-color: currentColor;
  }
}

.project-chevron {
  flex: none;
  width: 0.6em;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.project[open] .project-chevron {
  transform: rotate(90deg);
  color: var(--ink);
}

.project-name {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease;
}

.project-index:has(.project[open]) .project:not([open]) .project-name {
  color: var(--muted);
}

.project-details {
  padding: 0.15em 0 calc(var(--lead) * 0.75em) 1.15em;
  max-width: 30em;
  color: var(--muted);
  padding: 8px 16px;
  margin: 8px 8px 8px 3px;
  border-left: 1px solid var(--faint);
}
.project-details a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease;
  margin-top: 8px;
}
.project-details p {
  text-wrap: pretty;
}
.project-details p + p {
  margin-top: 0.15em;
}

.project[open] .project-details {
  animation: reveal 0.25s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
  }
}
.art-entry {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
}

.art-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  min-width: 0;
}
@media (hover: hover) {
  .art-item:hover .art-name {
    text-decoration-color: currentColor;
  }
  .art-item:hover .art-thumb {
    opacity: 1;
  }
}

.art-thumb {
  flex: none;
  align-self: center;
  width: 1.25em;
  height: 1em;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.art-name {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease;
}

.art-count,
.art-year {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
  margin-left: 0.5em;
}

html:has(.viewer[open]) {
  overflow: hidden;
}

.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: var(--margin);
  background: var(--bg);
  color: var(--ink);
}
.viewer[open] {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: var(--gutter);
  row-gap: calc(var(--lead) * 1em);
  animation: reveal 0.2s ease both;
}
.viewer::backdrop {
  background: var(--bg);
}

.viewer-figure {
  grid-column: 1/-1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.viewer-image.is-loading {
  opacity: 0;
}

.viewer-bar {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: subgrid;
  row-gap: 0.25em;
  align-items: baseline;
}

.viewer:focus-visible {
  outline: none;
}

.viewer-caption {
  grid-column: 1/7;
}
.viewer-caption .viewer-year,
.viewer-caption .viewer-count {
  color: var(--muted);
}
.viewer-caption .viewer-year:not(:empty),
.viewer-caption .viewer-count:not(:empty) {
  margin-left: 0.5em;
}

.viewer-controls {
  grid-column: 10/-1;
  display: flex;
  gap: 1em;
}
.viewer-controls button {
  text-decoration-color: transparent;
}

.identity {
  grid-column: 1/4;
  grid-row: 1;
  padding-right: 16px;
}

.identity-location {
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
  margin-top: 8px;
  text-align: justify;
}

.colophon {
  grid-column: 10/-1;
  grid-row: 1;
}

.colophon-label {
  color: var(--muted);
}

.theme-switch {
  display: flex;
  gap: 0.3em;
}
.theme-switch button {
  color: var(--faint);
  transition: color 0.15s ease;
}
.theme-switch button[aria-pressed=true] {
  color: var(--ink);
}
@media (hover: hover) {
  .theme-switch button:hover {
    color: var(--ink);
  }
}
.theme-switch .theme-separator {
  color: var(--faint);
}

@media (max-width: 1100px) {
  :root {
    --cols: 6;
  }
  .identity {
    grid-column: 1/3;
    grid-row: 1;
  }
  .colophon {
    grid-column: 1/3;
    grid-row: 2;
  }
  .project-index {
    grid-column: 5/7;
  }
  .art-index {
    grid-column: 3/5;
  }
  .viewer-caption {
    grid-column: 1/4;
  }
  .viewer-controls {
    grid-column: 4/-1;
    justify-content: flex-end;
  }
}
@media (max-width: 640px) {
  :root {
    --cols: 2;
    --text: 16px;
  }
  .home {
    grid-template-rows: auto auto auto 1fr;
  }
  .identity {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .project-index {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .art-index {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .colophon {
    grid-column: 1/-1;
    grid-row: 4;
  }
  .viewer-caption,
  .viewer-controls {
    grid-column: 1/-1;
  }
  .viewer-controls {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  html {
    transition: none !important;
    animation: none !important;
  }
}
