:root {
  --bg: #0a0a0a;
  --fg: #f3f0ea;
  --muted: #8c877e;
  --line: #22211e;
  --panel: #111110;
  --paper: #f3f0e8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.bar-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.bar-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.bar-nav a:hover {
  color: var(--fg);
}

.page {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.hero {
  padding: 48px 0 80px;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(52px, 10vw, 104px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.lede {
  margin-top: 24px;
  max-width: 18em;
  color: var(--muted);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
}

.index {
  list-style: none;
  border-top: 1px solid var(--line);
  margin-bottom: 32px;
}

.index a {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}

.index .n,
.work-head .n {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.index .t {
  font-size: 16px;
}

.index .k {
  color: var(--muted);
  font-size: 13px;
}

.index a:hover .t {
  color: #fff;
}

.work {
  padding: 88px 0 8px;
  scroll-margin-top: 72px;
}

.work-head {
  display: flex;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 28px;
}

.work-head h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.work-head p:not(.n) {
  margin-top: 6px;
  color: var(--muted);
}

.shot {
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  transition: transform 0.55s ease, opacity 0.35s ease;
}

.shot:hover img {
  transform: scale(1.015);
  opacity: 0.96;
}

.shot.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 56px;
}

.shot.mark img {
  width: auto;
  max-width: min(420px, 80%);
  max-height: 160px;
}

.shot.wide.mark img {
  max-width: min(560px, 88%);
  max-height: 200px;
}

.shot.light {
  background: var(--paper);
}

.shot.dark {
  background: #090909;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.grid-2 .shot,
.grid-3 .shot {
  margin-bottom: 0;
  height: 100%;
}

.grid-2 .shot img,
.grid-3 .shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 120px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  scroll-margin-top: 72px;
}

.foot-title {
  color: var(--fg);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.links {
  display: flex;
  gap: 20px;
}

.links a {
  border-bottom: 1px solid #3a3833;
}

.links a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.lite {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(6, 6, 6, 0.94);
  cursor: zoom-out;
}

.lite[hidden] {
  display: none;
}

.lite img {
  max-width: min(1280px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.lite p {
  position: absolute;
  bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  .bar {
    padding: 14px 16px;
  }

  .page {
    width: calc(100% - 32px);
    padding-top: 36px;
  }

  .hero {
    padding: 24px 0 48px;
  }

  .index a,
  .foot {
    grid-template-columns: 2.2rem 1fr;
  }

  .index .k {
    display: none;
  }

  .work {
    padding-top: 64px;
  }

  .work-head {
    flex-direction: column;
    gap: 8px;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .shot img {
    transition: none;
  }

  .shot:hover img {
    transform: none;
  }
}
