/* Design 6, Pamphlet: two colours on paper. Indigo carries the text, red the numbers and rules. */

:root {
	--red: #C13E2D;
	--indigo: #34299B;
	--paper: #FFFFF8;
	--tint: color-mix(in srgb, var(--indigo) 12%, var(--paper));
	--display: "Anybody", "Arial Narrow", Arial, sans-serif;
	--serif: "Newsreader", Georgia, serif;
	--measure: 36rem;
}
*,
*::before,
*::after {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--indigo);
	font-family: var(--serif);
	font-size: 1.2rem;
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
	text-decoration-color: var(--red);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:hover {
	color: var(--red);
}
:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 3px;
}
.defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}
.pm {
	width: min(100% - 40px, var(--measure));
	margin: 0 auto;
}

/* Title page */
.pm-title {
	display: grid;
	justify-items: center;
	gap: 22px;
	padding-top: 64px;
	text-align: center;
}
.pm-date,
.pm-issue,
.pm-k,
.pm-by,
.pm-top p {
	margin: 0;
	font-size: 0.95rem;
	font-variant-caps: all-small-caps;
	letter-spacing: 0.08em;
}
.pm-mark,
.pm-top__mark {
	display: block;
	line-height: 0;
}
.pm-mark {
	width: min(100%, 440px);
}
.pm-mark svg,
.pm-top__mark svg {
	width: 100%;
	height: auto;
}
.pm-issue {
	padding-top: 14px;
	border-top: 2px solid var(--red);
}

/* The editor's epigraph */
.pm-epigraph {
	margin: 64px auto 0;
	max-width: 26rem;
	text-align: center;
}
.pm-epigraph blockquote {
	margin: 0;
	font-size: 1.35rem;
	font-style: italic;
	line-height: 1.4;
}
.pm-epigraph blockquote p {
	margin: 0;
}
.pm-epigraph figcaption {
	margin-top: 12px;
	font-size: 0.95rem;
	font-variant-caps: all-small-caps;
	letter-spacing: 0.08em;
}

/* Contents, with dotted leaders */
.pm-contents {
	margin-top: 72px;
}
.pm-contents h2 {
	margin: 0 0 18px;
	font-size: 1rem;
	font-weight: 400;
	font-variant-caps: all-small-caps;
	letter-spacing: 0.24em;
	text-align: center;
}
.pm-contents ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
.pm-contents a {
	display: grid;
	grid-template-columns: 3rem minmax(0, auto) minmax(2rem, 1fr) auto;
	align-items: baseline;
	padding-block: 10px;
	text-decoration: none;
}
.pm-contents__n {
	color: var(--red);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.pm-contents__t {
	font-size: 1.2rem;
	line-height: 1.3;
}
.pm-contents__lead {
	align-self: end;
	margin: 0 8px 0.4em;
	border-bottom: 2px dotted color-mix(in srgb, var(--indigo) 45%, transparent);
}
.pm-contents__m {
	align-self: end;
	font-size: 0.95rem;
	font-style: italic;
	white-space: nowrap;
}
.pm-contents__meta {
	grid-column: 2 / -1;
	font-size: 0.85rem;
	font-variant-caps: all-small-caps;
	letter-spacing: 0.08em;
	opacity: 0.8;
}
.pm-contents a:hover .pm-contents__t {
	color: var(--red);
}

.pm-ornament {
	margin: 56px 0;
	color: var(--red);
	font-size: 1.5rem;
	text-align: center;
}

/* Chapters */
.pm-chapter {
	margin-bottom: 56px;
	text-align: center;
}
.pm-chapter + .pm-chapter {
	padding-top: 48px;
	border-top: 1px solid color-mix(in srgb, var(--indigo) 25%, transparent);
}
.pm-chapter__n {
	margin: 0 0 6px;
	color: var(--red);
	font-size: 2.2rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1;
}
.pm-chapter__n--big {
	font-size: clamp(3.4rem, 2.4rem + 4vw, 5.4rem);
}
.pm-k {
	color: var(--red);
}
.pm-h {
	margin: 10px 0 0;
	font-size: clamp(2rem, 1.3rem + 2.4vw, 2.9rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.pm-h a {
	text-decoration: none;
}
.pm-h--small {
	font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
}
.pm-h--article {
	font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.6rem);
}
.pm-by {
	margin-top: 10px;
}
.pm-stand {
	margin: 12px auto 0;
	max-width: 30rem;
	font-size: 1.2rem;
	font-style: italic;
	line-height: 1.4;
}
.pm-first {
	margin: 24px 0 0;
	text-align: justify;
	hyphens: auto;
	text-align-last: left;
}
.pm-first::first-letter,
.pm-body > p:first-child::first-letter {
	float: left;
	margin: 0.05em 0.1em 0 0;
	color: var(--red);
	font-size: 3.6em;
	font-weight: 500;
	line-height: 0.8;
}
.pm-more {
	margin: 18px 0 0;
	font-size: 1rem;
	font-variant-caps: all-small-caps;
	letter-spacing: 0.1em;
}

/* Two-colour pictures: indigo duotone, a dot screen, and the red plate printed slightly off. */
.pm-fig {
	position: relative;
	isolation: isolate;
	margin: 28px 14px 14px 0;
}
.pm-fig::before {
	content: "";
	position: absolute;
	inset: 14px -14px -14px 14px;
	z-index: -1;
	background: var(--red);
	opacity: 0.85;
}
.pm-fig img {
	width: 100%;
	filter: url(#riso);
}
.pm-fig::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgb(52 41 155 / 0.22) 0.9px, transparent 1.3px);
	background-size: 4px 4px;
	mix-blend-mode: multiply;
	pointer-events: none;
}

/* Article */
.pm-top {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 28px 20px 0;
	text-align: center;
}
.pm-top__mark {
	width: 180px;
}
.pm-article {
	padding-top: 48px;
}
.pm-article__head {
	text-align: center;
}
.pm-article .pm-fig {
	margin-top: 36px;
}
.pm-body {
	margin-top: 36px;
	hyphens: auto;
}
.pm-body > p {
	margin: 0 0 1.05em;
	text-align: justify;
	text-align-last: left;
}
.pm-body > p:first-child::first-line {
	font-variant-caps: all-small-caps;
	letter-spacing: 0.06em;
}
.pm-body .pull-quote {
	margin: 1.8em 0;
	padding: 22px 0;
	border-block: 2px solid var(--red);
	font-size: 1.4rem;
	font-style: italic;
	line-height: 1.4;
	text-align: center;
}
.pm-body .pull-quote blockquote,
.pm-body .pull-quote p {
	margin: 0;
}
.pm-next {
	margin-bottom: 24px;
	text-align: center;
}
.pm-next a {
	display: grid;
	gap: 6px;
	font-size: 1.6rem;
	line-height: 1.2;
	text-decoration: none;
}
.pm-next span {
	color: var(--red);
	font-size: 0.95rem;
	font-variant-caps: all-small-caps;
	letter-spacing: 0.1em;
}

/* Colophon */
.pm-colophon {
	width: min(100% - 40px, 30rem);
	margin: 0 auto;
	padding-bottom: 110px;
	font-size: 0.95rem;
	text-align: center;
}
.pm-colophon p {
	margin: 0 0 8px;
}
.pm-colophon .pm-ornament {
	margin: 24px 0 28px;
}

@media (max-width: 599px) {
	body {
		font-size: 1.1rem;
	}
	.pm-title {
		padding-top: 36px;
	}
	.pm-contents a {
		grid-template-columns: 2.4rem minmax(0, 1fr) auto;
	}
	.pm-contents__lead {
		display: none;
	}
	.pm-contents__m {
		padding-left: 10px;
	}
	.pm-date {
		font-size: 0.85rem;
	}
}
