/* ---- Theme: change these to restyle the whole site ---- */
:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --ink: #1f1d1a;
  --muted: #6e6a63;
  --line: #e2ded6;
  --accent: #1f1d1a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --gap: clamp(14px, 2vw, 28px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.lb-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 max(var(--pad), calc((100% - var(--maxw)) / 2 + var(--pad))); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.logo { font-family: var(--serif); font-size: 22px; text-decoration: none; letter-spacing: .01em; }
.top nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.top nav a { font-size: 14px; text-decoration: none; color: var(--muted); transition: color .2s; }
.top nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--bg); font: 500 14px/1 var(--sans); text-decoration: none;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-top: clamp(40px, 8vw, 110px); padding-bottom: clamp(56px, 9vw, 130px);
}
.hero h1 { font-size: clamp(56px, 9vw, 128px); }
.intro { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34ch; margin: 22px 0 34px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { margin: 0; }
.hero-art img { width: 100%; background: var(--line); }
.hero-art figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Filter bar */
.filterbar { position: sticky; top: 64px; z-index: 10; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-inner { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.filter-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  border: 1px solid transparent; background: none; border-radius: 999px; padding: 7px 14px;
  font: 500 14px/1 var(--sans); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.filter .n { font-weight: 400; opacity: .55; margin-left: 4px; font-size: 12px; }

/* Collections */
.collection { padding-top: clamp(48px, 7vw, 96px); scroll-margin-top: 120px; }
.collection[hidden] { display: none; }
.collection-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.collection-head h2 { font-size: clamp(40px, 5vw, 64px); }
.collection-head p { margin: 0; color: var(--muted); max-width: 44ch; }

.grid { columns: 3; column-gap: var(--gap); }
.tile {
  display: block; width: 100%; break-inside: avoid; margin: 0 0 calc(var(--gap) * 1.4);
  padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; color: inherit; font: inherit;
}
.tile .frame { overflow: hidden; background: var(--line); }
.tile img { width: 100%; transition: transform .7s var(--ease), opacity .4s; }
.tile:hover img { transform: scale(1.025); }
.tile .cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }
.tile .t { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.tile .m { font-size: 13px; color: var(--muted); text-align: right; padding-top: 3px; }
.tile:hover .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.empty { color: var(--muted); padding-top: 60px; }

/* About / contact */
.section-title { font-size: clamp(40px, 5vw, 64px); margin-bottom: 28px; }
.about { padding-top: clamp(80px, 10vw, 150px); }
.about-body { columns: 2; column-gap: clamp(32px, 5vw, 72px); max-width: 1000px; }
.about-body p { margin: 0 0 1em; font-size: 18px; color: #45413b; break-inside: avoid; }
.contact { padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(80px, 10vw, 140px); }
.contact-lead { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 0 28px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }

.foot { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
.foot a { text-decoration: none; }

.draft-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 30; padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 500 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .85; pointer-events: none;
}

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.lightbox::backdrop { background: rgba(20, 18, 15, .5); }
.lightbox[open] { animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100%; }
.lb-media { margin: 0; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 64px) clamp(56px, 6vw, 96px); min-height: 0; }
.lb-media img { max-height: calc(100dvh - 2 * clamp(24px, 4vw, 64px)); width: auto; max-width: 100%; object-fit: contain; }
.lb-info { border-left: 1px solid var(--line); padding: 88px 40px 40px; overflow-y: auto; display: flex; flex-direction: column; }
.lb-info h2 { font-size: 40px; margin-bottom: 24px; }
.lb-count { font-size: 12px; color: var(--muted); margin: 0 0 28px; letter-spacing: .08em; }
.lb-fields { margin: 0 0 20px; border-top: 1px solid var(--line); }
.lb-fields div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lb-fields dt { color: var(--muted); }
.lb-fields dd { margin: 0; }
.lb-note { color: #45413b; margin: 0 0 28px; }
.lb-note:empty { display: none; }
.lb-info .btn { align-self: flex-start; }
.lb-btn {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; transition: border-color .2s;
}
.lb-btn:hover { border-color: var(--ink); }
.lb-close { top: 24px; right: 24px; font-size: 26px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(380px + 16px); top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 1000px) {
  .grid { columns: 2; }
  .lightbox { overflow-y: auto; }
  .lb-inner { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; min-height: 100%; }
  .lb-media { padding: 72px 16px 16px; }
  .lb-media img { max-height: 50dvh; }
  .lb-info { border-left: 0; border-top: 1px solid var(--line); padding: 24px var(--pad) 40px; overflow: visible; }
  .lb-info h2 { font-size: 32px; margin-bottom: 18px; }
  .lb-count { margin-bottom: 14px; }
  .lb-close { top: 14px; right: 14px; }
  .lb-prev, .lb-next { top: 14px; transform: none; }
  .lb-prev { left: 14px; }
  .lb-next { left: 68px; right: auto; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .about-body { columns: 1; }
  .filter-label { display: none; }
}
@media (max-width: 480px) {
  .grid { column-gap: 12px; }
  .tile { margin-bottom: 22px; }
  .tile .cap { flex-direction: column; gap: 2px; padding-top: 8px; }
  .tile .t { font-size: 17px; }
  .tile .m { text-align: left; padding-top: 0; font-size: 12px; }
  .top nav { gap: 14px; }
  .btn { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile:hover img { transform: none; }
}
