/* ═══════════════════════════════════════════════════════════════
   SARAF EXPORTS — CATALOG · "The Annuals · A Reading Room"
   A library / archive companion to:
     home-v2.css       (palette, scaffolding, .close)
     about.css         (chapter mark rhythm, prose patterns)
     capabilities.css  (folio header pattern)
     sustainability.css(folio strip, page-level tone)
   ═══════════════════════════════════════════════════════════════ */

.cat-body { background: var(--bg-primary); color: var(--text-primary); }


/* ───────── Shared chapter mark — letter A–E in accent ring ───── */
.cat-chapter {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.cat-chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0;
}
.cat-chapter-rule {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--border);
}
.cat-chapter-txt { color: var(--text-primary); letter-spacing: 0.22em; }


/* ───────── Shared folio strip (top of every section) ───────── */
.cat-folio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8vw 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.cat-folio-l, .cat-folio-r {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cat-folio-l { color: var(--text-primary); }
.cat-folio-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
}
.cat-folio-mark svg { display: block; }
.cat-folio-dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}


/* ═══════════════════════════════════════════════
   SECTION A · THE ANNUALS  (hero / cover)
   bg-primary
═══════════════════════════════════════════════ */
.cat-hero {
  position: relative;
  padding-top: 92px;     /* top bar */
  padding-bottom: 80px;
  background: var(--bg-primary);
  overflow: hidden;
}

/* paper grain — subtle dotted weave */
.cat-grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 22%, rgba(110, 100, 90, 0.04) 0, transparent 40%),
    radial-gradient(circle at 78% 76%, rgba(110, 100, 90, 0.045) 0, transparent 38%),
    radial-gradient(rgba(46,46,46,0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 6px 6px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 85%);
          mask-image: radial-gradient(ellipse at center, #000 35%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.lh-content {
  position: relative;
  z-index: 1;
  padding: 56px var(--pad-x) 0;
  padding-left: calc(48px + var(--pad-x));
  max-width: var(--max-w);
  margin: 0 auto 0 0;   /* left-anchored, site standard */
}

.lh-headline {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(42px, 8vw, 116px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  max-width: 1100px;
  margin: 12px 0 36px;
}
.lh-line { display: block; }
.lh-line--em { font-style: italic; color: var(--accent); }

.lh-sub {
  max-width: 660px;
  font-size: clamp(18px, 1.2vw, 21px);
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 64px;
}

/* Spec strip — three counts with ornaments between */
.lh-specs {
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto;
  align-items: end;
  justify-content: start;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}
.lh-spec { display: flex; flex-direction: column; gap: 4px; }
.lh-spec-num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.lh-spec-unit {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--accent);
  margin-top: 4px;
}
.lh-spec-lbl {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 10px;
  max-width: 220px;
}
.lh-spec-orn {
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding-bottom: 18px;
  color: var(--accent);
}
.lh-spec-orn svg { width: 80px; height: 24px; opacity: 0.85; }

/* Cover figure: a hand-drawn shelf */
.lh-shelf {
  position: relative;
  margin: 12px 0 48px;
  padding: 28px 32px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-primary);
  overflow: hidden;
}
.lh-shelf::before,
.lh-shelf::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border: 1px solid var(--border);
  border-radius: 50%;
  top: 12px;
  background: var(--bg-primary);
}
.lh-shelf::before { left: 14px; }
.lh-shelf::after  { right: 14px; }
.lh-shelf svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--text-primary);
}
.lh-shelf .lh-book--accent rect { stroke: var(--accent); }
.lh-shelf .lh-book--accent text { fill: var(--accent); }
.lh-shelf .lh-book--reserved { color: var(--text-secondary); }

/* SCROLL indicator */
.lh-scroll {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.lh-scroll-rule {
  width: 80px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.lh-scroll-rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, var(--text-primary), transparent);
  transform: translateX(-100%);
  animation: lh-scroll-sweep 2.4s var(--e-in-out) infinite;
}
@keyframes lh-scroll-sweep {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}


/* ═══════════════════════════════════════════════
   SECTION B · THE TWO SHELVES (access guide)
   bg-secondary
═══════════════════════════════════════════════ */
.cat-shelf {
  background: var(--bg-secondary);
  padding-bottom: 96px;
}
.ls-content {
  padding: 140px var(--pad-x) 0;
  padding-left: calc(48px + var(--pad-x));
  max-width: var(--max-w);
  margin: 0 auto 0 0;   /* left-anchored, site standard */
}
.ls-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 22px;
  max-width: 880px;
}
.ls-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.ls-lead {
  max-width: 720px;
  font-size: clamp(17.5px, 1.1vw, 20px);
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 56px;
}

/* Two opposing shelf cards */
.ls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.ls-card {
  position: relative;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 30px;
  padding: 36px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: transform 0.7s var(--e-out), box-shadow 0.7s var(--e-out);
}
.ls-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -28px rgba(46,46,46,0.22);
}
.ls-card--reserved { background: var(--bg-secondary); }
.ls-card-stamp {
  width: 144px;
  height: 144px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.ls-card--reserved .ls-card-stamp { color: var(--text-secondary); }
.ls-card-stamp svg { width: 100%; height: 100%; display: block; }

.ls-card-body { display: flex; flex-direction: column; gap: 12px; }
.ls-card-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.ls-card-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.ls-card-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 520px;
  margin-bottom: 10px;
}
.ls-card-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.ls-card-meta li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ls-card-meta li span { color: var(--text-secondary); }
.ls-card-meta li b {
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--f-display);
  font-size: 13.5px;
}


/* ═══════════════════════════════════════════════
   SECTION C · THE INDEX (six catalog cards)
   bg-primary
═══════════════════════════════════════════════ */
.cat-index {
  background: var(--bg-primary);
  padding-bottom: 110px;
}
.lx-content {
  padding: 140px var(--pad-x) 0;
  padding-left: calc(48px + var(--pad-x));
  max-width: var(--max-w);
  margin: 0 auto 0 0;   /* left-anchored, site standard */
}
.lx-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 18px;
  max-width: 800px;
}
.lx-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.lx-lead {
  max-width: 700px;
  font-size: clamp(17.5px, 1.1vw, 20px);
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 56px;
}

/* 3-up grid of library catalog cards */
.lx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.lx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  color: var(--text-primary);
  transition: transform 0.6s var(--e-out), box-shadow 0.6s var(--e-out), border-color 0.6s var(--e-out);
}
.lx-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 26px 56px -28px rgba(46,46,46,0.28);
}

/* Card head — punched hole + call number + stamp */
.lx-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--f-mono);
}
.lx-hole {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  box-shadow: inset 0 0 0 1px var(--border);
}
.lx-call {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.lx-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px 3px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1.4px solid currentColor;
  border-radius: 3px;
  transform: rotate(-2deg);
  line-height: 1;
}
.lx-stamp--open      { color: #5e7b54; border-color: rgba(94,123,84,0.55); }
.lx-stamp--reserved  { color: #a85a3c; border-color: rgba(168,90,60,0.6); }

/* Mosaic — 3-up image grid (1 large + 2 small) */
.lx-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 250px;
  padding: 6px;
  background: var(--bg-primary);
}
.lx-m-main {
  grid-row: span 2;
  overflow: hidden;
  background: var(--bg-secondary);
}
.lx-m-sub  {
  overflow: hidden;
  background: var(--bg-secondary);
}
.lx-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
  transition: transform 0.9s var(--e-out);
}
.lx-card:hover .lx-mosaic img { transform: scale(1.04); }

/* Reserved veil */
.lx-mosaic--veil { position: relative; }
.lx-mosaic--veil img { filter: saturate(0.4) contrast(0.92) brightness(1.02) blur(2px); }
.lx-veil {
  position: absolute;
  inset: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(247,244,239,0.6), rgba(237,230,220,0.85));
  color: var(--text-secondary);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Card body */
.lx-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 24px;
}
.lx-card-yr {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.lx-year {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-transform: none;
}
.lx-edn { color: var(--text-secondary); }

.lx-card-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.18;
  color: var(--text-primary);
}
.lx-card-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.lx-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.lx-tags li {
  padding: 3px 9px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 99px;
}

.lx-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px dashed var(--border);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.lx-count b {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: 0;
  margin-right: 4px;
}
.lx-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  transition: gap 0.4s var(--e-out), color 0.4s var(--e-out);
}
.lx-card:hover .lx-arrow { gap: 14px; color: var(--accent); }
.lx-arrow svg { display: block; }


/* ═══════════════════════════════════════════════
   SECTION D · FROM THE READING ROOM (notes)
   bg-secondary
═══════════════════════════════════════════════ */
.cat-notes {
  background: var(--bg-secondary);
  padding-bottom: 110px;
}
.ln-content {
  padding: 140px var(--pad-x) 0;
  padding-left: calc(48px + var(--pad-x));
  max-width: var(--max-w);
  margin: 0 auto 0 0;   /* left-anchored, site standard */
}
.ln-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 56px;
  max-width: 800px;
}
.ln-title em { font-style: italic; color: var(--accent); font-weight: 400; }

/* 3-up notes grid */
.ln-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ln-note {
  position: relative;
  padding: 32px 30px 30px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ln-note::after {
  /* corner fold */
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 22px; height: 22px;
  background:
    linear-gradient(225deg, var(--bg-secondary) 0 50%, transparent 50%);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.ln-note-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
}
.ln-note-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-size: 14px;
  color: var(--accent);
  line-height: 1;
}
.ln-note-no {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.ln-note h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  color: var(--text-primary);
}
.ln-note p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
}
.ln-note-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-top: 1px dashed var(--border);
  transition: gap 0.4s var(--e-out), color 0.4s var(--e-out);
}
.ln-note-cta:hover { color: var(--accent); gap: 14px; }


/* ═══════════════════════════════════════════════
   SECTION E · BEGIN A BRIEF (close)
   Inherits the dark graphite .close from home-v2.css —
   matches the footer tone, closes the page.
═══════════════════════════════════════════════ */
.lc-sub {
  max-width: 620px;
  margin: 18px 0 38px;
  font-size: clamp(17.5px, 1.1vw, 20px);
  line-height: 1.75;
  color: rgba(247,244,239,0.78);
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .lx-grid     { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ln-list     { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .lh-specs {
    grid-template-columns: 1fr 1fr;
    gap: 22px 32px;
  }
  .lh-spec-orn { display: none; }
  .ls-grid     { grid-template-columns: 1fr; }
  .ls-card     { grid-template-columns: 132px 1fr; gap: 22px; padding: 28px; }
  .ls-card-stamp { width: 120px; height: 120px; }
}
@media (max-width: 720px) {
  .cat-folio   { padding: 14px 6vw 12px; font-size: 10.5px; gap: 8px; flex-wrap: wrap; }
  .cat-folio-r { gap: 8px; }
  .lh-content,
  .ls-content,
  .lx-content,
  .ln-content { padding: 44px 6vw 0; }
  .lh-headline { font-size: clamp(38px, 11vw, 64px); }
  .lh-specs    { grid-template-columns: 1fr; gap: 20px; }
  .lh-shelf    { padding: 18px 14px; }
  .ls-card     { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .ls-card-stamp { width: 96px; height: 96px; }
  .ls-card-meta  { grid-template-columns: 1fr; }
  .lx-grid       { grid-template-columns: 1fr; }
  .ln-list       { grid-template-columns: 1fr; gap: 16px; }
  .lx-mosaic     { height: 220px; }
}


/* ═══════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .lh-scroll-rule::after { animation: none !important; }
  .lx-card,
  .ls-card,
  .ln-note,
  .lx-arrow,
  .lx-mosaic img {
    transition: none !important;
  }
  .lx-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ═══════════════════════════════════════════
   HERO BACKDROP — matches .ah-/.ch-/.sh-backdrop on the other pages
   ═══════════════════════════════════════════ */
.lh-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 92%);
}

.lh-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  display: block;
}

@media (max-width: 900px) {
  .lh-backdrop { opacity: 0.28; }
}
