/* ============================================================
   Corey Lack Pictures — "Index"
   Design system. Class prefix .clp-* so markup ports back into
   Squarespace Code Blocks unchanged if that is where it lands.
   ============================================================ */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --ink:   #0A0A0A;
  --bone:  #EDEAE4;
  --red:   #C0392B;

  --bone-60: rgba(237, 234, 228, 0.60);
  --bone-38: rgba(237, 234, 228, 0.38);
  --bone-16: rgba(237, 234, 228, 0.16);
  --bone-08: rgba(237, 234, 228, 0.08);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --rail: 76px;              /* vertical nav rail width */
  --gut:  clamp(20px, 4.2vw, 68px);
  --maxw: 1680px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--mono);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- shared type ---------- */

.clp-meta {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-60);
}
.clp-meta--dim  { color: var(--bone-38); }
.clp-meta--red  { color: var(--red); }

.clp-display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin: 0;
}

.clp-rule {
  height: 1px;
  background: var(--bone-16);
  border: 0;
  margin: 0;
}

/* ============================================================
   VERTICAL RAIL NAV
   ============================================================ */

.clp-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-right: 1px solid var(--bone-16);
  background: var(--ink);
}

.clp-rail__mark {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
  color: var(--bone);
  text-decoration: none;
}
.clp-rail__mark span { color: var(--red); }

.clp-rail__links {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  flex-direction: row-reverse;
  gap: 28px;
  align-items: center;
}
.clp-rail__links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone-60);
  text-decoration: none;
  transition: color .18s ease;
}
.clp-rail__links a:hover,
.clp-rail__links a[aria-current="page"] { color: var(--bone); }
.clp-rail__links a[aria-current="page"] { position: relative; }

.clp-rail__foot {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-38);
}

.clp-page { margin-left: var(--rail); }

/* ============================================================
   MASTHEAD
   ============================================================ */

.clp-masthead {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px var(--gut) 18px;
  border-bottom: 1px solid var(--bone-16);
}
.clp-masthead__name {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bone);
}
.clp-masthead__count strong {
  font-weight: 500;
  color: var(--red);
}

/* ============================================================
   HERO — offset plate, headline breaks under it
   ============================================================ */

.clp-hero {
  position: relative;
  padding: clamp(26px, 3.4vw, 48px) 0 clamp(34px, 4.4vw, 70px);
}

.clp-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 20px;
  padding: 0 var(--gut);
}

/* image sits offset right, not centered, not full width */
.clp-hero__plate {
  grid-column: 5 / 13;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ink);
}

.clp-hero__stamp {
  position: absolute;
  left: 0; top: 0;
  padding: 12px 14px;
  z-index: 3;
  mix-blend-mode: difference;
}

/* headline breaks UNDER the image and runs back left, out past it */
.clp-hero__head {
  grid-column: 1 / 10;
  margin-top: clamp(-14px, -1.2vw, -6px);
  position: relative;
  z-index: 4;
  font-size: clamp(38px, 5.6vw, 88px);
}
.clp-hero__head em {
  font-style: italic;
  color: var(--red);
}

.clp-hero__sub {
  grid-column: 1 / 6;
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--bone-60);
}
.clp-hero__sub strong {
  display: block;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--bone-38);
  margin-bottom: 12px;
}

.clp-hero__services {
  grid-column: 8 / 13;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--bone-16);
  border: 1px solid var(--bone-16);
}
.clp-hero__services div {
  background: var(--ink);
  padding: 14px 16px 16px;
}
.clp-hero__services span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 7px;
}
.clp-hero__services p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
}

/* ============================================================
   PLATE — the archive unit
   ============================================================ */

.clp-plate { position: relative; }

.clp-plate__frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--band-hi, #2a2a28) 0%, var(--band-lo, #0d0d0c) 100%);
  border: 1px solid var(--bone-16);
}

/* honest placeholder: tonal band, not fake photography */
.clp-plate__pending {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.clp-plate__pending span {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-38);
}

.clp-plate__num {
  position: absolute;
  top: 12px; left: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--bone-60);
  z-index: 2;
}

.clp-plate__data {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 10px 2px 0;
}
.clp-plate__data dt {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-38);
  margin: 0;
}
.clp-plate__data dd {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-60);
  margin: 0 0 0 -12px;
}
.clp-plate__data dd[data-pending] { color: var(--red); }

/* ============================================================
   IRREGULAR PLATE GRID
   ============================================================ */

.clp-index {
  padding: clamp(36px, 4.4vw, 74px) var(--gut);
  border-top: 1px solid var(--bone-16);
}

.clp-index__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 22px;
}
.clp-index__head h2 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.clp-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 2.8vw, 44px) 20px;
  padding-top: 30px;
}

/* deliberately uneven: sizes and vertical offsets vary */
.clp-grid > .clp-plate:nth-child(1) { grid-column: 1 / 6;  }
.clp-grid > .clp-plate:nth-child(2) { grid-column: 7 / 13; margin-top: clamp(34px, 5vw, 92px); }
.clp-grid > .clp-plate:nth-child(3) { grid-column: 2 / 6;  }
.clp-grid > .clp-plate:nth-child(4) { grid-column: 6 / 13; margin-top: clamp(-40px, -3vw, -12px); }
.clp-grid > .clp-plate:nth-child(5) { grid-column: 1 / 8;  }
.clp-grid > .clp-plate:nth-child(6) { grid-column: 9 / 13; margin-top: clamp(30px, 4vw, 70px); }

.clp-grid > .clp-plate .clp-plate__frame { aspect-ratio: 3 / 2; }
.clp-grid > .clp-plate--tall .clp-plate__frame { aspect-ratio: 2 / 3; }

/* ============================================================
   INTERRUPT — type cuts across the image band
   ============================================================ */

.clp-interrupt {
  position: relative;
  border-top: 1px solid var(--bone-16);
  border-bottom: 1px solid var(--bone-16);
  overflow: hidden;
}
.clp-interrupt__band {
  height: clamp(260px, 32vw, 440px);
  background: linear-gradient(100deg, #161512 0%, #37312a 44%, #0c0c0b 100%);
}
.clp-interrupt__type {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 var(--gut);
}
.clp-interrupt__type p {
  margin: 0;
  max-width: 15ch;
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.clp-interrupt__type p em { font-style: italic; color: var(--red); }

.clp-interrupt__credit {
  position: absolute;
  right: var(--gut);
  bottom: 18px;
  text-align: right;
}

/* ============================================================
   LIGHT INDEX — the filing system, stated plainly
   ============================================================ */

.clp-light {
  padding: clamp(36px, 4.4vw, 74px) var(--gut);
}
.clp-light__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 26px;
}
.clp-light__head h2 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.clp-light__rows { border-top: 1px solid var(--bone-16); }

.clp-light__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--bone-08);
  text-decoration: none;
  color: inherit;
  transition: background .18s ease, padding .18s ease;
}
.clp-light__row:hover { background: rgba(237,234,228,0.03); }

.clp-light__band {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--bone);
}
.clp-light__row:hover .clp-light__band { color: var(--red); }
.clp-light__note { font-size: 11px; letter-spacing: 0.05em; color: var(--bone-60); text-transform: none; }

/* ============================================================
   CLOSE
   ============================================================ */

.clp-close {
  padding: clamp(44px, 5.4vw, 92px) var(--gut) clamp(30px, 3.4vw, 54px);
  border-top: 1px solid var(--bone-16);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.clp-close__head {
  grid-column: 1 / 9;
  font-size: clamp(30px, 4.2vw, 66px);
}
.clp-close__head em { font-style: italic; color: var(--red); }

.clp-close__cta {
  grid-column: 10 / 13;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.clp-close__cta a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bone-16);
  transition: color .18s ease, border-color .18s ease;
}
.clp-close__cta a:hover { color: var(--red); border-color: var(--red); }

.clp-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 18px var(--gut) 30px;
  border-top: 1px solid var(--bone-16);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  :root { --rail: 0px; }

  .clp-rail {
    position: sticky;
    inset: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px var(--gut);
    border-right: 0;
    border-bottom: 1px solid var(--bone-16);
    top: 0;
  }
  .clp-rail__links {
    writing-mode: horizontal-tb;
    transform: none;
    gap: 18px;
    overflow-x: auto;
  }
  .clp-rail__foot { display: none; }

  .clp-masthead { grid-template-columns: 1fr; gap: 8px; }

  .clp-hero__plate    { grid-column: 1 / 13; aspect-ratio: 4 / 3; }
  .clp-hero__head     { grid-column: 1 / 13; margin-top: 18px; }
  .clp-hero__sub      { grid-column: 1 / 13; }
  .clp-hero__services { grid-column: 1 / 13; }

  .clp-grid > .clp-plate:nth-child(n) {
    grid-column: 1 / 13 !important;
    margin-top: 0 !important;
  }

  .clp-light__row { grid-template-columns: 44px 1fr; row-gap: 6px; }
  .clp-light__note, .clp-light__row > .clp-meta:last-child { grid-column: 2 / 3; }

  .clp-close__head { grid-column: 1 / 13; }
  .clp-close__cta  { grid-column: 1 / 13; margin-top: 26px; }
}

/* honest state: nothing on this page claims a number we have not counted */
[data-pending] { color: var(--red) !important; opacity: .72; }

/* ============================================================
   "HAVE I SHOT YOUR THING" — the buyer's question, answered
   ============================================================ */

.clp-shot {
  padding: clamp(36px, 4.4vw, 74px) var(--gut);
  border-top: 1px solid var(--bone-16);
}
.clp-shot__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 26px;
}
.clp-shot__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.9vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.clp-shot__rows { border-top: 1px solid var(--bone-16); }

.clp-shot__row {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--bone-08);
  text-decoration: none;
  color: inherit;
  transition: background .2s ease;
}
.clp-shot__row:hover { background: rgba(237,234,228,0.035); }

.clp-shot__plate {
  aspect-ratio: 3 / 2;
  position: relative;
}
.clp-shot__plate .clp-plate__pending { padding: 10px; }
.clp-shot__plate .clp-plate__pending span { font-size: 8px; }

.clp-shot__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.clp-shot__row:hover .clp-shot__title { color: var(--red); }

.clp-shot__line {
  margin: 0 0 10px;
  max-width: 62ch;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--bone-60);
}

.clp-shot__go {
  white-space: nowrap;
  color: var(--bone-38);
  transition: color .2s ease;
}
.clp-shot__row:hover .clp-shot__go { color: var(--red); }

/* ============================================================
   PROOF
   ============================================================ */

.clp-proof {
  padding: clamp(36px, 4.4vw, 74px) var(--gut);
  border-top: 1px solid var(--bone-16);
}
.clp-proof__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 24px;
}
.clp-proof__head h2 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.clp-proof__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bone-16);
  border: 1px solid var(--bone-16);
}
.clp-proof__list span {
  background: var(--ink);
  padding: 20px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .clp-shot__row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0;
  }
  .clp-shot__plate { aspect-ratio: 16 / 9; }
  .clp-proof__list { grid-template-columns: repeat(2, 1fr); }
}


/* ---- real photographs ---- */
.clp-plate__frame img,
.clp-hero__plate img,
.clp-shot__plate img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* hero and grid frames match their source ratio, so cover never crops meaningfully */
.clp-plate__frame:has(img) { background: #0d0d0c; }
.clp-hero__stamp { text-shadow: 0 1px 8px rgba(0,0,0,.55); mix-blend-mode: normal; color: var(--bone); }
.clp-plate__num  { text-shadow: 0 1px 8px rgba(0,0,0,.6); }

/* interrupt band carries a real frame behind the type */
.clp-interrupt__band { position: relative; }
.clp-interrupt__band img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.clp-interrupt__scrim {
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.55) 46%, rgba(10,10,10,.15) 100%);
}
.clp-interrupt__type p { text-shadow: 0 2px 22px rgba(0,0,0,.5); }

/* responsive <picture> wrappers must fill their frame like the old <img> did */
.clp-plate__frame picture,
.clp-hero__plate picture,
.clp-shot__plate picture,
.clp-interrupt__band picture { position: absolute; inset: 0; display: block; }
.clp-plate__frame picture img,
.clp-hero__plate picture img,
.clp-shot__plate picture img,
.clp-interrupt__band picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
