/*
Theme Name: Ezflip Blog
Theme URI: https://blog.ezflip.ai
Author: Ezflip
Description: The Ezflip blog theme. Blog home with a lead story, category filters and a post grid, plus a reading-focused article template with table of contents, share links, related posts and a product call to action. Built to Ezflip Brand Kit v1: Outfit, Crimson and Flame on Paper and Ink.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ezflip-blog
*/

/* ---------- Outfit, the Ezflip brand typeface, bundled with the theme (SIL OFL) ---------- */
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/outfit-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: "Outfit";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/outfit-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;
}

/* ---------- Tokens: Ezflip Brand Kit v1 ---------- */
:root {
	--ez-crimson: #be1e2d;
	--ez-crimson-deep: #9c1824;
	--ez-flame: #f05a28;
	--ez-flame-deep: #d44e1f;
	--ez-ink: #231f20;
	--ez-ink-soft: #5c5759;
	--ez-slate: #6d6e70;
	--ez-paper: #ffffff;
	--ez-cream: #f5f3f1;
	--ez-line: #e4e1e0;
	--ez-forest: #2ba56c;

	--ez-font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--ez-radius-pill: 999px;
	--ez-radius-card: 18px;
	--ez-radius-input: 14px;
	--ez-radius-badge: 8px;
	--ez-radius-window: 22px;

	--ez-shadow: 0 8px 24px rgba(35, 31, 32, 0.07);
	--ez-shadow-lift: 0 24px 56px rgba(35, 31, 32, 0.1);
	--ez-shadow-drama: 0 32px 72px rgba(35, 31, 32, 0.28);
	--ez-glow-crimson: 0 12px 28px rgba(190, 30, 45, 0.28);
	--ez-glow-flame: 0 12px 28px rgba(240, 90, 40, 0.34);

	--ez-ease-in: cubic-bezier(0.34, 1.56, 0.64, 1);
	--ez-ease: cubic-bezier(0.4, 0, 0.2, 1);

	--ez-wrap: 1184px;
	--ez-gutter: clamp(16px, 4vw, 32px);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 104px;
}

body {
	margin: 0;
	background: var(--ez-paper);
	color: var(--ez-ink-soft);
	font-family: var(--ez-font);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

img {
	height: auto;
}

a {
	color: var(--ez-crimson);
	text-decoration: none;
}

a:hover {
	color: var(--ez-crimson-deep);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	color: var(--ez-ink);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

p {
	margin: 0;
}

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

.ez-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	padding: 12px 16px;
	border-radius: var(--ez-radius-badge);
	background: var(--ez-ink);
	color: var(--ez-paper);
}

.ez-skip:focus {
	left: 8px;
	color: var(--ez-paper);
}

.ez-wrap {
	width: 100%;
	max-width: calc(var(--ez-wrap) + var(--ez-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ez-gutter);
}

.ez-wrap--narrow {
	max-width: calc(760px + var(--ez-gutter) * 2);
}

.ez-accent {
	color: var(--ez-crimson);
}

/* ---------- Pill buttons (kit 8.2, 8.3) ---------- */
.ez-btn,
.wp-block-button__link,
.comment-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 30px;
	border: 1px solid var(--ez-crimson);
	border-radius: var(--ez-radius-pill);
	background: var(--ez-crimson);
	box-shadow: var(--ez-glow-crimson);
	color: var(--ez-paper);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.01em;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s var(--ez-ease), border-color 0.2s var(--ez-ease), color 0.2s var(--ez-ease);
}

.ez-btn:hover,
.wp-block-button__link:hover,
.comment-form input[type="submit"]:hover {
	border-color: var(--ez-crimson-deep);
	background: var(--ez-crimson-deep);
	color: var(--ez-paper);
}

.ez-btn--small {
	padding: 11px 22px;
	font-size: 15px;
}

.ez-btn--arrow::after {
	content: "\2192";
	transition: transform 0.2s var(--ez-ease);
}

.ez-btn--arrow:hover::after {
	transform: translateX(4px);
}

.ez-btn--ghost,
.is-style-outline > .wp-block-button__link {
	background: transparent;
	box-shadow: none;
	color: var(--ez-crimson);
}

.ez-btn--ghost:hover,
.is-style-outline > .wp-block-button__link:hover {
	background: var(--ez-crimson);
	border-color: var(--ez-crimson);
	color: var(--ez-paper);
}

/* Flame is for dark surfaces only. */
.ez-btn--flame {
	border-color: var(--ez-flame);
	background: var(--ez-flame);
	box-shadow: var(--ez-glow-flame);
	color: var(--ez-paper);
}

.ez-btn--flame:hover {
	border-color: var(--ez-flame-deep);
	background: var(--ez-flame-deep);
}

/* ---------- Eyebrow, labels, chips ---------- */
.ez-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--ez-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ez-eyebrow__dot {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ez-crimson);
	box-shadow: 0 0 0 4px rgba(190, 30, 45, 0.18);
	animation: ez-pulse 2s var(--ez-ease) infinite;
}

@keyframes ez-pulse {
	50% {
		box-shadow: 0 0 0 7px rgba(190, 30, 45, 0.06);
	}
}

.ez-label {
	color: var(--ez-crimson);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

a.ez-label:hover {
	color: var(--ez-crimson-deep);
}

.ez-chip-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	border: 1px solid rgba(190, 30, 45, 0.3);
	border-radius: var(--ez-radius-pill);
	background: rgba(190, 30, 45, 0.06);
	color: var(--ez-crimson);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.ez-chip-status span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ez-crimson);
}

/* ---------- Header ---------- */
.ez-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--ez-line);
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.admin-bar .ez-header {
	top: 32px;
}

.ez-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 80px;
}

.ez-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.ez-brand .custom-logo-link {
	display: block;
	line-height: 0;
}

.ez-brand .custom-logo {
	width: auto;
	height: 44px;
	max-width: none;
}

.ez-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.ez-nav__list,
.ez-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ez-nav__list a {
	color: var(--ez-ink);
	font-size: 16px;
	font-weight: 500;
}

.ez-nav__list a:hover,
.ez-nav__list .current-menu-item > a,
.ez-nav__list .current_page_parent > a {
	color: var(--ez-crimson);
}

.ez-nav__list .current-menu-item > a,
.ez-nav__list .current_page_parent > a {
	font-weight: 600;
}

.ez-menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--ez-line);
	border-radius: var(--ez-radius-input);
	background: var(--ez-paper);
	cursor: pointer;
}

.ez-menu-toggle__bars,
.ez-menu-toggle__bars::before,
.ez-menu-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	margin-inline: auto;
	border-radius: 2px;
	background: var(--ez-ink);
	content: "";
}

.ez-menu-toggle__bars::before {
	transform: translateY(-6px);
}

.ez-menu-toggle__bars::after {
	transform: translateY(4px);
}

.ez-progress {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 60;
	height: 3px;
	pointer-events: none;
}

.admin-bar .ez-progress {
	top: 32px;
}

.ez-progress__bar {
	display: block;
	height: 100%;
	background: var(--ez-crimson);
	transform: scaleX(0);
	transform-origin: left center;
}

/* ---------- Hero: eyebrow + headline + lede, left aligned (kit 8.1) ---------- */
.ez-hero {
	padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px);
	background-color: var(--ez-paper);
	background-image: radial-gradient(ellipse 52% 90% at 100% 0%, rgba(190, 30, 45, 0.09), rgba(190, 30, 45, 0) 70%);
}

.ez-hero--compact {
	padding-block: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 40px);
}

.ez-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px 48px;
}

.ez-hero__copy {
	display: flex;
	flex: 1 1 520px;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	min-width: 0;
}

.ez-hero__title {
	font-size: clamp(40px, 6.4vw, 80px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.ez-hero--compact .ez-hero__title {
	font-size: clamp(32px, 4.6vw, 56px);
}

.ez-hero__title .ez-accent {
	display: block;
}

.ez-hero__sub {
	max-width: 60ch;
	color: var(--ez-ink-soft);
	font-size: clamp(18px, 2vw, 20px);
	font-weight: 500;
	line-height: 1.55;
}

/* Hand-drawn Crimson scribble: the one flourish on listing pages (kit 6.3). */
.ez-scribble {
	position: relative;
	display: inline-block;
	white-space: nowrap;
}

.ez-scribble svg {
	position: absolute;
	left: -2%;
	bottom: -0.14em;
	width: 104%;
	height: 0.2em;
	overflow: visible;
}

.ez-scribble path {
	fill: none;
	stroke: var(--ez-crimson);
	stroke-width: 7;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 420;
	stroke-dashoffset: 0;
	animation: ez-draw 1s var(--ez-ease) 0.7s backwards;
}

@keyframes ez-draw {
	from {
		stroke-dashoffset: 420;
	}
}

.ez-search {
	display: flex;
	flex: 0 1 420px;
	gap: 8px;
	min-width: 0;
}

.ez-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid var(--ez-line);
	border-radius: var(--ez-radius-input);
	background: var(--ez-paper);
	color: var(--ez-ink);
	font: inherit;
	font-size: 16px;
}

.ez-search input[type="search"]::placeholder {
	color: var(--ez-slate);
}

.ez-search input[type="search"]:focus {
	border-color: var(--ez-crimson);
	outline: none;
	box-shadow: 0 0 0 4px rgba(190, 30, 45, 0.12);
}

.ez-search .ez-btn {
	padding-inline: 24px;
	box-shadow: none;
}

/* ---------- Category chips ---------- */
.ez-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-block: 8px 0;
}

.ez-chip {
	padding: 8px 16px;
	border: 1px solid var(--ez-line);
	border-radius: var(--ez-radius-input);
	background: var(--ez-paper);
	color: var(--ez-ink);
	font-size: 15px;
	font-weight: 500;
	transition: border-color 0.2s var(--ez-ease), color 0.2s var(--ez-ease);
}

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

.ez-chip.is-active {
	border-color: var(--ez-ink);
	background: var(--ez-ink);
	color: var(--ez-paper);
}

/* ---------- Listing and cards (kit 8.4) ---------- */
.ez-listing {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding-block: 40px 80px;
}

.ez-section-title {
	font-size: clamp(28px, 3.2vw, 40px);
}

.ez-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 304px), 1fr));
	gap: 32px;
}

.ez-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--ez-line);
	border-radius: var(--ez-radius-card);
	background: var(--ez-paper);
	transition: transform 0.3s var(--ez-ease), border-color 0.3s var(--ez-ease), box-shadow 0.3s var(--ez-ease);
}

.ez-card:hover {
	border-color: rgba(190, 30, 45, 0.4);
	box-shadow: var(--ez-shadow);
	transform: translateY(-6px);
}

.ez-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 8 / 5;
	background: var(--ez-cream);
}

.ez-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ez-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 24px;
}

.ez-card__labels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.ez-card__title {
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.ez-card__title a {
	color: inherit;
}

.ez-card__title a:hover {
	color: var(--ez-crimson);
}

.ez-card__excerpt {
	font-size: 16px;
}

.ez-card .ez-meta {
	margin-top: auto;
	padding-top: 4px;
}

.ez-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	color: var(--ez-slate);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.ez-meta__author {
	color: var(--ez-ink);
}

.ez-meta__dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--ez-crimson);
}

/* Lead story */
.ez-card--featured {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	overflow: visible;
	border: 0;
	border-radius: 0;
}

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

.ez-card--featured .ez-card__media {
	aspect-ratio: 16 / 10;
	border: 1px solid var(--ez-line);
	border-radius: var(--ez-radius-window);
	box-shadow: var(--ez-shadow-lift);
}

.ez-card--featured .ez-card__body {
	gap: 16px;
	padding: 0;
}

.ez-card--featured .ez-card__title {
	font-size: clamp(30px, 3.6vw, 48px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.ez-card--featured .ez-card__excerpt {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.55;
}

.ez-card--featured .ez-meta {
	margin-top: 0;
}

/* Document mock for posts without a featured image (kit 6.4, 8.6) */
.ez-card__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: var(--ez-cream);
}

.ez-mock {
	display: flex;
	flex-direction: column;
	width: 62%;
	overflow: hidden;
	border: 1px solid var(--ez-line);
	border-radius: 10px;
	background: var(--ez-paper);
	box-shadow: var(--ez-shadow-lift);
	transform: rotate(-1.5deg);
	transition: transform 0.4s var(--ez-ease-in);
}

.ez-card:hover .ez-mock {
	transform: rotate(0deg);
}

.ez-mock__bar {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 8px;
	border-bottom: 1px solid var(--ez-line);
}

.ez-mock__bar i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ez-flame);
}

.ez-mock__bar i:nth-child(2) {
	background: #f2b33d;
}

.ez-mock__bar i:nth-child(3) {
	background: var(--ez-forest);
}

.ez-mock__bar b {
	flex: 1 1 auto;
	height: 6px;
	margin-left: 8px;
	border-radius: 3px;
	background: var(--ez-cream);
}

.ez-mock__spread {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.ez-mock__page {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
}

.ez-mock__page + .ez-mock__page {
	border-left: 1px solid var(--ez-line);
}

.ez-mock__page em {
	height: 5px;
	border-radius: 3px;
	background: var(--ez-line);
}

.ez-mock__page em:nth-child(2n) {
	width: 78%;
}

.ez-mock__page em:last-child {
	width: 52%;
}

.ez-mock__page em.is-accent {
	width: 64%;
	background: rgba(190, 30, 45, 0.45);
}

.ez-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding-block: 48px;
}

/* ---------- Pagination ---------- */
.ez-pagination .nav-links,
.comments-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ez-pagination .page-numbers,
.comments-pagination .page-numbers {
	min-width: 48px;
	padding: 11px 16px;
	border: 1px solid var(--ez-line);
	border-radius: var(--ez-radius-input);
	color: var(--ez-ink);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.ez-pagination a.page-numbers:hover {
	border-color: var(--ez-crimson);
	color: var(--ez-crimson);
}

.ez-pagination .page-numbers.current {
	border-color: var(--ez-crimson);
	background: var(--ez-crimson);
	color: var(--ez-paper);
}

.ez-pagination .page-numbers.dots {
	border-color: transparent;
}

/* ---------- Call to action: Ink band, Flame glow, Flame pill ---------- */
.ez-cta-wrap {
	padding-block: 8px 80px;
}

.ez-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px 48px;
	overflow: hidden;
	padding: clamp(32px, 5vw, 64px);
	border-radius: var(--ez-radius-window);
	background-color: var(--ez-ink);
	background-image:
		radial-gradient(ellipse 46% 90% at 0% 0%, rgba(190, 30, 45, 0.22), rgba(190, 30, 45, 0) 70%),
		radial-gradient(ellipse 44% 80% at 88% 100%, rgba(240, 90, 40, 0.32), rgba(240, 90, 40, 0) 70%);
	color: rgba(255, 255, 255, 0.78);
}

.ez-cta__copy {
	display: flex;
	flex: 1 1 320px;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.ez-cta__title {
	max-width: 16ch;
	color: var(--ez-paper);
	font-size: clamp(30px, 4vw, 52px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.ez-cta__title span {
	color: var(--ez-flame);
}

.ez-cta p {
	max-width: 44ch;
	font-size: 18px;
	font-weight: 500;
}

/* ---------- Single post ---------- */
.ez-post__header {
	padding-block: clamp(40px, 6vw, 80px) 40px;
	background-color: var(--ez-paper);
	background-image: radial-gradient(ellipse 52% 90% at 100% 0%, rgba(109, 110, 112, 0.1), rgba(109, 110, 112, 0) 70%);
}

.ez-post__header .ez-wrap {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: calc(1012px + var(--ez-gutter) * 2);
}

.ez-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	color: var(--ez-slate);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ez-crumbs a {
	color: var(--ez-crimson);
}

.ez-crumbs a:hover {
	color: var(--ez-crimson-deep);
}

.ez-post__title {
	max-width: 22ch;
	font-size: clamp(36px, 5.6vw, 64px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.ez-post__standfirst {
	max-width: 60ch;
	color: var(--ez-ink-soft);
	font-size: clamp(19px, 2.2vw, 22px);
	font-weight: 500;
	line-height: 1.55;
}

.ez-byline {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ez-byline__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ez-cream);
}

.ez-byline__name {
	color: var(--ez-ink);
	font-weight: 600;
	line-height: 1.3;
}

.ez-post__cover {
	margin-block: 0 8px;
}

.ez-post__cover img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border: 1px solid var(--ez-line);
	border-radius: var(--ez-radius-window);
	box-shadow: var(--ez-shadow-lift);
}

.ez-post__cover figcaption,
.ez-content figcaption {
	margin-top: 12px;
	color: var(--ez-slate);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.ez-post__layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 720px);
	justify-content: center;
	gap: 72px;
	padding-block: 48px 80px;
}

.ez-post__aside {
	position: sticky;
	top: 112px;
	display: flex;
	flex-direction: column;
	gap: 32px;
	align-self: start;
	min-width: 0;
}

.ez-toc__title {
	margin-bottom: 16px;
	color: var(--ez-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ez-toc__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ez-toc__list a {
	display: block;
	color: var(--ez-slate);
	font-size: 15px;
	line-height: 1.35;
}

.ez-toc__list a:hover {
	color: var(--ez-ink);
}

.ez-toc__list a.is-current {
	color: var(--ez-crimson);
	font-weight: 600;
}

.ez-share {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.ez-share .ez-toc__title {
	margin-bottom: 8px;
}

.ez-share a,
.ez-share button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ez-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.ez-share a:hover,
.ez-share button:hover {
	color: var(--ez-crimson);
}

.ez-post--page .ez-content {
	padding-block: 8px 80px;
}

/* ---------- Post content (what the WordPress editor produces) ---------- */
.ez-content {
	min-width: 0;
	color: var(--ez-ink-soft);
	font-size: 19px;
	line-height: 1.7;
}

.ez-content > * {
	margin-block: 0 1.3em;
}

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

.ez-content h2 {
	margin-top: 1.9em;
	margin-bottom: 0.6em;
	font-size: clamp(28px, 3.2vw, 36px);
}

.ez-content h3 {
	margin-top: 1.7em;
	margin-bottom: 0.5em;
	font-size: 24px;
}

.ez-content h4 {
	margin-top: 1.5em;
	margin-bottom: 0.4em;
	font-size: 20px;
}

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

/* Links: Crimson with a soft marker, never a browser underline (kit 3.4). */
.ez-content a:not(.wp-block-button__link) {
	padding-inline: 1px;
	background-image: linear-gradient(rgba(190, 30, 45, 0.16), rgba(190, 30, 45, 0.16));
	background-repeat: no-repeat;
	background-position: 0 92%;
	background-size: 100% 0.38em;
	font-weight: 500;
	transition: background-size 0.2s var(--ez-ease);
}

.ez-content a:not(.wp-block-button__link):hover {
	background-size: 100% 100%;
}

.ez-content strong {
	color: var(--ez-ink);
	font-weight: 600;
}

.ez-content ul,
.ez-content ol {
	padding-left: 1.3em;
}

.ez-content li {
	margin-bottom: 0.45em;
}

.ez-content li::marker {
	color: var(--ez-crimson);
	font-weight: 700;
}

/* Quote: tilted Ink card with Crimson glow, the one flourish on article pages (kit 6.1). */
.ez-content blockquote,
.ez-content .wp-block-quote {
	position: relative;
	margin-block: 2.2em;
	margin-inline: 0;
	padding: 40px 96px 40px 40px;
	border: 0;
	border-radius: var(--ez-radius-card);
	background-color: var(--ez-ink);
	background-image: radial-gradient(ellipse 60% 90% at 0% 100%, rgba(190, 30, 45, 0.4), rgba(190, 30, 45, 0) 70%);
	box-shadow: var(--ez-shadow-drama);
	color: var(--ez-paper);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	transform: rotate(-1.2deg);
}

.ez-content blockquote::before {
	position: absolute;
	top: 16px;
	right: 32px;
	color: var(--ez-flame);
	font-size: 104px;
	font-weight: 800;
	line-height: 1;
	content: "\201C";
}

.ez-content blockquote p {
	margin-bottom: 0.6em;
}

.ez-content blockquote p:last-of-type {
	margin-bottom: 0;
}

.ez-content blockquote cite {
	display: block;
	margin-top: 16px;
	color: rgba(255, 255, 255, 0.65);
	font-size: 15px;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.04em;
}

/* Pullquote: upright SemiBold with a Crimson quote mark. */
.ez-content .wp-block-pullquote {
	padding: 32px;
	border: 1px solid var(--ez-line);
	border-radius: var(--ez-radius-card);
	background: var(--ez-cream);
	text-align: left;
}

.ez-content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0 0 0 56px;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--ez-ink);
	transform: none;
}

.ez-content .wp-block-pullquote blockquote::before {
	top: -8px;
	right: auto;
	left: 0;
	color: var(--ez-crimson);
	font-size: 80px;
}

.ez-content .wp-block-pullquote cite {
	color: var(--ez-slate);
}

.ez-content img {
	border-radius: var(--ez-radius-card);
}

.ez-content figure {
	margin-inline: 0;
}

.ez-content .alignwide {
	width: calc(100% + 120px);
	max-width: calc(100% + 120px);
	margin-inline: -60px;
}

.ez-content code,
.ez-content kbd {
	padding: 2px 8px;
	border-radius: var(--ez-radius-badge);
	background: var(--ez-cream);
	color: var(--ez-ink);
	font-family: inherit;
	font-size: 0.9em;
	font-weight: 500;
}

.ez-content pre {
	overflow-x: auto;
	padding: 24px;
	border-radius: var(--ez-radius-card);
	background: var(--ez-ink);
	color: var(--ez-cream);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.6;
}

.ez-content pre code {
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	font-weight: 400;
}

.ez-content .wp-block-table {
	overflow-x: auto;
}

.ez-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
}

.ez-content th,
.ez-content td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--ez-line);
	text-align: left;
	vertical-align: top;
}

.ez-content thead th {
	border-bottom: 2px solid var(--ez-ink);
	color: var(--ez-ink);
	font-weight: 600;
}

.ez-content hr,
.ez-content .wp-block-separator {
	width: 64px;
	height: 4px;
	margin-block: 2.4em;
	margin-inline: 0;
	border: 0;
	border-radius: 2px;
	background: var(--ez-crimson);
}

.ez-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 2.4em;
	padding-top: 24px;
	border-top: 1px solid var(--ez-line);
}

.ez-content .ez-tags a {
	padding: 8px 16px;
	border: 1px solid var(--ez-line);
	border-radius: var(--ez-radius-input);
	background: none;
	color: var(--ez-ink);
	font-size: 14px;
	font-weight: 500;
}

.ez-content .ez-tags a:hover {
	border-color: var(--ez-crimson);
	background: none;
	color: var(--ez-crimson);
}

/* Editor colour classes */
.has-ez-crimson-color { color: var(--ez-crimson); }
.has-ez-flame-color { color: var(--ez-flame); }
.has-ez-ink-color { color: var(--ez-ink); }
.has-ez-slate-color { color: var(--ez-slate); }
.has-ez-paper-color { color: var(--ez-paper); }
.has-ez-crimson-background-color { background-color: var(--ez-crimson); }
.has-ez-flame-background-color { background-color: var(--ez-flame); }
.has-ez-ink-background-color { background-color: var(--ez-ink); }
.has-ez-slate-background-color { background-color: var(--ez-slate); }
.has-ez-cream-background-color { background-color: var(--ez-cream); }
.has-ez-paper-background-color { background-color: var(--ez-paper); }

.ez-content .has-background {
	padding: 24px 32px;
	border-radius: var(--ez-radius-card);
}

/* ---------- Related, comments ---------- */
.ez-related {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-block: 0 80px;
}

.ez-comments {
	padding-block: 0 80px;
}

.ez-comments__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 40px;
	border-top: 1px solid var(--ez-line);
}

.ez-comment-list,
.ez-comment-list .children {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ez-comment-list .children {
	margin-top: 24px;
	padding-left: 24px;
}

.ez-comment-list .avatar {
	float: left;
	margin-right: 12px;
	border-radius: 50%;
}

.comment-metadata,
.comment-metadata a {
	color: var(--ez-slate);
	font-size: 14px;
}

.comment-content {
	clear: both;
	padding-top: 12px;
}

.comment-reply-title {
	font-size: 28px;
}

.comment-form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.comment-form > p {
	width: 100%;
}

.comment-form label {
	display: block;
	margin-bottom: 8px;
	color: var(--ez-ink);
	font-size: 15px;
	font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--ez-line);
	border-radius: var(--ez-radius-input);
	color: var(--ez-ink);
	font: inherit;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

/* ---------- Footer ---------- */
.ez-footer {
	padding-block: 48px 32px;
	border-top: 1px solid var(--ez-line);
	background: var(--ez-cream);
	font-size: 15px;
}

.ez-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px 48px;
	padding-bottom: 32px;
}

.ez-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 36ch;
}

.ez-footer__logo {
	display: block;
	line-height: 0;
}

.ez-footer__logo img {
	width: auto;
	height: 40px;
}

.ez-footer__list a {
	color: var(--ez-ink);
	font-weight: 500;
}

.ez-footer__list a:hover {
	color: var(--ez-crimson);
}

.ez-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 32px;
	padding-top: 24px;
	border-top: 1px solid var(--ez-line);
	color: var(--ez-slate);
	font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.ez-post__layout {
		grid-template-columns: minmax(0, 720px);
		gap: 32px;
	}

	.ez-post__header .ez-wrap {
		max-width: calc(720px + var(--ez-gutter) * 2);
	}

	.ez-post__aside {
		position: static;
		gap: 24px;
	}

	.ez-toc {
		padding: 24px;
		border-radius: var(--ez-radius-card);
		background: var(--ez-cream);
	}

	.ez-share {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px 24px;
	}

	.ez-share .ez-toc__title {
		margin-bottom: 0;
	}

	.ez-content .alignwide {
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
	}
}

@media (max-width: 860px) {
	.ez-menu-toggle {
		display: block;
		flex: 0 0 auto;
	}

	.ez-nav {
		position: absolute;
		inset: 100% 0 auto 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 24px var(--ez-gutter);
		border-bottom: 1px solid var(--ez-line);
		background: var(--ez-paper);
		box-shadow: var(--ez-shadow-lift);
	}

	.ez-nav.is-open {
		display: flex;
	}

	.ez-nav__list {
		flex-direction: column;
		gap: 16px;
	}

	.ez-nav__list a {
		font-size: 18px;
	}

	.ez-card--featured {
		grid-template-columns: minmax(0, 1fr);
	}

	.ez-search {
		flex-basis: 100%;
	}
}

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

@media (max-width: 600px) {
	.admin-bar .ez-header {
		top: 0;
	}

	body {
		font-size: 16px;
	}

	.ez-header__inner {
		min-height: 72px;
	}

	.ez-brand .custom-logo {
		height: 36px;
	}

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

	.ez-content blockquote,
	.ez-content .wp-block-quote {
		padding: 32px 24px;
		font-size: 21px;
		transform: rotate(-1deg);
	}

	.ez-content blockquote::before {
		position: static;
		display: block;
		height: 48px;
		font-size: 72px;
	}

	.ez-cta .ez-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
