/* ==========================================================================
   AN AUSTRIAN ECONOMIST · V4 · THE BOUND CATALOGUE (essays index)
   --------------------------------------------------------------------------
   A catalogue of editions, not a list of posts: the Impressio Librorum
   ornament heads the leaf, a volume line and category index replace the
   filter chips, and every entry is a folio entry with a hanging numeral
   and a plate thumbnail. Loads after edition.css; page layer only.
   ========================================================================== */

@layer page {

.catalogue-orn { margin-top: var(--s-4); }
.catalogue-orn__caption {
  margin-top: var(--s-3);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-wrap: balance;
}

/* ----- The register of subjects (creator ledger item 12): the filing
   line that replaced the Volume line. A mono label, a hairline, and the
   subjects as quiet small-caps buttons in the directory's own grammar:
   no chips, no pills; the gold underline marks the open drawer, exactly
   as the masthead directory marks the current leaf. ----- */
.filed-under {
  margin-top: var(--flow-band);
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.filed-under__label {
  font-family: var(--font-mono);
  font-size: var(--type-plate-label);
  font-weight: 500;
  letter-spacing: var(--track-plate);
  color: var(--gold-deep);
  white-space: nowrap;
}
.filed-under__rule { flex: 1 1 1.5rem; margin-top: 1px; }
.filed-under__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: clamp(var(--s-3), 2vw, var(--s-5));
}
.filed-under__tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 2px;
  position: relative;
  font-size: var(--type-small);
  letter-spacing: 0.07em;
  color: var(--ink-2);
  white-space: nowrap;
}
.filed-under__tag:hover { color: var(--ink); }
.filed-under__tag[aria-pressed="true"] { color: var(--gold-deep); }
.filed-under__tag[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 8px;
  height: 1px;
  background: var(--gold);
}
@media (max-width: 719.9px) {
  .filed-under { flex-wrap: wrap; row-gap: 0; }
  .filed-under__rule { order: 3; flex-basis: 100%; margin-top: 0; }
  .filed-under__tags { flex: 1 1 auto; justify-content: flex-end; }
}
@media (max-width: 479.9px) {
  .filed-under__tags { justify-content: flex-start; }
}
/* An entry filed elsewhere leaves the catalogue; the runtime shows the
   dividers only between entries that remain. */
.catalogue-entry[hidden], .catalogue-divider[hidden] { display: none; }

/* ----- The catalogue entries ----- */
.catalogue { margin-top: var(--s-6); }
.catalogue-entry {
  display: grid;
  grid-template-columns: minmax(3.4rem, auto) minmax(0, 1fr) minmax(11rem, 13.5rem);
  gap: var(--s-2) clamp(var(--s-4), 3vw, var(--s-8));
  align-items: start;
  padding-block: var(--flow-band);
}
.catalogue-entry__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-variant-numeric: lining-nums;
  font-size: clamp(2.6rem, 2rem + 2.6vw, 4.4rem);
  line-height: 0.9;
  color: var(--gold-deep);
  text-align: right;
  padding-top: 0.12em;
}
.catalogue-entry__cat {
  font-size: var(--type-small);
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.catalogue-entry__title {
  margin-top: var(--s-1);
  font-size: var(--type-2xl);
}
.catalogue-entry__title a {
  /* color comes from .ink-head (motion layer): inherit at rest, one gold
     whole-title ink on hover (item 25). A page-layer color here would
     outrank the motion layer and silently kill the hover. */
  text-decoration: none;
}
.catalogue-entry__deck {
  margin-top: var(--s-3);
  max-inline-size: 58ch;
  font-family: var(--font-text);
  font-size: var(--type-body);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
/* The essay's own epigraph line, carried on the V3 gold bar (the same
   mini-grammar closes the front page's archive pointers). */
.catalogue-entry__epigraph {
  margin-top: var(--s-3);
  max-inline-size: 52ch;
  font-family: var(--font-text);
  font-style: italic;
  font-size: var(--type-md);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  padding-inline-start: var(--s-3);
  border-inline-start: 2px solid var(--gold);
}
.catalogue-entry__meta {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--ink-3);
}
.catalogue-entry__read {
  margin-top: var(--s-3);
}
.catalogue-entry__read a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-text);
  font-style: italic;
  font-size: var(--type-small);
}

/* The plate thumbnail: a miniature of the essay's signature plate in a
   small well with the sitewide crop-mark geometry. */
.catalogue-thumb {
  display: block;
  text-decoration: none;
  margin-top: var(--s-2);
}
.catalogue-thumb .plate-well { padding: 0.55rem; }
.catalogue-thumb .plate-well::after { content: none; }   /* no intaglio mark at thumb scale */
/* The icon slot is a locked square: object-fit:cover (over the browser
   default of fill) focal-crops any source to 1:1 so no future icon can
   distort or change the catalogue's row height, whatever its intrinsic
   aspect. The shipped icons are already 440x440, so this is a no-op on
   them and a guardrail for the next one. */
.catalogue-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.catalogue-thumb--engraving img { mix-blend-mode: multiply; }
/* The icon caption lines retired (creator ledger item 23, July 2026):
   provenance lives on the essay pages and in the engraving manifest. */

.catalogue-divider { max-width: 40rem; margin-inline: auto; }

/* ----- The pocket catalogue: numeral above the title, thumb after ----- */
@media (max-width: 819.9px) {
  .catalogue-entry {
    grid-template-columns: minmax(0, 1fr);
  }
  .catalogue-entry__num {
    text-align: left;
    font-size: 2.4rem;
    padding-top: 0;
    margin-bottom: calc(-1 * var(--s-1));
  }
  .catalogue-thumb {
    max-width: 15rem;
    margin-top: var(--s-4);
  }
}

} /* @layer page */
