/* Posters: a project's frozen stage, at rest, in a tile window or a quick-look sheet.
   The frame owns the poster's box, exactly as it owns a plate's .exhibit__stage (SPEC §6); the project's
   skin owns everything inside [data-skin]. Posters are inert and aria-hidden: pictures, not controls.
   Projects that have not shipped a poster get a generated one: their symbol in frame ink on a faint wash of
   the accent (the skin file may not exist yet, so --skin-bg can't be relied on), patterned by class. It is
   filler, drawn quietly so real posters lead, and finished, with no stamp; the Quick look sheet's Poster row
   says it is generated. */
@layer poster {
  .poster {
    container-type: inline-size;
    isolation: isolate;
    overflow: clip;
    contain: paint;
    aspect-ratio: 4 / 3;
    min-block-size: 0;
    padding: clamp(8px, 2.2cqi, 16px);
    background: var(--skin-bg, var(--black));
    color: var(--skin-ink, var(--ink));
    user-select: none;

    & svg { display: block; inline-size: 100%; block-size: auto; }
  }

  /* ---- the generated fallback ---- */
  /* Quiet filler: real posters must win a side-by-side glance. A faint wash of the accent over the tile's own
     black, a pattern barely above it, and the symbol in frame ink, small, bottom left. The accent shows at
     full strength only in the window's 5px tag (specimen.css, sheet.css). */
  .poster--generated {
    --pf-ground: color-mix(in oklch, var(--skin-accent) 13%, var(--black));
    --pf-line: color-mix(in oklch, var(--skin-accent) 16%, transparent);
    display: grid; align-content: end; justify-items: start;
    padding: clamp(10px, 5cqi, 22px);
    background-color: var(--pf-ground);
    color: var(--ink-2);
  }
  /* The class sets the pattern: hatching, ledger rules, graph paper, a dot screen */
  .poster--extensions { background-image: repeating-linear-gradient(135deg, var(--pf-line) 0 1px, transparent 1px 12px); }
  .poster--servers { background-image: repeating-linear-gradient(0deg, var(--pf-line) 0 1px, transparent 1px 14px); }
  .poster--instruments {
    background-image:
      linear-gradient(var(--pf-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--pf-line) 1px, transparent 1px);
    background-size: 18px 18px;
  }
  .poster--curiosities {
    background-image: radial-gradient(circle, var(--pf-line) 0 1.2px, transparent 1.6px);
    background-size: 12px 12px;
  }

  .poster__symbol {
    font: 400 clamp(2.5rem, 24cqi, 6rem) / 0.8 var(--serif); letter-spacing: -0.04em;
    font-feature-settings: 'kern';
  }
  /* A project with a logomark shows it here instead, capped where mark-dark's lit edge still holds */
  .poster__mark { display: block; inline-size: clamp(2.75rem, 24cqi, 6rem); block-size: auto; aspect-ratio: 1; }
}
