/* Dollop's works, on Oat: outlined pills to filter by kind, then the works
   as offset cards (Card, the Ink rule, the hard Ink shadow), tilted a degree
   either way and lifting towards the pointer. Each card has a 16:9 frame (a
   picture's pixels fill it exactly; a tune is a piano roll on Ink, its
   playhead the one orange thing, and only while it plays; a text is typed in
   mono) and its slate under it. A piece Dollop deleted carries a stamp. */
.wp-block-slop-dollop-works { --slop-made-gap: clamp(1.5rem, 3vw, 2.5rem); }

.slop-made__filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 var(--slop-made-gap);
}
.slop-made__filter a,
.slop-made__more {
	display: inline-block;
	border: var(--wp--custom--border--rule);
	border-radius: var(--wp--custom--radius--pill);
	padding: 0.7em 1.35em;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}
.slop-made__filter a:is(:hover, :focus-visible, [aria-current="page"]),
.slop-made__more:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}
:is(.slop-made__filter a, .slop-made__more, .slop-made__play):focus-visible {
	outline: 2px solid var(--wp--preset--color--orange);
	outline-offset: 3px;
}

.slop-made__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: var(--slop-made-gap);
	align-items: start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.slop-made__piece {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	background: var(--wp--preset--color--card);
	border: var(--wp--custom--border--rule);
	border-radius: var(--wp--custom--radius--small);
	box-shadow: var(--wp--preset--shadow--hard);
	overflow: hidden;
	transform: rotate(-0.6deg);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.slop-made__piece:nth-child(even) { transform: rotate(0.6deg); }
.slop-made__piece:is(:hover, :focus-within) {
	transform: translate(-3px, -3px) rotate(0deg);
	box-shadow: 11px 11px 0 var(--wp--preset--color--ink);
}

.slop-made__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-bottom: var(--wp--custom--border--rule);
	background: var(--wp--preset--color--paper);
}
/* A picture from Paint at its own proportions, on Paper where it does not fill the frame. */
.slop-made__picture {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.slop-made__pixels,
.slop-made__roll {
	display: block;
	width: 100%;
	height: 100%;
}
.slop-made__piece.is-tunes .slop-made__frame { background: var(--wp--preset--color--ink); }
.slop-made__note { fill: var(--wp--preset--color--paper); opacity: 0.45; transition: opacity 0.12s ease; }
.slop-made__note.is-lit { opacity: 1; }
.slop-made__hit { fill: var(--wp--preset--color--paper); opacity: 0.35; }
/* A song's tracks, each in its own colour (the stream's Tunes screen's). */
.slop-made__note.is-track-1 { fill: #8a6cf0; }
.slop-made__note.is-track-2 { fill: #3fc6d9; }
.slop-made__note.is-track-3 { fill: #f5c518; }
.slop-made__note.is-track-4 { fill: #5fb84a; }
.slop-made__note.is-track-5 { fill: #f29bc0; }
.slop-made__note.is-track-6 { fill: #2f6fd6; }
.slop-made__note.is-track-7 { fill: #d4a017; }
.slop-made__playhead {
	stroke: var(--wp--preset--color--orange);
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
	opacity: 0;
}
.slop-made__piece.is-playing .slop-made__playhead { opacity: 1; }

/* A text grows with what is read; until then it fills the frame. */
.slop-made__piece.is-notes .slop-made__frame { aspect-ratio: auto; }
.slop-made__text {
	box-sizing: border-box;
	aspect-ratio: 16 / 9;
	padding: 1.1rem 1.25rem;
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.6;
	overflow-wrap: anywhere;
}
.slop-made__text:has(details[open]) { aspect-ratio: auto; }
.slop-made__text p { margin: 0; white-space: pre-wrap; }
.slop-made__text:has(details[open]) .slop-made__excerpt { display: none; }
.slop-made__text summary {
	margin-top: 0.75rem;
	cursor: pointer;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.slop-made__text details[open] summary { display: none; }

.slop-made__stamp {
	position: absolute;
	top: 0.875rem;
	right: 0.875rem;
	margin: 0;
	padding: 0.3em 0.7em;
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 4px;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transform: rotate(-7deg);
}

.slop-made__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1rem 1.25rem 1.25rem;
}
.slop-made__body > * { margin: 0; }
.slop-made__slate,
.slop-made__meta,
.slop-made__notation {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.06em;
	line-height: 1.5;
}
.slop-made__slate { font-weight: 500; text-transform: uppercase; }
.slop-made__name {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.15;
	text-transform: none;
	overflow-wrap: anywhere;
}
.slop-made__meta { opacity: 0.75; }
.slop-made__notation {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	letter-spacing: 0;
	opacity: 0.6;
	overflow-wrap: anywhere;
}
.slop-made__binned { font-size: var(--wp--preset--font-size--small); }

.slop-made__play {
	align-self: flex-start;
	margin-top: 0.5rem;
	border: var(--wp--custom--border--rule);
	border-radius: var(--wp--custom--radius--pill);
	padding: 0.5em 1.25em;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}
/* Drawn, not a character: iOS renders the play character as an emoji. */
.slop-made__play::before {
	content: "";
	display: inline-block;
	width: 0.7em;
	height: 0.7em;
	margin-right: 0.45em;
	vertical-align: -0.05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 0.5v9l8-4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 0.5v9l8-4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.slop-made__play[aria-pressed="true"]::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect x='1' y='1' width='8' height='8' rx='0.5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect x='1' y='1' width='8' height='8' rx='0.5'/%3E%3C/svg%3E");
}
.slop-made__play:is(:hover, [aria-pressed="true"]) {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.slop-made__pages {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: var(--slop-made-gap);
}

/* By client project: each one a band of its own, its header first (the day as
   a slate, the client large, the brief as the stream's card has it, a verdict
   stamp once it aired, the credit, and how the day's stories came out behind a
   fold), then its works, then the shots from the phones that day, small and
   upright. "Between briefs" is the last. */
.slop-made__project + .slop-made__project {
	margin-top: calc(var(--slop-made-gap) * 1.75);
	padding-top: calc(var(--slop-made-gap) * 1.25);
	border-top: var(--wp--custom--border--rule);
}
.slop-made__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 0.4rem 1.5rem;
	margin-bottom: var(--slop-made-gap);
}
.slop-made__head > * { grid-column: 1; margin: 0; }
.slop-made__client {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	text-transform: none;
	overflow-wrap: anywhere;
}
.slop-made__ask { font-size: var(--wp--preset--font-size--medium); }
.slop-made__ask.is-card {
	justify-self: start;
	padding: 0.35rem 0.7rem;
	border-radius: 4px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.slop-made__verdict {
	grid-column: 2 !important;
	grid-row: 1 / span 3;
	align-self: center;
	padding: 0.4em 0.8em;
	border: 2.5px solid currentColor;
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--archivo-condensed);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	transform: rotate(-6deg);
}
.slop-made__verdict.is-approved { color: #2f6b3a; }
.slop-made__verdict.is-tweak { color: var(--wp--preset--color--ink); }
.slop-made__verdict.is-killed { color: #d93a2b; }
.slop-made__credit { font-size: var(--wp--preset--font-size--small); opacity: 0.8; }
.slop-made__stories summary {
	cursor: pointer;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: underline wavy var(--wp--preset--color--orange) 1.5px;
	text-underline-offset: 0.3em;
}
.slop-made__stories summary:focus-visible { outline: 2px solid var(--wp--preset--color--orange); outline-offset: 3px; }
.slop-made__stories dl { margin: 0.6rem 0 0; font-size: var(--wp--preset--font-size--small); }
.slop-made__stories dt { font-weight: 700; }
.slop-made__stories dd { margin: 0 0 0.5rem; }
/* The brief as the client sent it: a filed note on Card, the first thing
   under the client's name, then the changes they called in, each with its
   time, set like the stream's lower third. */
.slop-made__brief {
	display: grid;
	gap: 0.85rem;
	max-width: 52rem;
	margin: 0 0 var(--slop-made-gap);
	padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.1rem, 3vw, 1.9rem);
	border: var(--wp--custom--border--rule);
	border-left-width: 6px;
	border-left-color: var(--wp--preset--color--orange);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--card);
	box-shadow: var(--wp--preset--shadow--hard);
}
.slop-made__brief > * { margin: 0; }
.slop-made__brief-label {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.5;
	text-transform: uppercase;
	opacity: 0.75;
}
.slop-made__brief-text { display: grid; gap: 0.35rem; font-size: var(--wp--preset--font-size--medium); line-height: 1.45; }
.slop-made__brief-text p { margin: 0; overflow-wrap: anywhere; }
.slop-made__brief-text strong { font-weight: 800; }
.slop-made__changes { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.slop-made__changes li {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	align-items: baseline;
	gap: 0.6rem;
	padding-top: 0.5rem;
	border-top: 1.5px dashed rgb(22 20 15 / 0.25);
}
.slop-made__changes time,
.slop-made__change-kind {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.slop-made__changes time { padding: 0.15rem 0.45rem; border-radius: 4px; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
.slop-made__change-kind { font-weight: 600; }
.slop-made__changes q { font-style: italic; overflow-wrap: anywhere; }
.slop-made__brief-note { font-size: var(--wp--preset--font-size--small); opacity: 0.75; }
.slop-made__after { display: grid; gap: 0.5rem; margin: 0 0 var(--slop-made-gap); }
.slop-made__after > * { margin: 0; }
.slop-made__phones { margin-top: var(--slop-made-gap); }
.slop-made__rest { margin-top: var(--slop-made-gap); }
.slop-made__rest > summary {
	margin-bottom: var(--slop-made-gap);
	cursor: pointer;
	font-weight: 600;
	text-decoration: underline wavy var(--wp--preset--color--orange) 1.5px;
	text-underline-offset: 0.3em;
}
.slop-made__rest > summary:focus-visible { outline: 2px solid var(--wp--preset--color--orange); outline-offset: 3px; }
.slop-made__rest .slop-shots { margin-top: 0; }
.slop-made__phones > .slop-made__slate { margin: 0 0 0.75rem; }
.slop-shots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(46%, 8.5rem), 1fr));
	gap: 0.9rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.slop-shot { margin: 0; }
.slop-shot .slop-shot__media {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	background: var(--wp--preset--color--ink);
	border: var(--wp--custom--border--rule);
	border-radius: var(--wp--custom--radius--small);
}
.slop-shot__by {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0.4rem 0 0;
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.04em;
}
.slop-shot__by::before { content: none; }
@media (max-width: 599px) {
	.slop-made__changes li { grid-template-columns: auto minmax(0, 1fr); }
	.slop-made__changes q { grid-column: 1 / -1; }
	.slop-made__head { grid-template-columns: minmax(0, 1fr); }
	.slop-made__verdict { grid-column: 1 !important; grid-row: auto; justify-self: start; }
}

.slop-made__empty {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}

.slop-made__editor {
	padding: 1.5rem;
	border: 1.5px dashed currentColor;
}
.slop-made__editor-label {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
	.slop-made__piece,
	.slop-made__piece:nth-child(even),
	.slop-made__piece:is(:hover, :focus-within) { transform: none; transition: none; }
}
