:root {
  --bg: #f7f5f1;
  --ink: #1b1b1a;
  --muted: #8b8881;
  --line: #e3dfd7;
  --sold: #c4161c;
  --gutter: clamp(16px, 4vw, 56px);
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.5 var(--font);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter) 18px;
}
.brand { font-size: 17px; line-height: 1.15; letter-spacing: -0.005em; }
.brand span { display: block; color: var(--muted); }
.nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: 13px; }
.nav a { color: var(--muted); transition: color .2s; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- page title + filters ---------- */
.page-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px;
  padding: clamp(40px, 7vw, 88px) var(--gutter) 0;
}
.page-head h1 { margin: 0; font-weight: 400; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.015em; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.filters .sep { width: 1px; background: var(--line); align-self: stretch; }
.filters button { color: var(--muted); transition: color .2s; }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- the wall ---------- */
.wall { padding: clamp(48px, 8vw, 120px) var(--gutter) 40px; max-width: 1500px; margin: 0 auto; }
.row {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: clamp(72px, 11vw, 170px);
}
.row.solo { justify-content: center; }
.row.duo { justify-content: space-around; }

.work { margin: 0; cursor: zoom-in; }
.work .frame {
  position: relative;
  background: #ece9e3;
  box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 14px 28px -14px rgba(0,0,0,.28);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
}
.work img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.work img.loaded { opacity: 1; }
.work:hover .frame { transform: translateY(-3px); box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 22px 36px -16px rgba(0,0,0,.32); }
.work figcaption { margin-top: 14px; font-size: 12.5px; line-height: 1.45; }
.work .t { display: flex; align-items: center; gap: 7px; }
.work .d { color: var(--muted); }

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sold); flex: none;
}

.empty { text-align: center; color: var(--muted); padding: 80px 0; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg);
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  height: 100vh; height: 100dvh;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 64px calc(var(--gutter) + 72px) 16px; min-height: 0; overflow: hidden;
}
.lb-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 24px 48px -24px rgba(0,0,0,.35);
}
.lb-info {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: 18px var(--gutter) 28px; font-size: 13px;
}
.lb-info .t { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.lb-info .d { color: var(--muted); }
.lb-info .status { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.lb-info .status a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 2; color: var(--muted); transition: color .2s;
  font-size: 13px; padding: 12px;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--ink); }
.lb-close { top: 10px; right: calc(var(--gutter) - 12px); font-size: 22px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: calc(var(--gutter) - 12px); }
.lb-next { right: calc(var(--gutter) - 12px); }
.lb-count { position: absolute; top: 22px; left: var(--gutter); color: var(--muted); font-size: 12px; }

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 7vw, 88px) var(--gutter) 80px; max-width: 1400px;
}
.about h1 { margin: 0 0 28px; font-weight: 400; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.015em; }
.about p { max-width: 58ch; margin: 0 0 1em; }
.about h2 { font-weight: 400; font-size: 13px; color: var(--muted); margin: 40px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.about ul { list-style: none; padding: 0; margin: 0; }
.about li { padding: 3px 0; }
.about li a { border-bottom: 1px solid var(--line); }
.about li a:hover { border-color: var(--ink); }
.about .portrait { margin: 0; }
.about .portrait img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 14px 28px -14px rgba(0,0,0,.28); }
.about .portrait figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--gutter) 36px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.site-footer .legend { display: flex; align-items: center; gap: 7px; }

@media (max-width: 720px) {
  .site-header .inner { align-items: center; }
  .about { grid-template-columns: 1fr; }
  .about .portrait { order: -1; }
  .lb-prev, .lb-next { display: none; }
  .lb-stage { padding: 56px var(--gutter) 12px; }
}

/* ---------- about extras ---------- */
.about .meta { color: var(--muted); margin-top: -18px; margin-bottom: 28px; }
.about h2#contact { font-size: 13px; }
.button {
  display: inline-block; padding: 11px 22px; border: 1px solid var(--ink);
  font-size: 13px; letter-spacing: .02em; transition: background .2s, color .2s;
}
.button:hover { background: var(--ink); color: var(--bg); }

/* ---------- review mode (only on localhost or with ?review in the URL) ---------- */
.dot.todo { background: #e2b100; }
.dot.lowres { background: #8b3dff; }
.review-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  margin: 18px var(--gutter) 0; padding: 12px 16px;
  border: 1px dashed var(--line); font-size: 12.5px; color: var(--muted);
}
.review-bar strong { color: var(--ink); font-weight: 500; }
.review-bar span { display: inline-flex; align-items: center; gap: 7px; }
.lb-review { margin-top: 10px; font-size: 12.5px; color: var(--muted); max-width: 60ch; }
.lb-review div { display: flex; gap: 7px; align-items: baseline; margin-top: 3px; }
.lb-review .dot { transform: translateY(-1px); }
