@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f5f4f0;
  --ink: #20211f;
  --muted: #888982;
  --line: #dcdcd5;
  --accent: #8a1630;
  --page-pad: clamp(20px, 5.2vw, 84px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }
.site-header {
  height: 78px;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  gap: 5px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.045em;
}
.wordmark span { color: var(--accent); }
.header-note, .eyebrow, .section-index, .image-count, .site-footer, .card-caption, .lightbox-counter {
  font-family: 'DM Mono', monospace;
  letter-spacing: .08em;
}
.header-note { font-size: 10px; color: var(--muted); }
.header-note span { color: var(--accent); margin-left: 10px; }
main { padding-bottom: 68px; }
.intro {
  padding: clamp(72px, 10vw, 148px) var(--page-pad) clamp(70px, 9vw, 130px);
}
.eyebrow { font-size: 10px; color: var(--accent); margin: 0 0 25px; }
h1 {
  font-size: clamp(54px, 9.2vw, 132px);
  line-height: .94;
  letter-spacing: -.085em;
  font-weight: 600;
  margin: 0;
  max-width: 900px;
}
h1 span { color: #a5a59d; }
.intro-copy { margin: 28px 0 0; font-size: clamp(13px, 1.3vw, 16px); color: #777870; }
.gallery-section { margin-bottom: clamp(62px, 8vw, 112px); }
.section-heading {
  padding: 0 var(--page-pad) 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.section-title-wrap { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.section-index { font-size: 10px; color: var(--accent); }
.section-heading h2 {
  font-size: clamp(18px, 2.3vw, 28px);
  letter-spacing: -.055em;
  line-height: 1;
  margin: 0;
  font-weight: 700;
}
.section-controls { display: flex; align-items: center; gap: 8px; }
.image-count { font-size: 9px; color: var(--muted); margin-right: 12px; white-space: nowrap; }
.arrow-button {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer; font-size: 18px;
  display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s;
}
.arrow-button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery-viewport { overflow: hidden; outline: none; cursor: grab; touch-action: pan-y; }
.gallery-viewport.is-dragging { cursor: grabbing; }
.gallery-track {
  display: flex; align-items: flex-start; gap: 14px;
  width: max-content; padding: 0 var(--page-pad);
  will-change: transform;
}
.gallery-card {
  border: 0; padding: 0; background: transparent; color: inherit; text-align: left;
  width: clamp(230px, 29vw, 420px); flex: 0 0 auto; cursor: pointer;
}
.image-frame {
  position: relative; display: block; overflow: hidden; background: #e8e7e1;
  aspect-ratio: 1.22 / 1; border-radius: 2px;
}
.image-frame img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .25s;
}
.gallery-card:hover .image-frame img { transform: scale(1.035); }
.card-open {
  position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; color: var(--ink);
  background: rgba(245,244,240,.92); opacity: 0; transform: translateY(5px);
  transition: opacity .2s, transform .2s;
}
.gallery-card:hover .card-open, .gallery-card:focus-visible .card-open { opacity: 1; transform: translateY(0); }
.card-caption {
  display: block; padding-top: 11px; font-size: 9px; color: #777870;
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.empty-state { margin: 0 var(--page-pad) 100px; padding: 54px 0; border-top: 1px solid var(--line); }
.empty-state h2 { font-size: 38px; letter-spacing: -.06em; margin: 0 0 10px; }
.empty-state p:not(.eyebrow) { color: #777870; font-size: 14px; }
.empty-state code { color: var(--accent); background: #ebe9e2; padding: 3px 5px; border-radius: 3px; }
.site-footer {
  padding: 22px var(--page-pad);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--muted); font-size: 9px;
}
.lightbox {
  width: min(96vw, 1500px); max-width: none; height: min(94vh, 1000px); max-height: none;
  padding: 54px 70px 46px; border: 0; background: rgba(22, 22, 21, .97); color: #f5f4f0;
  overflow: hidden; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(15, 15, 14, .88); backdrop-filter: blur(8px); }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.lightbox-image { max-width: 100%; max-height: calc(100% - 35px); object-fit: contain; display: block; }
.lightbox-caption { margin-top: 14px; color: #b5b5ae; font: 10px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.lightbox-close, .lightbox-nav {
  position: absolute; border: 1px solid rgba(255,255,255,.25); color: white; background: transparent;
  display: grid; place-items: center; cursor: pointer; border-radius: 50%;
}
.lightbox-close { top: 16px; right: 18px; width: 40px; height: 40px; font-size: 25px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 42px; height: 42px; font-size: 20px; }
.lightbox-prev { left: 16px; } .lightbox-next { right: 16px; }
.lightbox-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #999; font-size: 9px; }
@media (max-width: 640px) {
  .site-header { height: 64px; }
  .header-note { font-size: 8px; }
  .intro { padding-top: 82px; padding-bottom: 75px; }
  .intro-copy { max-width: 230px; line-height: 1.7; }
  .section-heading { align-items: flex-end; padding-bottom: 15px; }
  .section-title-wrap { gap: 10px; }
  .section-heading h2 { font-size: 18px; }
  .image-count { display: none; }
  .arrow-button { width: 32px; height: 32px; font-size: 16px; }
  .gallery-track { gap: 10px; }
  .gallery-card { width: 76vw; }
  .image-frame { aspect-ratio: 1.12 / 1; }
  .site-footer { font-size: 8px; }
  .lightbox { width: 100vw; height: 100dvh; padding: 55px 14px 50px; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
