/* ── Ravens of Odin — Lens template ───────────────────────────────────────
   Image-first portfolio template for photographers and visual storytellers.
   Home page is a mosaic of cover plates with size variation (large hero +
   smaller plates). Story pages render as a photo essay — a sticky metadata
   sidebar alongside a single column of generously-sized images, captions
   styled as plate numbers + EXIF-style metadata, and a quiet body type.

   Color/typography rules go on `body` so design.css (loaded after this
   file) can override via the cascade. `.rvns-lens-home` is reserved for
   structural rules only.                                                  */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ln-bg:           #fafaf9;
  --ln-paper:        #fff;
  --ln-ink:          #14140f;
  --ln-muted:        #6e6c66;
  --ln-border:       rgba(20,20,15,0.08);
  --ln-rule:         rgba(20,20,15,0.05);
  --ln-accent:       #14140f;
  --ln-font-display: 'Spectral', Georgia, serif;
  --ln-font-ui:      'Inter', system-ui, sans-serif;
  --ln-font-mono:    'JetBrains Mono', monospace;
  --ln-content-w:    640px;
  --ln-wide-w:       1280px;
  /* Cross-template hook used by rvns.css for hero / cover / heading
   * elements. Lens uses Spectral on display elements. */
  --t-font-heading:  'Spectral', Georgia, serif;
}

/* ── Base — on body so design.css can override ──────────────────────────── */

body {
  background: var(--ln-bg);
  color: var(--ln-ink);
  font-family: var(--ln-font-ui);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ── Masthead (shared by home + story pages) ─────────────────────────────── */

.rvns-mast {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 28px 36px 24px;
  border-bottom: 1px solid var(--ln-border);
  gap: 24px; flex-wrap: wrap;
  background: var(--ln-bg);
}
.rvns-mast-brand {
  font-family: var(--ln-font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ln-ink);
  display: inline-flex; align-items: center; gap: 12px;
}
.rvns-mast-brand img {
  width: 28px; height: 28px; object-fit: contain; border-radius: 4px;
}
.rvns-mast-brand em {
  font-style: italic; font-weight: 300; color: var(--ln-muted);
  margin-left: 2px;
}
.rvns-mast-nav {
  display: flex; gap: 26px;
  font-family: var(--ln-font-ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ln-muted);
}
.rvns-mast-nav a { text-decoration: none; }
.rvns-mast-nav a:hover { color: var(--ln-ink); }
.rvns-mast-nav a.active { color: var(--ln-ink); }
.rvns-mast-nav a.active::after {
  content: ''; display: block; height: 1px;
  background: var(--ln-ink); margin-top: 4px;
}

/* ── Home: optional intro line ──────────────────────────────────────────── */

.rvns-ln-intro {
  padding: 24px 36px 28px;
  font-family: var(--ln-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--ln-muted);
  line-height: 1.55;
  max-width: 64ch;
}
.rvns-ln-intro strong {
  color: var(--ln-ink); font-style: normal; font-weight: 400;
}

/* ── Home: mosaic grid ──────────────────────────────────────────────────── */

/* Mosaic: 12-col grid where every tile is sized in row units, not in
   aspect-ratio. grid-auto-rows sets a base row height; each tile spans
   1, 2, or 3 of those rows. This keeps every row of the mosaic exactly
   filled — no whitespace gaps where mismatched aspect ratios used to
   leave orphan space. The base row height scales with viewport via clamp().
   At 12 cols × ~9.5vw row height, a 4-col×2-row tile is roughly 4:3, a
   8-col×3-row tile is roughly 16:9, etc. */
.rvns-ln-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(80px, 9vw, 140px);
  grid-auto-flow: dense;
  gap: 4px;
  padding: 0 36px 36px;
}
.rvns-ln-tile {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  text-decoration: none;
  color: #fff;
  display: block;
}
.rvns-ln-tile-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.rvns-ln-tile:hover .rvns-ln-tile-img { transform: scale(1.03); }
.rvns-ln-tile--empty {
  background: linear-gradient(135deg, #1c1c1c 0%, #252520 100%);
}
.rvns-ln-tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  display: flex; align-items: end; justify-content: space-between;
  gap: 12px;
  opacity: 0;
  transition: opacity 200ms ease;
}
.rvns-ln-tile:hover .rvns-ln-tile-cap,
.rvns-ln-tile:focus-visible .rvns-ln-tile-cap { opacity: 1; }
.rvns-ln-tile-title {
  font-family: var(--ln-font-display);
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
}
.rvns-ln-tile-meta {
  font-family: var(--ln-font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  white-space: nowrap;
}
.rvns-ln-tile-num {
  position: absolute; top: 12px; left: 14px;
  font-family: var(--ln-font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.rvns-ln-tile-fc {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--ln-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.rvns-ln-tile-fc::before {
  content: '★'; margin-right: 5px; color: #fff;
}

/* Mosaic plate sizes — every cycle of 5 tiles fills 12 cols × 5 rows
   exactly, leaving zero whitespace gaps. `grid-auto-flow: dense` (above)
   lets the grid backfill any stragglers when the total tile count isn't
   a multiple of 5. Sizes are in (cols × rows) units of the base grid:

     row 1-3: [ #1 8 cols × 3 rows hero ][ #2 4×3 portrait ]
     row 4-5: [ #3 4×2 ][ #4 4×2 ][ #5 4×2 ]                                  */

.rvns-ln-mosaic > .rvns-ln-tile { grid-column: span 4; grid-row: span 2; }

.rvns-ln-mosaic > .rvns-ln-tile:nth-child(5n+1) { grid-column: span 8; grid-row: span 3; }
.rvns-ln-mosaic > .rvns-ln-tile:nth-child(5n+2) { grid-column: span 4; grid-row: span 3; }

/* Empty state */
.rvns-ln-empty {
  display: flex; align-items: center; justify-content: center;
  min-height: 50vh;
  font-family: var(--ln-font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ln-muted);
}

/* ── Home: footer ───────────────────────────────────────────────────────── */

.rvns-ln-foot {
  padding: 32px 36px;
  border-top: 1px solid var(--ln-border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--ln-font-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ln-muted);
}
.rvns-ln-foot em {
  font-family: var(--ln-font-display); font-style: italic;
  text-transform: none; letter-spacing: 0;
  font-size: 13px; color: var(--ln-ink);
}

/* ── Story page ─────────────────────────────────────────────────────────── */

/* The article splits into a sticky sidebar (metadata) and a main column
   (plates + prose). We override rvns.css's default 780px max-width on
   .story so the two-column layout can stretch wider. */
.story {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 36px 56px;
  display: grid;
  grid-template-columns: 200px 1fr;
  /* `column-gap` only — the sidebar spans every implicit row (so it stays
   * pinned in column 1 while the body scrolls past), and applying a row-gap
   * to thousands of empty implicit rows would blow up the page height.
   * Body items provide their own vertical spacing via margins. */
  column-gap: 64px;
  row-gap: 0;
  align-items: start;
}

/* Sidebar — generated from story metadata. The server emits .story-head
   already; we use a custom .rvns-ln-side block that the server can populate
   with a small definition list. The sidebar spans all grid rows so column 1
   isn't visibly empty below the sidebar's content; sticky + align-self:start
   keeps it pinned near the top while the body scrolls past. */
.rvns-ln-side {
  position: sticky; top: 32px; align-self: start;
  /* Span every implicit row so col 1 is owned by the sidebar even when its
   * content is shorter than the body. `-1` only resolves to the explicit
   * grid edge, so we use a large span instead. Without this, the sidebar
   * occupies row 1 only and col 1 below row 1 sits empty next to the body. */
  grid-row: 1 / span 9999;
  grid-column: 1;
  font-family: var(--ln-font-mono);
  font-size: 11px;
  color: var(--ln-muted);
  line-height: 1.7;
  height: fit-content;
}
.rvns-ln-side-num {
  font-family: var(--ln-font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ln-ink);
  line-height: 1;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ln-border);
  margin-bottom: 16px;
}
.rvns-ln-side dl { margin: 0; }
.rvns-ln-side dt {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ln-muted);
  font-size: 10px;
  margin-top: 14px;
}
.rvns-ln-side dt:first-child { margin-top: 0; }
.rvns-ln-side dd {
  color: var(--ln-ink);
  font-size: 12px;
  margin-top: 2px;
  margin-left: 0;
}

/* Unit suffix on ledger rows (e.g. "82.4 mi") — slightly smaller and muted
 * so the value reads as the primary number. */
.rvns-ln-side dd sub {
  font-size: 0.8em;
  vertical-align: baseline;
  color: var(--ln-muted);
  margin-left: 4px;
}

/* Story head — inside the right column. No border-bottom: the sidebar's
   .rvns-ln-side-num divider already provides the visual separator above the
   metadata, and a head-bottom rule would create a doubled line in lens
   layouts where both columns are visible. */
.story > .story-head {
  grid-column: 2;
  margin: 0 0 28px;
}
.story-title {
  font-family: var(--ln-font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  max-width: 22ch;
  color: var(--ln-ink);
  text-wrap: balance;
}
.story-title em {
  font-style: italic; font-weight: 300; color: var(--ln-muted);
}
.story-deck {
  font-family: var(--ln-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--ln-muted);
  line-height: 1.5;
  max-width: 56ch;
  margin: 0 0 0;
}
.story-location {
  display: inline-block;
  font-family: var(--ln-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ln-muted);
  margin: 0 0 14px;
}
.story-location::before {
  content: '⦿  ';
  color: var(--ln-ink);
}
.story-byline {
  font-family: var(--ln-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ln-muted);
  margin-top: 16px;
}
.story-byline a {
  color: var(--ln-ink); text-decoration: none;
  border-bottom: 1px solid var(--ln-border);
}

/* Story body — everything that isn't the head/sidebar lands in column 2.
   We unset rvns.css's full-bleed cover behavior so plates fit the column. */
.story > .block-paragraph,
.story > .block-heading,
.story > .block-quote,
.story > .block-impact,
.story > .block-image,
.story > .block-video,
.story > .block-embed,
.story > .story-cover,
.story > .story-credits,
.story > .story-series-nav {
  grid-column: 2;
}

/* Single-column fallback — when the story has no metadata sidebar
 * (.rvns-ln-side absent because the author set no story.data.ledger or the
 * page has no per-story stats) the two-column layout would awkwardly pin
 * every body item to a "column 2" with empty space on its left. :has()
 * detects the absence and collapses the grid back to a centered single
 * column matching the default rvns.css article width. */
.story:not(:has(.rvns-ln-side)) {
  grid-template-columns: 1fr;
  max-width: 780px;
}

.story:not(:has(.rvns-ln-side)) > .story-head,
.story:not(:has(.rvns-ln-side)) > .block-paragraph,
.story:not(:has(.rvns-ln-side)) > .block-heading,
.story:not(:has(.rvns-ln-side)) > .block-quote,
.story:not(:has(.rvns-ln-side)) > .block-impact,
.story:not(:has(.rvns-ln-side)) > .block-image,
.story:not(:has(.rvns-ln-side)) > .block-video,
.story:not(:has(.rvns-ln-side)) > .block-embed,
.story:not(:has(.rvns-ln-side)) > .story-cover,
.story:not(:has(.rvns-ln-side)) > .story-credits,
.story:not(:has(.rvns-ln-side)) > .story-series-nav {
  grid-column: 1;
}

/* Plates — generously sized images styled as photographic plates. Use
 * `auto` for the horizontal margins so sized images (medium/small) keep
 * the centering rvns.css gives them; `0 0 36px` would override the auto
 * with 0 and pin them to the left edge. The 36px bottom is the gap to
 * the next plate. */
.story > .block-image {
  margin: 0 auto 36px;
  text-align: left;
  width: 100%;
}
.story > .block-image img {
  width: 100%;
  height: auto;
  display: block;
}
/* When the author sets an explicit frame height (30/50/70/90vh), the rvns
 * base in cdn/rvns.css fills it with `object-fit: cover` via
 * `.block-image-frame[style] img`. Lens's higher-specificity rule above
 * resets `height: auto`, which leaves the image natural-sized inside an
 * over-tall frame and pushes the caption out by the empty space. Re-state
 * the cover behaviour here so explicit heights work in Lens too. */
.story > .block-image .block-image-frame[style] img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.story > .block-image figcaption {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--ln-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ln-muted);
}
/* Caption-alignment data attributes from the server still work */
.block-image[data-caption-align="right"] figcaption { justify-content: flex-end; }
.block-image[data-caption-align="left"] figcaption { justify-content: flex-start; }
.block-image[data-caption-align="center"] figcaption { justify-content: center; }

/* Auto cover — same plate treatment */
.story > .story-cover {
  width: auto; max-width: none; margin: 0 0 36px;
  padding: 0; position: static; left: auto; transform: none;
  text-align: left;
}
.story > .story-cover img {
  width: 100%; height: auto; display: block; aspect-ratio: auto;
  object-fit: contain;
}
.story > .story-cover figcaption {
  margin-top: 10px;
  font-family: var(--ln-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ln-muted);
  text-align: right;
}

/* Video and embed blocks share the plate treatment */
.story > .block-video,
.story > .block-embed {
  margin: 0 auto 36px;
  width: 100%;
}

/* Prose — quieter, narrower than plates */
.story > .block-paragraph {
  font-family: var(--ln-font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: #2a2a26;
  max-width: 58ch;
  margin: 24px 0 24px;
}
.story > .block-heading {
  font-family: var(--ln-font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.005em;
  margin: 2em 0 0.7em;
  color: var(--ln-ink);
  max-width: 58ch;
}
.story > .block-quote {
  border-left: 2px solid var(--ln-ink);
  padding: 0 0 0 20px;
  color: var(--ln-muted);
  font-style: italic;
  font-family: var(--ln-font-display);
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 1.6em 0;
  max-width: 56ch;
}
.story > .block-impact {
  font-family: var(--ln-font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  text-align: center;
  margin: 2em 0;
  color: var(--ln-ink);
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
}

/* Credits */
.story > .story-credits {
  font-family: var(--ln-font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ln-muted);
  border-top-color: var(--ln-border);
  margin-top: 48px;
  padding: 18px 0 0;
}

/* Series prev/next bar — quiet, mono-styled */
.story > .story-series-nav {
  margin-top: 56px;
  padding: 24px 0 0;
  border-top: 1px solid var(--ln-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--ln-font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.story > .story-series-nav a {
  text-decoration: none;
  color: var(--ln-ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.story > .story-series-nav .dir { color: var(--ln-muted); }
.story > .story-series-nav .t {
  font-family: var(--ln-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ln-ink);
}
.story > .story-series-nav .next { text-align: right; align-items: flex-end; }

/* ── Tag page ────────────────────────────────────────────────────────────── */

.tag-page-wrap {
  font-family: var(--ln-font-ui);
  max-width: var(--ln-wide-w);
  margin: 0 auto;
  padding: 56px 36px;
}
.tag-page-title,
.tag-page-title-main {
  font-family: var(--ln-font-display);
  color: var(--ln-ink);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .rvns-mast { padding: 20px 20px; }
  .rvns-ln-intro { padding: 20px 20px 24px; font-size: 15px; }
  .rvns-ln-mosaic { padding: 0 20px 24px; gap: 3px; }

  /* Mobile: every tile fills the row at a consistent ~4:3 plate height.
     Override row-spans from the desktop pattern so heights stay even. */
  .rvns-ln-mosaic { grid-auto-rows: 56vw; }
  .rvns-ln-mosaic > .rvns-ln-tile,
  .rvns-ln-mosaic > .rvns-ln-tile:nth-child(6n+1),
  .rvns-ln-mosaic > .rvns-ln-tile:nth-child(6n+2),
  .rvns-ln-mosaic > .rvns-ln-tile:nth-child(6n+6) {
    grid-column: span 12;
    grid-row: span 1;
  }
  /* Always show captions on mobile (no hover) */
  .rvns-ln-tile-cap { opacity: 1; }

  .rvns-ln-foot { padding: 24px 20px; }

  /* Story page collapses to single column. Re-order so the header reads
     first (title + deck), then the metadata sidebar as a 2-col card, then
     the body. Default order is 0; we explicitly bump items so the sidebar
     (which DOM-precedes the head) lands between head and cover. */
  .story {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 20px 48px;
  }
  .rvns-ln-side {
    position: static;
    grid-column: 1;
    grid-row: auto;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    border-top: 1px solid var(--ln-border);
    border-bottom: 1px solid var(--ln-border);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    order: 2;
  }
  .rvns-ln-side-num {
    grid-column: 1 / -1;
    /* Inside the 2-col mobile grid the title doesn't need the desktop
     * border-divider (the wrapping .rvns-ln-side already has its own border
     * top + bottom). Drop the inner rule so we don't end up with a triple
     * line stack at the top of the metadata band. */
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 4px;
  }
  .story > .story-head { order: 1; }
  .story > .story-cover { order: 3; }
  .story > .block-paragraph,
  .story > .block-heading,
  .story > .block-quote,
  .story > .block-impact,
  .story > .block-image,
  .story > .block-video,
  .story > .block-embed { order: 4; }
  .story > .story-credits { order: 5; }
  .story > .story-series-nav { order: 6; }
  .story > .story-head,
  .story > .block-paragraph,
  .story > .block-heading,
  .story > .block-quote,
  .story > .block-impact,
  .story > .block-image,
  .story > .block-video,
  .story > .block-embed,
  .story > .story-cover,
  .story > .story-credits,
  .story > .story-series-nav { grid-column: 1; }

  .story > .story-series-nav { flex-direction: column; align-items: flex-start; }
  .story > .story-series-nav .next { text-align: left; align-items: flex-start; }
}

/* ── .rvns-toc — auto-generated home content list ──────────────────────── */
/* Lens: photo-portfolio plate-style with numbered overlays. Spectral serif
 * for titles, JetBrains Mono for the index numbers, square plates with thin
 * borders. Counter increments per item so authors get an auto-numbered grid. */
.rvns-toc {
  max-width: var(--ln-wide-w);
  margin: 0 auto;
  padding: 4rem 2rem;
  counter-reset: rvns-toc-plate;
}

.rvns-toc.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

.rvns-toc.grid figure {
  margin: 0;
  background: var(--ln-paper);
  border: 1px solid var(--ln-border);
  border-radius: 0;
  min-height: 0;
  position: relative;
  counter-increment: rvns-toc-plate;
}

.rvns-toc.grid figure::before {
  content: counter(rvns-toc-plate, decimal-leading-zero);
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 2;
  font-family: var(--ln-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ln-paper);
  background: rgba(20, 20, 15, 0.7);
  padding: 3px 7px;
  pointer-events: none;
}

.rvns-toc.grid a {
  display: block;
  text-decoration: none;
  color: var(--ln-ink);
}

.rvns-toc.grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.rvns-toc.grid figcaption {
  position: static;
  background: transparent;
  color: var(--ln-ink);
  padding: 0.9rem 1rem 1.1rem;
  font-family: var(--ln-font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  border-top: 1px solid var(--ln-rule);
}

.rvns-toc.list {
  max-width: 800px;
}

.rvns-toc.list figure {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ln-rule);
  border-radius: 0;
  padding: 1.25rem 0;
  margin: 0;
  display: grid;
  grid-template-columns: 32px 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  min-height: 0;
  counter-increment: rvns-toc-plate;
}

.rvns-toc.list figure::before {
  content: counter(rvns-toc-plate, decimal-leading-zero);
  font-family: var(--ln-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ln-muted);
}

.rvns-toc.list img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.rvns-toc.list figcaption {
  color: var(--ln-ink);
  font-family: var(--ln-font-display);
  font-size: 1.25rem;
  font-weight: 400;
  background: transparent;
  position: static;
  padding: 0;
  text-align: left;
}

.rvns-toc.list a {
  text-decoration: none;
}

.rvns-toc.masonry {
  columns: 3 260px;
  column-gap: 1.25rem;
}

.rvns-toc.masonry figure {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  background: var(--ln-paper);
  border: 1px solid var(--ln-border);
  border-radius: 0;
  position: relative;
  counter-increment: rvns-toc-plate;
}

.rvns-toc.masonry figure::before {
  content: counter(rvns-toc-plate, decimal-leading-zero);
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 2;
  font-family: var(--ln-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ln-paper);
  background: rgba(20, 20, 15, 0.7);
  padding: 3px 7px;
}

.rvns-toc.masonry img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.rvns-toc.masonry figcaption {
  background: transparent;
  position: static;
  color: var(--ln-ink);
  font-family: var(--ln-font-display);
  padding: 0.75rem 1rem 1rem;
  text-align: left;
  border-top: 1px solid var(--ln-rule);
}
