/* Read Before Monday — main stylesheet.
 * Ported from the static prototype. Palette / display / density driven by
 * body[data-*] attributes emitted from the Customizer via body_class filter.
 */

:root {
	--paper:   #F2E3D0;  /* warm cream */
	--paper-2: #E9D5B8;
	--ink:     #141414;
	--ink-2:   #3a3a3a;
	--ink-3:   #6a6a6a;
	--accent:  #C8352B;  /* bold red */
	--accent-2:#E8B43A;  /* sun */

	--display: "Archivo Black", "Archivo", Helvetica, sans-serif;
	--sans:    "Archivo", Helvetica, sans-serif;
	--mono:    "Space Mono", ui-monospace, monospace;

	--stroke: 4px;
	--gap: 32px;
}

body[data-palette="red"]   { --paper:#F2E3D0; --paper-2:#E9D5B8; --ink:#141414; --accent:#C8352B; --accent-2:#E8B43A; }
body[data-palette="navy"]  { --paper:#F0E7D6; --paper-2:#E2D5BA; --ink:#141414; --accent:#1E3A6B; --accent-2:#E39BA0; }
body[data-palette="teal"]  { --paper:#F2E9D4; --paper-2:#E6DBBB; --ink:#141414; --accent:#1F6E6B; --accent-2:#E8B43A; }
body[data-palette="black"] { --paper:#141414; --paper-2:#1f1f1f; --ink:#F2E3D0; --ink-2:#d8cdb9; --ink-3:#8a8275; --accent:#E8B43A; --accent-2:#C8352B; }

body[data-display="archivoblack"] { --display: "Archivo Black", Helvetica, sans-serif; }
body[data-display="archivo"]      { --display: "Archivo", Helvetica, sans-serif; --display-weight: 900; }
body[data-display="mono"]         { --display: "Space Mono", monospace; --display-weight: 700; }

body[data-density="tight"]       { --gap: 20px; }
body[data-density="comfortable"] { --gap: 32px; }
body[data-density="airy"]        { --gap: 56px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Accessibility ── */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--paper);
	border: var(--stroke) solid var(--accent);
	clip: auto !important;
	clip-path: none;
	color: var(--ink);
	display: block;
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 12px 20px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* ── Empty state message (index/archive) ── */
.no-issues-msg { padding: 32px 0; margin: 0; }

.page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 40px 80px;
	position: relative;
}

/* ------------- TOP BAR ------------- */
.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: var(--stroke) solid var(--ink);
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink);
	position: sticky;
	top: 0;
	background: var(--paper);
	z-index: 100;
}
.topbar .left, .topbar .right { display: flex; gap: 20px; }
.dot {
	width: 10px; height: 10px;
	background: var(--accent);
	border: 2px solid var(--ink);
	display: inline-block;
	margin-right: 8px;
	transform: translateY(1px);
	border-radius: 50%;
}

/* ------------- MASTHEAD ------------- */
.masthead {
	padding: 32px 0 22px;
	border-bottom: var(--stroke) solid var(--ink);
	position: relative;
	container-type: inline-size;
}
.title {
	font-family: var(--display);
	font-weight: 900;
	--title-fit-ratio: 7.504;
	font-size: clamp(48px, 9vw, 168px);
	font-size: clamp(32px, calc(100cqw / var(--title-fit-ratio)), 176px);
	line-height: 0.82;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	margin: 0;
	color: var(--ink);
}
.title a {
	color: inherit;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-decoration: none;
}
.title .rb {
	display: block;
	width: max-content;
	max-width: 100%;
	white-space: nowrap;
}
.title .hl {
	background: var(--accent);
	color: var(--paper);
	padding: 0 0.08em;
	display: block;
	width: max-content;
	max-width: 100%;
	line-height: 0.82;
}
body[data-palette="black"] .title .hl { color: var(--ink); }

@media (any-pointer: coarse) and (min-width: 601px) {
	.title { --title-fit-ratio: 7.9; }
}

.tagline-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 14px;
	gap: 24px;
}
.tagline {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink);
	font-weight: 700;
}
.badge {
	background: var(--ink);
	color: var(--paper);
	padding: 6px 12px;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ------------- HERO POSTER ------------- */
.hero {
	margin-top: var(--gap);
	border: var(--stroke) solid var(--ink);
	background: var(--paper);
	display: flex;
	flex-direction: column;
}
.hero-art {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	border-right: 0;
	border-bottom: var(--stroke) solid var(--ink);
	background: var(--paper-2);
}
.hero-art .cover-slot { position: absolute; inset: 0; }
.hero-art .cover-slot svg { width: 100%; height: 100%; display: block; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-art .issue-tag {
	position: absolute;
	top: 16px; left: 16px;
	background: var(--ink);
	color: var(--paper);
	padding: 8px 14px;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	z-index: 2;
}
.hero-art .date-tag {
	position: absolute;
	top: 16px; right: 16px;
	background: var(--accent);
	color: var(--paper);
	padding: 8px 14px;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	z-index: 2;
}
body[data-palette="black"] .hero-art .date-tag { color: var(--ink); }

.hero-text {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 0;
	align-items: stretch;
}
/* clip container: fills grid cell, hides overflow so right links
   never push the card taller than the left (body) column */
.hero-sidebar-clip {
	position: relative;
	overflow: hidden;
}
.hero-sidebar {
	position: absolute;
	inset: 0;
	padding: 32px 40px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow: hidden;
}
.hero-body {
	padding: 32px 40px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	border-right: var(--stroke) solid var(--ink);
}
.kicker {
	font-family: var(--mono);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
	display: inline-block;
	border-bottom: 3px solid var(--accent);
	padding-bottom: 4px;
	width: fit-content;
}
.hero-text h2 {
	font-family: var(--display);
	font-weight: 900;
	font-size: clamp(32px, 3.6vw, 56px);
	line-height: 0.96;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin: 0;
	text-wrap: balance;
}
.hero-text h2 a { text-decoration: none; color: inherit; }
.hero-text .dek {
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
	margin: 0;
	font-weight: 500;
}
.hero-text .dek em {
	background: var(--accent-2);
	color: var(--ink);
	font-style: normal;
	padding: 0 4px;
}

.byline {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 10px 0;
	border-top: 3px solid var(--ink);
	border-bottom: 3px solid var(--ink);
	font-family: var(--mono);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.byline .sep { color: var(--ink-3); }

/* hero links -> tight blocks */
.hero-links { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 0; }
.hero-links .hl {
	display: grid;
	grid-template-columns: 38px 1fr auto;
	align-items: center;
	flex: 1;
	min-height: 0;
	gap: 14px;
	padding: 6px 0;
	border-bottom: 2px solid var(--ink);
	cursor: pointer;
	transition: background .15s, padding .15s;
	background: transparent;
	color: var(--ink);
	overflow: hidden;
}
.hero-links .hl:last-child { border-bottom: none; }
.hero-links .hl:hover { background: var(--accent-2); padding-left: 8px; }
body[data-palette="black"] .hero-links .hl:hover { color: var(--ink); }
.hero-links .hl .n {
	font-family: var(--display);
	font-size: 18px;
	color: var(--accent);
}
.hero-links .hl .t {
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.hero-links .hl .src {
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-2);
}

.read-cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--ink);
	color: var(--paper);
	padding: 14px 20px;
	font-family: var(--display);
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	width: fit-content;
	transition: background .15s;
	text-decoration: none;
}
.read-cta:hover { background: var(--accent); }
.read-cta .arrow { font-family: var(--sans); font-weight: 900; }
.hero-sidebar .read-cta {
	width: 100%;
	justify-content: center;
	padding: 28px 32px;
	font-size: 22px;
	letter-spacing: 0.04em;
}
.hero-body .read-cta {
	width: 100%;
	justify-content: center;
	padding: 20px 24px;
	font-size: 20px;
	letter-spacing: 0.04em;
	margin-top: 20px;
}

/* ------------- SECTION HEAD ------------- */
.archive-wrap { padding-bottom: 56px; }
.section-head {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 56px 0 20px;
}
.section-head h3 {
	font-family: var(--display);
	font-weight: 900;
	font-size: clamp(32px, 4vw, 56px);
	letter-spacing: -0.03em;
	text-transform: uppercase;
	margin: 0;
	line-height: 0.92;
	flex-shrink: 0;
}
.section-head h3 .hl {
	display: block;
	background: var(--accent);
	color: var(--paper);
	padding: 0 0.12em;
	line-height: 1;
}
body[data-palette="black"] .section-head h3 .hl { color: var(--ink); }
.section-head .rule {
	flex: 1; height: var(--stroke);
	background: var(--ink);
}
.section-head .meta {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink);
	flex-shrink: 0;
}

/* ------------- ISSUE GRID — 2-column horizontal cards ------------- */
.issues {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 32px;
	row-gap: 40px;
}
.issue {
	background: var(--paper);
	border: var(--stroke) solid var(--ink);
	display: grid;
	grid-template-columns: 3fr 2fr;
	grid-template-rows: auto 1fr;
	cursor: pointer;
	overflow: hidden;
	transition: transform .18s;
	text-decoration: none;
	color: inherit;
}
.issue:hover { transform: translate(-3px, -3px); }

.thumb {
	grid-column: 1;
	grid-row: 1;
	aspect-ratio: 16 / 9;
	min-height: 0;
	position: relative;
	overflow: hidden;
	align-self: start;
	border-right: var(--stroke) solid var(--ink);
	background: var(--paper-2);
}
.thumb .cover-slot { position: absolute; inset: 0; }
.thumb .cover-slot svg { width: 100%; height: 100%; display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .num-stamp {
	position: absolute;
	top: 10px; left: 10px;
	background: var(--ink);
	color: var(--paper);
	padding: 4px 10px;
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
}
.thumb .date-stamp {
	position: absolute;
	top: 10px; right: 10px;
	background: var(--paper);
	color: var(--ink);
	padding: 4px 10px;
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	border: 2px solid var(--ink);
}

.issue h4 {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	padding: 24px;
	align-self: stretch;
	margin: 0;
	background: var(--ink);
	overflow: hidden;
}
.issue h4 a { text-decoration: none; color: inherit; }
.issue-num-hero {
	font-family: var(--display);
	font-weight: 900;
	font-size: clamp(42px, 5vw, 72px);
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--accent);
}
.issue-date-sub {
	font-family: var(--mono);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--paper);
	opacity: 0.85;
	align-self: flex-start;
	text-align: left;
	margin-top: auto;
	white-space: nowrap;
}
.issue-body {
	grid-column: 1 / -1;
	grid-row: 2;
	padding: 24px 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.issue .dek-s {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
	margin: 0;
	font-weight: 400;
	align-self: start;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.issue .tags {
	margin-top: auto;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	padding-top: 8px;
}
.tag {
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 3px 8px;
	background: var(--paper-2);
	color: var(--ink);
	border: 2px solid var(--ink);
	text-decoration: none;
}
.tag.accent { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.tag.muted  { background: var(--ink); color: var(--paper); border-color: var(--ink); opacity: 0.7; }
.tag.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
body[data-palette="black"] .tag.accent { color: var(--ink); }
body[data-palette="black"] .tag.muted  { color: var(--paper); }

/* ------------- ARCHIVE PAGINATION ------------- */
.archive-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	padding: 40px 0 0;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.1em;
}
.archive-pagination a,
.archive-pagination span.current,
.archive-pagination span.dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: var(--stroke) solid var(--ink);
	color: var(--ink);
	text-decoration: none;
	text-transform: uppercase;
	transition: background .15s, color .15s;
}
.archive-pagination span.current {
	background: var(--ink);
	color: var(--paper);
}
.archive-pagination span.dots { border: 0; }
.archive-pagination a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--paper);
}

/* ------------- BOTTOM: 3-UP ------------- */
.bottom {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 0;
	margin-top: 56px;
	border: var(--stroke) solid var(--ink);
}
.bottom > div {
	padding: 28px 28px 32px;
	border-right: var(--stroke) solid var(--ink);
}
.bottom > div:last-child { border-right: 0; }

.about { background: var(--paper); }
.subscribe { background: var(--accent); color: var(--paper); }
body[data-palette="black"] .subscribe { color: var(--ink); }
.colophon { background: var(--ink); color: var(--paper); }
body[data-palette="black"] .colophon { background: var(--accent-2); color: var(--ink); }

.label {
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 14px;
	color: inherit;
	opacity: 0.8;
}
.bottom h5 {
	font-family: var(--display);
	font-weight: 900;
	font-size: clamp(22px, 2.4vw, 32px);
	line-height: 0.98;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin: 0 0 14px;
	text-wrap: balance;
}
.about p {
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 10px;
	font-weight: 500;
}
.about p strong { background: var(--accent-2); padding: 0 3px; }
.author-line {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.author-avatar {
	width: 44px; height: 44px;
	background: var(--ink);
	color: var(--paper);
	border-radius: 50%;
	display: grid; place-items: center;
	font-family: var(--display);
	font-size: 16px;
}

.subscribe p {
	font-size: 14px;
	margin: 0 0 18px;
	font-weight: 500;
}
.sub-form {
	display: flex;
	border: var(--stroke) solid var(--paper);
	background: var(--paper);
}
body[data-palette="black"] .sub-form { border-color: var(--ink); }
.sub-form input {
	flex: 1;
	border: 0; outline: 0;
	background: transparent;
	padding: 12px 14px;
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
	min-width: 0;
}
.sub-form input::placeholder { color: var(--ink-3); }
.sub-form button {
	border: 0;
	background: var(--ink);
	color: var(--paper);
	padding: 12px 18px;
	font-family: var(--display);
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s;
}
body[data-palette="black"] .sub-form button { color: var(--paper); background: var(--accent); }
.sub-form button:hover { background: var(--accent-2); color: var(--ink); }
.sub-success {
	display: none;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-top: 12px;
	background: var(--paper);
	color: var(--ink);
	padding: 8px 12px;
	width: fit-content;
}
.sub-success.on { display: block; }
.sub-meta {
	margin-top: 14px;
	display: flex;
	gap: 14px;
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.9;
	flex-wrap: wrap;
}
.sub-meta .bullet { opacity: 0.6; }

.colophon .row {
	display: flex;
	justify-content: space-between;
	padding: 7px 0;
	border-bottom: 2px solid var(--paper);
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
}
body[data-palette="black"] .colophon .row { border-bottom-color: var(--ink); }
.colophon .row span:first-child { opacity: 0.7; text-transform: uppercase; font-size: 10px; letter-spacing: 0.12em; }
.colophon .row:last-child { border-bottom: 0; }

/* ------------- FOOTER ------------- */
.footer {
	margin-top: 24px;
	padding-top: 16px;
	border-top: var(--stroke) solid var(--ink);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ------------- MODAL ------------- */
.modal-backdrop {
	position: fixed; inset: 0;
	background: rgba(20,20,20,0.6);
	z-index: 50;
	opacity: 0; pointer-events: none;
	transition: opacity .2s;
}
.modal-backdrop.on { opacity: 1; pointer-events: auto; }
.modal {
	position: fixed;
	left: 50%; top: 50%;
	transform: translate(-50%, -46%) scale(0.98);
	width: min(820px, 94vw);
	max-height: 86vh;
	background: var(--paper);
	border: var(--stroke) solid var(--ink);
	z-index: 51;
	overflow: auto;
	opacity: 0; pointer-events: none;
	transition: opacity .22s, transform .22s;
}
.modal.on {
	opacity: 1; pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
}
.modal .m-head {
	padding: 16px 24px;
	border-bottom: var(--stroke) solid var(--ink);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	position: sticky; top: 0;
	background: var(--paper);
	z-index: 2;
}
.modal .m-close {
	cursor: pointer;
	background: var(--ink);
	color: var(--paper);
	padding: 6px 10px;
	border: 0;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.modal .m-close:hover { background: var(--accent); }
.modal .m-body {
	padding: 28px 40px 48px;
}
.modal .m-art {
	aspect-ratio: 16/9;
	border: var(--stroke) solid var(--ink);
	margin-bottom: 22px;
	position: relative; overflow: hidden;
	background: var(--paper-2);
}
.modal .m-art .cover-slot { position: absolute; inset: 0; }
.modal .m-art .cover-slot svg { width:100%; height:100%; display:block; }
.modal .m-art img { width:100%; height:100%; object-fit:cover; display:block; }
.modal .m-kicker {
	display: block;
	font-family: var(--mono);
	font-size: clamp(15px, 2.4vw, 20px);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--paper);
	background: var(--accent);
	padding: 10px 14px;
	margin-bottom: 22px;
}
.modal .m-dek {
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	margin: 0 0 22px;
	font-weight: 500;
}
.modal p {
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	margin: 0 0 14px;
}
.modal .m-links {
	margin-top: 26px;
	padding-top: 18px;
	border-top: var(--stroke) solid var(--ink);
}
.modal .m-links h6 {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.modal .m-links a {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 2px solid var(--ink);
	text-decoration: none;
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
}
.modal .m-links a:hover { background: var(--accent-2); padding-left: 6px; }
.modal .m-links a span {
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-2);
}
.modal .m-links a .m-link-title { flex: 1; color: var(--ink); font-size: 15px; letter-spacing: 0; text-transform: none; }

/* stripe fallback for covers=placeholder */
.cover-slot.fallback {
	background:
		repeating-linear-gradient(135deg, transparent 0 10px, rgba(0,0,0,0.08) 10px 11px),
		var(--paper-2);
}
body[data-covers="placeholder"] .cover-slot svg { display: none; }
body[data-covers="placeholder"] .cover-slot {
	background:
		repeating-linear-gradient(135deg, transparent 0 10px, rgba(0,0,0,0.08) 10px 11px),
		var(--paper-2);
}
body[data-thumbs="off"] .thumb { display: none; }

/* ------------- SINGLE ISSUE PAGE ------------- */
.single-issue {
	margin-top: var(--gap);
	border: var(--stroke) solid var(--ink);
	background: var(--paper);
}
.single-issue .single-art {
	aspect-ratio: 16/9;
	width: 100%;
	position: relative;
	overflow: hidden;
	border-bottom: var(--stroke) solid var(--ink);
	background: var(--paper-2);
}
.single-issue .single-art .cover-slot { position: absolute; inset: 0; }
.single-issue .single-art .cover-slot svg { width: 100%; height: 100%; display: block; }
.single-issue .single-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-issue .single-body {
	padding: 36px 40px 48px;
	max-width: 820px;
	margin: 0 auto;
}
.single-issue .single-body > h1 {
	font-family: var(--display);
	font-size: clamp(38px, 8vw, 72px);
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: 0;
	text-transform: uppercase;
	margin: 0 0 24px;
}
.single-issue .single-kicker {
	display: inline-block;
	font-family: var(--mono);
	font-size: clamp(15px, 2.4vw, 20px);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--paper);
	background: var(--accent);
	padding: 10px 14px;
	margin-bottom: 22px;
}
.single-issue .single-dek {
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.5;
	font-weight: 500;
	margin: 0 0 22px;
}
.single-issue .single-dek em {
	background: var(--accent-2);
	color: var(--ink);
	font-style: normal;
	padding: 0 4px;
}
.single-issue .single-content { font-size: 18px; line-height: 1.6; }
.single-issue .single-content p { margin: 0 0 14px; }
.single-issue .single-content h2,
.single-issue .single-content h3 {
	font-family: var(--display);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	margin: 28px 0 10px;
}
.single-issue .single-links {
	margin-top: 28px;
	padding-top: 18px;
	border-top: var(--stroke) solid var(--ink);
}
.single-issue .single-links h6 {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.single-issue .single-links .hl-row {
	display: grid;
	grid-template-columns: 38px 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 2px solid var(--ink);
}
.single-issue .single-links .hl-row .n {
	font-family: var(--display);
	font-size: 18px;
	color: var(--accent);
}
.single-issue .single-links .hl-row .t {
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}
.single-issue .single-links .hl-row .src {
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-2);
}

/* ------------- ISSUE SECTIONS (rich) ------------- */
.issue-sections,
.m-sections {
	margin-top: 32px;
	padding-top: 22px;
	border-top: var(--stroke) solid var(--ink);
}
.issue-sections .sections-head,
.m-sections .sections-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
}
.issue-sections .sections-head h6,
.m-sections .sections-head h6 {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0;
}
.issue-sections .sections-count,
.m-sections .sections-count {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-2);
}

/* Each section item: num + source inline, then body stacked below */
.section-item {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 0 18px;
	padding: 28px 0;
	border-bottom: 2px solid var(--ink);
}
.section-item:last-child { border-bottom: 0; }

.section-item .section-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding-top: 4px;
	overflow: hidden;
	min-width: 0;
}
.section-item .section-num {
	font-family: var(--display);
	font-size: 28px;
	line-height: 1;
	color: var(--accent);
}
.section-item .section-source {
	font-family: var(--mono);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-2);
	writing-mode: horizontal-tb;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.section-item .section-body { min-width: 0; }

.section-item .section-title {
	font-family: var(--sans);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
}
.section-item .section-title a {
	color: var(--ink);
	text-decoration: none;
	box-shadow: inset 0 -3px 0 var(--accent-2);
	transition: box-shadow 0.12s ease;
}
.section-item .section-title a:hover { box-shadow: inset 0 -28px 0 var(--accent-2); }

.section-item .section-image {
	aspect-ratio: 16 / 7;
	overflow: hidden;
	border: 2px solid var(--ink);
	margin-bottom: 14px;
}
.section-item .section-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: saturate(0.85) contrast(1.05);
}

.section-item .section-summary {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
	margin: 0 0 12px;
}

.section-item .section-note {
	border-left: 4px solid var(--accent);
	background: var(--paper-2);
	padding: 12px 14px;
	margin: 16px 0;
}
.section-item .section-note-label {
	display: block;
	font-family: var(--mono);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 8px;
}
.section-item .section-note p {
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
	font-style: italic;
}

/* ------------- LINKS ROUNDUP SECTION ------------- */
.section-links {
	padding: 24px 0;
	border-bottom: 2px solid var(--ink);
}
.section-links:last-child { border-bottom: 0; }

.section-links-heading {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--ink);
	display: flex;
	align-items: center;
	gap: 10px;
}
.section-links-heading::before {
	content: '//';
	font-family: var(--mono);
	color: var(--accent);
	font-size: 14px;
}

.section-links-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.section-links-list li {
	border-bottom: 1px solid var(--ink);
	padding: 9px 0;
	font-size: 14px;
	line-height: 1.4;
}
.section-links-list li:last-child { border-bottom: 0; }
.section-links-list a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}
.section-links-list a::after {
	content: '→';
	font-family: var(--mono);
	font-size: 12px;
	color: var(--accent);
	flex-shrink: 0;
	opacity: 0;
	transition: opacity 0.12s;
}
.section-links-list a:hover { color: var(--accent); }
.section-links-list a:hover::after { opacity: 1; }
.section-links-list .link-src {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .04em;
	color: var(--ink-3);
	white-space: nowrap;
	flex-shrink: 0;
}

/* ------------- RESPONSIVE ------------- */
@media (max-width: 880px) {
	.page { padding: 20px 20px 60px; }
	.title { --title-fit-ratio: 7.9; }
	.hero-text { grid-template-columns: 1fr; }
	.hero-body { border-right: 0; border-bottom: var(--stroke) solid var(--ink); }
	.hero-sidebar-clip { overflow: visible; }
	.hero-sidebar { position: static; padding: 28px 40px; }
	.issues { grid-template-columns: 1fr; column-gap: 0; row-gap: 24px; }
	.issue { grid-template-columns: 1fr; grid-template-rows: auto auto; }
	.thumb { grid-column: 1; grid-row: 1; align-self: auto; border-right: 0; border-bottom: var(--stroke) solid var(--ink); }
	.issue h4 { grid-column: 1; grid-row: 2; align-self: auto; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 12px; padding: 14px 20px; }
	.issue-date-sub { margin-top: 0; align-self: auto; text-align: left; }
	.issue-body { grid-column: 1; grid-row: 3; }
	.bottom { grid-template-columns: 1fr; }
	.bottom > div { border-right: 0; border-bottom: var(--stroke) solid var(--ink); }
	.bottom > div:last-child { border-bottom: 0; }
	.topbar .left, .topbar .right { gap: 10px; flex-wrap: wrap; }
	.tagline-row { flex-direction: column; align-items: flex-start; }
	.section-item { grid-template-columns: 36px 1fr; gap: 0 12px; }
	.section-item .section-title { font-size: 19px; }
}

/* ------------- SMALL PHONE ------------- */
@media (max-width: 600px) {
	.page { padding: 16px 14px 48px; }
	.title { --title-fit-ratio: 8.1; }
	.topbar {
		position: static;
		font-size: 10px;
		letter-spacing: 0.08em;
		padding: 8px 0;
	}
	.topbar .left, .topbar .right {
		gap: 10px;
		flex-wrap: nowrap;
		min-width: 0;
	}
	.topbar .left span,
	.topbar .right span { white-space: nowrap; }
	.topbar .left span:nth-child(3),
	.topbar .right span:first-child { display: none; }

	/* Masthead */
	.masthead { padding: 20px 0 16px; }
	.tagline-row { flex-direction: column; align-items: flex-start; gap: 12px; }

	/* Hero */
	.hero-body { padding: 24px 20px; }
	.hero-sidebar { padding: 20px; }
	.hero-text h2 { font-size: 28px; }
	.kicker { font-size: 13px; }
	.byline { font-size: 13px; flex-wrap: wrap; }
	.hero-body .read-cta { font-size: 16px; padding: 16px 20px; }

	/* Hero links */
	.hero-links .hl { grid-template-columns: 28px 1fr; gap: 10px; padding: 8px 0; }
	.hero-links .hl .src { display: none; }
	.hero-links .hl .t { font-size: 14px; -webkit-line-clamp: 1; }

	/* Archive cards */
	.issue-num-hero { font-size: 36px; }
	.issue-date-sub {
		margin-left: auto;
		text-align: right;
	}
	.issue-body { padding: 16px 20px 20px; }

	/* Bottom sections */
	.bottom > div { padding: 24px 20px; }
	.sub-form { flex-direction: column; }
	.sub-form button { width: 100%; }

	/* Pagination */
	.archive-pagination a,
	.archive-pagination span.current,
	.archive-pagination span.dots { min-width: 40px; height: 40px; }
}
