/* css.slopped.site exhibit: Dressed by a variable. From css/exhibits/mood.mjs. */
.x-mood .mood { display: grid; gap: 18px; }
.x-mood .sets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.x-mood legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
.x-mood .set { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; cursor: pointer; }
.x-mood .set input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.x-mood .set:has(:checked) { background: var(--ink); color: var(--paper); }
.x-mood .set:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (forced-colors: active) { .x-mood .set:has(:checked) { forced-color-adjust: none; background: Highlight; color: HighlightText; } }
/* the warm-up look: also what a browser without style queries keeps */
.x-mood .poster { max-width: 560px; padding: 28px; border-radius: 18px; background: #1d3b2c; color: #eaf6ee; transition: background-color .4s, color .4s, rotate .4s; }
@media (prefers-reduced-motion: reduce) { .x-mood .poster { transition: none; } }
.x-mood .where { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.x-mood .poster h3 { margin: 10px 0 0; font-size: clamp(30px, 5vw, 46px); letter-spacing: -1.2px; }
.x-mood .what { margin: 8px 0 14px; }
.x-mood .now { margin: 0; font-weight: 700; }
/* the line under the poster says which set is picked, by :has(), so it is right even without style queries */
.x-mood .mood:has(#set-warmup:checked) .now::before { content: "Now: Warm-up"; }
.x-mood .mood:has(#set-peak:checked) .now::before { content: "Now: Peak time"; }
.x-mood .mood:has(#set-closing:checked) .now::before { content: "Now: Closing"; }
/* key */
/* the picks set one variable on the frame, and nothing else */
.x-mood .mood:has(#set-warmup:checked) .frame { --set: warmup; }
.x-mood .mood:has(#set-peak:checked) .frame { --set: peak; }
.x-mood .mood:has(#set-closing:checked) .frame { --set: closing; }

/* the poster dresses itself by that variable, asked for with a style query */
@container style(--set: peak) {
  .x-mood .poster { background: #ff4fa3; color: #170a14; rotate: -2deg; }
  .x-mood .poster h3 { font-size: clamp(38px, 7vw, 64px); text-transform: uppercase; }
}
@container style(--set: closing) {
  .x-mood .poster { background: #20232e; color: #c9cede; }
  .x-mood .poster h3 { font-weight: 400; font-style: italic; }
}
/* /key */

/* live support notes (built from css/exhibits.js) */
.sup-has .sup-no { display: none; }
@supports not selector(:has(*)) { .sup-has .sup-yes { display: none; } .sup-has .sup-no { display: inline; } .sup-has { --sup: var(--no); } }
