:root {
  --ink: #1c1c1c;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8a8a;
  --line: #e8e8e8;
  --bg: #ffffff;
  --serif: "Volkhov", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --nav-h: 46px;
  --page-max: 660px;

  --lb-gutter: 16px;
  --lb-bg: #fff;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;

  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.is-locked,
body.is-locked {
  overflow: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-weight: 500; margin: 0 0 8px; }
h1 { font-size: clamp(28px, 5vw, 40px); text-align: center; }
p  { margin: 0 0 16px; color: var(--ink-soft); }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s;
}
a:hover { border-color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page {
  flex: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 20px 0;
  display: flex;
  flex-direction: column;
}

.page--wide { max-width: 100%; padding-left: 0; padding-right: 0; }

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  height: var(--nav-h);
  align-items: center;
  padding: 0 48px;
  padding-right: max(48px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.top-nav a {
  font-size: 14px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: none;
  transition: color .2s;
}
.top-nav a:hover { color: var(--ink); }
.top-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.navmenu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 890;
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.navmenu.is-open { display: block; }
.navmenu.is-vis { opacity: 1; transform: translateY(0); }

.navmenu__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.navmenu__label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
}

.navmenu__region {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 5px 0;
  font: inherit;
  font-size: 21px;
  color: var(--ink);
  cursor: pointer;
  opacity: .55;
  transition: opacity .18s;
}
.navmenu__region:hover,
.navmenu__region.is-on { opacity: 1; }

.navmenu__plus {
  display: inline-block;
  width: 22px;
  color: var(--ink-mute);
  font-size: 17px;
}
.navmenu__plus::before { content: '+'; }

.navmenu__place {
  display: block;
  padding: 5px 0;
  font-size: 19px;
  color: var(--ink);
  border-bottom: none;
  opacity: .62;
  transition: opacity .18s;
}
.navmenu__place:hover { opacity: 1; }
.navmenu__all { margin-bottom: 18px; }

.navmenu__count {
  font-size: 12px;
  color: var(--ink-mute);
  margin-left: 9px;
}

.navmenu__sub { display: none; }

@media (max-width: 768px), (pointer: coarse) {
  .navmenu { max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
  .navmenu__inner {
    grid-template-columns: 1fr;
    padding: 24px 22px calc(30px + env(safe-area-inset-bottom));
  }
  .navmenu__col--right { display: none; }
  .navmenu__region { font-size: 19px; padding: 11px 0; opacity: 1; }

  .navmenu__region.is-expanded .navmenu__plus::before { content: '−'; }
  .navmenu__region.is-expanded + .navmenu__sub {
    display: block;
    padding: 0 0 10px 22px;
    animation: navSubIn .22s ease both;
  }
  .navmenu__place { font-size: 17px; padding: 7px 0; opacity: .78; }
}

@keyframes navSubIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.profile { text-align: center; }

.profile__photo {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4f4f4;
}
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }

.profile__alias { font-size: 18px; color: var(--ink-mute); margin-bottom: 4px; }

.profile__label {
  font-size: 28px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .73);
  margin: 24px 0 0;
}

.about { text-align: center; margin: 44px 0 0; }
.about p {
  font-size: 18px;
  line-height: 1.8;
  max-width: 34em;
  margin: 0 auto;
}

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 72px 0 60px;
}
.social__label { font-size: 16px; color: var(--ink-mute); margin-right: 10px; }
.social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-bottom: none;
  color: var(--ink-mute);
  transition: color .2s, transform .2s;
}
.social a:hover { color: var(--ink); transform: translateY(-2px); }
.social svg { width: 21px; height: 21px; fill: currentColor; }

footer {
  margin-top: auto;
  text-align: center;
  padding: 34px 20px calc(34px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-mute);
}
footer p { margin: 0; color: inherit; }
.page--wide footer { margin-top: 60px; }

.gallery-head {
  text-align: center;
  padding: 40px 20px 28px;
}
.gallery-head h1 {
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 300;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.gallery-head .tagline {
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 4px;
}
.gallery-head .subtagline {
  font-size: 12px;
  opacity: .6;
  margin: 0;
  line-height: 1.3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
}

.tile {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  background: #f0f0f0 center / cover no-repeat;

  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

@supports not (aspect-ratio: 4 / 3) {
  .tile { height: 0; padding-bottom: 75%; }
  .tile img { position: absolute; top: 0; left: 0; }
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease, transform .45s cubic-bezier(.25, .46, .45, .94);
  backface-visibility: hidden;
}
.tile.is-loaded img { opacity: 1; }

@media (hover: hover) {
  .tile:hover img { transform: scale(1.04); }
}

.tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 30px 16px 14px;
  text-align: left;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .28s ease, transform .32s cubic-bezier(.22, .61, .36, 1);
}

.tile__cap-text {
  display: inline-block;
  color: #fff;
  font-size: 15px;
  letter-spacing: .04em;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);

  font-variant-numeric: tabular-nums;
}

.tile.is-captioned .tile__cap { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .tile__cap { padding: 40px 18px 18px; }
  .tile__cap-text { font-size: 17px; }
}

.gallery-status {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-mute);
  font-size: 15px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--lb-bg);
  display: none;
  opacity: 0;
  transition: opacity .28s ease;
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lightbox.is-open { display: block; }
.lightbox.is-visible { opacity: 1; }

.lightbox__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.lightbox__track {
  display: flex;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.lightbox__slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--lb-gutter) / 2);
  padding-top: max(calc(var(--lb-gutter) / 2), env(safe-area-inset-top));
  padding-bottom: max(calc(var(--lb-gutter) / 2), env(safe-area-inset-bottom));
}

.lightbox__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox__slide img.is-ready { opacity: 1; }

.lightbox__zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  border: 0;
  background: transparent;
  padding: 0;
}
.lightbox__zone--prev { left: 0;  cursor: w-resize; }
.lightbox__zone--next { right: 0; cursor: e-resize; }
.lightbox__zone:disabled { cursor: default; }

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 0;
  background: none;
  padding: 10px 20px;
  font: 300 34px/1 var(--serif);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.lightbox__arrow--prev { left: 8px; }
.lightbox__arrow--next { right: 8px; }
.lightbox__arrow.is-shown { opacity: .75; }

.lightbox__close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(22px, env(safe-area-inset-right));
  z-index: 4;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--ink);
  font: 300 34px/1 system-ui, sans-serif;
  cursor: pointer;
  opacity: .55;
  transition: opacity .25s ease;
}
.lightbox__close:hover { opacity: 1; }

.lightbox__counter {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink-mute);
  pointer-events: none;
  opacity: .8;
}

.intro .profile__photo,
.intro .profile h1,
.intro .profile__alias,
.intro .profile__label,
.intro .about,
.intro .social,
.intro footer {
  opacity: 0;
}

.intro.intro-lit .profile h1 {
  opacity: 1;
  transition: opacity .45s ease;
}

.intro-reveal .profile__photo { animation: introRise .6s cubic-bezier(.22, .61, .36, 1)    0ms both; }
.intro-reveal .profile__alias { animation: introRise .6s cubic-bezier(.22, .61, .36, 1)   90ms both; }
.intro-reveal .profile__label { animation: introRise .6s cubic-bezier(.22, .61, .36, 1)  180ms both; }
.intro-reveal .about          { animation: introRise .6s cubic-bezier(.22, .61, .36, 1)  270ms both; }
.intro-reveal .social         { animation: introRise .6s cubic-bezier(.22, .61, .36, 1)  360ms both; }
.intro-reveal footer          { animation: introRise .6s cubic-bezier(.22, .61, .36, 1)  450ms both; }

@keyframes introRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.post-list { list-style: none; margin: 40px 0 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 18px 0; }
.post-list a { border-bottom: none; display: block; }
.post-list a:hover h3 { text-decoration: underline; }
.post-list time { font-size: 14px; color: var(--ink-mute); }

.empty-note {
  text-align: center;
  font-size: 22px;
  color: var(--ink-mute);
  margin-top: 60px;
}

@media (max-width: 1024px) {
  .top-nav { padding-left: 30px; padding-right: max(30px, env(safe-area-inset-right)); }
}

@media (max-width: 768px) {
  body { font-size: 17px; }

  .top-nav {
    justify-content: center;
    gap: 20px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
  }
  .top-nav a { font-size: 12px; }

  .page { padding-top: calc(var(--nav-h) + 34px); }

  .profile__photo { width: 150px; height: 150px; }
  .profile__label { font-size: 22px; }
  .about { margin-top: 32px; }
  .about p { font-size: 16px; }
  .social { margin: 52px 0 44px; gap: 14px; }
  .social__label { width: 100%; text-align: center; margin: 0 0 10px; font-size: 15px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-head { padding: 30px 16px 22px; }
  .gallery-head .tagline { font-size: 16px; }
}

@media (max-width: 640px) {

  .gallery-grid { grid-template-columns: 1fr; }
  .profile__photo { width: 132px; height: 132px; }
}

@media (pointer: coarse) {
  .lightbox__arrow,
  .lightbox__zone { display: none; }
  .tile { cursor: default; }
}
