/* minimal atlas — grid. Guideline 04.3. Desktop reference width 1440 px.
   Measured from the approved 1440 px artwork:
   page margin 50 · left index column 50–450 (400) · column gap 20 · content field 470–1390 (920)
   three media columns of 300 with a 10 px gap · media row 400 / half row 195. */
:root{
  --page-width:1440px;
  --page-margin:50px;
  --mobile-width:390px;
  --mobile-margin:20px;

  --col-index-x:50px;
  --col-index-width:400px;
  --col-gap:20px; /* index ↔ content; its own owner, not --media-gap */
  --col-content-x:calc(var(--col-index-x) + var(--col-index-width) + var(--col-gap)); /* 470 */
  --col-content-width:920px;
  --col-content-end:1390px;

  --media-columns:3; /* @kind other */
  --media-col-width:300px;
  --media-gap:10px;
  --preview-ratio:2.3; /* @kind other */ /* 920 / 400 — the WORK LIST / HOME preview box's ratio; MediaRow reads it and derives the box height from the measured width, so the row never reads its own height */
  --media-row:400px;
  --media-row-half:195px;
  --media-col-2:610px;   /* two merged columns */
  --media-col-1-5:455px; /* half of the content field */
  --document-ratio:1.4142; /* @kind other */ /* √2 — the shape a publication HOLDS until its own is known: the page swaps in --document-page-ratio (the file's real width / height) the moment the document opens, so this keeps a row from reflowing rather than describing every book. Stated as height / width; the page reads it as 1 / ratio. */
  --document-reference:842; /* @kind other */ /* The page height, in PDF POINTS, that earns the full height: 842 = A4. A publication measures itself against this (--document-scale = min(1, its page height / this)), which is how a smaller book reads smaller instead of every publication being levelled into one box — measured: A4 1.0, B5 0.865, A5 0.623. Points, not mm, because a PDF states its page size in points and a second unit would be a second owner. Larger than the reference is clipped, not magnified: the window is the ceiling. */
  --document-mount:0.7; /* @kind other */ /* The share of the mount's width a page takes at full scale — the rest is the black surround that presents it. Measured: 0.7 leaves 20% of black at each side of a B5 volume paired in half the field; at 0.85 the surround is back to a rim. It governs only where width is the binding limit — a publication alone on the field is stopped by the height ceiling first, and the leftover width becomes surround anyway (29% a side). */
  --preview-width:920px;
  --preview-height:400px;

  /* No header height or pad token: the band grows from its type and --interval-half;
     consumers read the real box height off the element. */
  --header-nav-x:890px;
  --header-about-x:1190px;
  --nav-work-width:300px;
  --nav-about-width:200px;

  --meta-label-width:220px; /* label 470 → value 690 */
  --gallery-height:900px;
  /* --record-pitch and --row-pitch are derived from --interval in spacing.css */
}
