/* /tools/icebreaker-generator/ in the painted theme (template-parts/painted/pages/icebreaker-generator.php): beside the
   generator's form, who the lines are for (Maya L.), then one card of five one-sentence lines, each tagged with the
   fact of the form's placeholder it stands on (her post, the roles or both), the pick marked with the
   line's tint, its colour along the left edge and Your pick over its words, and under it the email the pick opens: the
   greeting, the pick as its first line, the rest left as two quiet bars.

   On entry, from the first paint and in CSS alone: the five lines rise one by one, the pick lights, and
   the email comes in with the pick as its first line. The drawn state is the pick marked and in the email, so with
   reduced motion, or in a browser that runs no animation, it stands drawn from the first paint. */

.ibk { display: grid; gap: 10px; margin: 0; text-align: left; }
.ibk-to { display: flex; align-items: center; gap: 10px; }
.ibk-to .gsp-face { flex: none; width: 34px; height: 34px; border-radius: 50%; }
.ibk-to p { display: grid; gap: 2px; margin: 0; font-size: 13px; line-height: 1.3; }
.ibk-to b { font-weight: 600; color: var(--ink); }
.ibk-to span { font-size: 12px; color: var(--mute); }

/* a line's tag: the fact it stands on */
.ibk-tag { flex: none; justify-self: end; padding: 3px 7px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); font: 600 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cd); white-space: nowrap; }

.ibk-h { margin: 6px 0 0; font: 600 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--cd) 82%, #000); }
.ibk-lead { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text); }

/* the five lines: one card of rows, so it reads as one list */
.ibk-rows { display: grid; margin: 2px 0 0; padding: 0; overflow: clip; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 18px 34px -26px rgba(80, 52, 40, .5); list-style: none; }
.ibk-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 11px 16px; }
.ibk-r + .ibk-r { border-top: 1px solid var(--line-2); }
.ibk-r p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text); }
/* the pick: the line's tint, its colour along the left edge, Your pick over its words */
.ibk-pick { background: color-mix(in srgb, var(--ct) 75%, #fff); box-shadow: inset 3px 0 0 var(--c); }
.ibk-pick p { font-weight: 500; color: var(--ink); }
.ibk-mk { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cd); }
.ibk-mk svg.i { width: 13px; height: 13px; color: var(--c); }

/* the email the pick opens */
.ibk-mail { display: grid; gap: 6px; padding: 13px 16px 15px; border-radius: 14px; background: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 1px var(--line-2); }
.ibk-ml { margin: 0 0 2px; font: 600 9.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.ibk-hi, .ibk-first { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text); }
.ibk-first { padding: 2px 6px; margin-left: -6px; border-radius: 6px; background: color-mix(in srgb, var(--ct) 70%, transparent); color: var(--ink); }
.ibk-rest { display: grid; gap: 7px; margin-top: 4px; }
.ibk-rest i { display: block; height: 7px; border-radius: 999px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-2); }
.ibk-rest i + i { width: 62%; }
.ibk-ft { font-size: 11.5px; line-height: 1.4; color: color-mix(in srgb, var(--mute) 75%, var(--ink)); }

/* the moment, in ms from the first paint */
@media (prefers-reduced-motion: no-preference) {
  .ibk-r { animation: ibk-rise .45s cubic-bezier(.2, .8, .3, 1) calc(200ms + var(--i) * 200ms) backwards; }
  .ibk-pick { animation: ibk-rise .45s cubic-bezier(.2, .8, .3, 1) calc(200ms + var(--i) * 200ms) backwards, ibk-pick .4s ease 1400ms backwards; }
  .ibk-mk { animation: ibk-in .3s ease 1500ms backwards; }
  .ibk-mail { animation: ibk-rise .45s cubic-bezier(.2, .8, .3, 1) 1800ms backwards; }
  .ibk-first { animation: ibk-mark .5s ease 2150ms backwards; }
}
@keyframes ibk-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes ibk-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes ibk-pick { from { background-color: #fff; box-shadow: inset 0 0 0 var(--c); } }
@keyframes ibk-mark { from { background-color: transparent; } }

@media (max-width: 480px) {
  .ibk-r { padding: 10px 14px; }
  .ibk-mail { padding: 12px 14px 14px; }
}
