/*
Theme Name: Spark
Theme URI: https://spark.ryansite.org/
Author: Ryan Orrock
Author URI: https://spark.ryansite.org/about-us/
Description: The SparkMK site's own theme: a spark jumping between "the real world" and "the mystical paths". Coral and violet on blush, or on deep plum in the dark. Bitter for reading, Bricolage Grotesque for headings, both self-hosted. Light and dark follow the visitor's system, with a switch they can keep.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spark
Tags: blog, two-columns, custom-menu, dark-mode, accessibility-ready, translation-ready
*/

/* Fonts: Bitter and Bricolage Grotesque, SIL Open Font License (assets/fonts/OFL.txt). */

@font-face {
	font-family: 'Bitter';
	font-style: normal;
	font-display: swap;
	font-weight: 400 800;
	src: url(assets/fonts/bitter-latin-wght-normal.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Bitter';
	font-style: normal;
	font-display: swap;
	font-weight: 400 800;
	src: url(assets/fonts/bitter-latin-ext-wght-normal.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Bitter';
	font-style: italic;
	font-display: swap;
	font-weight: 400 800;
	src: url(assets/fonts/bitter-latin-wght-italic.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Bitter';
	font-style: italic;
	font-display: swap;
	font-weight: 400 800;
	src: url(assets/fonts/bitter-latin-ext-wght-italic.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-display: swap;
	font-weight: 400 800;
	src: url(assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-display: swap;
	font-weight: 400 800;
	src: url(assets/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Palettes, from the approved design: light, and the plum band (the same in both). */

:root {
	color-scheme: light;
	--bg: #FBF3F2;
	--card: #FFFFFF;
	--ink: #24121F;
	--muted: #6A4A5E;
	--line: #EBD3D8;
	--accent: #C22E2A;
	--violet: #5435C4;
	--dots: #EBD5DA;
	--lich-a: #EDB3AE;
	--lich-b: #C9BDF3;
	--chip: #F6E6E8;
	--btn: #C22E2A;
	--btn-ink: #FFFFFF;
	--ghost-line: #24121F;
	--tint: #F3EEFF;
	--tint-line: #DAD0FA;
	--band2: #F7E9EA;
	--mark-bg: #2A0F2E;
	--b-bg: #2A0F2E;
	--b-ink: #F7EAF0;
	--b-muted: #D8B9CB;
	--b-coral: #FF8576;
	--b-violet: #B8A8FF;
	--b-line: #4A2550;
	--b-card: #341538;
	--b-dots: #3B1A40;
	--b-lich-a: #5E2848;
	--b-lich-b: #45337C;
	--head: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
	--read: 'Bitter', Georgia, 'Times New Roman', serif;
	--gutter: clamp(16px, 4vw, 40px);
}

/* Dark: the visitor's system setting, unless they chose light. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #170B19;
		--card: #211024;
		--ink: #F7EAF0;
		--muted: #C7A9BC;
		--line: #3B2340;
		--accent: #FF7A6B;
		--violet: #A894FF;
		--dots: #2A1730;
		--lich-a: #4E2032;
		--lich-b: #2F2558;
		--chip: #33193A;
		--btn: #FF7A6B;
		--btn-ink: #170B19;
		--ghost-line: #F7EAF0;
		--tint: #1E1534;
		--tint-line: #3A2E66;
		--band2: #1D0E20;
		--mark-bg: #2A0F2E;
	}
}

/* Dark: chosen with the switch. */
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #170B19;
	--card: #211024;
	--ink: #F7EAF0;
	--muted: #C7A9BC;
	--line: #3B2340;
	--accent: #FF7A6B;
	--violet: #A894FF;
	--dots: #2A1730;
	--lich-a: #4E2032;
	--lich-b: #2F2558;
	--chip: #33193A;
	--btn: #FF7A6B;
	--btn-ink: #170B19;
	--ghost-line: #F7EAF0;
	--tint: #1E1534;
	--tint-line: #3A2E66;
	--band2: #1D0E20;
	--mark-bg: #2A0F2E;
}

/* Base ---------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	overflow-wrap: break-word;
	scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background-color: var(--bg);
	background-image: radial-gradient(circle, var(--dots) 1.4px, transparent 1.6px);
	background-size: 24px 24px;
	background-position: -9px -9px;
	color: var(--ink);
	font-family: 'Bitter', Georgia, 'Times New Roman', serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--head);
	font-weight: 800;
	line-height: 1.1;
	overflow-wrap: break-word;
	hyphens: manual;
}

a {
	color: var(--accent);
	text-underline-offset: 4px;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

.band :focus-visible {
	outline-color: var(--b-violet);
}

img,
video,
iframe,
embed,
object,
svg {
	max-width: 100%;
}

img,
video {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

::selection {
	background: var(--violet);
	color: var(--btn-ink);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	left: 16px;
	top: 16px;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip: auto;
	clip-path: none;
	border-radius: 999px;
	background: var(--btn);
	color: var(--btn-ink);
	font-family: var(--head);
	font-weight: 700;
	text-decoration: none;
}

.wrap {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Colour helpers: SVG paint and text that follows the palette. */
.lich-a { stroke: var(--lich-a); }
.lich-b { stroke: var(--lich-b); }
.fill-accent { fill: var(--accent); }
.fill-violet { fill: var(--violet); }
.stroke-ink { stroke: var(--ink); }
.stroke-accent { stroke: var(--accent); }
.stroke-violet { stroke: var(--violet); }
.tone-accent { color: var(--accent); }
.tone-violet { color: var(--violet); }
.tone-muted { color: var(--muted); }
.tone-coral { color: var(--b-coral); }
.tone-band-violet { color: var(--b-violet); }

/* The page and its art ---------------------------------------------------------- */

.site {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	position: relative;
	flex: 1 0 auto;
}

.page-art {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 1200px;
	max-height: 100%;
	overflow: hidden;
	pointer-events: none;
}

.page-art-article {
	height: 900px;
}

.page-art svg {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}

.band {
	background-color: var(--b-bg);
	color: var(--b-ink);
}

.band-art {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	pointer-events: none;
}

/* Buttons and links that act like them ---------------------------------------- */

.button,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 28px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--head);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.button-primary,
.comment-form .submit {
	background: var(--btn);
	color: var(--btn-ink);
}

.button-ghost {
	border-color: var(--ghost-line);
	color: var(--ink);
	background: transparent;
}

.button-small {
	min-height: 48px;
	padding: 0 22px;
	font-size: 17px;
}

.button-coral {
	background: var(--b-coral);
	color: var(--b-bg);
	font-weight: 800;
}

.button-ghost-band {
	border-color: var(--b-ink);
	color: var(--b-ink);
}

.button:hover,
.comment-form .submit:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.actions {
	margin-top: 36px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.more {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	font-family: var(--head);
	font-weight: 700;
	font-size: 18px;
}

.kicker {
	margin: 0 0 12px;
	font-family: var(--head);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.35;
}

/* Header ------------------------------------------------------------------ */

.site-header {
	position: relative;
	z-index: 5;
	padding-block: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	justify-content: space-between;
	align-items: center;
}

.brand {
	flex: 0 1 auto;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	color: var(--ink);
	text-decoration: none;
}

.brand-mark {
	display: block;
	flex: none;
}

.brand-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand-name {
	font-family: var(--head);
	font-weight: 800;
	font-size: 26px;
}

.brand-tagline {
	font-size: 15px;
	color: var(--muted);
}

.site-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	min-width: 0;
}

.site-nav {
	min-width: 0;
}

.nav-list,
.site-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-family: var(--head);
	font-weight: 600;
	font-size: 17px;
}

.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	color: var(--ink);
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav .current-menu-item > a {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--accent);
	text-underline-offset: 8px;
}

.site-nav .nav-cta {
	margin-left: 8px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--btn);
	color: var(--btn-ink);
	font-weight: 700;
}

.site-nav .nav-cta[aria-current="page"],
.site-nav .nav-cta:hover {
	text-decoration-color: currentColor;
	text-underline-offset: 4px;
	text-decoration-thickness: 2px;
}

.theme-toggle,
.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	color: var(--ink);
	font-family: var(--head);
	font-weight: 600;
	font-size: 17px;
}

.theme-toggle svg,
.menu-toggle svg {
	display: block;
	flex: none;
}

.theme-toggle-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* (.theme-toggle svg sets display: block; these must outrank it.) */
.theme-toggle .icon-sun,
.theme-toggle[aria-pressed="true"] .icon-moon,
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
	display: none;
}

.theme-toggle[aria-pressed="true"] .icon-sun,
.menu-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

.menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	border-radius: 14px;
}

.no-js .theme-toggle,
.no-js .menu-toggle {
	display: none;
}

@media (max-width: 859px) {
	.js .site-header {
		flex-wrap: wrap;
	}

	.js .brand {
		flex: 1 1 0;
	}

	.js .menu-toggle {
		display: inline-flex;
		flex: none;
	}

	.js .site-menu {
		display: none;
		order: 3;
		flex: 1 1 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px;
		border: 2px solid var(--line);
		border-radius: 24px;
		background: var(--card);
	}

	.js .site-menu.is-open {
		display: flex;
	}

	.js .nav-list,
	.js .site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		font-size: 18px;
	}

	.js .site-nav a {
		display: flex;
		min-height: 48px;
		padding: 0 16px;
		border-radius: 14px;
	}

	.js .site-nav .nav-cta {
		margin: 8px 0 0;
		justify-content: center;
		border-radius: 999px;
	}

	.js .theme-toggle {
		justify-content: flex-start;
		min-height: 48px;
		padding: 0 18px;
	}

	.js .theme-toggle-label {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
		clip-path: none;
	}
}

/* Home: hero ------------------------------------------------------------------ */

.hero {
	padding-block: clamp(24px, 5vw, 64px) clamp(56px, 7vw, 96px);
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
}

.hero-text {
	flex: 1 1 460px;
	min-width: 0;
}

.hero .kicker {
	margin-bottom: 18px;
}

.hero-title {
	margin: 0;
	font-size: clamp(44px, 6.2vw, 86px);
	line-height: 1;
	letter-spacing: -0.01em;
}

.hero-lead {
	margin: 28px 0 0;
	max-width: 34em;
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.6;
	color: var(--muted);
}

.hero-figure {
	flex: 1 1 440px;
	min-width: 0;
	margin: 0;
	position: relative;
	overflow: hidden;
	border-radius: 32px;
}

.hero-figure svg {
	display: block;
	width: 100%;
	height: auto;
}

.hero-caption {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: space-between;
	padding: 0 clamp(20px, 3vw, 32px) clamp(22px, 3vw, 30px);
}

.pole {
	flex: 1 1 160px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pole-right {
	text-align: right;
}

.pole-name {
	font-family: var(--head);
	font-weight: 700;
	font-size: 19px;
}

.pole-text {
	font-size: 16px;
	line-height: 1.45;
	color: var(--b-muted);
}

/* Home: quote band ------------------------------------------------------------ */

.quote-band {
	position: relative;
	border-top: 2px solid var(--line);
	border-bottom: 2px solid var(--line);
	background-color: var(--band2);
}

.quote-inner {
	padding-block: clamp(40px, 6vw, 72px);
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	align-items: center;
}

.gap-icon {
	flex: none;
	display: block;
}

.quote-band blockquote {
	flex: 1 1 520px;
	min-width: 0;
	margin: 0;
}

.quote-band blockquote p {
	margin: 0;
	font-family: var(--head);
	font-weight: 700;
	font-size: clamp(28px, 3.4vw, 44px);
	line-height: 1.15;
}

.quote-band blockquote footer {
	margin-top: 14px;
	font-size: 17px;
	color: var(--muted);
}

.quote-band blockquote footer a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Sections, cards, topics ------------------------------------------------------ */

.section {
	position: relative;
	padding-block-start: clamp(56px, 8vw, 112px);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	justify-content: space-between;
	align-items: end;
}

.section-title {
	margin: 0;
	font-size: clamp(36px, 4vw, 52px);
	line-height: 1.05;
}

.section-title-small {
	font-size: clamp(30px, 3vw, 38px);
	line-height: 1.1;
}

.section-title-medium {
	font-size: clamp(32px, 3.6vw, 46px);
}

.section-lead {
	margin: 0;
	font-size: 18px;
	color: var(--muted);
}

.cards {
	margin-top: 36px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 24px;
}

.card {
	position: relative;
	overflow: hidden;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	border-radius: 24px;
	border: 2px solid var(--line);
	background: var(--card);
}

.zig {
	display: block;
	width: 100%;
	height: 28px;
}

.card-meta {
	margin: 0;
	font-family: var(--head);
	font-weight: 600;
	font-size: 16px;
	color: var(--muted);
}

.card-title {
	margin: 0;
	font-weight: 700;
	font-size: 27px;
	line-height: 1.12;
}

.card-title a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink);
	text-decoration: none;
}

.card-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--accent);
}

.excerpt {
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--muted);
}

.card-more {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--head);
	font-weight: 700;
	font-size: 17px;
}

.more-card {
	gap: 12px;
	padding: 26px;
}

.more-card .card-title {
	font-size: 25px;
	line-height: 1.15;
}

.more-card.card-accent .card-meta { color: var(--accent); }
.more-card.card-violet .card-meta { color: var(--violet); }

.topics-block {
	margin-top: clamp(48px, 6vw, 80px);
	display: flex;
	flex-wrap: wrap;
	gap: 24px 56px;
	align-items: start;
}

.topics-head {
	flex: 1 1 260px;
	min-width: 0;
}

.topics-intro {
	margin: 10px 0 0;
	font-size: 18px;
	color: var(--muted);
}

.topics {
	flex: 3 1 520px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.topics li {
	max-width: 100%;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	min-height: 48px;
	padding: 0 8px 0 18px;
	border-radius: 999px;
	border: 2px solid var(--line);
	background: var(--card);
	color: var(--ink);
	text-decoration: none;
	font-family: var(--head);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.2;
}

.chip:hover {
	border-color: var(--accent);
}

.chip .count {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--chip);
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
}

/* Home: Listen first ------------------------------------------------------------ */

.listen {
	position: relative;
	overflow: hidden;
	margin-top: clamp(56px, 8vw, 112px);
	background-image: radial-gradient(circle, var(--b-dots) 1.3px, transparent 1.5px);
	background-size: 22px 22px;
	background-position: -8px -8px;
}

.listen-inner {
	position: relative;
	padding-block: clamp(56px, 7vw, 96px);
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
	align-items: center;
}

.listen-text {
	flex: 1 1 320px;
	min-width: 0;
}

.listen-lead {
	margin: 18px 0 0;
	max-width: 26em;
	font-size: 19px;
	color: var(--b-muted);
}

.listen .more {
	margin-top: 24px;
}

.episodes {
	flex: 1.4 1 480px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.episode {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px 20px 16px 16px;
	border-radius: 22px;
	border: 2px solid var(--b-line);
	background: var(--b-card);
}

.play {
	flex: none;
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--b-coral);
	color: var(--b-bg);
}

.play .icon-pause,
.episode.is-playing .play .icon-play {
	display: none;
}

.episode.is-playing .play .icon-pause {
	display: block;
}

.episode-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.episode-title {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--b-ink);
	text-decoration: none;
	font-family: var(--head);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
}

.episode-title:hover {
	text-decoration: underline;
}

.episode-from {
	font-size: 16px;
	line-height: 1.45;
	color: var(--b-muted);
}

.wave {
	flex: 0 1 200px;
	min-width: 80px;
	height: 36px;
	display: block;
}

@media (max-width: 700px) {
	.wave {
		display: none;
	}

	.episode {
		gap: 14px;
		padding: 14px;
	}
}

/* Home: latest, about, work ------------------------------------------------------ */

.latest {
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	column-gap: 48px;
}

.latest li {
	min-width: 0;
	display: flex;
	gap: 18px;
	align-items: baseline;
	padding: 20px 0;
	border-top: 2px solid var(--line);
}

.latest-date {
	flex: none;
	width: 5.2em;
	white-space: nowrap;
	font-family: var(--head);
	font-weight: 700;
	font-size: 16px;
}

.latest-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.latest-text a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink);
	text-decoration: none;
	font-family: var(--head);
	font-weight: 600;
	font-size: 21px;
	line-height: 1.25;
}

.latest-text a:hover {
	text-decoration: underline;
	text-decoration-color: var(--accent);
}

.latest-cats {
	font-size: 15px;
	color: var(--muted);
}

.about {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
	align-items: start;
}

.about-text {
	flex: 1 1 420px;
	min-width: 0;
}

.about-quote {
	margin: 22px 0 0;
	font-size: 19px;
}

.about-more {
	margin: 16px 0 0;
	font-size: 19px;
	color: var(--muted);
}

.about .more {
	margin-top: 22px;
}

.about-biz {
	flex: 1 1 440px;
	min-width: 0;
}

.about-biz .kicker {
	margin-bottom: 16px;
}

.biz {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
	gap: 12px;
}

.biz li {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 72px;
	padding: 12px 16px;
	border-radius: 18px;
	font-family: var(--head);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.2;
}

.biz svg {
	flex: none;
}

.biz-card {
	border: 2px solid var(--line);
	background: var(--card);
}

.biz-tint {
	border: 2px solid var(--tint-line);
	background: var(--tint);
}

.work {
	padding-block-end: clamp(64px, 8vw, 120px);
}

.offers {
	margin-top: 36px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 24px;
}

.offer {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(26px, 3vw, 40px);
	border-radius: 28px;
	border: 2px solid var(--line);
	background: var(--card);
}

.offer-tint {
	border-color: var(--tint-line);
	background: var(--tint);
}

.offer .kicker {
	margin: 0;
	font-size: 17px;
}

.offer-title {
	margin: 0;
	font-size: clamp(28px, 2.6vw, 34px);
	line-height: 1.1;
}

.offer-text {
	margin: 0;
	font-size: 18px;
	color: var(--muted);
}

.dots {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 18px;
}

.dots li {
	display: flex;
	gap: 12px;
	align-items: baseline;
}

.dots li::before {
	content: '';
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--accent);
	transform: translateY(-2px);
}

.dots-violet li::before {
	background: var(--violet);
}

.offer .button {
	margin-top: 14px;
	align-self: flex-start;
	min-height: 52px;
	padding: 0 26px;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
	position: relative;
	overflow: hidden;
}

.footer-inner {
	position: relative;
	padding-block: clamp(56px, 7vw, 88px) 40px;
}

.footer-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 48px;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 40px;
	border-bottom: 2px solid var(--b-line);
}

.footer-cta-text,
.footer-cta > .footer-title {
	flex: 1 1 420px;
	min-width: 0;
}

.footer-title {
	margin: 0;
	font-size: clamp(30px, 3.4vw, 44px);
	line-height: 1.08;
}

.site-footer-home .footer-title {
	font-size: clamp(32px, 3.6vw, 48px);
}

.footer-lead {
	margin: 12px 0 0;
	font-size: 18px;
	color: var(--b-muted);
}

.footer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.footer-nav {
	margin-top: 36px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
	gap: 28px 40px;
	font-size: 17px;
}

.footer-col {
	min-width: 0;
}

.footer-col-title {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	color: var(--b-coral);
}

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

.footer-col a {
	display: inline-flex;
	align-items: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--b-ink);
	text-decoration: none;
	line-height: 1.3;
}

.footer-col a:hover {
	text-decoration: underline;
}

.footer-line {
	margin: 40px 0 0;
	font-size: 15px;
	color: var(--b-muted);
}

/* One writing ------------------------------------------------------------------ */

.entry-head {
	position: relative;
	padding-block-start: clamp(24px, 4vw, 56px);
}

.breadcrumb {
	font-family: var(--head);
	font-weight: 600;
	font-size: 17px;
	color: var(--muted);
}

.breadcrumb a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--muted);
}

.breadcrumb .sep {
	padding: 0 8px;
}

.entry-title {
	margin: 12px 0 0;
	max-width: 15em;
	font-size: clamp(40px, 6.4vw, 92px);
	line-height: 1;
	letter-spacing: -0.01em;
}

.page .entry-title {
	font-size: clamp(40px, 5.6vw, 80px);
}

.entry-meta {
	margin-top: 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	font-size: 17px;
	color: var(--muted);
}

.byline {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
}

.initials {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--violet);
	color: var(--btn-ink);
	font-family: var(--head);
	font-weight: 800;
	font-size: 18px;
}

.author-name {
	font-family: var(--head);
	font-weight: 700;
	font-size: 18px;
}

.spark-banner-wrap {
	margin-block: clamp(32px, 4vw, 56px) 0;
}

.spark-banner {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	border-radius: 32px;
}

.spark-banner-text {
	flex: 1 1 340px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: clamp(28px, 4vw, 56px);
}

.spark-banner-kicker {
	margin: 0;
	font-family: var(--head);
	font-weight: 700;
	font-size: 18px;
	color: var(--b-coral);
}

.spark-banner-quote {
	margin: 0;
	font-family: var(--head);
	font-weight: 800;
	font-size: clamp(32px, 3.6vw, 50px);
	line-height: 1.05;
}

.spark-banner-art {
	flex: 1.3 1 420px;
	min-width: 0;
	min-height: 240px;
	display: block;
}

.spark-banner-plain .spark-banner-art {
	flex: 1 1 100%;
	height: auto;
	min-height: 180px;
	aspect-ratio: 640 / 230;
}

/* The text column, as in the design: 700px of Bitter. */
.prose,
.after-prose,
.comments {
	box-sizing: content-box;
	max-width: 700px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.prose {
	position: relative;
	padding-block-start: clamp(40px, 5vw, 72px);
	font-size: 20px;
	line-height: 1.72;
}

@media (max-width: 600px) {
	.prose {
		font-size: 18px;
	}
}

.prose > :first-child {
	margin-top: 0;
}

.single-post .prose > p:first-child {
	font-size: 1.18em;
	line-height: 1.55;
}

.prose p {
	margin: 0 0 1em;
}

.prose h2 {
	margin: 1.8em 0 0.6em;
	font-size: 1.75em;
}

.prose h3 {
	margin: 1.6em 0 0.5em;
	font-weight: 700;
	font-size: 1.3em;
	line-height: 1.25;
}

.prose h4,
.prose h5,
.prose h6 {
	margin: 1.4em 0 0.4em;
	font-weight: 700;
	font-size: 1.1em;
	line-height: 1.3;
}

.prose a {
	color: var(--accent);
	text-decoration-thickness: 1.5px;
}

.prose strong,
.prose b {
	font-weight: 700;
}

.prose ul,
.prose ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

.prose li {
	margin-bottom: 0.45em;
}

.prose li::marker {
	color: var(--accent);
	font-family: var(--head);
	font-weight: 700;
}

.prose blockquote {
	position: relative;
	margin: 1.6em 0;
	padding: 0 0 0 62px;
	font-family: var(--head);
	font-weight: 600;
	font-size: 1.2em;
	line-height: 1.35;
}

.prose blockquote::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	width: 44px;
	height: 44px;
	background: linear-gradient(90deg, var(--accent) 0 32%, var(--ink) 32% 68%, var(--violet) 68%);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='8' cy='22' r='6' fill='black'/%3E%3Ccircle cx='36' cy='22' r='6' fill='black'/%3E%3Cpath d='M15 22 L19 13 L23 31 L27 14 L30 22' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='8' cy='22' r='6' fill='black'/%3E%3Ccircle cx='36' cy='22' r='6' fill='black'/%3E%3Cpath d='M15 22 L19 13 L23 31 L27 14 L30 22' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.prose blockquote p:last-child {
	margin-bottom: 0;
}

.prose blockquote cite {
	display: block;
	margin-top: 0.6em;
	font-family: var(--read);
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
	color: var(--muted);
}

.prose hr {
	margin: 2em 0;
	border: 0;
	border-top: 2px solid var(--line);
}

.prose img {
	border-radius: 16px;
}

.prose figure,
.prose .wp-caption {
	max-width: 100% !important;
	margin: 1.4em 0;
}

.prose figcaption,
.prose .wp-caption-text {
	margin-top: 0.5em;
	font-size: 18px;
	font-style: italic;
	color: var(--muted);
}

.prose .alignleft {
	float: left;
	max-width: 50%;
	margin: 0.3em 1.2em 1em 0;
}

.prose .alignright {
	float: right;
	max-width: 50%;
	margin: 0.3em 0 1em 1.2em;
}

.prose .aligncenter {
	display: block;
	margin-inline: auto;
}

.prose::after {
	content: '';
	display: table;
	clear: both;
}

@media (max-width: 600px) {
	.prose .alignleft,
	.prose .alignright {
		float: none;
		max-width: 100%;
		margin: 1em 0;
	}
}

.prose iframe[src*="youtube"],
.prose iframe[src*="youtu.be"],
.prose iframe[src*="vimeo"] {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 16px;
}

.prose table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	margin: 0 0 1.2em;
	border-collapse: collapse;
}

.prose th,
.prose td {
	padding: 10px 14px;
	border: 2px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.prose th {
	font-family: var(--head);
	font-weight: 700;
}

.prose pre {
	max-width: 100%;
	overflow-x: auto;
	padding: 16px 20px;
	border-radius: 16px;
	border: 2px solid var(--line);
	background: var(--card);
	font-size: 16px;
}

.prose code,
.prose kbd {
	font-size: 0.9em;
}

.prose small,
.prose font[size],
.prose [style*="font-size"] {
	font-size: inherit !important;
}

/* Old posts carry pasted colours; the palette wins, so text stays readable. */
.prose [style*="color"],
.prose font[color] {
	color: inherit !important;
}

.prose [style*="background"] {
	background: none !important;
}

.prose * {
	max-width: 100%;
}

.prose audio,
.prose video {
	display: block;
	width: 100%;
	margin: 1em 0;
}

.prose .powerpress_player {
	margin: 1em 0 0.4em;
}

.prose .powerpress_links {
	font-family: var(--head);
	font-weight: 600;
	font-size: 17px;
	color: var(--muted);
}

.prose .powerpress_links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

sup,
sub {
	font-size: 0.85em;
	line-height: 0;
}

/* FD Footnotes: the marks are large enough to tap; the notes read as Notes. */
.prose sup.footnote a,
.prose .footnotereverse a {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: -16px -14px;
	vertical-align: middle;
	font-family: var(--head);
	font-weight: 700;
	text-decoration: none;
}

.prose .footnotes {
	margin-top: 2.4em;
	padding-top: 1.4em;
	border-top: 2px solid var(--line);
	font-size: 18px;
	line-height: 1.6;
	color: var(--muted);
}

.prose .footnotedivider {
	display: none;
}

.prose .notes-title {
	margin: 0 0 0.6em;
	font-weight: 700;
	font-size: 1.2em;
	color: var(--ink);
}

.prose .footnotes ol {
	margin: 0;
	padding-left: 1.4em;
}

.prose .footnotes li {
	margin-bottom: 8px;
	font-size: 18px;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 1.4em;
	font-family: var(--head);
	font-weight: 700;
}

.page-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

.after-prose {
	padding-block-start: 28px;
}

/* Comments ------------------------------------------------------------------ */

.comments {
	padding-block-start: clamp(40px, 5vw, 64px);
}

.comments-title,
.comment-reply-title {
	margin: 0 0 20px;
	font-size: clamp(28px, 3vw, 36px);
}

.comment-reply-title small {
	display: block;
	margin-top: 8px;
	font-size: 17px;
}

.comment-reply-title small a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.comment-list,
.comment-list .children {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 16px 0 0 clamp(12px, 4vw, 32px);
}

.comment-body {
	margin-bottom: 16px;
	padding: 20px 22px;
	border: 2px solid var(--line);
	border-radius: 20px;
	background: var(--card);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 16px;
	font-size: 16px;
	color: var(--muted);
}

.comment-author {
	font-family: var(--head);
	font-weight: 700;
	font-size: 18px;
	color: var(--ink);
}

.comment-author .fn {
	font-style: normal;
	font-weight: 700;
}

.comment-author a,
.comment-metadata a,
.reply a,
.comment-edit-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.comment-metadata a {
	color: var(--muted);
}

.comment-content {
	font-size: 18px;
}

.comment-content p {
	margin: 0.6em 0;
}

.comment-awaiting-moderation {
	font-size: 17px;
	color: var(--muted);
}

.reply {
	font-family: var(--head);
	font-weight: 700;
	font-size: 17px;
}

.comment-respond {
	padding-block: 8px clamp(24px, 4vw, 40px);
}

.comment-form p {
	margin: 0 0 18px;
	font-size: 18px;
}

.comment-notes,
.logged-in-as {
	color: var(--muted);
}

.logged-in-as a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--head);
	font-weight: 600;
	font-size: 17px;
}

.required {
	color: var(--accent);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field {
	width: 100%;
	min-height: 52px;
	padding: 10px 16px;
	border: 2px solid var(--line);
	border-radius: 14px;
	background: var(--card);
	color: var(--ink);
	font-size: 18px;
	-webkit-appearance: none;
	appearance: none;
}

.comment-form textarea {
	min-height: 180px;
	resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-field:focus {
	border-color: var(--violet);
}

.comment-form input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 44px;
	height: 44px;
	margin: 0 12px 0 0;
	border: 2px solid var(--ghost-line);
	border-radius: 10px;
	background: var(--card);
	vertical-align: middle;
}

.comment-form input[type="checkbox"]:checked {
	background: var(--btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px no-repeat;
	border-color: var(--btn);
}

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
}

.comment-form-cookies-consent label {
	display: inline;
	margin: 0;
	font-family: var(--read);
	font-weight: 400;
	font-size: 18px;
}

.comment-form .submit {
	-webkit-appearance: none;
	appearance: none;
}

/* Lists of writings, search, not found ------------------------------------------ */

.list-head {
	position: relative;
	padding-block-start: clamp(24px, 4vw, 56px);
}

.list-title {
	margin: 12px 0 0;
	max-width: 16em;
	font-size: clamp(40px, 5.6vw, 80px);
	line-height: 1.02;
	letter-spacing: -0.01em;
}

.list-lead {
	margin: 16px 0 0;
	max-width: 40em;
	font-size: 19px;
	color: var(--muted);
}

.list-topics {
	margin-top: 28px;
}

.list-topics .topics {
	flex: none;
}

.list-body {
	position: relative;
	padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 112px);
}

.year + .year {
	margin-top: clamp(40px, 5vw, 64px);
}

.year-title {
	margin: 0 0 8px;
	font-size: clamp(30px, 3vw, 38px);
	color: var(--violet);
}

.writing-list {
	max-width: 860px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.writing {
	padding: 22px 0;
	border-top: 2px solid var(--line);
}

.writing-meta {
	margin: 0 0 4px;
	font-family: var(--head);
	font-weight: 600;
	font-size: 16px;
	color: var(--muted);
}

.writing-title {
	margin: 0;
	font-weight: 700;
	font-size: clamp(22px, 2.2vw, 27px);
	line-height: 1.2;
}

.writing-title a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink);
	text-decoration: none;
}

.writing-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--accent);
}

.writing .excerpt {
	margin-top: 8px;
}

.search-form {
	margin-top: 28px;
	max-width: 640px;
}

.search-label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--head);
	font-weight: 700;
	font-size: 18px;
}

.search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.search-field {
	flex: 1 1 240px;
	width: auto;
	min-width: 0;
	min-height: 56px;
	padding: 0 22px;
	border-radius: 999px;
}

.search-submit {
	flex: none;
}

.pagination,
.comments-pagination {
	margin-top: 40px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers,
.comment-navigation a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	padding: 0 16px;
	border-radius: 999px;
	border: 2px solid var(--line);
	background: var(--card);
	color: var(--ink);
	font-family: var(--head);
	font-weight: 700;
	font-size: 17px;
	text-decoration: none;
}

.page-numbers.current {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--bg);
}

.page-numbers.dots {
	border-color: transparent;
	background: none;
}

.section-gap {
	height: clamp(56px, 8vw, 112px);
}

/* Keep reading, after one writing. */
.keep-reading {
	padding-block-end: clamp(56px, 8vw, 104px);
}

.keep-reading .cards {
	margin-top: 32px;
}

/* Widgets and blocks old posts may use ------------------------------------------ */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	background: var(--btn);
	color: var(--btn-ink);
	font-family: var(--head);
	font-weight: 700;
	text-decoration: none;
}

.sticky,
.bypostauthor,
.gallery-caption {
	font-weight: inherit;
}
