/*
Theme Name: DayOneFlow
Theme URI: https://dayoneflow.com/blog/
Author: DayOneFlow
Author URI: https://dayoneflow.com/
Description: The DayOneFlow blog, with the same header, footer, type and colours as dayoneflow.com. Posts without a featured image get generated cover art in their category's colour.
Version: 1.0.0
Requires at least: 6.5
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: dayoneflow
*/

/* ---------- Fonts (self-hosted Geist, the font of the Next.js app) ---------- */
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/geist-latin-ext.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: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/geist-latin.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;
}

/* ---------- Tokens: the app's brand (indigo) and zinc palettes ---------- */
:root {
	--brand-50: oklch(0.962 0.018 272.314);
	--brand-100: oklch(0.93 0.034 272.788);
	--brand-200: oklch(0.87 0.065 274.039);
	--brand-300: oklch(0.785 0.115 274.713);
	--brand-400: oklch(0.673 0.182 276.935);
	--brand-500: oklch(0.585 0.233 277.117);
	--brand-600: oklch(0.511 0.262 276.966);
	--brand-700: oklch(0.457 0.24 277.023);
	--brand-800: oklch(0.398 0.195 277.366);
	--brand-900: oklch(0.359 0.144 278.697);
	--brand-950: oklch(0.257 0.09 281.288);

	--zinc-50: oklch(0.985 0 0);
	--zinc-100: oklch(0.967 0.001 286.375);
	--zinc-200: oklch(0.92 0.004 286.32);
	--zinc-300: oklch(0.871 0.006 286.286);
	--zinc-400: oklch(0.705 0.015 286.067);
	--zinc-500: oklch(0.552 0.016 285.938);
	--zinc-600: oklch(0.442 0.017 285.786);
	--zinc-700: oklch(0.37 0.013 285.805);
	--zinc-800: oklch(0.274 0.006 286.033);
	--zinc-900: oklch(0.21 0.006 285.885);
	--zinc-950: oklch(0.141 0.005 285.823);

	--font-sans: "Geist", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 5rem;
}
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--zinc-950);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
	text-decoration: none;
}
button,
input {
	font: inherit;
	color: inherit;
}
h1,
h2,
h3,
h4,
p {
	margin: 0;
}
:focus-visible {
	outline: 2px solid var(--brand-600);
	outline-offset: 2px;
	border-radius: 0.25rem;
}
.screen-reader-text,
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	background: var(--brand-600);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
}
.skip-link:focus {
	top: 0.75rem;
}
.container {
	width: 100%;
	max-width: 80rem;
	margin-inline: auto;
	padding-inline: 1rem;
}
@media (min-width: 640px) {
	.container {
		padding-inline: 1.5rem;
	}
}
@media (min-width: 1024px) {
	.container {
		padding-inline: 2rem;
	}
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	border: 0;
	border-radius: 0.375rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn svg {
	width: 1rem;
	height: 1rem;
}
.btn--primary {
	background: var(--brand-600);
	color: #fff;
	box-shadow: var(--shadow-xs);
}
.btn--primary:hover {
	background: var(--brand-700);
}
.btn--ghost {
	padding-inline: 0.75rem;
	font-weight: 500;
	color: var(--zinc-700);
	background: transparent;
}
.btn--ghost:hover {
	background: var(--zinc-100);
	color: var(--zinc-950);
}
.btn--light {
	padding: 0.75rem 1.25rem;
	border-radius: 0.5rem;
	background: #fff;
	color: var(--brand-700);
	box-shadow: var(--shadow-xs);
}
.btn--light:hover {
	background: var(--brand-50);
}
.btn--outline-light {
	padding: 0.75rem 1.25rem;
	border-radius: 0.5rem;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4);
}
.btn--outline-light:hover {
	background: rgb(255 255 255 / 0.1);
}

/* ---------- Header (mirrors the app's SiteHeader) ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid rgb(228 228 231 / 0.8);
	background: rgb(255 255 255 / 0.9);
}
@supports (backdrop-filter: blur(8px)) {
	.site-header {
		background: rgb(255 255 255 / 0.75);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
	}
}
.admin-bar .site-header {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}
@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}
.header-row {
	position: relative;
	display: flex;
	height: 4rem;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 0.375rem;
	font-size: 1.125rem;
	line-height: 1.75rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: var(--zinc-950);
}
.brand svg {
	width: 1.75rem;
	height: 1.75rem;
	flex: none;
}
.main-nav,
.header-actions {
	display: none;
}
.main-nav ul,
.mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-nav ul {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.main-nav a {
	display: block;
	border-radius: 0.375rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	color: var(--zinc-700);
}
.main-nav a:hover {
	background: var(--zinc-100);
	color: var(--zinc-950);
}
.main-nav a[aria-current="page"] {
	background: var(--brand-50);
	color: var(--brand-700);
}
@media (min-width: 1024px) {
	.main-nav {
		display: block;
	}
	.header-actions {
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}
	.mobile-nav {
		display: none;
	}
}

/* Phone and tablet menu: a disclosure (works without JavaScript). */
.mobile-nav summary {
	display: inline-flex;
	width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.375rem;
	color: var(--zinc-700);
	cursor: pointer;
	list-style: none;
}
.mobile-nav summary::-webkit-details-marker {
	display: none;
}
.mobile-nav summary:hover {
	background: var(--zinc-100);
}
.mobile-nav summary svg {
	width: 1.25rem;
	height: 1.25rem;
}
.mobile-nav .icon-close,
.mobile-nav[open] .icon-menu {
	display: none;
}
.mobile-nav[open] .icon-close {
	display: inline;
}
.mobile-nav__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 4rem;
	border-bottom: 1px solid var(--zinc-200);
	background: #fff;
	padding: 0.5rem 1rem 1.5rem;
	box-shadow: var(--shadow-lg);
}
.mobile-nav ul {
	display: grid;
	gap: 0.25rem;
}
.mobile-nav nav a {
	display: block;
	border-radius: 0.375rem;
	padding: 0.625rem 0.75rem;
	font-size: 1rem;
	font-weight: 500;
	color: var(--zinc-800);
}
.mobile-nav nav a:hover {
	background: var(--zinc-50);
}
.mobile-nav nav a[aria-current="page"] {
	color: var(--brand-700);
}
.mobile-nav__actions {
	display: grid;
	gap: 0.5rem;
	margin-top: 1rem;
	border-top: 1px solid var(--zinc-200);
	padding-top: 1rem;
}
.mobile-nav__actions .btn {
	padding-block: 0.625rem;
	font-size: 1rem;
}
.mobile-nav__actions .btn--ghost {
	box-shadow: inset 0 0 0 1px var(--zinc-300);
}

/* ---------- Page header (mirrors the app's PageHeader) ---------- */
.page-header {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--zinc-200);
	background: linear-gradient(to bottom, oklch(0.962 0.018 272.314 / 0.7), #fff);
}
.page-header::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse at top right, var(--brand-100), transparent 55%);
}
.page-header > .container {
	position: relative;
	padding-block: 4rem;
}
@media (min-width: 640px) {
	.page-header > .container {
		padding-block: 5rem;
	}
}
.page-header__inner {
	max-width: 48rem;
}
.eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	color: var(--brand-600);
}
.eyebrow a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.eyebrow .sep {
	color: var(--brand-300);
}
.page-title {
	margin-top: 0.75rem;
	font-size: 2.25rem;
	line-height: 2.5rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: var(--zinc-950);
}
@media (min-width: 640px) {
	.page-title {
		font-size: 3rem;
		line-height: 1.1;
	}
}
.lead {
	margin-top: 1.25rem;
	font-size: 1.125rem;
	line-height: 2rem;
	color: var(--zinc-600);
	text-wrap: pretty;
}
.byline {
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	font-size: 0.875rem;
	color: var(--zinc-600);
}
.byline strong {
	font-weight: 500;
	color: var(--zinc-900);
}
.byline > * + *::before,
.meta > * + *::before {
	content: "·";
	margin-right: 0.5rem;
	color: var(--zinc-400);
}

/* Search + topics under the blog's page header. */
/* The topics move below the search box when they don't fit beside it. */
.blog-tools {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2rem;
}
.blog-tools .search-form {
	flex: 1 1 18rem;
}
.blog-tools nav {
	flex: 1 1 auto;
}
.search-form {
	display: flex;
	gap: 0.5rem;
	width: 100%;
	max-width: 26rem;
}
.search-form__field {
	position: relative;
	flex: 1;
}
.search-form__field svg {
	position: absolute;
	left: 0.875rem;
	top: 50%;
	width: 1rem;
	height: 1rem;
	transform: translateY(-50%);
	color: var(--zinc-400);
	pointer-events: none;
}
.search-form input[type="search"] {
	width: 100%;
	height: 2.75rem;
	border: 1px solid var(--zinc-300);
	border-radius: 0.5rem;
	background: #fff;
	padding: 0 0.875rem 0 2.5rem;
	font-size: 0.9375rem;
	box-shadow: var(--shadow-xs);
	-webkit-appearance: none;
	appearance: none;
}
.search-form input[type="search"]:focus {
	outline: 2px solid var(--brand-600);
	outline-offset: 0;
	border-color: transparent;
}
.search-form .btn {
	height: 2.75rem;
	border-radius: 0.5rem;
}
.topics {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.topic {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--zinc-200);
	border-radius: 999px;
	background: #fff;
	padding: 0.375rem 0.875rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--zinc-700);
	transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.topic:hover {
	border-color: var(--brand-200);
	color: var(--zinc-950);
}
.topic[aria-current="page"] {
	border-color: var(--brand-600);
	background: var(--brand-600);
	color: #fff;
}

/* ---------- Sections ---------- */
.section {
	padding-block: 4rem;
}
@media (min-width: 640px) {
	.section {
		padding-block: 5rem;
	}
}
.section--muted {
	background: var(--zinc-50);
}
.section--tight {
	padding-block: 3rem;
}
.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2.5rem;
}
.section__title {
	font-size: 1.875rem;
	line-height: 2.25rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: var(--zinc-950);
}
@media (min-width: 640px) {
	.section__title {
		font-size: 2.25rem;
		line-height: 2.5rem;
	}
}
.section__intro {
	margin-top: 0.75rem;
	font-size: 1rem;
	line-height: 1.75rem;
	color: var(--zinc-600);
}

/* ---------- Covers: featured image, or generated art ---------- */
.cover {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	aspect-ratio: 16 / 9;
	background: var(--zinc-100);
	color: #fff;
}
.cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cover__art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.cover__icon {
	position: absolute;
	left: 1.25rem;
	top: 1.25rem;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.75rem;
	background: rgb(255 255 255 / 0.16);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
}
.cover__icon svg {
	width: 1.375rem;
	height: 1.375rem;
}
.cover--indigo {
	background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
	--cover-ink: var(--brand-700);
}
.cover--violet {
	background: linear-gradient(135deg, oklch(0.606 0.25 292.717), oklch(0.432 0.232 292.759));
	--cover-ink: oklch(0.491 0.27 292.581);
}
.cover--sky {
	background: linear-gradient(135deg, oklch(0.685 0.169 237.323), var(--brand-700));
	--cover-ink: oklch(0.5 0.134 242.749);
}
.cover--teal {
	background: linear-gradient(135deg, oklch(0.704 0.14 182.503), oklch(0.437 0.078 188.216));
	--cover-ink: oklch(0.511 0.096 186.391);
}
.cover--amber {
	background: linear-gradient(135deg, oklch(0.769 0.188 70.08), oklch(0.553 0.195 38.402));
	--cover-ink: oklch(0.555 0.163 48.998);
}
.cover--rose {
	background: linear-gradient(135deg, oklch(0.645 0.246 16.439), oklch(0.459 0.187 3.815));
	--cover-ink: oklch(0.514 0.222 16.935);
}
.cover__check {
	color: var(--cover-ink, var(--brand-700));
}
.cover--wide {
	aspect-ratio: 21 / 9;
	border-radius: 1.5rem;
	box-shadow: var(--shadow-lg);
}
@media (max-width: 639px) {
	/* Too small to hold the icon clear of the path on a phone. */
	.cover--wide .cover__icon {
		display: none;
	}
}
@media (min-width: 640px) {
	.cover--wide .cover__icon {
		left: 2rem;
		top: 2rem;
		width: 3.5rem;
		height: 3.5rem;
		border-radius: 1rem;
	}
	.cover--wide .cover__icon svg {
		width: 1.75rem;
		height: 1.75rem;
	}
}

/* ---------- Category badge + meta line ---------- */
.badge {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: var(--brand-50);
	padding: 0.125rem 0.625rem;
	font-size: 0.75rem;
	line-height: 1.25rem;
	font-weight: 600;
	color: var(--brand-700);
	box-shadow: inset 0 0 0 1px var(--brand-100);
}
.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--zinc-500);
}

/* ---------- Featured post ---------- */
.featured {
	position: relative;
	display: grid;
	overflow: hidden;
	border: 1px solid var(--zinc-200);
	border-radius: 1.5rem;
	background: linear-gradient(to bottom right, #fff, var(--zinc-50));
	box-shadow: var(--shadow-xs);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.featured:hover {
	border-color: var(--brand-200);
	box-shadow: var(--shadow-lg);
}
@media (min-width: 1024px) {
	.featured {
		grid-template-columns: 1.15fr 1fr;
	}
	.featured .cover {
		aspect-ratio: auto;
		height: 100%;
		min-height: 22rem;
	}
}
.featured__body {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
}
@media (min-width: 640px) {
	.featured__body {
		padding: 2.5rem;
	}
}
.featured__title {
	margin-top: 1rem;
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: var(--zinc-950);
}
@media (min-width: 640px) {
	.featured__title {
		font-size: 1.875rem;
		line-height: 2.375rem;
	}
}
.featured__excerpt {
	margin-top: 1rem;
	flex: 1;
	font-size: 1rem;
	line-height: 1.75rem;
	color: var(--zinc-600);
}
.featured .meta {
	margin-top: 1.5rem;
}
.stretched::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.stretched:focus-visible {
	outline: none;
}
.stretched:focus-visible::after {
	outline: 2px solid var(--brand-600);
	outline-offset: -2px;
	border-radius: inherit;
}
.featured .stretched::after {
	border-radius: 1.5rem;
}
.card .stretched::after {
	border-radius: 1rem;
}
.read-more {
	margin-top: 1.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--brand-700);
}
.read-more svg {
	width: 1rem;
	height: 1rem;
	transition: transform 0.15s;
}
.featured:hover .read-more svg,
.card:hover .read-more svg {
	transform: translateX(2px);
}

/* ---------- Post cards ---------- */
.card-grid {
	display: grid;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.featured + .card-grid {
	margin-top: 1.5rem;
}
@media (min-width: 768px) {
	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1024px) {
	.card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--zinc-200);
	border-radius: 1rem;
	background: #fff;
	box-shadow: var(--shadow-xs);
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover {
	border-color: var(--brand-200);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}
.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem 1.5rem 1.5rem;
}
.card__title {
	margin-top: 0.875rem;
	font-size: 1.125rem;
	line-height: 1.625rem;
	font-weight: 600;
	text-wrap: balance;
	color: var(--zinc-950);
}
.card__excerpt {
	margin-top: 0.5rem;
	flex: 1;
	font-size: 0.875rem;
	line-height: 1.5rem;
	color: var(--zinc-600);
}
.card .meta {
	margin-top: 1.25rem;
}

/* ---------- Article ---------- */
.article-wrap {
	padding-block: 3rem;
}
@media (min-width: 640px) {
	.article-wrap {
		padding-block: 4rem;
	}
}
.article-cover {
	max-width: 64rem;
	margin: 0 auto 3rem;
}
.article {
	max-width: 46rem;
	margin-inline: auto;
}
.prose {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--zinc-700);
}
.prose > * {
	margin-top: 0;
	margin-bottom: 0;
}
.prose > * + * {
	margin-top: 1.25rem;
}
.prose h2 {
	margin-top: 2.75rem;
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: var(--zinc-950);
	scroll-margin-top: 6rem;
}
.prose h3 {
	margin-top: 2rem;
	font-size: 1.1875rem;
	line-height: 1.75rem;
	font-weight: 600;
	color: var(--zinc-950);
	scroll-margin-top: 6rem;
}
.prose h2 + *,
.prose h3 + * {
	margin-top: 0.75rem;
}
.prose a {
	font-weight: 500;
	color: var(--brand-700);
	text-decoration: underline;
	text-decoration-color: var(--brand-300);
	text-underline-offset: 4px;
}
.prose a:hover {
	text-decoration-color: var(--brand-600);
}
.prose ul,
.prose ol {
	padding-left: 1.5rem;
}
.prose ul {
	list-style: disc;
}
.prose ol {
	list-style: decimal;
}
.prose ul li::marker {
	color: var(--zinc-400);
}
.prose ol li::marker {
	color: var(--zinc-500);
}
.prose li + li {
	margin-top: 0.5rem;
}
.prose strong {
	font-weight: 600;
	color: var(--zinc-950);
}
.prose code {
	border-radius: 0.25rem;
	background: var(--zinc-100);
	padding: 0.125rem 0.375rem;
	font-family: var(--font-mono);
	font-size: 0.875em;
	color: var(--zinc-900);
}
.prose pre {
	overflow-x: auto;
	border-radius: 0.75rem;
	background: var(--zinc-950);
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--zinc-100);
}
.prose pre code {
	background: none;
	padding: 0;
	color: inherit;
}
.prose blockquote {
	margin-inline: 0;
	border-left: 3px solid var(--brand-300);
	padding-left: 1.25rem;
	color: var(--zinc-600);
}
.prose blockquote > * + * {
	margin-top: 0.75rem;
}
.prose img {
	border-radius: 1rem;
}
.prose figure {
	margin-inline: 0;
}
.prose figcaption {
	margin-top: 0.5rem;
	text-align: center;
	font-size: 0.875rem;
	color: var(--zinc-500);
}
.prose hr {
	margin-block: 2.5rem;
	border: 0;
	border-top: 1px solid var(--zinc-200);
}
.prose table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 0.875rem;
}
.prose th {
	border-bottom: 1px solid var(--zinc-300);
	padding: 0.5rem 1rem 0.5rem 0;
	font-weight: 600;
	color: var(--zinc-950);
}
.prose td {
	border-bottom: 1px solid var(--zinc-200);
	padding: 0.5rem 1rem 0.5rem 0;
	vertical-align: top;
}
.prose .wp-block-table {
	overflow-x: auto;
}
.prose .is-style-callout {
	border: 1px solid var(--brand-100);
	border-radius: 1rem;
	background: var(--brand-50);
	padding: 1.25rem 1.5rem;
	color: var(--zinc-800);
}
.prose .is-style-callout > * {
	margin: 0;
}
.prose .is-style-callout > * + * {
	margin-top: 0.75rem;
}
.prose .alignwide {
	max-width: 64rem;
}
.aligncenter {
	margin-inline: auto;
}

.article-footer {
	margin-top: 3rem;
	display: grid;
	gap: 1.25rem;
	border-top: 1px solid var(--zinc-200);
	padding-top: 1.5rem;
}
@media (min-width: 640px) {
	.article-footer {
		grid-template-columns: 1fr auto;
		align-items: center;
	}
}
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.tags a {
	display: inline-flex;
	border-radius: 999px;
	background: var(--zinc-100);
	padding: 0.25rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--zinc-700);
}
.tags a:hover {
	background: var(--brand-50);
	color: var(--brand-700);
}
.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1rem;
	font-size: 0.875rem;
	color: var(--zinc-500);
}
.share a {
	font-weight: 500;
	color: var(--zinc-700);
}
.share a:hover {
	color: var(--brand-700);
}
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 2rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--brand-700);
}
.back-link:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.back-link svg {
	width: 1rem;
	height: 1rem;
}

/* ---------- Pagination and empty states ---------- */
.pagination {
	margin-top: 3rem;
}
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}
.pagination .page-numbers {
	display: inline-flex;
	min-width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	border: 1px solid var(--zinc-200);
	border-radius: 0.5rem;
	background: #fff;
	padding: 0 0.875rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--zinc-700);
}
.pagination a.page-numbers:hover {
	border-color: var(--brand-200);
	color: var(--zinc-950);
}
.pagination .page-numbers.current {
	border-color: var(--brand-600);
	background: var(--brand-600);
	color: #fff;
}
.pagination .page-numbers.dots {
	border: 0;
	background: none;
}
.empty {
	border: 1px dashed var(--zinc-300);
	border-radius: 1rem;
	background: #fff;
	padding: 3rem 1.5rem;
	text-align: center;
}
.empty h2 {
	font-size: 1.25rem;
	line-height: 1.75rem;
	font-weight: 600;
	color: var(--zinc-950);
}
.empty p {
	margin-top: 0.5rem;
	color: var(--zinc-600);
}
.empty .btn {
	margin-top: 1.5rem;
}

/* ---------- Call to action (mirrors the app's CtaBanner) ---------- */
.cta {
	padding-block: 4rem;
}
@media (min-width: 640px) {
	.cta {
		padding-block: 5rem;
	}
}
.cta__box {
	position: relative;
	overflow: hidden;
	border-radius: 1.5rem;
	background: var(--brand-700);
	padding: 3.5rem 1.5rem;
	text-align: center;
	box-shadow: var(--shadow-xl);
}
@media (min-width: 640px) {
	.cta__box {
		padding-inline: 3rem;
	}
}
.cta__box::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 20% 0%, var(--brand-500), transparent 50%),
		radial-gradient(circle at 80% 100%, var(--brand-900), transparent 55%);
}
.cta__inner {
	position: relative;
	max-width: 42rem;
	margin-inline: auto;
}
.cta h2 {
	font-size: 1.875rem;
	line-height: 2.25rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: #fff;
}
@media (min-width: 640px) {
	.cta h2 {
		font-size: 2.25rem;
		line-height: 2.5rem;
	}
}
.cta p {
	margin-top: 1rem;
	font-size: 1.125rem;
	line-height: 2rem;
	color: var(--brand-100);
}
.cta__actions {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

/* ---------- Footer (mirrors the app's SiteFooter) ---------- */
.site-footer {
	border-top: 1px solid var(--zinc-200);
	background: var(--zinc-50);
}
.site-footer > .container {
	padding-block: 3.5rem;
}
.footer-grid {
	display: grid;
	gap: 2.5rem;
}
@media (min-width: 640px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.footer-brand {
		grid-column: 1 / -1;
	}
}
@media (min-width: 1024px) {
	.footer-grid {
		grid-template-columns: 1.2fr repeat(5, minmax(0, 1fr));
	}
	.footer-brand {
		grid-column: auto;
	}
}
.footer-brand {
	max-width: 20rem;
}
.footer-brand p {
	margin-top: 1rem;
	font-size: 0.875rem;
	line-height: 1.5rem;
	color: var(--zinc-600);
}
.footer-brand p + p {
	margin-top: 0.5rem;
}
.footer-nav {
	display: contents;
}
.footer-col h2 {
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--zinc-950);
}
.footer-col ul {
	display: grid;
	gap: 0.625rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}
.footer-col a {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--zinc-600);
}
.footer-col a:hover,
.footer-bottom a:hover {
	color: var(--zinc-950);
}
.footer-bottom {
	margin-top: 3rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	border-top: 1px solid var(--zinc-200);
	padding-top: 1.5rem;
	font-size: 0.875rem;
	color: var(--zinc-500);
}
@media (min-width: 640px) {
	.footer-bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* ---------- WordPress core classes ---------- */
.alignleft {
	float: left;
	margin: 0.5rem 1.5rem 1rem 0;
}
.alignright {
	float: right;
	margin: 0.5rem 0 1rem 1.5rem;
}
.wp-caption-text,
.gallery-caption {
	font-size: 0.875rem;
	color: var(--zinc-500);
}
.sticky,
.bypostauthor {
	/* Styled through the featured card; classes kept for core. */
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
	.card:hover {
		transform: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	.cta,
	.related,
	.share,
	.blog-tools {
		display: none !important;
	}
	.page-header {
		background: none;
		border: 0;
	}
	.page-header::before {
		display: none;
	}
}
