/* The pictures of the public pages and the space between their bands (docs/website/reviews/images-layout/RECOMMENDATIONS.md 1a and 1b).
   Linked once by the public pages' base (templates/public/_page.html), after public.css; the slot is drawn by templates/public/_art.html.
   His words, 2026-11-22: "The site will need images throughout the site"; "Add a little more spacing between each section";
   2026-11-21: "No purple for site coloring except small accents"; "it should feel masculine". Author: Jeremiah Buttler */

/* ---- the art tokens (IMG-T1, IMG-T5): plate, wall, counter, ink, mid tone, light, and the one red; the same picture dimmer in dark */
:root {
  --art-plate: #E7E4DC; --art-wall: #DCD8CF; --art-counter: #C9C5BC; --art-ink: #141414; --art-mid: #8D8A83; --art-light: #F7F5F0; --art-red: #C42B16;
  --art-notch: 28px;            /* IMG-T3: the theme's one shape, the top-right corner cut */
  --art-rule-w: 72px;           /* IMG-T4: the red rule under hero and closing pictures */
  --art-rule-h: 6px;
  --art-grain-light: .28;       /* IMG-T2 */
  --art-grain-dark: .12;
  /* The space between the bands of every public page: one step more on the spacing scale than mockup A draws.
     The site before: 48 to 88; mockup A: 56 to 96; now 64 (--sp-8) at 390 to 112 at 1440. */
  --band-space: clamp(64px, calc(64px + 48 * ((100vw - 390px) / 1050)), 112px);
}
:root[data-theme="dark"] {
  --art-plate: #2C2B28; --art-wall: #353430; --art-counter: #24231F; --art-ink: #0B0B0A; --art-mid: #5E5C56; --art-light: #E9E6DF; --art-red: #D9381F;
}

/* ---- the space between bands */
.band { padding-block: var(--band-space); }

/* ---- the slot: square corners, a 3 px ink rule on top, the grain over the picture (IMG-T2 to IMG-T4) */
.art { margin: 0; min-width: 0; }
.art__frame { position: relative; display: block; overflow: hidden; background: var(--art-plate); border-top: var(--rule-tile-top, 3px) solid var(--ink); aspect-ratio: 16 / 9; }
.art__svg, .art__img { display: block; width: 100%; height: 100%; }
.art__img { object-fit: cover; object-position: top left; }
.art__frame::after { content: ""; position: absolute; inset: 0; background-image: var(--art-grain); background-size: 180px 180px; opacity: var(--art-grain-light); mix-blend-mode: multiply; pointer-events: none; }
:root[data-theme="dark"] .art__frame::after { mix-blend-mode: screen; opacity: var(--art-grain-dark); }
:root[data-theme="dark"] .art__img { filter: brightness(.82); }
.art--notch .art__frame { clip-path: polygon(0 0, calc(100% - var(--art-notch)) 0, 100% var(--art-notch), 100% 100%, 0 100%); }
.art--rule .art__frame::before { content: ""; position: absolute; left: 0; bottom: 0; width: var(--art-rule-w); height: var(--art-rule-h); background: var(--accent); z-index: 1; }

/* ---- sizes by kind of slot (1b): the column sets the width, the kind sets the shape */
.art--hero .art__frame, .art--split .art__frame { aspect-ratio: 16 / 10; }
.art--card .art__frame { aspect-ratio: 16 / 9; }
.art--stage .art__frame { aspect-ratio: 4 / 3; }
.art--thumb { width: 96px; }
.art--thumb .art__frame { aspect-ratio: 1; }
.art--banner { height: 100%; }
.art--banner .art__frame { height: 100%; min-height: 240px; aspect-ratio: auto; }
.art--screen .art__frame { aspect-ratio: 3 / 2; background: var(--tile-bg); }
@media (max-width: 1023px) {
  .art--banner .art__frame { min-height: 0; aspect-ratio: 21 / 9; }
}
@media (max-width: 600px) {
  .art--card .art__frame { aspect-ratio: 2 / 1; }
  .art--thumb { width: 72px; }
}

/* ---- inside a tile or card the tile's own top rule is the picture's: no double rule */
.tile > .art .art__frame, .art--flush .art__frame { border-top-width: 0; }
/* T-205: a published site picture in a drawing slot (templates/public/_art.html): the photograph fills the same frame, centred. */
.art--photo picture { display: block; width: 100%; height: 100%; }
.art--photo .art__img { object-position: center; }
