/*
Theme Name: Right Posters Overprint
Description: Car know-how printed as two-ink risograph posters, for Right Posters.
Version: 1.1.1
Requires PHP: 8.2
Text Domain: rightposters-overprint
*/

/* ------------------------------------------------------------------ type */

@font-face {
	font-family: "Anybody";
	src: url("assets/fonts/anybody-variable.woff2") format("woff2-variations"),
		url("assets/fonts/anybody-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 50% 150%;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Literata";
	src: url("assets/fonts/literata-variable.woff2") format("woff2-variations"),
		url("assets/fonts/literata-variable.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Literata";
	src: url("assets/fonts/literata-variable-italic.woff2") format("woff2-variations"),
		url("assets/fonts/literata-variable-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
	--pink: #e4357f;
	--blue: #2b5bb5;
	--over: #26135a;
	--paper: #f6f7f7;
	--sheet: #fbfbfb;
	--ink: #1f2230;
	--muted: #565a69;
	--grain: #c9cbcf;
	--tint: #f2d0df;
	--shout: "Anybody", "Arial Black", "Helvetica Neue", sans-serif;
	--read: "Literata", Georgia, "Times New Roman", serif;
	--measure: 33em;
	--gutter: clamp(1.1rem, 4vw, 3.5rem);
	--slip: 0.035em;
	--two-ink: calc(var(--slip) * -1) calc(var(--slip) * -0.7) 0 var(--pink), var(--slip) calc(var(--slip) * 0.7) 0 var(--blue);
}

/* ----------------------------------------------------------------- paper */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper) url("assets/paper/grain.svg") repeat;
	color: var(--ink);
	font-family: var(--read);
	font-size: 1.1875rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	overflow-x: hidden;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--blue);
	text-decoration-thickness: 0.09em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--over);
	text-decoration-color: var(--pink);
}

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--tint);
}

.screen-reader-text,
.quiet-label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 30;
	padding: 0.6rem 1rem;
	background: var(--over);
	color: var(--paper);
	font-family: var(--shout);
	font-weight: 800;
	text-decoration: none;
}

.skip:focus {
	top: 1rem;
}

/* ----------------------------------------- the signature: two inks, off register */

.wordmark {
	display: inline-grid;
	text-decoration: none;
	font-family: var(--shout);
	font-weight: 900;
	font-stretch: 150%;
	line-height: 0.92;
	letter-spacing: -0.01em;
	isolation: isolate;
}

.wordmark__ink {
	grid-area: 1 / 1;
	white-space: nowrap;
}

.wordmark__ink--pink {
	color: var(--pink);
}

.wordmark__ink--blue {
	color: var(--blue);
	transform: translate(0.045em, 0.035em);
	mix-blend-mode: multiply;
}

.wordmark:hover .wordmark__ink--blue,
.wordmark:focus-visible .wordmark__ink--blue {
	transform: translate(0.07em, 0.05em);
}

.overprint {
	color: var(--over);
	text-shadow: var(--two-ink);
}

/* --------------------------------------------------------------- header */

.masthead {
	padding: clamp(1.4rem, 4vw, 3rem) var(--gutter) 0;
}

.masthead--wall {
	text-align: left;
	padding-bottom: 0.4rem;
}

.masthead--wall .wordmark {
	font-size: min(calc((100vw - 2 * var(--gutter)) / 12.7), 9.5rem);
}

.masthead__tagline {
	margin: 0.9rem 0 1.4rem;
	font-family: var(--shout);
	font-stretch: 125%;
	font-weight: 700;
	font-size: clamp(1.05rem, 2.2vw, 1.6rem);
	line-height: 1.2;
	color: var(--ink);
}

.masthead--bar {
	padding-top: 1.1rem;
	border-bottom: 3px solid var(--ink);
}

.masthead--bar .wordmark {
	font-size: clamp(1.5rem, 3.6vw, 2.35rem);
}

.masthead__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.4rem 2rem;
}

.masthead__row .masthead__tagline {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	color: var(--muted);
}

/* Tabs hang from the bottom edge of the header like printed index tabs. */
.tabs ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.masthead--bar .tabs {
	margin-top: 0.9rem;
	margin-bottom: -3px;
}

.masthead--wall .tabs {
	border-bottom: 3px solid var(--ink);
}

.tabs a {
	display: block;
	padding: 0.45rem 1.15rem 0.5rem;
	background: var(--pink);
	color: var(--ink);
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 125%;
	font-size: 1.1875rem;
	line-height: 1.2;
	text-decoration: none;
	border: 3px solid var(--ink);
	border-bottom: 0;
}

.tabs a:hover {
	background: var(--blue);
	color: var(--paper);
}

.tabs .current-menu-item > a,
.tabs .current-menu-parent > a,
.tabs .current-post-parent > a,
.tabs .current-category-ancestor > a,
.tabs a[aria-current] {
	background: var(--over);
	color: var(--paper);
}

/* ----------------------------------------------------------------- home */

.wall {
	padding: clamp(1.6rem, 4vw, 3.2rem) var(--gutter) 0;
}

.poster {
	position: relative;
	background: var(--sheet);
	border: 3px solid var(--ink);
}

.poster__link {
	display: grid;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.poster__link:hover .poster__title,
.poster__link:focus-visible .poster__title {
	text-decoration: underline;
	text-decoration-color: var(--pink);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.12em;
}

.poster__art {
	margin: 0;
	background-color: var(--tint);
	background-image: radial-gradient(circle, rgba(228, 53, 127, 0.55) 1.3px, transparent 1.7px);
	background-size: 7px 7px;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.poster__art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.poster__words {
	padding: clamp(1.1rem, 2.4vw, 2rem);
}

.poster__niche {
	display: inline-block;
	margin: 0 0 0.9rem;
	padding: 0.2rem 0.7rem 0.25rem;
	background: var(--pink);
	color: var(--ink);
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 125%;
	font-size: 1.1875rem;
	line-height: 1.2;
}

.poster__niche a {
	color: inherit;
	text-decoration: none;
}

.poster__niche a:hover {
	text-decoration: underline;
}

.poster__title {
	margin: 0 0 0.8rem;
	font-family: var(--shout);
	font-weight: 850;
	font-stretch: 125%;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: var(--over);
	text-shadow: var(--two-ink);
	overflow-wrap: break-word;
	hyphens: auto;
}

.poster__excerpt {
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	line-height: 1.55;
}

.poster__date {
	margin: 0;
	font-size: 0.95rem;
	font-style: italic;
	color: var(--muted);
}

.poster--lead .poster__link {
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.poster--lead .poster__words {
	padding: clamp(1.4rem, 4vw, 3.6rem);
	align-self: center;
}

.poster--lead .poster__title {
	font-size: clamp(1.9rem, 4vw, 3.7rem);
	font-stretch: 135%;
	line-height: 1;
	margin-bottom: 1.2rem;
	hyphens: manual;
}

.poster--lead .poster__excerpt {
	font-size: clamp(1.0625rem, 1.6vw, 1.3rem);
	max-width: 32em;
}

.poster--lead .poster__art {
	border-left: 3px solid var(--ink);
	min-height: 26rem;
}

.wall__grid {
	display: grid;
	align-items: start;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.4rem, 3vw, 2.6rem);
	margin-top: clamp(1.6rem, 3vw, 2.6rem);
}

.wall__grid .poster:nth-child(even) {
	margin-top: clamp(2rem, 6vw, 5rem);
}

.wall__grid .poster__art {
	aspect-ratio: 4 / 3;
	border-bottom: 3px solid var(--ink);
}

.wall__grid .poster__link {
	grid-template-rows: auto 1fr;
}

.wall__text {
	max-width: calc(var(--measure) + 2 * var(--gutter));
	margin: clamp(2.6rem, 6vw, 5rem) auto 0;
	padding: 0 var(--gutter) clamp(2rem, 4vw, 3rem);
}

.wall__text > h2:first-child {
	margin-top: 0;
}

/* --------------------------------------------------------- poster plate */

.plate {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	border-bottom: 3px solid var(--ink);
	background: var(--sheet);
}

.plate__words {
	padding: clamp(1.6rem, 5vw, 4.4rem) var(--gutter);
	align-self: center;
}

.plate__title {
	margin: 0 0 1.2rem;
	font-family: var(--shout);
	font-weight: 900;
	font-stretch: 130%;
	font-size: clamp(2rem, 4.1vw, 3.9rem);
	line-height: 1;
	letter-spacing: -0.012em;
	color: var(--over);
	text-shadow: var(--two-ink);
	overflow-wrap: break-word;
}

.plate__excerpt {
	margin: 0 0 1.6rem;
	max-width: 32em;
	font-size: clamp(1.125rem, 1.7vw, 1.35rem);
	line-height: 1.5;
}

.plate__art {
	margin: 0;
	border-left: 3px solid var(--ink);
	background-color: var(--tint);
	background-image: radial-gradient(circle, rgba(228, 53, 127, 0.55) 1.3px, transparent 1.7px);
	background-size: 7px 7px;
	display: grid;
	place-items: center;
	min-height: 22rem;
}

.plate__art img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 40rem;
	object-fit: contain;
}

.plate--plain {
	grid-template-columns: minmax(0, 1fr);
	background: var(--sheet);
}

.plate--plain .plate__words {
	max-width: calc(var(--measure) + 14rem);
	padding-top: clamp(1.6rem, 4vw, 3.2rem);
	padding-bottom: clamp(1.4rem, 3.5vw, 2.8rem);
}

.plate--plain .plate__title {
	font-size: clamp(2rem, 5vw, 4rem);
}

.plate--plain .plate__excerpt {
	margin-bottom: 0;
}

/* The byline: the mark printed small beside the team's name. */
.byline {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0;
	font-size: 1rem;
	line-height: 1.4;
}

.byline img {
	flex: none;
	width: 3rem;
	height: 3rem;
}

.byline__name {
	display: block;
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 115%;
	font-size: 1.05rem;
}

.byline__when {
	display: block;
	font-style: italic;
	color: var(--muted);
}

/* ----------------------------------------------------------- the column */

.sheet {
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--gutter), 1fr)
		[wide-start] minmax(0, 9rem)
		[text-start] min(var(--measure), 100% - 2 * var(--gutter))
		[text-end] minmax(0, 9rem)
		[wide-end] minmax(var(--gutter), 1fr)
		[full-end];
	padding: clamp(2rem, 4vw, 3.4rem) 0 clamp(2.4rem, 5vw, 4rem);
}

.sheet > * {
	grid-column: text;
}

.sheet > figure,
.sheet > .table-card,
.sheet > .inkplate,
.sheet > .tail {
	grid-column: wide;
}

.sheet > :first-child {
	margin-top: 0;
}

.sheet p,
.wall__text p {
	margin: 0 0 1.05em;
	hanging-punctuation: first;
}

.sheet h2,
.wall__text h2 {
	margin: 2.4em 0 0.55em;
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 115%;
	font-size: clamp(1.3rem, 2.4vw, 1.6rem);
	line-height: 1.08;
	letter-spacing: -0.005em;
	color: var(--ink);
}

.sheet h3,
.wall__text h3 {
	margin: 1.9em 0 0.4em;
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 110%;
	font-size: 1.3rem;
	line-height: 1.2;
	color: var(--blue);
}

.sheet strong {
	font-weight: 700;
}

.sheet ul {
	margin: 0 0 1.2em;
	padding-left: 1.3em;
}

.sheet ul > li {
	margin-bottom: 0.35em;
}

.sheet ul > li::marker {
	color: var(--pink);
	font-size: 1.15em;
}

/* Each section opens with its takeaway: big, plain, printed in two inks. */
.sheet h2 + blockquote {
	margin: 0 0 1.3em;
	padding: 0;
	border: 0;
	box-shadow: none;
	font-family: var(--shout);
	font-weight: 850;
	font-stretch: 130%;
	font-style: normal;
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.1;
	letter-spacing: -0.008em;
	color: var(--over);
	text-shadow: var(--two-ink);
}

.sheet h2 + blockquote p {
	margin: 0;
}

/* A long address in a takeaway (the contact page's) breaks inside the column on a phone. */
.sheet blockquote a {
	overflow-wrap: anywhere;
}

/* A quoted statement that is not a takeaway. */
.sheet blockquote {
	margin: 1.6em 0;
	padding: 0.2em 0 0.2em 1.1em;
	border-left: 0.45rem solid var(--pink);
	box-shadow: inset 0.22rem 0 0 var(--blue);
	font-style: italic;
	font-size: 1.15em;
}

/* Steps: numbered on a pink disc, its blue ring printed a hair off register. */
.sheet ol {
	counter-reset: step;
	list-style: none;
	margin: 0 0 1.4em;
	padding: 0;
}

.sheet ol > li {
	counter-increment: step;
	position: relative;
	min-height: 2.6rem;
	margin: 0 0 0.9em;
	padding-left: 3.6rem;
}

.sheet ol > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -0.1rem;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--pink);
	box-shadow: 0.2rem 0.16rem 0 -0.02rem var(--paper), 0.2rem 0.16rem 0 0.16rem var(--blue);
	display: grid;
	place-items: center;
	font-family: var(--shout);
	font-weight: 900;
	font-stretch: 120%;
	font-size: 1.2rem;
	line-height: 1;
	color: var(--ink);
}

/* Pinned notes: a pink halftone sheet with its key line set in heavy type. */
.sheet aside {
	position: relative;
	margin: 1.8em 0;
	padding: 1.2em 1.4em 1.2em 1.6em;
	background: var(--tint);
	border: 3px solid var(--ink);
	box-shadow: 0.45rem 0.45rem 0 var(--blue);
}

.sheet aside::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 0.6rem;
	background-image: radial-gradient(circle, var(--pink) 1.2px, transparent 1.6px);
	background-size: 5px 5px;
}

.sheet aside p:last-child {
	margin-bottom: 0;
}

.sheet aside strong:first-child {
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 115%;
}

/* Figures print as mini-posters with registration crosses at their corners. */
.sheet figure {
	position: relative;
	margin: 2.4em 0;
	padding: clamp(1rem, 3vw, 2.2rem);
	background: var(--sheet);
	border: 3px solid var(--ink);
	counter-increment: plate;
}

.sheet figure::before,
.sheet figure::after {
	content: "";
	position: absolute;
	width: 1.5rem;
	height: 1.5rem;
	background: url("assets/paper/register.svg") center / contain no-repeat;
}

.sheet figure::before {
	top: 0.5rem;
	left: 0.5rem;
}

.sheet figure::after {
	right: 0.5rem;
	bottom: 0.5rem;
}

.sheet figure img {
	display: block;
	margin: 0 auto;
}

.sheet figcaption {
	max-width: var(--measure);
	margin: 1.1rem auto 0;
	font-size: 0.98rem;
	line-height: 1.5;
	font-style: italic;
}

.sheet figcaption::before {
	content: "Plate " counter(plate) " ";
	font-family: var(--shout);
	font-style: normal;
	font-weight: 800;
	font-stretch: 115%;
	color: var(--blue);
}

.sheet {
	counter-reset: plate;
}

.sheet figcaption ol,
.sheet figcaption ul {
	margin: 0.6em 0 0;
}

.sheet figcaption ol > li {
	padding-left: 2.4rem;
	min-height: 1.8rem;
	margin-bottom: 0.35em;
}

.sheet figcaption ol > li::before {
	width: 1.7rem;
	height: 1.7rem;
	font-size: 0.85rem;
	font-style: normal;
	top: 0;
}

/* Tables: a blue ink head row and plain ruled rows; they scroll on a phone. */
.table-card {
	margin: 2em 0;
	min-width: 0;
	border: 3px solid var(--ink);
	background: var(--sheet);
}

/* The caption, printed above the scrolling part so it stays whole on a phone. */
.table-card__title {
	padding: 0.85rem 1rem;
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 120%;
	font-size: 1.15rem;
	line-height: 1.2;
	color: var(--over);
	border-bottom: 3px solid var(--ink);
}

.table-sheet {
	position: relative;
	overflow-x: auto;
}

.sheet table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
	line-height: 1.45;
	min-width: 34rem;
}

/* The table keeps its caption for screen readers; the card prints it as its title. */
.sheet caption {
	caption-side: top;
	text-align: left;
}

.sheet th {
	padding: 0.65rem 1rem;
	background: var(--blue);
	color: var(--paper);
	text-align: left;
	vertical-align: bottom;
	font-family: var(--shout);
	font-weight: 750;
	font-stretch: 110%;
	font-size: 0.98rem;
}

.sheet tbody th {
	background: transparent;
	color: var(--ink);
	vertical-align: top;
}

.sheet td {
	padding: 0.65rem 1rem;
	vertical-align: top;
	border-top: 1.5px solid var(--grain);
}

.sheet tbody tr:nth-child(even) td,
.sheet tbody tr:nth-child(even) th {
	background: rgba(242, 208, 223, 0.38);
}

/* Questions open like a tear-off strip. */
.sheet details {
	margin: 0 0 0.8em;
	border: 3px solid var(--ink);
	background: var(--sheet);
}

.sheet summary {
	position: relative;
	padding: 0.85rem 3.4rem 0.85rem 1.1rem;
	cursor: pointer;
	list-style: none;
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 112%;
	font-size: 1.1rem;
	line-height: 1.25;
}

.sheet summary::-webkit-details-marker {
	display: none;
}

.sheet summary::after {
	content: "";
	position: absolute;
	right: 0.9rem;
	top: 50%;
	width: 1.8rem;
	height: 1.8rem;
	margin-top: -0.9rem;
	border-radius: 50%;
	background: linear-gradient(var(--ink), var(--ink)) center / 0.85rem 0.2rem no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 0.2rem 0.85rem no-repeat,
		var(--pink);
	box-shadow: 0.14rem 0.1rem 0 0.08rem var(--blue);
}

.sheet details[open] summary {
	border-bottom: 1.5px dashed var(--grain);
}

.sheet details[open] summary::after {
	background: linear-gradient(var(--ink), var(--ink)) center / 0.85rem 0.2rem no-repeat,
		var(--pink);
}

.sheet details > :not(summary) {
	margin-left: 1.1rem;
	margin-right: 1.1rem;
}

.sheet details > p:last-child {
	margin-bottom: 1rem;
}

.sheet details > summary + * {
	margin-top: 0.9rem;
}

/* Terms: set heavy in blue, defined beside a pink rule. */
.sheet dl {
	margin: 1.4em 0;
}

.sheet dt {
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 115%;
	color: var(--blue);
}

.sheet dd {
	margin: 0.15em 0 0.9em;
	padding-left: 1rem;
	border-left: 0.3rem solid var(--pink);
}

.sheet hr {
	height: 0.55rem;
	margin: 2.6em 0;
	border: 0;
	background-image: radial-gradient(circle, var(--pink) 1.5px, transparent 1.9px), radial-gradient(circle, var(--blue) 1.5px, transparent 1.9px);
	background-size: 9px 9px;
	background-position: 0 0, 3px 2px;
}

/* -------------------------------------------- ads: unprinted paper, a trim line */

.inkplate {
	margin: 2.6em 0;
	padding: 0.7rem 0.9rem 0.9rem;
	border: 2px dashed var(--grain);
	background: transparent;
	text-align: center;
}

.inkplate iframe {
	display: block;
	margin: 0 auto;
	border: 0;
	max-width: 100%;
}

.inkplate-tag {
	display: block;
	margin: 0 0 0.55rem;
	text-align: left;
	font-family: var(--shout);
	font-weight: 600;
	font-stretch: 100%;
	font-size: 0.8125rem;
	line-height: 1.2;
	color: var(--muted);
}

.wall__slot {
	padding: 0 var(--gutter);
}

.wall__slot .inkplate {
	max-width: 60rem;
	margin-left: auto;
	margin-right: auto;
}

/* ------------------------------------------------- the closing note and more */

.tail {
	margin-top: 3em;
	padding-top: 2em;
	border-top: 3px solid var(--ink);
}

.colophon {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.1rem;
	align-items: start;
	max-width: var(--measure);
	margin: 0 auto;
}

.colophon img {
	width: 4.2rem;
	height: 4.2rem;
}

.colophon p {
	margin: 0 0 0.4em;
	font-size: 1rem;
}

.colophon__name {
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 120%;
	font-size: 1.2rem;
}

.more {
	padding: clamp(2rem, 4vw, 3rem) var(--gutter) clamp(2.4rem, 5vw, 4rem);
	border-top: 3px solid var(--ink);
}

.more__title {
	margin: 0 0 1.2rem;
	font-family: var(--shout);
	font-weight: 850;
	font-stretch: 130%;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	line-height: 1.05;
	color: var(--over);
	text-shadow: var(--two-ink);
}

.more .wall__grid {
	margin-top: 0;
}

.more__back {
	display: inline-block;
	padding: 0.55rem 1.1rem 0.6rem;
	background: var(--pink);
	color: var(--ink);
	border: 3px solid var(--ink);
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 120%;
	font-size: 1.1875rem;
	text-decoration: none;
}

.more__back:hover {
	background: var(--over);
	color: var(--paper);
}

/* -------------------------------------------------------------- archive */

.run {
	padding: clamp(1.8rem, 5vw, 4rem) var(--gutter) clamp(2.4rem, 5vw, 4rem);
}

.run__head {
	max-width: 58rem;
	margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.run__title {
	margin: 0 0 0.8rem;
	font-family: var(--shout);
	font-weight: 900;
	font-stretch: 150%;
	font-size: clamp(3rem, 12vw, 9rem);
	line-height: 0.9;
	letter-spacing: -0.015em;
	color: var(--over);
	text-shadow: var(--two-ink);
}

.run__lede {
	margin: 0;
	max-width: 34em;
	font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

.run .wall__grid {
	margin-top: 0;
}

.run__empty {
	max-width: var(--measure);
}

/* Search form: one field and one button, printed in ink. */
.rack-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	max-width: 40rem;
	margin: 1.4rem 0 0;
}

.rack-search label {
	flex: 1 0 100%;
	font-family: var(--shout);
	font-weight: 700;
	font-stretch: 110%;
	font-size: 1rem;
}

.rack-search input[type="search"] {
	flex: 1 1 14rem;
	min-width: 0;
	padding: 0.6rem 0.8rem;
	border: 3px solid var(--ink);
	background: var(--sheet);
	color: var(--ink);
	font: inherit;
	font-size: 1.0625rem;
}

.rack-search button {
	padding: 0.6rem 1.2rem;
	border: 3px solid var(--ink);
	background: var(--pink);
	color: var(--ink);
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 120%;
	font-size: 1.1875rem;
	cursor: pointer;
}

.rack-search button:hover {
	background: var(--over);
	color: var(--paper);
}

.run__title--search,
.misprint .run__title {
	font-size: clamp(2.2rem, 6.4vw, 5.2rem);
	font-stretch: 135%;
	line-height: 0.98;
	max-width: 15em;
}

.misprint__code {
	display: block;
	margin-bottom: 0.08em;
	font-size: clamp(5.5rem, 22vw, 14rem);
	line-height: 0.85;
}

.run > .poster--lead {
	margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

/* ------------------------------------------------------------------ footer */

.foot {
	position: relative;
	margin-top: 0;
	padding: clamp(2.2rem, 5vw, 3.6rem) var(--gutter) clamp(5.5rem, 9vw, 6.5rem);
	background: var(--blue);
	color: var(--paper);
}

.foot::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -0.95rem;
	height: 0.95rem;
	background: linear-gradient(var(--pink), var(--pink)) 0 0 / 100% 0.5rem no-repeat,
		linear-gradient(var(--over), var(--over)) 0 0.3rem / 100% 0.2rem no-repeat;
}

.foot a {
	color: var(--paper);
}

.foot a:hover {
	color: var(--tint);
	text-decoration-color: var(--pink);
}

.foot :focus-visible {
	outline-color: var(--paper);
	box-shadow: none;
}

.foot__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 2rem clamp(2rem, 6vw, 6rem);
	max-width: 76rem;
}

.foot__name {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 0 0 0.7rem;
	font-family: var(--shout);
	font-weight: 900;
	font-stretch: 140%;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	line-height: 1;
}

.foot__name img {
	width: 3.2rem;
	height: 3.2rem;
}

.foot__name a {
	text-decoration: none;
}

.foot__tagline {
	margin: 0 0 1.4rem;
	font-family: var(--shout);
	font-weight: 700;
	font-stretch: 120%;
	font-size: 1.15rem;
}

.foot__small {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.55;
}

.foot nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 1;
}

.foot nav li {
	margin: 0 0 0.45rem;
}

.foot nav a {
	font-family: var(--shout);
	font-weight: 650;
	font-stretch: 112%;
	font-size: 1.05rem;
}

/* ----------------------------------- measurement banner and the cookie choice */

.slip-sheet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem 1rem;
	padding: 1rem var(--gutter) 1.1rem;
	background: var(--sheet);
	border-top: 3px solid var(--ink);
	box-shadow: 0 -0.5rem 0 var(--pink), 0 -0.7rem 0 var(--over);
}

.slip-sheet p {
	flex: 1 1 26rem;
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

.slip-sheet button,
.feed-tray button {
	/* One width for both answers, so neither looks like the default. */
	min-width: 16rem;
	padding: 0.55rem 1.2rem;
	border: 3px solid var(--ink);
	background: var(--over);
	color: var(--paper);
	font-family: var(--shout);
	font-weight: 800;
	font-stretch: 115%;
	font-size: 1.0625rem;
	line-height: 1.2;
	cursor: pointer;
}

.slip-sheet button:hover,
.feed-tray button:hover {
	background: var(--blue);
}

.feed-tray {
	margin: 1.8em 0;
	padding: 1.2rem 1.3rem 1.3rem;
	border: 3px solid var(--ink);
	background: var(--sheet);
	box-shadow: 0.45rem 0.45rem 0 var(--pink);
}

.feed-tray p {
	margin: 0 0 0.8rem;
}

.feed-tray button {
	margin: 0 0.4rem 0.3rem 0;
}

.tray-count {
	font-style: italic;
	color: var(--muted);
}

.tray-count:empty {
	display: none;
}

/* -------------------------------------------------------------- small screens */

@media (max-width: 860px) {
	.poster--lead .poster__link,
	.plate {
		grid-template-columns: minmax(0, 1fr);
	}

	/* The title comes first on a phone; the drawing prints under it. */
	.poster--lead .poster__art,
	.plate__art {
		border-left: 0;
		border-top: 3px solid var(--ink);
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.foot__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 620px) {
	.wall__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.wall__grid .poster:nth-child(even) {
		margin-top: 0;
	}

	.tabs a {
		padding: 0.4rem 0.85rem 0.45rem;
	}

	.sheet figure {
		margin-left: calc(var(--gutter) * -0.4);
		margin-right: calc(var(--gutter) * -0.4);
	}

	.sheet ol > li {
		padding-left: 3.2rem;
	}

	.slip-sheet button {
		flex: 1 1 0;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wordmark__ink--blue {
		transition: transform 160ms ease-out;
	}
}

@media print {
	.inkplate,
	.slip-sheet,
	.tabs {
		display: none;
	}
}


@media screen {
	.slip-sheet {
		left: 0.5rem;
		right: 0.5rem;
		bottom: max(0.5rem, env(safe-area-inset-bottom));
		width: auto;
		max-width: 35rem;
		margin: 0 auto;
		transform: none;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
		padding: 0.75rem;
		border: 1px solid var(--grain);
		border-radius: 2px;
		background: var(--sheet);
		color: var(--muted);
		box-shadow: none;
		font: 400 0.875rem/1.4 var(--shout);
	}
	.slip-sheet::before,
	.slip-sheet::after { display: none; }
	.slip-sheet p {
		grid-column: 1 / -1;
		margin: 0;
		max-width: none;
		font: inherit;
	}
	.slip-sheet a {
		color: var(--blue);
		font-weight: 400;
		white-space: normal;
		text-decoration: underline;
	}
	.slip-sheet button {
		min-width: 0;
		min-height: 44px;
		width: 100%;
		margin: 0;
		padding: 0.4rem 0.5rem;
		border: 1px solid var(--grain);
		border-radius: 2px;
		background: var(--sheet);
		color: var(--muted);
		box-shadow: none;
		font: 500 0.875rem/1.25 var(--shout);
		font-stretch: normal;
		letter-spacing: normal;
		text-transform: none;
		cursor: pointer;
	}
	.slip-sheet button:hover { background: var(--paper); }
	.slip-sheet :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
	body:has(.slip-sheet) { padding-bottom: 10rem; }
}
@media screen and (max-width: 620px) {
	body:has(.slip-sheet) { padding-bottom: 12rem; }
}
