/*
Theme Name: SEO GEO Tips
Theme URI: https://seogeotips.com/
Author: SEO GEO Tips
Description: A fast, accessible, SEO-first blog theme for seogeotips.com with topic filters, topic archives, table of contents and Core Web Vitals-friendly defaults.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seogeotips
*/

/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("assets/fonts/bricolage.woff2") format("woff2");
	font-weight: 500 800;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--ink: #0e1525;
	--ink-2: #2a3245;
	--muted: #5d6678;
	--line: #e4e6eb;
	--line-2: #d3d7df;
	--paper: #f7f7f3;
	--surface: #ffffff;
	--tint: #f0f1ec;
	--brand: #2f4bff;
	--brand-ink: #1b31d6;
	--lime: #d4ff3a;

	--c: var(--brand);
	--c-soft: #e8ecff;

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	--font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(14, 21, 37, .05), 0 8px 24px -12px rgba(14, 21, 37, .14);
	--shadow-lg: 0 2px 4px rgba(14, 21, 37, .05), 0 24px 48px -20px rgba(14, 21, 37, .28);

	--gutter: clamp(16px, 4vw, 32px);
	--max: 1200px;
	--narrow: 780px;
	--header-h: 72px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

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

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

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

.skip-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 100;
	background: var(--ink); color: #fff;
	padding: 10px 16px; border-radius: 8px;
	font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.icon { flex: none; }

/* ==========================================================================
   Buttons, chips, links
   ========================================================================== */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	border: 1.5px solid transparent; border-radius: 999px;
	font: 600 16px/1 var(--font);
	text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 75, 255, .6); }
.btn--primary:hover { background: var(--brand-ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #222c44; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

.chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--c-soft); color: var(--c);
	font: 600 13px/1.2 var(--font);
	letter-spacing: .01em;
	text-decoration: none;
	white-space: nowrap;
}
.chip--sm { padding: 4px 10px; font-size: 12px; }
a.chip:hover { filter: saturate(1.3) brightness(.97); }

.chip--filter {
	min-height: 40px; padding: 0 14px;
	background: var(--surface); color: var(--ink-2);
	border: 1.5px solid var(--line);
	font-size: 14px;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip--filter .icon { color: var(--c); }
.chip--filter:hover { border-color: var(--c); color: var(--ink); filter: none; }
.chip--filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--filter.is-active .icon { color: var(--lime); }
.chip__count {
	min-width: 22px; padding: 2px 6px;
	border-radius: 999px;
	background: var(--tint); color: var(--muted);
	font-size: 12px; text-align: center;
}
.chip--filter.is-active .chip__count { background: rgba(255, 255, 255, .16); color: #fff; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--brand); font-weight: 600; text-decoration: none;
}
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

.kicker {
	margin: 0 0 12px;
	color: var(--brand);
	font: 700 13px/1 var(--font);
	letter-spacing: .12em; text-transform: uppercase;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(247, 247, 243, .86);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { display: inline-flex; }
.brand__logo { max-height: 40px; width: auto; }
.brand__name { font: 700 22px/1 var(--font-display); letter-spacing: -.03em; }
.brand__name b { color: var(--brand); font-weight: 800; }
.brand--light { color: #fff; }
.brand--light .brand__name b { color: var(--lime); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: block; padding: 10px 14px; border-radius: 999px;
	color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none;
}
.site-nav .menu a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_parent > a { color: var(--ink); background: var(--tint); }

.site-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}
.site-nav .sub-menu {
	position: absolute; left: 50%; top: 100%;
	display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 2px;
	width: max-content; margin: 0; padding: 10px; list-style: none;
	background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.site-nav .sub-menu a { border-radius: 10px; font-size: 14.5px; }

.nav-toggle {
	display: none;
	width: 44px; height: 44px; padding: 0;
	align-items: center; justify-content: center;
	background: var(--surface); color: var(--ink);
	border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav-toggle__open { display: inline-flex; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 auto 0;
		display: none; flex-direction: column; align-items: stretch; gap: 16px;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		padding: 16px var(--gutter) 24px;
		background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; align-items: stretch; }
	.site-nav .menu a { padding: 12px 14px; font-size: 16px; }
	.site-nav .menu-item-has-children > a::after { display: none; }
	.site-nav .sub-menu {
		position: static; display: grid; grid-template-columns: 1fr 1fr; width: auto;
		padding: 4px 0 8px 8px; border: 0; box-shadow: none; background: transparent;
		opacity: 1; visibility: visible; transform: none;
	}
	.site-nav__cta { width: 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative; overflow: hidden;
	padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
	background:
		radial-gradient(600px 300px at 85% 10%, rgba(47, 75, 255, .12), transparent 70%),
		radial-gradient(500px 260px at 10% 90%, rgba(212, 255, 58, .22), transparent 70%);
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 70%);
	opacity: .6;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 22px; padding: 7px 14px 7px 10px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink-2); font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
	box-shadow: var(--shadow);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }

.hero__title { margin: 0 0 22px; font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero__title mark {
	background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%);
	color: inherit; padding: 0 .06em;
}
.hero__lead { max-width: 560px; margin: 0 0 32px; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.hero__proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero__proof .icon { color: #16a34a; }

/* Search result illustration */
.hero__visual { position: relative; padding: 24px 12px; }
.serp {
	position: relative;
	padding: 18px; border-radius: 22px;
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
	transform: rotate(-1.2deg);
}
.serp__bar {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 16px; margin-bottom: 16px;
	border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink-2); font-size: 15px;
}
.serp__bar .icon { color: var(--muted); }
.serp__caret { width: 2px; height: 18px; margin-left: -6px; background: var(--brand); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { to { opacity: 0; } }

.serp__ai {
	display: grid; gap: 8px;
	padding: 16px; margin-bottom: 14px; border-radius: 16px;
	background: linear-gradient(135deg, #eef1ff, #f6ffe0);
	border: 1px solid #dfe4ff;
}
.serp__ai-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font: 700 14px/1 var(--font); color: var(--brand-ink); }
.ln { display: block; height: 9px; border-radius: 6px; background: rgba(14, 21, 37, .1); }
.ln--title { height: 12px; background: rgba(14, 21, 37, .16); }
.serp__cite {
	display: flex; align-items: center; gap: 8px; width: fit-content;
	margin-top: 6px; padding: 6px 10px 6px 6px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
	font-size: 13px; font-weight: 600;
}
.serp__tag { padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 11px; letter-spacing: .03em; }
.fav { width: 18px; height: 18px; border-radius: 6px; background: var(--ink); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 10px var(--lime); flex: none; }
.serp__result { display: grid; gap: 7px; padding: 12px 6px; }
.serp__result + .serp__result { border-top: 1px dashed var(--line); }
.serp__url { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.serp__title { color: #1a0dab; font: 600 18px/1.3 var(--font); }
.serp__result.is-dim { opacity: .55; }
.serp__result.is-dim .fav { background: var(--line-2); box-shadow: none; }

.float {
	position: absolute; display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 14px; border-radius: 14px;
	background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
	font-size: 13px; font-weight: 600;
	animation: bob 6s ease-in-out infinite;
}
.float--rank { top: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 16px; transform: rotate(3deg); }
.float--rank b { font: 800 26px/1 var(--font-display); color: var(--lime); }
.float--rank small { font-size: 11px; color: rgba(255, 255, 255, .7); letter-spacing: .06em; text-transform: uppercase; }
.float--cwv { left: -8px; bottom: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); animation-delay: -3s; }
.float--cwv .icon { color: #16a34a; }
@keyframes bob { 50% { translate: 0 -8px; } }

@media (max-width: 960px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__visual { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
	.hero__visual { padding: 20px 4px; }
	.float--cwv { left: 0; }
	.serp__title { font-size: 16px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--tint); border-block: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; max-width: none; }
.section__head--row .section__title { margin: 0; }
.section__title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; }
.section__lead { margin: 0; color: var(--muted); font-size: 18px; }

/* Topic cards */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.topic {
	position: relative; display: flex; flex-direction: column;
	padding: 26px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--c); }
.topic__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px;
	background: var(--c-soft); color: var(--c);
}
.topic__num { position: absolute; top: 26px; right: 26px; color: var(--line-2); font: 800 20px/1 var(--font-display); }
.topic__name { margin: 0 0 8px; font-size: 22px; }
.topic__name a { text-decoration: none; }
.topic__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.topic__desc { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.topic__more { display: inline-flex; align-items: center; gap: 6px; color: var(--c); font-weight: 600; font-size: 14.5px; }
.topic:hover .topic__more .icon { transform: translateX(3px); }
.topic__more .icon { transition: transform .15s ease; }

@media (max-width: 960px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .topics { grid-template-columns: 1fr; } .topic { padding: 22px; } }

/* Principles */
.principles { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.principles__intro .section__lead { margin-bottom: 20px; }
.principles__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.principles__list li {
	display: grid; grid-template-columns: auto 1fr; gap: 4px 18px;
	padding: 22px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line);
}
.principles__icon {
	grid-row: span 2;
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 12px;
	background: var(--ink); color: var(--lime);
}
.principles__list h3 { margin: 0; font-size: 19px; }
.principles__list p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ==========================================================================
   Page heroes
   ========================================================================== */

.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.page-hero__title { margin: 0 0 14px; font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.035em; }
.page-hero__lead { max-width: 720px; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 19px); }
.page-hero__lead p:last-child { margin-bottom: 0; }

.page-hero--blog {
	background: radial-gradient(520px 240px at 90% 0%, rgba(47, 75, 255, .1), transparent 70%);
}
.page-hero--blog .search-form { margin-top: 26px; }

.page-hero--topic {
	position: relative; overflow: hidden;
	background: linear-gradient(180deg, var(--c-soft), var(--paper));
	border-bottom: 1px solid var(--line);
}
.page-hero__topic { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.page-hero--topic .page-hero__title { color: var(--ink); }
.page-hero__count {
	display: inline-flex; margin: 18px 0 0; padding: 6px 12px; border-radius: 999px;
	background: var(--surface); color: var(--c); font-size: 14px; font-weight: 600;
	border: 1px solid var(--line);
}
.page-hero__badge {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 132px; height: 132px; border-radius: 36px;
	background: var(--c); color: #fff;
	box-shadow: 0 20px 40px -18px var(--c);
	transform: rotate(6deg);
}
@media (max-width: 700px) { .page-hero__badge { display: none; } }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* Search form */
.search-form {
	position: relative; display: flex; align-items: center; gap: 8px;
	max-width: 560px; padding: 6px 6px 6px 18px;
	background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
	box-shadow: var(--shadow);
	transition: border-color .15s ease;
}
.search-form:focus-within { border-color: var(--brand); }
.search-form .icon { color: var(--muted); }
.search-form__input {
	flex: 1; min-width: 0; height: 40px;
	border: 0; outline: 0; background: transparent;
	font: 16px var(--font); color: var(--ink);
}
.search-form__input::-webkit-search-cancel-button { cursor: pointer; }

/* ==========================================================================
   Listings & cards
   ========================================================================== */

.listing { padding-bottom: clamp(56px, 8vw, 96px); }

.filters { margin: 8px 0 36px; }
.filters__list {
	display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none;
}
@media (max-width: 700px) {
	.filters { margin-inline: calc(-1 * var(--gutter)); }
	.filters__list {
		flex-wrap: nowrap; overflow-x: auto; padding: 2px var(--gutter) 10px;
		scroll-snap-type: x proximity; scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 32px), transparent);
		mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 32px), transparent);
	}
	.filters__list::-webkit-scrollbar { display: none; }
	.filters__list li { scroll-snap-align: start; }
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	color: var(--c);
	background:
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .7), transparent 40%),
		radial-gradient(var(--c) 1px, transparent 1.4px) 0 0 / 18px 18px,
		var(--c-soft);
	background-blend-mode: normal, soft-light, normal;
}
.card__placeholder .icon { padding: 16px; width: auto; height: auto; box-sizing: content-box; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 20px 22px 22px; }
.card__title { margin: 12px 0 8px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__body .chip { position: relative; z-index: 2; }
.card__excerpt { flex: 1; margin: 0 0 16px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card__meta { display: flex; gap: 8px; color: var(--muted); font-size: 13.5px; }

.card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.card--feature .card__media { aspect-ratio: auto; min-height: 340px; }
.card--feature .card__media img { object-fit: contain; }
.card--feature:hover .card__media img { transform: none; }
.card--feature .card__body { justify-content: center; padding: clamp(24px, 4vw, 48px); }
.card--feature .card__title { font-size: clamp(26px, 3vw, 36px); }
.card--feature .card__excerpt { flex: 0; font-size: 17px; }
@media (max-width: 860px) {
	.card--feature { grid-template-columns: 1fr; }
	.card--feature .card__media { min-height: 0; aspect-ratio: 16 / 9; }
}

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line);
	font-weight: 600; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); }

/* Empty state */
.empty {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: clamp(40px, 6vw, 64px) 24px; margin-bottom: 32px;
	background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: var(--radius);
}
.empty__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; margin-bottom: 16px; border-radius: 18px;
	background: var(--ink); color: var(--lime);
}
.empty__title { margin: 0 0 6px; font: 700 22px/1.3 var(--font-display); }
.empty__text { max-width: 460px; margin: 0; color: var(--muted); }

/* ==========================================================================
   Article
   ========================================================================== */

.article__head { padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 4vw, 36px); }
.article__title { margin: 16px 0 16px; font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.article__lead { color: var(--ink-2); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; }
.article__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
	padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line);
	color: var(--muted); font-size: 14.5px;
}
.article__author { display: inline-flex; align-items: center; gap: 10px; }
.article__author a { color: var(--ink); font-weight: 600; text-decoration: none; }
.article__avatar { border-radius: 50%; }
.article__time { display: inline-flex; align-items: center; gap: 6px; }

.article__cover { margin: 0 auto clamp(32px, 5vw, 48px); }
.article__cover img { width: 100%; border-radius: var(--radius); }
.article__cover figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }

.article__layout { max-width: calc(var(--narrow) + 2 * var(--gutter)); padding-bottom: clamp(48px, 7vw, 80px); }
.article__layout.has-toc {
	max-width: var(--max);
	display: grid; grid-template-columns: 260px minmax(0, var(--narrow)); justify-content: center; gap: 56px;
}

.toc { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.toc__box { padding: 18px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.toc__title { display: flex; align-items: center; gap: 8px; cursor: pointer; font: 700 15px/1 var(--font); list-style: none; }
.toc__title::-webkit-details-marker { display: none; }
.toc__list { margin: 14px 0 0; padding: 0; list-style: none; max-height: calc(100vh - 220px); overflow-y: auto; }
.toc__item a {
	display: block; padding: 6px 10px; border-left: 2px solid var(--line);
	color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none;
}
.toc__item--h3 a { padding-left: 22px; font-size: 13.5px; }
.toc__item a:hover { color: var(--ink); }
.toc__item a.is-active { color: var(--c); border-left-color: var(--c); font-weight: 600; }

@media (max-width: 1060px) {
	.article__layout.has-toc { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--narrow) + 2 * var(--gutter)); gap: 0; }
	.toc { position: static; margin-bottom: 32px; }
	.toc__title::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
	.toc__box[open] .toc__title::after { content: "–"; }
	.toc__list { max-height: none; }
}

/* Prose */
.prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > * { margin-top: 0; margin-bottom: 1.25em; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(26px, 3vw, 32px); color: var(--ink); }
.prose h3 { margin: 1.7em 0 .5em; font-size: clamp(21px, 2.3vw, 24px); color: var(--ink); }
.prose h4 { margin: 1.5em 0 .5em; font-size: 19px; color: var(--ink); }
.prose a { color: var(--brand); text-decoration-color: rgba(47, 75, 255, .35); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--c); }
.prose blockquote {
	margin-inline: 0; padding: 18px 24px;
	background: var(--surface); border-left: 4px solid var(--c); border-radius: 0 14px 14px 0;
	color: var(--ink); font-size: 1.05em;
}
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: 14px; }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.prose code { padding: .15em .4em; border-radius: 6px; background: var(--tint); font: .88em var(--font-mono); color: var(--ink); }
.prose pre {
	overflow-x: auto; padding: 20px 22px; border-radius: 14px;
	background: var(--ink); color: #e7eaf3; font: 14.5px/1.65 var(--font-mono);
}
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-table thead, .prose .wp-block-table tfoot { border: 0; }
.prose th, .prose td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--tint); color: var(--ink); font-weight: 600; }
.prose .wp-block-image { margin-block: 2em; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--ink-2); font-size: 14px; text-decoration: none; }
.tags a:hover { background: var(--line); }

.author-box {
	display: flex; gap: 18px; align-items: flex-start;
	margin-top: 40px; padding: 24px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line);
}
.author-box__avatar { border-radius: 50%; flex: none; }
.author-box__label { margin: 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.author-box__name { margin: 2px 0 6px; font: 700 20px/1.3 var(--font-display); color: var(--ink); }
.author-box__bio { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* Comments */
.comments { margin-top: 48px; font-size: 16px; }
.comments__title { font-size: 24px; }
.comments__list, .comments__list .children { list-style: none; padding: 0; }
.comments__list .children { padding-left: 24px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author img { display: inline-block; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-meta { font-size: 14px; color: var(--muted); }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
	font: 16px var(--font); background: var(--surface);
}
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--brand); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { padding: clamp(48px, 7vw, 80px) 0 28px; background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1.5fr .8fr; gap: 40px; }
.site-footer__about p { max-width: 360px; margin-top: 16px; }
.site-footer__title { margin: 0 0 16px; color: #fff; font: 700 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.site-footer__links { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer__links--cols { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
.site-footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* WordPress core alignment helpers */
.alignwide { max-width: min(1100px, 100vw - 2 * var(--gutter)); margin-inline: auto; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { color: var(--muted); font-size: 14px; }
.page-links { margin-top: 24px; font-weight: 600; }
