/* quiet.css — the v2 direction.
   Room, not catalogue. Image is the UI. One family, one ink, no accent. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

:root {
  --bg:        #f4f1ea;   /* warm off-white, the wall */
  --bg-deep:   #ebe6db;   /* hairline shadow / image bed */
  --ink:       #15120e;   /* near-black */
  --ink-soft:  #6e6a62;   /* secondary, 55% */
  --ink-quiet: #9c978d;   /* tertiary, 35% */
  --hair:      #d9d3c4;   /* 1px rules */

  --type:      "Inter", "Söhne", "Neue Haas Grotesk Text", Helvetica, Arial, sans-serif;

  --outer:     clamp(28px, 6vw, 120px);
  --gap-xl:    clamp(160px, 26vh, 320px);
  --gap-l:     clamp(96px, 15vh, 180px);
  --gap-m:     clamp(48px, 8vh, 96px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--type);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; overflow-x: hidden; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--bg); }

/* fine 1px underline on real text links only. no accent colour, ever. */
a.u {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
  transition: opacity .3s ease;
}
a.u:hover { opacity: .55; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--outer);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav .mark {
  font-weight: 500;
  letter-spacing: -0.005em;
  font-size: 14px;
  transition: opacity .3s ease;
}
.nav .mark-hidden { opacity: 0; pointer-events: none; }
.nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--ink-soft);
  transition: color .25s ease;
}
.nav a:hover,
.nav a[aria-current] { color: var(--ink); }

/* ---------- footer ---------- */
.foot {
  padding: var(--gap-m) var(--outer) 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--outer);
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--hair);
  margin-top: var(--gap-l);
}
.foot h4 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-quiet);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 6px; }
.foot a { color: var(--ink); }
.foot a:hover { color: var(--ink-soft); }
.foot .mark { font-weight: 500; color: var(--ink); font-size: 13px; }
.foot .right { text-align: right; }
@media (max-width: 820px) {
  .foot { grid-template-columns: 1fr 1fr; gap: 40px var(--outer); }
  .foot .right { text-align: left; }
}

/* ---------- fade on scroll ---------- */
.fade { opacity: 0; transform: translateY(14px); transition: opacity 1.1s ease, transform 1.1s ease; }
.fade.in { opacity: 1; transform: none; }

/* ============================================================
   detail page (work-v2-*.html) — shared via piece-render-v2.js
   ============================================================ */

.crumb {
  padding: 96px var(--outer) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  font-size: 12px;
  color: var(--ink-soft);
}
.crumb a { color: var(--ink-soft); }
.crumb a:hover { color: var(--ink); }
.crumb .n { color: var(--ink-quiet); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.hero {
  padding: var(--gap-m) var(--outer);
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .plate { width: 100%; max-width: 1480px; text-align: center; }
.hero .plate img {
  display: inline-block;
  max-height: 82vh;
  max-width: 100%;
  width: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.hero .plate img.loaded { opacity: 1; transform: none; }

/* diptych hero — two panels side-by-side, small gap to suggest the pair */
.hero .plate.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  justify-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}
.hero .plate.pair img {
  width: 100%;
  height: 100%;
  max-height: 78vh;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 720px) {
  .hero .plate.pair { grid-template-columns: 1fr; }
  .hero .plate.pair img { max-height: 60vh; }
}

/* pending-photograph hero plate — quiet plinth, not a broken image */
.hero .plate-pending { max-width: 820px; }
.hero .pending-plate {
  aspect-ratio: 4 / 5;
  width: 100%;
  background:
    repeating-linear-gradient(135deg,
      var(--bg-deep) 0 2px, transparent 2px 14px),
    var(--bg);
  border: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 40px;
  gap: 8px;
  color: var(--ink-soft);
}
.hero .pending-plate .mark {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 16px;
}
.hero .pending-plate .p-title { font-size: 28px; color: var(--ink); font-weight: 300; letter-spacing: -0.01em; }
.hero .pending-plate .p-sub { font-size: 12px; color: var(--ink-soft); }

.work {
  padding: var(--gap-m) var(--outer) var(--gap-l);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--outer);
  border-top: 1px solid var(--hair);
}
.work .title-col { grid-column: 1 / span 6; }
.work h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.work h1 em { font-style: italic; font-weight: 400; }
.work .year { color: var(--ink-soft); font-size: 13px; }
.work .year .descriptor {
  display: block;
  margin-top: 4px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0;
}
.work .status {
  margin-top: 28px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-soft);
}
.work .status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink); display: inline-block;
}
.work .status.nfs .dot { background: transparent; border: 1px solid var(--ink-quiet); }
.work .status.nfs { color: var(--ink-quiet); }
.work .cta { margin-top: 10px; font-size: 13px; }
.work .cta .note {
  font-size: 12px; color: var(--ink-quiet); max-width: 42ch;
  margin-top: 14px;
}

.work .meta-col {
  grid-column: 8 / span 5;
  font-size: 12px;
  color: var(--ink-soft);
}
.work .meta-col dl { margin: 0; display: grid; grid-template-columns: 1fr; }
.work .meta-col .row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}
.work .meta-col .row:first-child { border-top: 1px solid var(--hair); }
.work .meta-col dt {
  font-size: 11px; color: var(--ink-quiet);
  letter-spacing: 0.05em;
}
.work .meta-col dd { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.45; }
.work .meta-col dd em { font-style: italic; }
.work .meta-col .rights {
  margin: 18px 0 0;
  font-size: 11px;
  color: var(--ink-quiet);
  font-style: italic;
  line-height: 1.5;
}

.prose {
  grid-column: 1 / span 6;
  margin-top: var(--gap-m);
  max-width: 56ch;
}
.prose p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 1.15em;
  color: var(--ink);
  text-wrap: pretty;
}
.prose p em { font-style: italic; }
.prose p.lead {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 1.4em;
}

@media (max-width: 880px) {
  .work { grid-template-columns: 1fr; }
  .work .title-col, .work .meta-col, .prose { grid-column: 1 / -1; }
  .work .meta-col { margin-top: 32px; }
  .prose { margin-top: 40px; max-width: 100%; }
}

.plates { padding: 0 var(--outer); }
.plates figure { margin: 0 0 var(--gap-m); display: block; }
.plates figure img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.plates figure.narrow { max-width: 62%; margin-left: auto; margin-right: auto; }
.plates figure.off-left { max-width: 72%; margin-left: 0; }
.plates figure.off-right { max-width: 72%; margin-left: auto; }
.plates figure.tiny { max-width: 42%; margin-left: auto; margin-right: auto; }
.plates figcaption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 40ch;
}
.plates figure.off-right figcaption { margin-left: auto; text-align: right; }

@media (max-width: 720px) {
  .plates figure.narrow,
  .plates figure.off-left,
  .plates figure.off-right { max-width: 100%; }
  .plates figure.tiny { max-width: 70%; }
  .plates figure.off-right figcaption { margin-left: 0; text-align: left; }
}

.photo-notes {
  max-width: 62%;
  margin: var(--gap-m) auto var(--gap-m) 0;
  padding: 22px 26px;
  border: 1px dashed var(--hair);
  background: rgba(0,0,0,0.015);
  color: var(--ink-quiet);
  font-size: 13px;
  line-height: 1.55;
}
.photo-notes .pn-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 10px;
}
.photo-notes .pn-lede {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
}
.photo-notes ul {
  margin: 0;
  padding-left: 18px;
}
.photo-notes li { margin-bottom: 4px; }
@media (max-width: 720px) {
  .photo-notes { max-width: 100%; }
}

.pager {
  padding: var(--gap-l) var(--outer) var(--gap-m);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--outer);
  border-top: 1px solid var(--hair);
  font-size: 13px;
}
.pager a { display: block; }
.pager .lbl {
  font-size: 11px; color: var(--ink-quiet);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 6px;
}
.pager .t { font-size: 18px; font-weight: 400; letter-spacing: -0.01em; }
.pager .t em { font-style: italic; }
.pager .next { text-align: right; }

@media (max-width: 640px) {
  .pager { grid-template-columns: 1fr; gap: 32px; }
  .pager .next { text-align: left; }
}

.lb {
  position: fixed; inset: 0;
  background: rgba(21, 18, 14, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
  cursor: zoom-out;
}
.lb[aria-hidden="false"] { display: flex; }
.lb img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.lb .x {
  position: absolute; top: 24px; right: 32px;
  font-size: 12px; color: rgba(240,236,225,0.6);
  letter-spacing: 0.1em; background: none; border: 0; cursor: pointer;
}
.lb .x:hover { color: #fff; }
