/* Created: 2026-09-11 19:50 MST (America/Phoenix)
   Supersedes the 18:50 copy: tag variants (dim, warn) for the list rows.
   Full replacement for site/assets/site.css. Consolidates the 2026-08-25 09:55
   original with the 18:20 and 18:30 blocks from today. The original .feed grid
   and .grid dense-grid rules are removed rather than overridden; the
   landscape/portrait/square span classes stay only for the frame page and the
   featured flag. tearsheets. Near-black, one sans, no accent. Cards read as
   clippings, grid reads as a contact sheet. */

:root {
  --bg: #101012;
  --card: #18181b;
  --edge: #2a2a2e;
  --ink: #e8e8e6;
  --ink-dim: #9a9a96;
  --sans: "Helvetica Neue", Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

header.site {
  display: flex; align-items: baseline; gap: 20px;
  padding: 28px 24px 18px; border-bottom: 1px solid var(--edge);
}
header.site h1 { font-size: 17px; font-weight: 600; letter-spacing: 0.02em; margin: 0; }
header.site nav a { color: var(--ink-dim); margin-right: 16px; font-size: 13px; }
header.site nav a.on { color: var(--ink); }
main { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* ---- tearsheet feed: three-column masonry, portraits stack ---- */
.feed { display: block; column-count: 3; column-gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--edge);
  display: block; width: auto; break-inside: avoid; margin: 0 0 16px;
}
.card > a > img { display: block; width: 100%; height: auto; }
.card .meta { padding: 14px 16px 16px; }
.card.noimg .meta { padding-top: 16px; }
.card .outlet {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.06em;
}
.card .outlet img { width: 14px; height: 14px; aspect-ratio: 1; }
.card h2 { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 8px 0 6px; }
.card time { font-size: 12px; color: var(--ink-dim); }
@media (max-width: 1100px) { .feed { column-count: 2; } }
@media (max-width: 640px)  { .feed { column-count: 1; } }

/* ---- excerpt + byline: feed cards, list rows, lightbox caption ---- */
.excerpt { font-size: 13px; line-height: 1.45; color: var(--ink-dim); margin: 6px 0 4px; }
.byline  { font-size: 12px; margin: 0 0 6px; color: var(--ink); }
.byline .unread { color: #e6b34a; }   /* amber until the verification pass fills it */

/* ---- photo grid: justified rows, zero gutter ---- */
.grid { display: flex; flex-wrap: wrap; gap: 0; --row: 156px; }
.grid > a {
  display: block; height: var(--row); min-width: 0; margin: 0; padding: 0;
  flex-grow: var(--r, 1.5); flex-basis: calc(var(--r, 1.5) * var(--row));
}
.grid > a > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.grid::after { content: ""; flex-grow: 1000; }
@media (max-width: 900px) { .grid { --row: 110px; } }
@media (max-width: 520px) { .grid { --row: 78px; } }

/* ---- list view: outlet chips + news-style rows ---- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; margin: 0 0 12px;
  border-bottom: 1px solid var(--edge); scrollbar-width: thin;
}
.chips + .chips { border-bottom: 0; margin-bottom: 18px; }
.chips + .chips .chip { font-size: 12px; padding: 4px 10px; }
.tag { font-size: 11px; color: var(--ink-dim); border: 1px solid var(--edge); padding: 1px 7px; }
.row .outlet .tag:first-of-type { margin-left: auto; }
.tag.dim { border-color: transparent; }
.tag.warn { color: #e6b34a; border-color: #5a4a22; }
.chip {
  flex: 0 0 auto; font-size: 13px; padding: 6px 12px; border: 1px solid var(--edge);
  color: var(--ink-dim); white-space: nowrap;
}
.chip span { color: var(--ink-dim); opacity: .7; margin-left: 4px; font-size: 11px; }
.chip:hover { border-color: var(--ink-dim); }
.chip.on { color: var(--ink); border-color: var(--ink); }

.rows { max-width: 820px; }
.row {
  display: flex; gap: 20px; align-items: flex-start; padding: 18px 0;
  border-bottom: 1px solid var(--edge);
}
.row-text { flex: 1 1 auto; min-width: 0; }
.row .outlet { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-dim); }
.row .outlet img { width: 14px; height: 14px; }
.row h2 { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 6px 0 4px; }
.row time, .row .dim { font-size: 12px; color: var(--ink-dim); }
.row-thumb { flex: 0 0 92px; }
.row-thumb img { display: block; width: 92px; height: 92px; object-fit: cover; }
@media (max-width: 520px) { .row-thumb { flex-basis: 72px; } .row-thumb img { width: 72px; height: 72px; } }

/* ---- frame detail ---- */
.frame-hero img { width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.frame-caption { color: var(--ink-dim); font-size: 14px; margin: 14px 0 26px; max-width: 70ch; }
.placements { border-top: 1px solid var(--edge); }
.placement {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid var(--edge); font-size: 14px;
}
.placement .d { color: var(--ink-dim); font-size: 12px; margin-left: auto; white-space: nowrap; }
.licenses { margin-top: 26px; font-size: 13px; color: var(--ink-dim); }
.licenses a { text-decoration: underline; }

/* ---- load more ---- */
.more {
  display: block; margin: 36px auto; padding: 10px 28px;
  background: none; border: 1px solid var(--edge); color: var(--ink);
  font: inherit; cursor: pointer;
}
.more:hover { border-color: var(--ink-dim); }

/* ---- grid lightbox ---- */
.lightbox {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.92); z-index: 1000;
}
.lightbox.open { display: flex; }
body.lb-open { overflow: hidden; }
.lb-fig { margin: 0; max-width: min(92vw, 1400px); max-height: 92vh; display: flex; flex-direction: column; }
.lb-fig img {
  display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto;
  object-fit: contain; margin: 0 auto;
}
.lb-cap { padding: 12px 4px 0; color: var(--ink); max-width: 72ch; margin: 0 auto; font-size: 14px; }
.lb-cap h2 { font-size: 16px; margin: 4px 0 0; }
.lb-outlet { font-size: 12px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .04em; }
.lb-outlet img { vertical-align: -2px; margin-right: 4px; }
.lb-links { font-size: 12px; color: var(--ink-dim); display: flex; justify-content: space-between; margin: 6px 0 0; }
.lb-links a { text-decoration: underline; }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%); font: 44px/1 inherit; padding: 16px 12px;
  background: transparent; color: var(--ink); border: 0; cursor: pointer; opacity: .6;
}
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
@media (max-width: 640px) { .lb-nav { display: none; } .lb-fig img { max-height: 60vh; } }

@media (prefers-reduced-motion: no-preference) {
  .card, .grid img { transition: opacity 0.2s; }
}
