
.article-nav-label {
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.article-nav strong {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
}

/* Photography */
.photo-page-main {
  padding-top: 82px;
}

.photo-heading {
  padding: 105px 0 60px;
}

.photo-heading h1 {
  margin: 8px 0 0;
  font-size: clamp(64px, 9vw, 112px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.photo-heading p {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
}

.gallery {
  display: grid;
  width: var(--page);
  margin: 0 auto 110px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.photo-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--night);
  cursor: zoom-in;
}

.photo-card::before {
  position: absolute;
  z-index: 1;
  inset: 38% 0 0;
  background: linear-gradient(0deg, rgba(3, 10, 15, 0.9), transparent);
  content: "";
  pointer-events: none;
}

.photo-card::after {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 39px;
  left: 16px;
  color: rgba(245, 251, 253, 0.72);
  font: 9px/1.75 var(--sans);
  letter-spacing: 0.02em;
  text-align: left;
  text-shadow: 0 1px 8px #000;
  content: attr(data-note);
  pointer-events: none;
}

.photo-card:nth-child(1),
.photo-card:nth-child(8),
.photo-card:nth-child(15) {
  grid-column: span 2;
}

.photo-card img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.photo-card:hover img {
  transform: scale(1.02);
}

.photo-card span {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 14px;
  left: 16px;
  padding-top: 9px;
  color: #f4fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font: 9px/1 var(--sans);
  letter-spacing: 0.15em;
  text-align: left;
  text-shadow: 0 1px 8px #000;
}

.lightbox {
  width: min(94vw, 1180px);
  max-width: none;
  max-height: 92svh;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(3, 10, 15, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-inner {
  position: relative;
  display: grid;
  max-height: 88svh;
  place-items: center;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 82svh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  cursor: pointer;
}

.lightbox-caption {
  padding-top: 12px;
  font: 10px/1.6 var(--sans);
  letter-spacing: 0.14em;
  text-align: center;
}

@media (max-width: 820px) {
  :root {
    --page: min(100% - 36px, 720px);
  }

  .site-header {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px;
    color: var(--ink);
    background: rgba(242, 245, 246, 0.98);
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(10, 28, 38, 0.16);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 92svh;
    padding-top: 120px;
  }

  .hero-image {
    left: 18%;
    width: 110%;
    opacity: 0.42;
  }

  .hero-copy {
    margin: 0;
  }

  .hero h1 span {
    margin-left: 0.25em;
  }

  .hero-index {
    display: none;
  }

  .page-section,
  .about-section {
    padding-top: 80px;
    padding-bottom: 82px;
  }

  .preface,
  .about-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .preface-label {
    font-size: 26px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card:nth-child(1) {
    min-height: 430px;
    grid-column: auto;
  }

  .photo-preview {
    grid-template-columns: 1fr 1fr;
  }

  .preview-card:nth-child(1) {
    grid-column: span 2;
    min-height: 460px;
  }

  .preview-card:last-child {
    grid-column: span 2;
  }

  .about-mark {
    position: relative;
    top: auto;
    width: 160px;
  }

  .story-shell,
  .photo-page-main {
    padding-top: 74px;
  }

  .story-hero {
    min-height: 68svh;
    padding: 90px 18px 54px;
  }

  .story-hero-image {
    opacity: 0.35;
  }

  .story-content {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 66px 0 76px;
  }

  .story-aside {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .story-aside strong {
    margin: 0;
    font-size: 34px;
  }

  .story-photos.two {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 72px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  .brand-name {
    font-size: 16px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: clamp(56px, 20vw, 82px);
  }

  .hero h1 span {
    margin-top: 15px;
    font-size: 0.25em;
    letter-spacing: 0.16em;
  }

  .hero-lead {
    font-size: 13px;
    line-height: 1.9;
  }

  .hero-image-note {
    max-width: 320px;
    margin-top: 18px;
    font-size: 9.5px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .preface blockquote {
    font-size: 28px;
  }

  .section-heading h2 {
    font-size: 58px;
  }

  .work-card {
    min-height: 390px;
    padding: 25px;
  }

  .work-card h3 {
    font-size: 38px;
  }

  .photo-preview {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 78px;
    scroll-snap-type: x mandatory;
  }

  .preview-card,
  .preview-card:nth-child(1),
  .preview-card:last-child {
    min-width: 82vw;
    min-height: 430px;
    scroll-snap-align: start;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }

  .story-hero {
    min-height: 62svh;
  }

  .story-title h1,
  .story-title h1.en {
    font-size: clamp(48px, 15vw, 72px);
    line-height: 0.96;
  }

  .story-subtitle {
    font-size: 20px;
  }

  .story-lead {
    font-size: 20px;
  }

  .prose {
    font-size: 16px;
    line-height: 2.03;
  }

  .epigraph {
    padding-left: 20px;
    font-size: 18px;
  }

  .poem-body .verse {
    font-size: 18px;
    line-height: 1.85;
    letter-spacing: 0.035em;
  }

  .tower-pair {
    gap: 20px;
  }

  .tower {
    padding: 0;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.02em;
  }

  .tower + .tower::before {
    left: -10px;
  }

  .story-photos {
    margin: 48px 0;
  }

  .story-photos figure[data-note]::after {
    padding-top: 8px;
    font-size: 10px;
    line-height: 1.75;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav a {
    min-height: 118px;
  }

  .photo-heading {
    padding-top: 74px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .photo-card:nth-child(1),
  .photo-card:nth-child(8),
  .photo-card:nth-child(15) {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
