/* The palette permalink's own rules (REVEAL_ARTIFACT_SPEC.md G3.2.2).

   The CHIPS are not styled here. /static/palette-reveal.css already owns
   .pack-groups, .pack-chip, .pack-swatch, .pack-chip-name and .pack-chip-hex,
   and blog.css links nothing of its own for them, so this file links that one
   through an @import rather than holding a second copy of rules that decide
   how a colour claim is drawn. Two copies would be two things that can
   disagree about a swatch, which is the one disagreement this feature cannot
   afford. */
@import url("/static/palette-reveal.css");

.palette-page{max-width:62rem;margin:0 auto;}
.palette-head h1{margin:0 0 .2em;}
.palette-coloring{font-family:var(--sans, var(--font-body));font-size:1rem;color:var(--ink-soft, var(--color-muted));margin:0 0 1rem;}
.palette-chips{margin:2rem 0;}
.palette-chips .pack-group + .pack-group{margin-top:1.4rem;}
.palette-card-figure{margin:1.75rem 0;}
/* The square card is 1080 wide; capped so it does not swell to the full
   62rem column on a desktop and dwarf the chips it is a picture of. */
.palette-card-figure img{display:block;width:100%;max-width:34rem;height:auto;}
.palette-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.75rem 0;}
.palette-links p{margin:.4rem 0;}
/* blog.css styles links per BLOCK (.post__body a, .post__more a, ...) and has
   no rule that reaches this page, so without this the three links below the
   card render as browser-default blue on a blush ground. Same accent and
   underline offset .post__body uses, so a palette page's links read as the
   blog's. */
.palette-links a{color:var(--color-accent);text-underline-offset:3px;}

/* The print sheet (G3.3.3). A bookmarked permalink prints as a clean one-page
   sheet: the season name, the intro, the chips with their names and hexes, the
   domain, and nothing else. The card image is dropped rather than printed —
   the chips ARE the palette on paper, and a full-bleed PNG would eat the page
   and the ink for a second copy of what is already there.

   The sheet is FREE (owner rulings 4 and 5 of the 2026-08-16 panel keep the
   season and the palette free forever, and D16 depends on the "Free. No email.
   No account." line staying true). */
.palette-print-domain{display:none;}
@media print{
  /* Everything that is a way OUT of the page: the masthead, the three links,
     the save and print controls, and the whole colophon except the domain
     line below. A printed sheet is not a place anyone can click. */
  .mast, .palette-links, .palette-actions, .palette-card-figure,
  .colophon__mark, .colophon__body, .colophon__links, .colophon__contact,
  .colophon__copy, .post__cta{display:none !important;}
  .colophon{border:0 !important;padding:0 !important;margin:0 !important;}
  .palette-print-domain{display:block;margin:1rem 0 0;font-size:.8rem;
                        color:var(--color-muted);}
  .palette-page{max-width:none;}
  .pack-chip{break-inside:avoid;}
  /* Chrome drops background paint in print by default, which would print a
     palette as a page of empty outlines. print-color-adjust is the whole
     reason this sheet is worth having. */
  .pack-swatch{box-shadow:inset 0 0 0 1px rgba(20,18,20,.25);
               -webkit-print-color-adjust:exact;print-color-adjust:exact;}
}
