:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #242424;
  --muted: #595959;
  --line: #767676;
  --gallery-image-width: 875px;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  min-height: 128px;
}
.site-header a { display: inline-flex; align-items: center; min-height: 48px; }
.site-header nav { display: flex; gap: 24px; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.site-header > nav { padding-top: 10px; }
.header-brand { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 364px; max-width: 65%; }
.artist { width: 100%; text-decoration: none; }
.gallery-switcher {
  display: flex;
  position: sticky;
  top: calc(var(--header-height, 128px) + 16px);
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 104px;
  margin-top: 16px;
  gap: 8px;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}
.gallery-switcher[hidden] { display: none; }
.gallery-arrow { display: inline-flex; justify-content: center; align-items: center; width: 48px; height: 48px; text-decoration: none; }
.gallery-arrow[aria-disabled="true"] { color: var(--muted); opacity: .45; }
.artist-logo { width: 100%; height: auto; }
main { padding: 16px 32px 64px; }
.work-main { padding: 0; }
/* Keep controls beside the canvas, not in the logo's header stack. */
.page-layout:has(> .gallery-switcher:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 0 24px;
  padding: 0 32px;
}
.page-layout:has(> .gallery-switcher:not([hidden])) > main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 16px 0 64px;
}
.page-layout:has(> .gallery-switcher:not([hidden])) > .route-error {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 16px 0 0;
}
.page-layout:has(> .gallery-switcher:not([hidden])):has(> .route-error) > main,
.page-layout:has(> .gallery-switcher:not([hidden])):has(> .route-error) > .gallery-switcher { grid-row: 2; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 28px; font-weight: 600; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 0; }
img { display: block; width: 100%; height: auto; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  align-items: start;
}
.series-card { display: block; position: relative; min-width: 0; text-decoration: none; }
.work-grid.is-masonry { display: block; position: relative; }
.work-grid.is-masonry .series-card { position: absolute; }
@media (min-width: 1200px) {
  .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 15, 15, .7);
  color: #fff;
  opacity: 0;
  transition: opacity 450ms ease;
  pointer-events: none;
}
.cover-title { font-family: "Helvetica Neue", "Source Sans 3", system-ui, sans-serif; font-size: 47.6px; font-weight: 100; line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.series-card:hover .cover-overlay,
.series-card:focus-visible .cover-overlay { opacity: 1; }
.series-card:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (hover: none) {
  .cover-overlay {
    opacity: 1;
    align-items: flex-end;
    background: linear-gradient(transparent 50%, rgba(15, 15, 15, .85));
  }
}
@keyframes gallery-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
.series-layout {
  animation: gallery-enter 600ms ease-out;
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  align-items: start;
}
@media (prefers-reduced-motion: reduce) {
  .cover-overlay { transition: none; }
  .series-layout { animation: none; }
}
.series-info { position: sticky; top: calc(var(--header-height, 132px) + 16px); max-height: calc(100svh - var(--header-height, 132px) - 32px); overflow-y: auto; scrollbar-width: thin; padding-top: 8px; overflow-wrap: anywhere; }
.series-info h1 { font-family: "Helvetica Neue", "Source Sans 3", system-ui, sans-serif; font-weight: 200; }
.series-info p { font-size: 14px; color: var(--muted); }
.gallery-share { margin: 0 0 16px; }
.share-summary { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; list-style: none; cursor: pointer; font-size: 14px; color: var(--muted); }
.share-summary::-webkit-details-marker { display: none; }
.share-summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.share-networks { display: grid; }
.share-network, .copy-share { display: flex; align-items: center; min-height: 48px; font: inherit; font-size: 14px; color: inherit; }
.copy-share { padding: 0; border: 0; background: transparent; text-decoration: underline; cursor: pointer; }
.share-url { display: block; width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); font: inherit; font-size: 14px; }
.share-context, .share-status { margin: 8px 0; }
.share-status:empty { display: none; }
.back-link { display: inline-flex; min-height: 48px; align-items: center; }
.artwork-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; min-width: 0; }
.artwork-stack > figure { min-width: 0; }
.artwork-stack > figure > img { width: var(--gallery-image-width); height: auto; max-width: 100%; object-fit: contain; }
figure { margin: 0; }
.next-series { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.next-series a { display: inline-flex; align-items: center; min-height: 48px; overflow-wrap: anywhere; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; max-width: 1200px; margin: 0 auto; align-items: start; }
.about-layout p { margin-bottom: 24px; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.video-frame { position: relative; width: var(--gallery-image-width); max-width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-play { display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; color: #fff; font: inherit; }
.video-play img { width: 100%; height: 100%; object-fit: contain; }
.video-play span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .4); }
.video-play:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px 32px 0; font-size: 14px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 48px; }
.preview-notice { padding: 24px 32px; color: var(--muted); font-size: 14px; }
.route-error { margin: 0 32px 16px; padding: 16px; background: #f4f4f4; }
.route-error p { margin-bottom: 8px; }
.route-error button, .route-error a { display: inline-flex; align-items: center; min-height: 48px; font: inherit; color: inherit; }
.skip-link { position: absolute; left: 16px; top: -100px; background: var(--paper); padding: 16px; z-index: 1; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .site-header { display: grid; grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 16px; min-height: 112px; }
  .site-header nav { gap: 16px; }
  .site-header > nav { padding-top: 0; }
  .header-brand { width: 100%; max-width: 364px; justify-self: end; }
  body:has(.page-layout > .gallery-switcher:not([hidden])) .site-header { min-height: 88px; }
  .page-layout:has(> .gallery-switcher:not([hidden])) { grid-template-columns: minmax(0, 1fr) 48px; gap: 0 16px; padding: 0 16px; }
  .page-layout:has(> .gallery-switcher:not([hidden])) > main { padding: 16px 0 48px; }
  .gallery-switcher { width: 48px; flex-direction: column; top: calc(var(--header-height, 112px) + 16px); }
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .site-footer nav { padding: 24px 16px 0; }
  main { padding: 16px 16px 48px; }
  .work-grid { grid-template-columns: 1fr; gap: 0; }
  .cover-title { font-size: 34px; }
  .cover-overlay {
    opacity: 1;
    align-items: flex-end;
    background: linear-gradient(transparent 50%, rgba(15, 15, 15, .85));
  }
  .artwork-stack { gap: 16px; }
  .preview-notice { padding: 24px 16px; }
}
@media (max-width: 600px) {
  .series-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .series-info { position: static; max-height: none; overflow: visible; }
}
