/*
Theme Name: Qollom
Theme URI: https://qollom.com
Author: Qollom
Author URI: https://qollom.com
Description: Qollom — the business of the African screen. A reading-first editorial theme built around The Reel (a continuous, no-dead-ends article queue), The Viewfinder (an aperture navigation overlay) and The Screen Score (dual professional/audience rating). Ink and paper, one cobalt focus accent, and no colour anywhere except the frames themselves.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qollom
Tags: editorial, magazine, news, blog, one-column, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   00  TOKENS
   The palette is deliberately monochrome. Film stills are the only colour on
   the site; cobalt marks focus and nothing else.
   ========================================================================== */

:root {
	--ink: #0e0e0e;
	--ink-soft: #2a2825;
	--paper: #f6f5f1;
	--paper-2: #efece4;
	--rule: #dad6cc;
	--rule-soft: #e6e2d9;
	--dim: #6e6a62;
	--focus: #1b34e8;
	--focus-soft: rgba(27, 52, 232, 0.09);

	--display: "Cormorant Garamond", "Cormorant", "Playfair Display", Georgia, serif;
	--body: "Newsreader", Georgia, "Times New Roman", serif;
	--util: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--rail: 72px;
	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--measure: 34rem;
	--wide: 82rem;

	--t-fast: 160ms cubic-bezier(0.2, 0, 0, 1);
	--t-mid: 320ms cubic-bezier(0.2, 0, 0, 1);
	--t-slow: 720ms cubic-bezier(0.16, 1, 0.3, 1);

	--head-h: 60px;
	color-scheme: light;
}

/* Night gate — the projection-booth inverse. */
[data-gate="night"] {
	--ink: #f2f0ea;
	--ink-soft: #cfcbc2;
	--paper: #0d0d0e;
	--paper-2: #151517;
	--rule: #2b2b2e;
	--rule-soft: #1e1e20;
	--dim: #8b8781;
	--focus: #7f92ff;
	--focus-soft: rgba(127, 146, 255, 0.13);
	color-scheme: dark;
}

/* ==========================================================================
   01  RESET & BASE
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: clamp(1.02rem, 0.98rem + 0.22vw, 1.16rem);
	line-height: 1.62;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background var(--t-mid), color var(--t-mid);
}

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

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

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
}

::selection { background: var(--focus); color: var(--paper); }

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
	border-radius: 1px;
}

.q-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--ink);
	color: var(--paper);
	padding: 0.75rem 1.25rem;
	font-family: var(--util);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.q-skip:focus { left: 0; }

.q-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* ==========================================================================
   02  UTILITY TYPE — the mono voice: labels, timecodes, scores, credits
   ========================================================================== */

.q-util,
.q-eyebrow,
.q-timecode,
.q-byline {
	font-family: var(--util);
	font-size: 0.688rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 400;
}

.q-eyebrow {
	color: var(--focus);
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
}
.q-eyebrow::before {
	content: "";
	width: 1.6em;
	height: 1px;
	background: currentColor;
	flex: none;
}

.q-timecode { color: var(--dim); font-variant-numeric: tabular-nums; letter-spacing: 0.1em; }
.q-byline { color: var(--ink); letter-spacing: 0.12em; }

.q-dot { color: var(--rule); margin: 0 0.55em; }

/* ==========================================================================
   03  LAYOUT SHELL
   ========================================================================== */

.q-shell {
	padding-left: 0;
	transition: padding-left var(--t-mid);
}

.q-wrap {
	width: 100%;
	max-width: var(--wide);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.q-wrap--read {
	max-width: calc(var(--measure) + var(--gutter) * 2);
}

.q-rule {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: 0;
}

/* ==========================================================================
   04  MASTHEAD
   ========================================================================== */

.q-masthead {
	position: fixed;
	inset: 0 0 auto 0;
	height: var(--head-h);
	z-index: 100;
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 2rem);
	padding-inline: clamp(0.9rem, 2.5vw, 1.6rem);
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--rule);
	transition: transform var(--t-mid), opacity var(--t-mid), background var(--t-mid);
}

body.is-focusing .q-masthead { transform: translateY(-101%); }

.q-masthead__mark {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	flex: none;
}
.q-masthead__mark img {
	height: 19px;
	width: auto;
}
[data-gate="night"] img.q-lock-ink { display: none; }
:root:not([data-gate="night"]) img.q-lock-paper { display: none; }

.q-masthead__nav {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}
@media (max-width: 899px) {
	.q-masthead__nav,
	.q-masthead > .q-masthead__strands { display: none; }
}

.q-masthead__strands {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 1.8vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: hidden;
	flex: 1 1 auto;
	min-width: 0;
}
.q-masthead__strands a {
	font-family: var(--util);
	font-size: 0.66rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--dim);
	white-space: nowrap;
	padding-block: 0.4rem;
	transition: color var(--t-fast);
}
.q-masthead__strands a:hover,
.q-masthead__strands .current-menu-item > a { color: var(--ink); }

.q-masthead__tools {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex: none;
	margin-left: auto;
}

.q-icon-btn {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--ink);
	transition: background var(--t-fast), color var(--t-fast);
}
.q-icon-btn:hover { background: var(--paper-2); }
.q-icon-btn svg { width: 17px; height: 17px; }

/* The aperture button — the site's one true navigation object. */
.q-aperture {
	width: 40px;
	height: 40px;
	border: 1px solid var(--ink);
	border-radius: 50%;
	display: grid;
	place-items: center;
	position: relative;
	transition: background var(--t-mid), border-color var(--t-mid);
}
.q-aperture:hover { background: var(--ink); }
.q-aperture:hover .q-aperture__blade { stroke: var(--paper); }
.q-aperture svg { width: 22px; height: 22px; overflow: visible; }
.q-aperture__blade {
	stroke: var(--ink);
	stroke-width: 1.1;
	fill: none;
	transform-origin: 12px 12px;
	transition: transform var(--t-mid), stroke var(--t-mid);
}
.q-aperture[aria-expanded="true"] .q-aperture__blade { transform: rotate(40deg) scale(0.62); }

/* ==========================================================================
   05  THE STRIP — persistent film rail: position, progress, queue
   ========================================================================== */

.q-strip {
	position: fixed;
	top: var(--head-h);
	bottom: 0;
	left: 0;
	width: var(--rail);
	z-index: 55;
	display: none;
	flex-direction: column;
	align-items: center;
	padding-block: 1.1rem 1.4rem;
	border-right: 1px solid var(--rule);
	background: var(--paper);
	transition: transform var(--t-mid), background var(--t-mid);
}

body.is-focusing .q-strip { transform: translateX(-101%); }

.q-strip__label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: var(--util);
	font-size: 0.625rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--dim);
	margin-bottom: 1rem;
	white-space: nowrap;
	overflow: hidden;
	max-height: 12rem;
	text-overflow: ellipsis;
}

/* sprocket track = scroll depth of the current piece */
.q-sprockets {
	position: relative;
	flex: 1 1 auto;
	width: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding-block: 0.25rem;
	min-height: 6rem;
}
.q-sprockets__hole {
	width: 15px;
	height: 9px;
	border: 1px solid var(--rule);
	border-radius: 2px;
	flex: none;
	transition: background var(--t-fast), border-color var(--t-fast);
}
.q-sprockets__hole.is-lit {
	background: var(--focus);
	border-color: var(--focus);
}

.q-strip__pct {
	font-family: var(--util);
	font-size: 0.625rem;
	letter-spacing: 0.06em;
	color: var(--dim);
	font-variant-numeric: tabular-nums;
	margin-top: 0.9rem;
}

.q-strip__gate { margin-top: 0.65rem; }

@media (min-width: 1080px) {
	.q-strip { display: flex; }
	.q-shell { padding-left: var(--rail); }
	body.is-focusing .q-shell { padding-left: 0; }
}

/* mobile progress hairline sits under the masthead */
.q-progress {
	position: fixed;
	top: var(--head-h);
	left: 0;
	height: 2px;
	width: 0;
	background: var(--focus);
	z-index: 61;
	transition: width 90ms linear, transform var(--t-mid);
}
body.is-focusing .q-progress { transform: translateY(calc(-1 * var(--head-h))); }
@media (min-width: 1080px) { .q-progress { display: none; } }

/* ==========================================================================
   06  THE VIEWFINDER — aperture navigation overlay
   ========================================================================== */

.q-viewfinder {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: var(--paper);
	display: grid;
	grid-template-columns: 1fr;
	opacity: 0;
	visibility: hidden;
	clip-path: circle(0% at calc(100% - 3.2rem) 1.9rem);
	transition: clip-path var(--t-slow), opacity 200ms linear, visibility 0s linear 500ms;
}
.q-viewfinder.is-open {
	opacity: 1;
	visibility: visible;
	clip-path: circle(150% at calc(100% - 3.2rem) 1.9rem);
	transition: clip-path var(--t-slow), opacity 200ms linear, visibility 0s;
}

.q-viewfinder__inner {
	overflow-y: auto;
	padding: calc(var(--head-h) + 2.5rem) var(--gutter) 3rem;
	display: grid;
	gap: 2.5rem;
	align-content: start;
}

.q-vf-list { list-style: none; margin: 0; padding: 0; }
.q-vf-list li { border-top: 1px solid var(--rule-soft); }
.q-vf-list li:last-child { border-bottom: 1px solid var(--rule-soft); }

.q-vf-link {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding: clamp(0.5rem, 1.4vw, 0.9rem) 0;
	font-family: var(--display);
	font-size: clamp(2rem, 6vw, 4.25rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--ink);
	transition: color var(--t-fast), padding-left var(--t-mid);
}
.q-vf-link__no {
	font-family: var(--util);
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	color: var(--dim);
	flex: none;
	transform: translateY(-0.35em);
}
.q-vf-link:hover,
.q-vf-link:focus-visible { color: var(--focus); padding-left: 0.75rem; }

.q-vf-aside { display: grid; gap: 1.4rem; align-content: start; }
.q-vf-preview {
	aspect-ratio: 16 / 10;
	background: var(--paper-2);
	border: 1px solid var(--rule);
	position: relative;
	overflow: hidden;
}
.q-vf-preview img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity var(--t-mid);
}
.q-vf-preview img.is-shown { opacity: 1; }

.q-vf-meta { font-size: 0.94rem; color: var(--dim); max-width: 34ch; }

@media (min-width: 900px) {
	.q-viewfinder__inner {
		grid-template-columns: 1.35fr 0.65fr;
		gap: clamp(2rem, 6vw, 5rem);
		align-content: center;
		padding-block: calc(var(--head-h) + 1rem) 2rem;
	}
}

/* ==========================================================================
   07  THE LEAD — front-page hero
   ========================================================================== */

.q-lead {
	padding-top: calc(var(--head-h) + clamp(1.75rem, 5vw, 4rem));
	padding-bottom: clamp(2rem, 5vw, 4rem);
}

.q-lead__grid { display: grid; gap: clamp(1.4rem, 3vw, 2.75rem); }

.q-lead__frame {
	position: relative;
	overflow: hidden;
	background: var(--paper-2);
	border: 1px solid var(--rule);
	aspect-ratio: 4 / 3;
}
.q-lead__frame img { width: 100%; height: 100%; object-fit: cover; }

.q-lead__body { display: grid; gap: 1.1rem; align-content: center; }

.q-lead__title {
	font-size: clamp(2.4rem, 6.5vw, 5.2rem);
	line-height: 1.02;
	letter-spacing: -0.018em;
	font-weight: 500;
}
.q-lead__title a { transition: color var(--t-fast); }
.q-lead__title a:hover { color: var(--focus); }

.q-lead__stand {
	font-size: clamp(1.08rem, 0.98rem + 0.5vw, 1.35rem);
	line-height: 1.48;
	color: var(--ink-soft);
	max-width: 40ch;
	margin: 0;
}

.q-lead__credits {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0;
	padding-top: 0.6rem;
	border-top: 1px solid var(--rule);
}

@media (min-width: 900px) {
	.q-lead__grid { grid-template-columns: 1.02fr 1fr; align-items: stretch; }
	.q-lead__frame { aspect-ratio: auto; min-height: 30rem; }
}

/* ==========================================================================
   08  FRAMES — the card system
   ========================================================================== */

.q-section { padding-block: clamp(2.25rem, 5vw, 4.25rem); }
.q-section + .q-section { padding-top: 0; }

.q-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1.1rem;
	margin-bottom: clamp(1.4rem, 3vw, 2.25rem);
	border-bottom: 1px solid var(--ink);
}
.q-section__title {
	font-size: clamp(1.35rem, 1.1rem + 1vw, 2.05rem);
	letter-spacing: -0.015em;
}
.q-section__more {
	font-family: var(--util);
	font-size: 0.66rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--dim);
	white-space: nowrap;
	transition: color var(--t-fast);
}
.q-section__more:hover { color: var(--focus); }

.q-frames {
	display: grid;
	gap: clamp(1.6rem, 3.2vw, 2.6rem) clamp(1.25rem, 2.4vw, 2.25rem);
	grid-template-columns: 1fr;
}
@media (min-width: 620px) { .q-frames--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px) { .q-frames--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .q-frames--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px) { .q-frames--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .q-frames--4 { grid-template-columns: repeat(4, 1fr); } }

.q-frame { display: grid; gap: 0.85rem; align-content: start; }

.q-frame__still {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--paper-2);
	border: 1px solid var(--rule);
	aspect-ratio: 16 / 10;
}
.q-frame__still img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--t-slow), filter var(--t-mid);
}
.q-frame:hover .q-frame__still img { transform: scale(1.035); }

/* the gate mark — a small registration tick that reads as film perforation */
.q-frame__gate {
	position: absolute;
	left: 0;
	top: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--util);
	font-size: 0.6rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.32rem 0.6rem;
	border-right: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.q-frame__title {
	font-size: clamp(1.28rem, 1.05rem + 0.85vw, 1.72rem);
	line-height: 1.06;
}
.q-frame__title a { transition: color var(--t-fast); }
.q-frame:hover .q-frame__title a { color: var(--focus); }

.q-frame__dek {
	margin: 0;
	font-size: 0.97rem;
	line-height: 1.5;
	color: var(--dim);
	max-width: 46ch;
}

.q-frame__meta { display: flex; flex-wrap: wrap; align-items: center; }

/* compact list variant — for dense strands and archives */
.q-list { list-style: none; margin: 0; padding: 0; }
.q-list__item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.3rem;
	padding-block: clamp(0.9rem, 2vw, 1.35rem);
	border-top: 1px solid var(--rule-soft);
}
.q-list__item:last-child { border-bottom: 1px solid var(--rule-soft); }
.q-list__title { font-size: clamp(1.18rem, 1rem + 0.7vw, 1.55rem); line-height: 1.08; }
.q-list__title a { transition: color var(--t-fast); }
.q-list__title a:hover { color: var(--focus); }
@media (min-width: 760px) {
	.q-list__item { grid-template-columns: 11rem 1fr 7rem; gap: 1.75rem; align-items: baseline; }
	.q-list__no { text-align: left; }
	.q-list__right { text-align: right; }
}

/* ==========================================================================
   09  THE SCREEN SCORE — dual professional / audience dial
   ========================================================================== */

.q-score {
	display: grid;
	gap: 0.9rem;
	padding: 1.15rem 1.25rem;
	border: 1px solid var(--ink);
	background: var(--paper);
}
.q-score__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid var(--rule);
}
.q-score__row { display: grid; gap: 0.4rem; }
.q-score__row-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}
.q-score__val {
	font-family: var(--display);
	font-size: 1.6rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}
.q-score__track {
	position: relative;
	height: 3px;
	background: var(--rule);
}
.q-score__fill {
	position: absolute;
	inset: 0 auto 0 0;
	background: var(--ink);
	width: 0;
	transition: width 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.q-score__row--audience .q-score__fill { background: var(--focus); }
.q-score__note { font-size: 0.85rem; color: var(--dim); margin: 0; }

.q-score--inline {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.2rem 0.5rem;
	border: 1px solid var(--rule);
	font-family: var(--util);
	font-size: 0.66rem;
	letter-spacing: 0.1em;
	font-variant-numeric: tabular-nums;
}
.q-score--inline b { font-weight: 500; }

/* ==========================================================================
   10  THE READING LAYER — deliberately quiet
   ========================================================================== */

.q-article { padding-top: calc(var(--head-h) + clamp(1.5rem, 4vw, 3rem)); }

.q-article__head {
	display: grid;
	gap: 1.1rem;
	padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.q-article__title {
	font-size: clamp(2.1rem, 5vw, 3.8rem);
	line-height: 1.05;
	letter-spacing: -0.012em;
}
.q-article__stand {
	font-size: clamp(1.08rem, 1rem + 0.45vw, 1.32rem);
	line-height: 1.48;
	color: var(--ink-soft);
	margin: 0;
	max-width: 46ch;
}
.q-article__credits {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0;
	padding-top: 0.85rem;
	border-top: 1px solid var(--ink);
}

.q-article__still {
	margin-block: clamp(1.25rem, 3vw, 2rem);
	margin-inline: 0;
	border: 1px solid var(--rule);
	background: var(--paper-2);
}
.q-article__still img { width: 100%; }
.q-caption {
	font-family: var(--util);
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	color: var(--dim);
	padding: 0.55rem 0.7rem;
	border-top: 1px solid var(--rule);
	text-transform: none;
}

.q-prose {
	max-width: var(--measure);
	margin-inline: auto;
	font-size: clamp(1.06rem, 1rem + 0.3vw, 1.19rem);
	line-height: 1.68;
}
.q-prose > * + * { margin-top: 1.35em; }
.q-prose p { margin: 0; }

.q-prose > p:first-of-type::first-letter {
	font-family: var(--display);
	font-size: 3.3em;
	float: left;
	line-height: 0.82;
	padding: 0.04em 0.09em 0 0;
	font-weight: 500;
}

.q-prose h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
	margin-top: 2.1em;
	line-height: 1.08;
}
.q-prose h3 {
	font-family: var(--util);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dim);
	margin-top: 2.2em;
	font-weight: 400;
}
.q-prose a {
	color: var(--ink);
	background-image: linear-gradient(var(--focus), var(--focus));
	background-size: 100% 1px;
	background-repeat: no-repeat;
	background-position: 0 92%;
	transition: color var(--t-fast), background-size var(--t-fast);
}
.q-prose a:hover { color: var(--focus); background-size: 100% 2px; }

.q-prose blockquote {
	margin: 2em 0;
	padding: 0;
	border: 0;
	font-family: var(--display);
	font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.15rem);
	line-height: 1.16;
	letter-spacing: -0.018em;
}
.q-prose blockquote p { margin: 0; }
.q-prose blockquote cite {
	display: block;
	margin-top: 0.7rem;
	font-family: var(--util);
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-style: normal;
	color: var(--dim);
}

.q-prose figure { margin: 2em 0; }
.q-prose figcaption {
	font-family: var(--util);
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	color: var(--dim);
	margin-top: 0.55rem;
}
.q-prose ul,
.q-prose ol { padding-left: 1.15em; margin-block: 1.35em; }
.q-prose li + li { margin-top: 0.5em; }
.q-prose hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin-block: 2.4em;
}
.q-prose img { border: 1px solid var(--rule); }
.q-prose code {
	font-family: var(--util);
	font-size: 0.86em;
	background: var(--paper-2);
	padding: 0.1em 0.35em;
}
.q-prose pre {
	background: var(--paper-2);
	border: 1px solid var(--rule);
	padding: 1rem;
	overflow-x: auto;
	font-family: var(--util);
	font-size: 0.86rem;
	line-height: 1.55;
}
.q-prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.q-prose th,
.q-prose td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--rule-soft); }
.q-prose th { font-family: var(--util); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* block editor alignments */
.q-prose .alignwide { max-width: min(64rem, 92vw); margin-inline: calc(50% - min(32rem, 46vw)); }
.q-prose .alignfull { max-width: 100vw; margin-inline: calc(50% - 50vw); }
.q-prose .alignleft { float: left; margin: 0.4em 1.6em 1.2em 0; max-width: 46%; }
.q-prose .alignright { float: right; margin: 0.4em 0 1.2em 1.6em; max-width: 46%; }
.q-prose .aligncenter { margin-inline: auto; }
.wp-caption-text { font-family: var(--util); font-size: 0.66rem; color: var(--dim); }

.q-article__foot {
	max-width: var(--measure);
	margin: clamp(2.25rem, 5vw, 3.5rem) auto 0;
	padding-top: 1.35rem;
	border-top: 1px solid var(--ink);
	display: grid;
	gap: 1.1rem;
}

.q-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.q-tag {
	font-family: var(--util);
	font-size: 0.63rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	border: 1px solid var(--rule);
	padding: 0.3rem 0.55rem;
	color: var(--dim);
	transition: border-color var(--t-fast), color var(--t-fast);
}
.q-tag:hover { border-color: var(--focus); color: var(--focus); }

/* ==========================================================================
   11  THE REEL — continuous next-article queue
   ========================================================================== */

.q-reel-sep {
	margin-top: clamp(3rem, 8vw, 6rem);
	padding-block: 1rem;
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--rule);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	position: relative;
}
.q-reel-sep__no { font-variant-numeric: tabular-nums; }

.q-reel-cue {
	position: fixed;
	right: clamp(0.9rem, 2.5vw, 1.6rem);
	bottom: clamp(0.9rem, 2.5vw, 1.6rem);
	z-index: 58;
	max-width: min(21rem, calc(100vw - 2rem));
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	gap: 0.85rem;
	align-items: center;
	padding: 0.7rem;
	background: var(--paper);
	border: 1px solid var(--ink);
	transform: translateY(140%);
	opacity: 0;
	transition: transform var(--t-slow), opacity var(--t-mid);
	text-align: left;
}
.q-reel-cue.is-up { transform: translateY(0); opacity: 1; }
.q-reel-cue img { width: 4.5rem; height: 3.2rem; object-fit: cover; background: var(--paper-2); }
.q-reel-cue__t {
	font-family: var(--display);
	font-size: 1.02rem;
	line-height: 1.12;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
body.is-focusing .q-reel-cue { transform: translateY(140%); opacity: 0; }

.q-reel__spinner {
	display: grid;
	place-items: center;
	padding: 3rem 0;
	font-family: var(--util);
	font-size: 0.66rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--dim);
}

/* ==========================================================================
   12  FOOTER
   ========================================================================== */

.q-footer {
	margin-top: clamp(3rem, 7vw, 5.5rem);
	border-top: 1px solid var(--ink);
	background: var(--paper);
	padding-block: clamp(2.25rem, 5vw, 3.5rem) 2rem;
}
.q-footer__grid {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	grid-template-columns: 1fr;
}
@media (min-width: 760px) { .q-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.q-footer__mark img { height: 26px; width: auto; margin-bottom: 0.9rem; }
.q-footer__line { font-size: 0.95rem; color: var(--dim); max-width: 34ch; margin: 0; }

.q-footer h4 {
	font-family: var(--util);
	font-size: 0.66rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dim);
	font-weight: 400;
	margin-bottom: 0.85rem;
}
.q-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.q-footer ul a { font-size: 0.95rem; transition: color var(--t-fast); }
.q-footer ul a:hover { color: var(--focus); }

.q-colophon {
	margin-top: clamp(2rem, 5vw, 3rem);
	padding-top: 1.1rem;
	border-top: 1px solid var(--rule);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
}

/* ==========================================================================
   13  FORMS, SEARCH, PAGINATION, 404
   ========================================================================== */

.q-field {
	display: flex;
	border-bottom: 1px solid var(--ink);
	gap: 0.5rem;
	align-items: center;
}
.q-field input[type="search"],
.q-field input[type="email"],
.q-field input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	background: none;
	border: 0;
	padding: 0.7rem 0;
	font-family: var(--body);
	font-size: 1.02rem;
	color: var(--ink);
}
.q-field input::placeholder { color: var(--dim); opacity: 1; }
.q-field input:focus { outline: none; }
.q-field:focus-within { border-color: var(--focus); }
.q-field button {
	font-family: var(--util);
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dim);
	padding: 0.4rem 0;
	transition: color var(--t-fast);
}
.q-field button:hover { color: var(--focus); }

.q-pager {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: clamp(2rem, 5vw, 3.25rem);
	flex-wrap: wrap;
}
.q-pager .page-numbers {
	font-family: var(--util);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--rule);
	color: var(--dim);
	transition: all var(--t-fast);
}
.q-pager .page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.q-pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.q-hero-min {
	padding-top: calc(var(--head-h) + clamp(2.5rem, 8vw, 6rem));
	padding-bottom: clamp(1.75rem, 4vw, 3rem);
	display: grid;
	gap: 1rem;
	border-bottom: 1px solid var(--ink);
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.q-hero-min h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); letter-spacing: -0.026em; }
.q-hero-min p { margin: 0; color: var(--dim); max-width: 44ch; }

/* ==========================================================================
   14  COMMENTS
   ========================================================================== */

.q-comments { max-width: var(--measure); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; }
.q-comments h2 {
	font-family: var(--util);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dim);
	font-weight: 400;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--ink);
}
.q-comments ol { list-style: none; margin: 0; padding: 0; }
.q-comments .comment-body { padding-block: 1.25rem; border-bottom: 1px solid var(--rule-soft); }
.q-comments .children { padding-left: 1.5rem; border-left: 1px solid var(--rule-soft); }
.q-comments .comment-author { font-family: var(--util); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; }
.q-comments .comment-author img { display: none; }
.q-comments .comment-metadata { font-family: var(--util); font-size: 0.63rem; color: var(--dim); margin-bottom: 0.5rem; }
.q-comments textarea {
	width: 100%;
	background: none;
	border: 1px solid var(--rule);
	padding: 0.8rem;
	font-family: var(--body);
	font-size: 1rem;
	color: var(--ink);
	min-height: 8rem;
}
.q-comments textarea:focus { outline: none; border-color: var(--focus); }
.q-comments .submit {
	font-family: var(--util);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: var(--ink);
	color: var(--paper);
	border: 0;
	padding: 0.75rem 1.4rem;
	cursor: pointer;
}
.q-comments .comment-form-cookies-consent { font-size: 0.85rem; color: var(--dim); }

/* ==========================================================================
   15  FOCUS MODE — the aperture closes on everything but the words
   ========================================================================== */

body.is-focusing { --paper-2: color-mix(in srgb, var(--paper) 94%, var(--ink)); }
body.is-focusing .q-article { padding-top: clamp(2.5rem, 7vw, 5rem); }
body.is-focusing .q-footer,
body.is-focusing .q-reel-sep,
body.is-focusing .q-comments { display: none; }
body.is-focusing .q-prose { font-size: clamp(1.12rem, 1.02rem + 0.4vw, 1.28rem); }

.q-focus-exit {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 70;
	font-family: var(--util);
	font-size: 0.63rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dim);
	border: 1px solid var(--rule);
	padding: 0.4rem 0.7rem;
	background: var(--paper);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--t-mid);
}
body.is-focusing .q-focus-exit { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   16  MOTION & PRINT
   ========================================================================== */

.q-rise {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}
.q-rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.q-rise { opacity: 1; transform: none; }
	.q-viewfinder { clip-path: none; }
}

@media print {
	.q-masthead, .q-strip, .q-viewfinder, .q-reel-cue, .q-progress,
	.q-footer, .q-reel-sep, .q-comments, .q-focus-exit { display: none !important; }
	body { background: #fff; color: #000; }
	.q-shell { padding-left: 0; }
	.q-article { padding-top: 0; }
}

/* WordPress core classes */
.sticky, .gallery-caption, .bypostauthor { }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}
.wp-block-image figcaption { font-family: var(--util); font-size: 0.66rem; color: var(--dim); }
.admin-bar .q-masthead { top: 32px; }
.admin-bar .q-strip { top: calc(var(--head-h) + 32px); }
.admin-bar .q-progress { top: calc(var(--head-h) + 32px); }
@media screen and (max-width: 782px) {
	.admin-bar .q-masthead { top: 46px; }
	.admin-bar .q-strip { top: calc(var(--head-h) + 46px); }
	.admin-bar .q-progress { top: calc(var(--head-h) + 46px); }
}

/* ==========================================================================
   17  REEL SEAMS
   The first piece on a page is the one the reader chose; it gets no seam.
   ========================================================================== */

[data-reel-item]:first-child > .q-reel-sep { display: none; }
[data-reel-item] + [data-reel-item] { padding-top: 0; }
[data-reel-item] + [data-reel-item] .q-article__title { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
