/*
Theme Name: ODDR News
Theme URI: https://news.oddr.org
Author: ODDR Group Pty Ltd
Author URI: https://oddr.org
Description: Editorial theme for news.oddr.org, built to match the ODDR brand system: Fraunces display serif, Sora body, IBM Plex Mono labels, and the blue-to-orange provenance gradient. Magazine-style index, long-form article layout, and an article provenance strip.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oddr-news
Tags: blog, news, editorial, one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design tokens, mirrored from oddr.org/creators
   ========================================================================== */

:root {
	/* Surfaces */
	--bg: #fafaf7;
	--bg-warm: #f5f3ee;
	--bg-card: #ffffff;
	--bg-card-alt: #f0ede6;
	--bg-ink: #1a1a2e;

	/* Brand */
	--blue: #1db4db;
	--blue-light: #e8f7fb;
	--blue-mid: #b0e4f1;
	--orange: #ff9a3b;
	--orange-light: #fff3e8;
	--orange-mid: #ffd4a8;

	/* Type */
	--text: #1a1a2e;
	--text-secondary: #5a5a72;
	--text-muted: #9a9aae;
	--text-on-ink: #e8e8f0;
	--text-on-ink-muted: #8b8ca0;

	/* Lines */
	--border: rgba(0, 0, 0, 0.06);
	--border-strong: rgba(0, 0, 0, 0.1);
	--border-on-ink: rgba(255, 255, 255, 0.08);

	/* Gradients */
	--gradient: linear-gradient(135deg, #1db4db, #ff9a3b);
	--gradient-soft: linear-gradient(135deg, #e8f7fb, #fff3e8);

	/* Elevation */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
	--shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);

	/* Fonts */
	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	/* Shape */
	--radius: 16px;
	--radius-sm: 10px;
	--radius-pill: 100px;

	/* Layout */
	--wrap: 1200px;
	--wrap-narrow: 720px;
	--nav-height: 65px;

	/* Motion */
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-height) + 24px);
}

@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;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 900;
	color: var(--text);
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	font-optical-sizing: auto;
}

p {
	margin: 0 0 1.4em;
}

a {
	color: var(--text);
	text-decoration-color: var(--blue-mid);
	text-underline-offset: 3px;
	transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

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

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

figure {
	margin: 0;
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 3rem 0;
}

blockquote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.75rem;
	border-left: 3px solid var(--blue);
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 500;
	font-style: italic;
	line-height: 1.45;
	color: var(--text);
}

blockquote cite,
blockquote .wp-block-quote__citation {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

code,
kbd,
pre,
samp {
	font-family: var(--font-mono);
	font-size: 0.875em;
}

code {
	background: var(--bg-card-alt);
	padding: 0.15em 0.4em;
	border-radius: 4px;
}

pre {
	background: var(--bg-ink);
	color: var(--text-on-ink);
	padding: 1.5rem;
	border-radius: var(--radius-sm);
	overflow-x: auto;
	line-height: 1.6;
}

pre code {
	background: none;
	padding: 0;
	color: inherit;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 2rem 0;
	font-size: 0.9375rem;
}

th,
td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

th {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
	font-weight: 500;
}

::selection {
	background: var(--blue-mid);
	color: var(--text);
}

/* ==========================================================================
   3. Utilities
   ========================================================================== */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 24px;
}

.wrap--narrow {
	max-width: var(--wrap-narrow);
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip-path: none;
	background: var(--bg-card);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	color: var(--text);
	display: block;
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	height: auto;
	left: 24px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 16px;
	width: auto;
	z-index: 100000;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Mono eyebrow label: the site's signature small-caps device */
.label {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.65rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 1rem;
	line-height: 1.4;
}

.label--accent {
	color: var(--blue);
}

/* Gradient italic "pop", as used in the oddr.org hero */
.pop {
	font-style: italic;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--blue);
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-sm);
	padding: 8px 18px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--text-secondary);
}

.pill__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--orange);
	flex: none;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.025em;
	line-height: 1.2;
	padding: 14px 32px;
	border-radius: var(--radius-pill);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
	transform: translateY(-2px);
}

.btn--primary {
	background: var(--gradient);
	color: #fff;
	box-shadow: 0 4px 20px rgba(29, 180, 219, 0.25);
}

.btn--primary:hover {
	color: #fff;
	box-shadow: 0 10px 30px rgba(29, 180, 219, 0.32);
}

.btn--ghost {
	background: var(--bg-card);
	border-color: var(--border-strong);
	color: var(--text);
	box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
	color: var(--text);
	border-color: var(--blue);
	box-shadow: var(--shadow-md);
}

.btn--on-ink {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--border-on-ink);
	color: var(--text-on-ink);
}

.btn--on-ink:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.btn--sm {
	padding: 10px 22px;
	font-size: 0.875rem;
}

/* ==========================================================================
   5. Site header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 250, 247, 0.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: var(--nav-height);
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	flex: none;
	text-decoration: none;
	color: var(--text);
}

/* No underline under the mark; the base link rule would otherwise draw one. */
.site-brand a {
	text-decoration: none;
}

.site-brand__logo {
	display: block;
	line-height: 0;
}

.site-brand__logo img {
	height: 30px;
	max-height: 30px;
	width: auto;
}

.site-brand__title {
	font-family: var(--font-display);
	font-size: 1.375rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0;
}

/* Section marker: "ODDR / News" */
.site-brand__section {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-muted);
	padding-left: 0.625rem;
	margin-left: 0.125rem;
	border-left: 1px solid var(--border-strong);
	align-self: center;
	line-height: 1.2;
}

.site-nav {
	margin-left: auto;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--text-secondary);
	text-decoration: none;
	position: relative;
	padding: 0.25rem 0;
	white-space: nowrap;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-post-ancestor > a,
.site-nav .current-menu-parent > a {
	color: var(--text);
}

.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after,
.site-nav .current-post-ancestor > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	border-radius: 2px;
	background: var(--gradient);
}

/* Sub-menus */
.site-nav li {
	position: relative;
}

.site-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: -1rem;
	min-width: 200px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0.5rem;
	margin-top: 0.5rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
	display: flex;
}

.site-nav .sub-menu a {
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	font-size: 0.875rem;
}

.site-nav .sub-menu a:hover {
	background: var(--bg-warm);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: none;
}

.site-header__actions .btn {
	white-space: nowrap;
}

/* Search toggle */
.search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--text-secondary);
	cursor: pointer;
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.search-toggle:hover {
	color: var(--blue);
	border-color: var(--blue-mid);
}

.header-search {
	display: none;
	padding: 0 0 1.25rem;
}

.header-search.is-open {
	display: block;
}

/* Mobile toggle */
/* Lives inside .site-header__actions, so it is always in the right hand
   control group rather than floating into the middle of a space-between row.
   Sized to match .search-toggle beside it. */
.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--bg-card);
	color: var(--text);
	cursor: pointer;
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover {
	color: var(--blue);
	border-color: var(--blue-mid);
}

/* The bars are wrapped so the sibling .screen-reader-text is not styled as one. */
.nav-toggle__bars {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 16px;
}

.nav-toggle__bars span {
	display: block;
	height: 2px;
	width: 100%;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1024px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-header__actions {
		gap: 0.5rem;
	}

	.site-nav {
		display: none;
		width: 100%;
		order: 3;
		padding-bottom: 1.25rem;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-header__inner {
		flex-wrap: wrap;
		padding-top: 0.5rem;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav > ul > li > a {
		display: block;
		padding: 0.875rem 0;
		border-bottom: 1px solid var(--border);
		font-size: 1rem;
	}

	.site-nav .sub-menu {
		display: flex;
		position: static;
		box-shadow: none;
		border: 0;
		margin: 0;
		padding: 0 0 0 1rem;
		background: none;
	}

	.site-header__actions .btn {
		display: none;
	}
}

/* ==========================================================================
   6. Page header / hero
   ========================================================================== */

.page-hero {
	position: relative;
	padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
	background:
		radial-gradient(90% 120% at 85% 0%, rgba(232, 247, 251, 0.9), transparent 60%),
		radial-gradient(80% 110% at 0% 100%, rgba(255, 243, 232, 0.85), transparent 60%);
	border-bottom: 1px solid var(--border);
	overflow: hidden;
}

.page-hero__title {
	font-size: clamp(2.5rem, 6vw, 4rem);
	margin: 0 0 1rem;
	max-width: 18ch;
}

.page-hero__desc {
	font-size: clamp(1rem, 2vw, 1.1875rem);
	color: var(--text-secondary);
	max-width: 60ch;
	margin: 0;
}

/* ==========================================================================
   7. Sections
   ========================================================================== */

.section {
	padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--warm {
	background: var(--bg-warm);
}

.section--ink {
	background: var(--bg-ink);
	color: var(--text-on-ink);
}

.section--ink h1,
.section--ink h2,
.section--ink h3 {
	color: #fff;
}

.section--ink .label {
	color: var(--blue);
}

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
	flex-wrap: wrap;
}

.section__title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	margin: 0;
}

.section__link {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-secondary);
	text-decoration: none;
	white-space: nowrap;
	padding-bottom: 0.4rem;
}

.section__link:hover {
	color: var(--blue);
}

/* ==========================================================================
   8. Featured / lead article
   ========================================================================== */

.lead {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
}

.lead__media {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--gradient-soft);
	box-shadow: var(--shadow-lg);
	aspect-ratio: 16 / 10;
	order: 2;
}

.lead__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.lead:hover .lead__media img {
	transform: scale(1.03);
}

.lead__body {
	order: 1;
}

.lead__title {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	line-height: 1.06;
	margin: 0 0 1rem;
}

.lead__title a {
	text-decoration: none;
	background-image: var(--gradient);
	background-size: 0% 2px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.4s var(--ease);
}

.lead__title a:hover {
	color: var(--text);
	background-size: 100% 2px;
}

.lead__excerpt {
	font-size: 1.0625rem;
	color: var(--text-secondary);
	margin: 0 0 1.5rem;
	max-width: 52ch;
}

@media (max-width: 860px) {
	.lead {
		grid-template-columns: 1fr;
	}

	.lead__media {
		order: 1;
	}

	.lead__body {
		order: 2;
	}
}

/* ==========================================================================
   9. Card grid
   ========================================================================== */

.grid {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.25rem);
}

.grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 980px) {
	.grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.grid--3,
	.grid--2 {
		grid-template-columns: 1fr;
	}
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
	height: 100%;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--blue-mid);
}

.card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--gradient-soft);
	overflow: hidden;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.card:hover .card__media img {
	transform: scale(1.04);
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 28px;
	gap: 0.5rem;
}

.card__title {
	font-size: 1.3125rem;
	line-height: 1.25;
	margin: 0;
}

.card__title a {
	text-decoration: none;
}

.card__excerpt {
	color: var(--text-secondary);
	font-size: 0.9375rem;
	margin: 0.25rem 0 0;
}

.card__foot {
	margin-top: auto;
	padding-top: 1.25rem;
}

/* Compact list variant, used in sidebars and "related" strips */
.card--flat {
	background: none;
	border: 0;
	box-shadow: none;
	border-radius: 0;
	flex-direction: row;
	gap: 1rem;
	align-items: flex-start;
}

.card--flat:hover {
	transform: none;
	box-shadow: none;
}

.card--flat .card__media {
	flex: none;
	width: 84px;
	aspect-ratio: 1;
	border-radius: var(--radius-sm);
}

.card--flat .card__body {
	padding: 0;
	gap: 0.35rem;
}

.card--flat .card__title {
	font-size: 1rem;
	line-height: 1.3;
}

/* ==========================================================================
   10. Post meta & category badges
   ========================================================================== */

.meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 0.875rem;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
	line-height: 1.4;
}

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

.meta a:hover {
	color: var(--blue);
}

.meta__sep {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
	flex: none;
}

.cat-badge {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: var(--radius-pill);
	background: var(--blue-light);
	color: #0f7f9c;
	text-decoration: none;
	line-height: 1.3;
	transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.cat-badge:hover {
	background: var(--blue-mid);
	color: #0b5e74;
}

/* Alternating accent so category rows don't read as one block of blue */
.cat-badge--alt {
	background: var(--orange-light);
	color: #a85c10;
}

.cat-badge--alt:hover {
	background: var(--orange-mid);
	color: #85480a;
}

.cat-badge--ink {
	background: rgba(29, 180, 219, 0.14);
	color: var(--blue);
}

.badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

/* Author */
.byline {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.byline__avatar img {
	border-radius: 50%;
	display: block;
}

.byline__name {
	display: block;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--text);
	line-height: 1.3;
	text-decoration: none;
}

.byline__name:hover {
	color: var(--blue);
}

.byline__meta {
	display: block;
	margin-top: 0.15rem;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

/* ==========================================================================
   11. Single article
   ========================================================================== */

.article-head {
	padding: clamp(3rem, 7vw, 5rem) 0 2rem;
	background:
		radial-gradient(70% 120% at 80% -10%, rgba(232, 247, 251, 0.75), transparent 65%),
		radial-gradient(60% 100% at 5% 110%, rgba(255, 243, 232, 0.6), transparent 65%);
}

/* Shares the outer wrap so the title, hero image and body all share a left edge. */
.article-head__inner {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 24px;
}

/* No sidebar: the body column narrows, so the head narrows with it. */
.article-head--narrow .article-head__inner {
	max-width: var(--wrap-narrow);
}

.article-title {
	font-size: clamp(2.25rem, 5.5vw, 3.5rem);
	line-height: 1.05;
	margin: 0 0 1.25rem;
	max-width: 22ch;
}

.article-standfirst {
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
	line-height: 1.6;
	color: var(--text-secondary);
	margin: 0 0 2rem;
	max-width: 56ch;
}

.article-byline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.article-hero {
	max-width: var(--wrap);
	margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
	padding-inline: 24px;
}

.article-hero figure {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	background: var(--gradient-soft);
}

.article-hero img {
	width: 100%;
}

.article-hero figcaption,
.wp-block-image figcaption,
.wp-caption-text {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--text-muted);
	padding: 0.875rem 0 0;
	text-align: left;
	margin: 0;
}

.article-hero figcaption {
	padding-inline: 4px;
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(2.5rem, 6vw, 4.5rem);
	align-items: start;
	max-width: var(--wrap);
	margin-inline: auto;
	padding: 0 24px clamp(3rem, 7vw, 5rem);
}

.article-layout--full {
	grid-template-columns: minmax(0, 1fr);
	max-width: var(--wrap-narrow);
}

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

/* Body typography: the reading experience */
.entry-content {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: #2c2c42;
	max-width: 68ch;
}

.entry-content > * {
	margin-block: 0 1.5em;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-top: 2.5em;
	margin-bottom: 0.6em;
}

.entry-content h3 {
	font-size: clamp(1.25rem, 2.4vw, 1.5rem);
	margin-top: 2em;
	margin-bottom: 0.5em;
}

.entry-content h4 {
	font-size: 1.125rem;
	margin-top: 1.75em;
	margin-bottom: 0.5em;
}

.entry-content a {
	color: #0f7f9c;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--blue-mid);
}

.entry-content a:hover {
	color: var(--blue);
	text-decoration-color: var(--blue);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35em;
}

.entry-content li {
	margin-bottom: 0.6em;
}

.entry-content li::marker {
	color: var(--blue);
}

.entry-content img,
.entry-content .wp-block-image img {
	border-radius: var(--radius-sm);
}

/* First paragraph gets a lift, as on the marketing pages */
.entry-content > p:first-of-type {
	font-size: 1.1875rem;
	line-height: 1.7;
	color: var(--text-secondary);
}

/* Block alignment */
.alignwide {
	width: min(100vw - 48px, 1000px);
	max-width: none;
	margin-inline: calc(50% - min(50vw - 24px, 500px));
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.alignleft {
	float: left;
	margin: 0.5rem 2rem 1.5rem 0;
	max-width: 45%;
}

.alignright {
	float: right;
	margin: 0.5rem 0 1.5rem 2rem;
	max-width: 45%;
}

.aligncenter {
	margin-inline: auto;
	text-align: center;
}

@media (max-width: 980px) {
	.alignwide,
	.alignfull {
		width: auto;
		margin-inline: 0;
	}
}

/* Pull-quote block */
.wp-block-pullquote {
	border: 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 2.5rem 0;
	text-align: left;
}

.wp-block-pullquote blockquote {
	border: 0;
	padding: 0;
	margin: 0;
	font-size: clamp(1.375rem, 3vw, 1.75rem);
}

/* Article footer bits */
.article-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.tag-link {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 6px 13px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-pill);
	color: var(--text-secondary);
	text-decoration: none;
}

.tag-link:hover {
	border-color: var(--blue);
	color: var(--blue);
}

/* Share row */
.share {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--border-strong);
	background: var(--bg-card);
	color: var(--text-secondary);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s var(--ease);
}

.share__btn:hover {
	color: #fff;
	background: var(--text);
	border-color: var(--text);
	transform: translateY(-2px);
}

/* Author box */
.author-box {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	margin-top: 3rem;
	padding: 28px;
	background: var(--bg-warm);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.author-box__avatar img {
	border-radius: 50%;
	flex: none;
}

.author-box__name {
	font-size: 1.125rem;
	margin: 0 0 0.35rem;
}

.author-box__bio {
	font-size: 0.9375rem;
	color: var(--text-secondary);
	margin: 0;
}

/* Reading progress bar */
.progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: var(--gradient);
	z-index: 200;
	transition: width 0.1s linear;
	pointer-events: none;
}

/* ---- Article provenance strip -------------------------------------------
   Editorial metadata panel. Display-only by default; see README for wiring
   it to real Content Credentials data.
   ------------------------------------------------------------------------- */

.provenance {
	margin-top: 3rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-card);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.provenance__bar {
	height: 3px;
	background: var(--gradient);
}

.provenance__inner {
	padding: 24px 28px;
}

.provenance__head {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.25rem;
}

.provenance__icon {
	color: var(--blue);
	flex: none;
}

.provenance__title {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-secondary);
	font-weight: 500;
}

.provenance__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1.25rem;
}

.provenance__key {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.625rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 0.35rem;
}

.provenance__val {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text);
	word-break: break-word;
}

.provenance__note {
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.provenance__note a {
	color: var(--text-secondary);
}

/* ==========================================================================
   11b. Alternate article styles
   Five layouts share one renderer; only the masthead and column geometry
   change. Selectable per post from the editor's Template panel.
   ========================================================================== */

/* Give every full width layout the column itself as the measure. */
.article-layout--full .entry-content {
	max-width: none;
}

/* ---- Immersive ---------------------------------------------------------- */

.hero-immersive {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(78vh, 760px);
	padding: clamp(4rem, 10vw, 7rem) 0 clamp(2.5rem, 5vw, 3.5rem);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	background-color: var(--bg-ink);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.hero-immersive::after {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--gradient);
	z-index: 2;
}

.hero-immersive__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 15, 0.2) 0%, rgba(10, 10, 15, 0.7) 55%, rgba(10, 10, 15, 0.95) 100%);
}

.hero-immersive__inner {
	position: relative;
	z-index: 1;
}

.hero-immersive__title {
	color: #fff;
	font-size: clamp(2.5rem, 6.5vw, 4.5rem);
	line-height: 1.02;
	max-width: 20ch;
	margin: 0 0 1.25rem;
}

.hero-immersive__standfirst {
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(1.0625rem, 2vw, 1.3125rem);
	max-width: 56ch;
	margin: 0 0 2rem;
}

.byline--on-ink .byline__name {
	color: #fff;
}

.byline--on-ink .byline__name:hover {
	color: var(--blue-mid);
}

.byline--on-ink .byline__meta {
	color: rgba(255, 255, 255, 0.6);
}

/* Body column runs the full wrap so its left edge lines up with the hero
   title, with the reading measure capped inside it. */
.article-layout.article-layout--immersive {
	max-width: var(--wrap);
}

.article-layout--immersive > div {
	max-width: 800px;
}

/* ---- Brief -------------------------------------------------------------- */

.article--brief {
	background: var(--bg-warm);
	padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.head-brief {
	padding: clamp(2.5rem, 6vw, 4rem) 0 1.75rem;
}

/* Match the boxed body below it. */
.head-brief .wrap {
	max-width: 840px;
}

.head-brief__kicker {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.head-brief__kicker .badge-row {
	margin: 0;
}

.head-brief__title {
	font-size: clamp(1.875rem, 4vw, 2.75rem);
	line-height: 1.1;
	margin: 0 0 1rem;
	max-width: 26ch;
}

.head-brief__standfirst {
	font-size: 1.0625rem;
	color: var(--text-secondary);
	margin: 0 0 1.5rem;
	max-width: 56ch;
}

.article-layout.article-layout--brief {
	max-width: 840px;
	padding-bottom: 0;
}

.article-layout--brief > div {
	position: relative;
	overflow: hidden;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.article-layout--brief > div::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--gradient);
}

.entry-content--brief {
	font-size: 1rem;
}

.entry-content--brief > p:first-of-type {
	font-size: 1.0625rem;
}

/* ---- Interview ---------------------------------------------------------- */

.head-interview {
	padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
	background:
		radial-gradient(70% 130% at 90% 0%, rgba(255, 243, 232, 0.9), transparent 62%),
		radial-gradient(60% 110% at 0% 100%, rgba(232, 247, 251, 0.8), transparent 62%);
}

.head-interview__inner {
	display: grid;
	grid-template-columns: 1.4fr 0.6fr;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
}

.head-interview__title {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	line-height: 1.06;
	margin: 0 0 1.25rem;
}

.head-interview__standfirst {
	font-size: clamp(1.0625rem, 2vw, 1.1875rem);
	color: var(--text-secondary);
	max-width: 50ch;
	margin: 0 0 2rem;
}

.head-interview__portrait {
	aspect-ratio: 4 / 5;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	background: var(--gradient-soft);
}

.head-interview__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 820px) {
	.head-interview__inner {
		grid-template-columns: 1fr;
	}

	.head-interview__portrait {
		aspect-ratio: 16 / 10;
		order: -1;
	}
}

/* Opening quote mark sets the tone before the first question. */
.entry-content--interview::before {
	content: "\201C";
	display: block;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 5.5rem;
	line-height: 0.6;
	color: var(--blue-mid);
	margin-bottom: 1.25rem;
}

/* Paragraphs that open with a bold speaker name become labelled turns. */
.entry-content--interview > p > strong:first-child {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 0.4rem;
}

.entry-content--interview > p:has(> strong:first-child) {
	padding-left: 1.5rem;
	border-left: 2px solid var(--blue-mid);
}

/* Left edge lines up with the masthead title in the grid above. */
.article-layout.article-layout--interview {
	max-width: var(--wrap);
}

.article-layout--interview > div {
	max-width: 800px;
}

/* ---- Long read ---------------------------------------------------------- */

.head-longread {
	padding-top: clamp(3rem, 7vw, 5rem);
	background:
		radial-gradient(80% 120% at 50% 0%, rgba(232, 247, 251, 0.7), transparent 65%);
}

.head-longread__inner {
	text-align: center;
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

.head-longread__inner .badge-row {
	justify-content: center;
}

.head-longread__title {
	font-size: clamp(2.25rem, 6vw, 4rem);
	line-height: 1.03;
	max-width: 20ch;
	margin: 0 auto 1.25rem;
}

.head-longread__standfirst {
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
	color: var(--text-secondary);
	max-width: 52ch;
	margin: 0 auto 2rem;
}

.head-longread__byline {
	display: flex;
	justify-content: center;
}

.head-longread__media {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.head-longread__media img {
	width: 100%;
	max-height: clamp(320px, 52vh, 620px);
	object-fit: cover;
}

.head-longread__media figcaption {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--text-muted);
	padding-top: 0.875rem;
}

/* Keeps the same measure as the centred masthead above. */
.entry-content--longread {
	font-size: 1.1875rem;
	line-height: 1.85;
	counter-reset: oddr-section;
}

/* No grey lede here; the drop cap is doing the work instead. */
.entry-content--longread > p:first-of-type {
	font-size: 1.1875rem;
	color: #2c2c42;
}

/* Gradient text is unreliable on ::first-letter, so the drop cap stays solid. */
.entry-content--longread > p:first-of-type::first-letter {
	float: left;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 4.2em;
	line-height: 0.78;
	padding: 0.06em 0.1em 0 0;
	color: var(--text);
}

.entry-content--longread h2 {
	counter-increment: oddr-section;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.entry-content--longread h2::before {
	content: counter(oddr-section, decimal-leading-zero);
	display: block;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--blue);
	margin-bottom: 0.6rem;
}

/* ==========================================================================
   12. Sidebar
   ========================================================================== */

.sidebar {
	position: sticky;
	top: calc(var(--nav-height) + 24px);
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

@media (max-width: 980px) {
	.sidebar {
		position: static;
	}
}

.widget {
	font-size: 0.9375rem;
}

.widget-title,
.sidebar__title {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border);
}

.widget li:last-child {
	border-bottom: 0;
}

.widget a {
	text-decoration: none;
	color: var(--text-secondary);
}

.widget a:hover {
	color: var(--blue);
}

.sidebar__list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* ==========================================================================
   13. Newsletter & CTA bands
   ========================================================================== */

.newsletter {
	position: relative;
	border-radius: var(--radius);
	background: var(--gradient-soft);
	border: 1px solid var(--border);
	padding: clamp(2rem, 5vw, 3.5rem);
	text-align: center;
	overflow: hidden;
}

.newsletter__title {
	font-size: clamp(1.625rem, 3.5vw, 2.25rem);
	margin: 0 0 0.75rem;
}

.newsletter__desc {
	color: var(--text-secondary);
	max-width: 48ch;
	margin: 0 auto 2rem;
}

.newsletter__form {
	display: flex;
	gap: 0.625rem;
	max-width: 460px;
	margin: 0 auto;
	flex-wrap: wrap;
}

.newsletter__form input[type="email"] {
	flex: 1 1 220px;
	min-width: 0;
}

/* Editor-only setup prompt shown where the band will go. Dashed and muted so
   it never reads as finished design. */
.newsletter--setup {
	background: var(--bg-warm);
	border: 1px dashed var(--border-strong);
}

.newsletter--setup .newsletter__title {
	color: var(--text-secondary);
}

.newsletter--compact {
	text-align: left;
	padding: 28px;
}

.newsletter--compact .newsletter__title {
	font-size: 1.25rem;
}

.newsletter--compact .newsletter__desc {
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
}

.newsletter--compact .newsletter__form {
	flex-direction: column;
	max-width: none;
}

/* In a column flex container the basis applies to height, so pin it back. */
.newsletter--compact .newsletter__form input[type="email"] {
	flex: 0 0 auto;
}

/* Honeypot. Off screen rather than display:none, since some bots skip
   hidden fields but happily fill positioned ones. */
.newsletter__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.newsletter__status {
	margin: 1rem 0 0;
	min-height: 1.4em;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--text-secondary);
}

.newsletter__status:empty {
	margin-top: 0;
	min-height: 0;
}

.newsletter__status.is-ok {
	color: #0f7f9c;
	font-weight: 500;
}

.newsletter__status.is-error {
	color: #a8501a;
	font-weight: 500;
}

.newsletter__form button[disabled] {
	opacity: 0.65;
	cursor: progress;
	transform: none;
}

.newsletter {
	position: relative;
}

.cta-band {
	text-align: center;
}

.cta-band__title {
	font-size: clamp(2rem, 4.5vw, 3rem);
	margin: 0 0 1rem;
}

.cta-band__desc {
	color: var(--text-on-ink-muted);
	max-width: 52ch;
	margin: 0 auto 2rem;
	font-size: 1.0625rem;
}

.cta-band__actions {
	display: flex;
	gap: 0.875rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* ==========================================================================
   14. Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
	width: 100%;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--text);
	background: var(--bg-card);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-pill);
	padding: 13px 22px;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
	appearance: none;
}

textarea {
	border-radius: var(--radius-sm);
	min-height: 140px;
	line-height: 1.6;
	resize: vertical;
}

input::placeholder,
textarea::placeholder {
	color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 4px rgba(29, 180, 219, 0.12);
}

label {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 0.5rem;
}

/* Search form */
.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-form input[type="search"] {
	flex: 1;
}

.search-form .btn {
	flex: none;
}

/* ==========================================================================
   15. Pagination
   ========================================================================== */

.pagination {
	display: flex;
	justify-content: center;
	margin-top: clamp(3rem, 6vw, 4rem);
}

.pagination .nav-links {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	flex-wrap: wrap;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 0.875rem;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border);
	background: var(--bg-card);
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	color: var(--text-secondary);
	text-decoration: none;
	transition: all 0.2s var(--ease);
}

.pagination .page-numbers:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.pagination .page-numbers.current {
	background: var(--gradient);
	border-color: transparent;
	color: #fff;
}

.pagination .dots {
	border: 0;
	background: none;
	min-width: auto;
	padding: 0 0.25rem;
}

/* Prev / next article */
.post-nav {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
	.post-nav {
		grid-template-columns: 1fr;
	}
}

.post-nav__item {
	display: block;
	padding: 22px 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-card);
	text-decoration: none;
	transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.post-nav__item:hover {
	border-color: var(--blue-mid);
	transform: translateY(-2px);
}

.post-nav__item--next {
	text-align: right;
}

.post-nav__label {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.625rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 0.5rem;
}

.post-nav__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.3;
	color: var(--text);
}

/* ==========================================================================
   16. Comments
   ========================================================================== */

.comments-area {
	margin-top: 4rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--border);
}

.comments-title,
.comment-reply-title {
	font-size: 1.5rem;
	margin-bottom: 1.75rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 3rem;
	padding: 0;
}

.comment-list ol.children {
	list-style: none;
	margin: 1.5rem 0 0;
	padding-left: clamp(1rem, 4vw, 3rem);
}

.comment-body {
	padding: 24px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 1.5rem;
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.comment-author img {
	border-radius: 50%;
}

.comment-author .fn {
	font-weight: 600;
	font-style: normal;
	font-size: 0.9375rem;
}

.comment-metadata {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
}

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

.reply {
	margin-top: 0.75rem;
}

.comment-reply-link {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue);
	text-decoration: none;
}

.comment-form {
	display: grid;
	gap: 1.25rem;
}

.comment-form .form-submit {
	margin: 0;
}

.comment-form input[type="submit"] {
	width: auto;
	background: var(--gradient);
	color: #fff;
	border: 0;
	font-weight: 600;
	padding: 14px 32px;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(29, 180, 219, 0.25);
}

.comment-notes,
.logged-in-as {
	font-size: 0.8125rem;
	color: var(--text-muted);
}

/* ==========================================================================
   17. Footer
   ========================================================================== */

.site-footer {
	background: var(--bg-ink);
	color: var(--text-on-ink-muted);
	padding: clamp(3rem, 7vw, 5rem) 0 2rem;
	font-size: 0.9375rem;
}

.site-footer a {
	color: var(--text-on-ink-muted);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--blue);
}

/* Brand block plus four link columns, explicit rather than auto-fit. auto-fit
   stretched a single surviving column across the whole row when the others had
   no menu assigned, which is what left the footer looking half built. */
.footer-top {
	display: grid;
	grid-template-columns: minmax(230px, 1.5fr) repeat(4, minmax(110px, 1fr));
	gap: clamp(1.75rem, 3.5vw, 3rem);
	padding-bottom: 3rem;
	border-bottom: 1px solid var(--border-on-ink);
}

@media (max-width: 1100px) {
	.footer-top {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.footer-brand {
		grid-column: 1 / -1;
		margin-bottom: 0.5rem;
	}
}

@media (max-width: 780px) {
	.footer-top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

.footer-brand__title {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 900;
	color: #fff;
	margin: 0 0 0.875rem;
}

.footer-brand__logo {
	margin-bottom: 1.25rem;
}

.footer-brand__logo img {
	height: 32px;
	max-height: 32px;
	width: auto;
}

.footer-brand__desc {
	max-width: 34ch;
	margin: 0 0 1.5rem;
	line-height: 1.65;
}

.footer-col__title {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 1.25rem;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer-social {
	display: flex;
	gap: 0.625rem;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--border-on-ink);
	transition: all 0.2s var(--ease);
}

.footer-social a:hover {
	border-color: var(--blue);
	background: rgba(29, 180, 219, 0.1);
	transform: translateY(-2px);
}

/* Collapses to nothing when no social URLs are set, which is the default:
   oddr.org itself links no social accounts. */
.footer-social {
	flex-wrap: wrap;
	align-items: center;
}

.footer-social:empty {
	display: none;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	flex-wrap: wrap;
	padding-top: 2rem;
	font-size: 0.8125rem;
	color: #6b6c80;
}

.footer-bottom__copy {
	margin: 0;
}

.footer-bottom ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

/* ==========================================================================
   18. 404 / empty states
   ========================================================================== */

.state {
	text-align: center;
	padding: clamp(3rem, 10vw, 7rem) 0;
	max-width: 560px;
	margin-inline: auto;
}

.state__code {
	font-family: var(--font-display);
	font-size: clamp(4.5rem, 16vw, 9rem);
	font-weight: 900;
	line-height: 1;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin: 0 0 0.5rem;
}

.state__title {
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	margin: 0 0 1rem;
}

.state__desc {
	color: var(--text-secondary);
	margin: 0 0 2rem;
}

.state .search-form {
	max-width: 440px;
	margin: 0 auto 2rem;
}

/* ==========================================================================
   19. WordPress core classes
   ========================================================================== */

.sticky .card {
	border-color: var(--blue-mid);
	box-shadow: 0 8px 30px rgba(29, 180, 219, 0.1);
}

.bypostauthor > .comment-body .fn::after {
	content: " · Author";
	font-family: var(--font-mono);
	font-size: 0.625rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue);
	font-weight: 400;
}

.wp-block-button__link {
	background: var(--gradient);
	border-radius: var(--radius-pill);
	color: #fff;
	font-family: var(--font-body);
	font-weight: 600;
	padding: 14px 32px;
}

.is-style-outline .wp-block-button__link {
	background: none;
	border: 1px solid var(--border-strong);
	color: var(--text);
}

.wp-block-separator {
	border-top: 1px solid var(--border);
	max-width: 100px;
}

.wp-block-separator.is-style-wide {
	max-width: none;
}

.wp-block-table figcaption {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--text-muted);
}

.gallery {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin: 2rem 0;
}

.gallery img {
	border-radius: var(--radius-sm);
	width: 100%;
}

/* Admin bar offset for the sticky header */
.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

/* ==========================================================================
   20. Print
   ========================================================================== */

@media print {
	.site-header,
	.site-footer,
	.sidebar,
	.share,
	.post-nav,
	.comments-area,
	.newsletter,
	.cta-band,
	.progress {
		display: none !important;
	}

	body {
		background: #fff;
		font-size: 11pt;
	}

	.article-layout {
		grid-template-columns: 1fr;
	}

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		color: #666;
	}
}
