/* Magazine-meets-zine article layout (artist stories and /news/ articles). */
.r3n-story {
	--story-ink: var(--color-base-content, #1a1a1a);
	--story-soft: color-mix(in oklab, var(--story-ink) 65%, transparent);
	--story-line: var(--color-base-300, #ddd);
	--story-pink: #ff0086;
	--story-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
	color: var(--story-ink);
}

/* Header */
.r3n-story-head {
	padding-bottom: 1.6rem;
	background: url("https://punx.co.uk/r3n/assets/sgd.png") 50% 100% repeat-x;
}

.r3n-story-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1rem;
	margin: 0 0 1rem;
}

.r3n-story-label {
	display: inline-block;
	padding: .2rem .6rem .25rem;
	background: var(--story-ink);
	color: #fff;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	transform: rotate(-2deg);
	box-shadow: 3px 3px 0 var(--story-pink);
}

.r3n-story-back,
.r3n-story-foot a {
	font-size: .9rem;
	text-decoration: none !important;
}

.r3n-story-back:hover,
.r3n-story-foot a:hover { text-decoration: underline !important; text-underline-offset: 3px; }

.r3n-story-title {
	margin: 0;
	font-size: clamp(2.4rem, 6.5vw, 5.5rem);
	line-height: .95;
	letter-spacing: .005em;
	text-wrap: balance;
}

.r3n-story-standfirst {
	margin: 1rem 0 0;
	font-family: var(--story-serif);
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	line-height: 1.5;
	color: var(--story-soft);
	text-wrap: pretty;
}

.r3n-story-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem .6rem;
	margin: 1rem 0 0;
	font-size: .85rem;
	color: var(--story-soft);
}

.r3n-story-meta > * + *::before { content: "//"; margin-inline-end: .6rem; color: var(--story-pink); }

/* Lead image */
.r3n-story-figure { margin: 1.75rem 0 0; }

.r3n-story-figure img {
	display: block;
	width: 100%;
	max-height: 34rem;
	object-fit: cover;
	border: 3px solid var(--story-ink);
	box-shadow: 8px 8px 0 var(--story-pink);
}

.r3n-story-figure figcaption { margin-top: .9rem; padding: 0; font-size: .75rem; color: var(--story-soft); }

/* Body copy */
.r3n-story-body {
	margin-top: 2rem;
	font-family: var(--story-serif);
	font-size: 1.125rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.r3n-story-body > * { margin: 0; }
.r3n-story-body > * + * { margin-top: 1.25em; }

/* Opening paragraph: larger, with a zine drop cap. */
.r3n-story-body > p:first-child { font-size: 1.25rem; line-height: 1.65; }

.r3n-story-body > p:first-child::first-letter {
	float: left;
	margin: .08em .12em 0 0;
	padding: .02em .1em 0;
	background: var(--story-ink);
	color: #fff;
	font-family: "boedimant", var(--story-serif);
	font-size: 3.6em;
	line-height: .82;
}

.r3n-story-body :is(h2, h3, h4) {
	margin-top: 2em;
	font-family: "boedimant", sans-serif;
	line-height: 1.05;
}

.r3n-story-body h2 { font-size: 2rem; }
.r3n-story-body h3 { font-size: 1.5rem; }

.r3n-story-body a {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px;
}

.r3n-story-body :is(ul, ol) { padding-inline-start: 1.4em; }
.r3n-story-body ul { list-style: square; }
.r3n-story-body ol { list-style: decimal; }
.r3n-story-body li + li { margin-top: .4em; }
.r3n-story-body li::marker { color: var(--story-pink); }

.r3n-story-body img { max-width: 100%; height: auto; }
.r3n-story-body figure img { display: block; }
.r3n-story-body figcaption { margin-top: .5rem; font-family: system-ui, sans-serif; font-size: .8rem; color: var(--story-soft); }

.r3n-story-body hr {
	height: 10px;
	border: 0;
	background: url("https://punx.co.uk/r3n/assets/sgd.png") 50% 100% repeat-x;
}

/* Quotes in news: big zine pull quote. */
.r3n-story-body blockquote {
	position: relative;
	padding: .4em 0 .4em 1.2em;
	border-inline-start: 6px solid var(--story-pink);
	font-family: "specialelite", var(--story-serif);
	font-size: 1.3rem;
	line-height: 1.5;
}

/* Interviews: bold question paragraphs, blockquote answers read as plain copy. */
.r3n-story-body > p:has(> strong:only-child) {
	margin-top: 2em;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1.05rem;
	line-height: 1.5;
}

.r3n-story--interview .r3n-story-body > p:has(> strong:only-child) {
	padding-inline-start: .85rem;
	border-inline-start: 4px solid var(--story-ink);
}

.r3n-story--interview .r3n-story-body > p:has(> strong:only-child) + blockquote {
	margin-top: .6em;
	padding: 0;
	border: 0;
	font-family: var(--story-serif);
	font-size: inherit;
	line-height: inherit;
}

/* End mark, magazine style. */
.r3n-story-body > :last-child::after {
	content: "";
	display: inline-block;
	width: .6em;
	height: .6em;
	margin-inline-start: .35em;
	background: var(--story-pink);
	vertical-align: baseline;
}

.r3n-story-foot {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 3px solid var(--story-ink);
}

@media (min-width: 64rem) {
	.r3n-story-body { font-size: 1.2rem; }
	.r3n-story-body > p:first-child { font-size: 1.4rem; }
	.r3n-story-standfirst { font-size: 1.5rem; }
}

@media (max-width: 39.99rem) {
	.r3n-story-body { font-size: 1.0625rem; }
	.r3n-story-body > p:first-child { font-size: 1.15rem; }
	.r3n-story-figure img { box-shadow: 5px 5px 0 var(--story-pink); }
}
