@font-face {
  font-family: "Latin Modern";
  src: url("/fonts/lmroman17-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Latin Modern";
  src: url("/fonts/lmroman10-italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #e9e5d8;
  --ink: #141612;
  --muted: #acae9f;
  --rule: #35392f;
  background: var(--ink);
  color: var(--paper);
  font-family: Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body { background: var(--ink); }
body.viewer-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.canvas { position: relative; width: 100%; height: 100vh; height: 100svh; overflow: hidden; }
.artwork { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.artwork-motion { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ripple-wave {
  opacity: 0;
  transform-origin: 0 0;
  animation: lake-ripple 20s ease-out infinite;
  animation-play-state: paused;
}
.ripple-wave-one { animation-delay: 3s; }
.ripple-wave-two { animation-delay: 5.1s; }
.ripple-wave-three { animation-delay: 7.2s; }
.is-artwork-playing .ripple-wave, .is-artwork-playing .smoke-wisp { animation-play-state: running; }
@keyframes lake-ripple {
  0% { opacity: 0; transform: scale(.32, .28); }
  9% { opacity: .28; }
  25% { opacity: .36; }
  50%, 100% { opacity: 0; transform: scale(1.7, 1.65); }
}
.smoke-wisp {
  opacity: 0;
  transform-origin: 0 0;
  stroke-dasharray: .34 1.3;
  stroke-dashoffset: .36;
  animation: smoke-rise 14s ease-in-out infinite;
  animation-play-state: paused;
}
.smoke-wisp-one { animation-delay: 1s; }
.smoke-wisp-two { animation-delay: 5.6s; --smoke-from: 3deg; --smoke-to: -4deg; }
.smoke-wisp-three { animation-delay: 10.2s; --smoke-from: -3deg; --smoke-to: 2deg; }
@keyframes smoke-rise {
  0% { opacity: 0; stroke-dashoffset: .36; transform: skewX(var(--smoke-from, -2deg)); }
  15% { opacity: .12; }
  38% { opacity: .32; }
  75% { opacity: .18; }
  100% { opacity: 0; stroke-dashoffset: -1; transform: skewX(var(--smoke-to, 4deg)); }
}
.canvas-controls {
  position: absolute;
  bottom: max(25px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}
.archive-cue {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding: 0 17px;
  color: #fffdf2;
  background: rgb(13 17 14 / 76%);
  border: 1px solid rgb(233 229 216 / 25%);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .16em;
  white-space: nowrap;
}
.archive-cue span { font-size: 18px; }
.motion-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(233 229 216 / 25%);
  border-radius: 0;
  color: #fffdf2;
  background: rgb(13 17 14 / 76%);
  cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.motion-play, .motion-toggle[data-paused="true"] .motion-pause { display: none; }
.motion-toggle[data-paused="true"] .motion-play { display: block; }
.motion-toggle:hover { background: rgb(35 40 31 / 90%); }
.archive { padding: 35px clamp(20px, 3.5vw, 68px) 70px; scroll-margin-top: 16px; }
.archive-inner { max-width: 1760px; margin: 0 auto; }
.archive-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; }
.archive h2, .archive-note, .biography-label { font-size: 10px; font-weight: 400; line-height: 1.5; text-transform: uppercase; letter-spacing: .15em; }
.archive h2 { margin: 0; }
.archive-note { color: var(--muted); letter-spacing: .1em; }
.gallery { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 22px); }
.gallery-item { margin: 0; min-width: 0; }
.photo-link { position: relative; display: block; aspect-ratio: 4 / 3; cursor: zoom-in; background: #22271e; }
.photo-link img { width: 100%; height: 100%; display: block; object-fit: cover; transition: filter .2s ease; }
.photo-expand { position: absolute; right: 7px; bottom: 7px; display: grid; place-items: center; width: 24px; height: 24px; background: rgb(20 22 18 / 80%); color: var(--paper); font: 18px/1 Arial, sans-serif; opacity: 0; transition: opacity .2s ease; }
.photo-link:hover img { filter: brightness(1.08); }
.photo-link:hover .photo-expand, .photo-link:focus-visible .photo-expand { opacity: 1; }
figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 11px; color: var(--muted); font-size: 10px; line-height: 1.5; letter-spacing: .025em; }
figcaption span:last-child { font-family: "Courier New", monospace; font-size: 10px; }
.biography { display: grid; grid-template-columns: 1fr 6fr 1fr; gap: clamp(18px, 2vw, 40px); border-top: 1px solid var(--rule); margin-top: 45px; padding-top: 38px; }
.biography-label { padding-top: 8px; color: var(--muted); }
.bio-copy { margin: 0; max-width: 1080px; font-family: "Latin Modern", Georgia, serif; font-size: clamp(26px, 2.6vw, 43px); font-weight: 400; line-height: 1.23; letter-spacing: -.025em; text-wrap: pretty; }
.bio-copy h1, .bio-copy p { display: inline; margin: 0; padding: 0; font: inherit; letter-spacing: inherit; }
.bio-copy h1 { font-style: italic; }
.viewer { width: min(960px, calc(100% - 40px)); max-width: none; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 0 20px; border: 1px solid #44483d; color: var(--paper); background: #141612; box-shadow: 0 20px 90px rgb(0 0 0 / 45%); }
.viewer::backdrop { background: rgb(8 11 8 / 88%); backdrop-filter: blur(7px); }
.viewer[open] { animation: reveal .2s ease-out; }
.viewer-header { min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
#viewer-title { font-family: "Latin Modern", Georgia, serif; font-size: 24px; }
.viewer button { border: 0; border-radius: 0; cursor: pointer; background: transparent; min-height: 44px; min-width: 44px; }
.viewer-close { display: inline-flex; align-items: center; gap: 12px; padding: 0 3px 0 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.viewer-close span { font-size: 24px; font-weight: 300; }
.viewer-image { display: block; width: 100%; height: min(66vh, 680px); height: min(66dvh, 680px); object-fit: contain; background: #0e100d; }
.viewer-footer { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-credit { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.viewer-navigation { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.viewer-navigation button { font-size: 21px; }
.viewer-navigation button:hover, .viewer-close:hover { background: #25291f; }
#viewer-count { min-width: 49px; text-align: center; font: 10px/1.5 "Courier New", monospace; color: var(--muted); }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
  .biography { grid-template-columns: 1fr 5fr; }
  .bio-copy { font-size: clamp(28px, 3.6vw, 38px); }
}
@media (max-width: 600px) {
  .archive { padding: 28px 20px 48px; }
  .archive-heading { margin-bottom: 18px; }
  .archive-note { font-size: 9px; letter-spacing: .025em; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .photo-expand { opacity: 1; }
  .biography { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; padding-top: 24px; }
  .biography-label { padding: 0; }
  .bio-copy { font-size: 29px; line-height: 1.24; letter-spacing: -.02em; }
  .viewer { width: calc(100% - 24px); padding: 0 12px; max-height: calc(100dvh - 24px); }
  .viewer-image { height: 60vh; height: 60dvh; }
  .viewer-header { min-height: 58px; }
  .viewer-footer { min-height: 66px; }
  .viewer-credit { max-width: 125px; }
}
@media (hover: none) { .photo-expand { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .artwork-motion, .motion-toggle { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
