/*
Theme Name: Abid Akon
Theme URI: https://abidakon.com/
Author: Md Abid Akon
Description: Warm, friendly portfolio and blog theme for abidakon.com. Fraunces headings, DM Sans body, soft off-white cards, coral and teal accents, dark mode.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: abidakon
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #FFFFFF;
	--bg-2: #F9F6F3;
	--bg-3: #F3EDE9;
	--bg-4: #ECE5E1;
	--surface: #FFFFFF;
	--ink: #1B1624;
	--text: #2E2A35;
	--muted: #625E69;
	--faint: #8D8A91;
	--border: #ECE5E1;
	--coral: #FD976D;
	--coral-hover: #FB8455;
	--coral-soft: #FEE7DC;
	--teal: #8FD3C9;
	--teal-soft: #E3F4F1;
	--teal-ink: #1E6B62;
	--sun: #FDD46B;
	--sun-soft: #FFF3D1;
	--link: #1E6B62;
	--on-coral: #1B1624;
	--focus: #1E6B62;
	--shadow: 0 2px 6px rgba(27, 22, 36, .05), 0 18px 40px -12px rgba(27, 22, 36, .14);
	--shadow-sm: 0 1px 2px rgba(27, 22, 36, .05), 0 6px 18px -8px rgba(27, 22, 36, .12);

	--font-head: "Fraunces", "Iowan Old Style", Georgia, serif;
	--font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1200px;
	--prose: 700px;
	--gutter: clamp(16px, 4vw, 48px);
	--radius: 24px;
	--radius-lg: clamp(20px, 2.5vw, 32px);
	--radius-sm: 12px;
	--section: clamp(56px, 8vw, 110px);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #15121A; --bg-2: #1E1A24; --bg-3: #26212D; --bg-4: #312B39; --surface: #1E1A24;
		--ink: #F6F2EC; --text: #DFD9D2; --muted: #ADA7B3; --faint: #8F8996; --border: #312B39;
		--coral: #FD976D; --coral-hover: #FEAA87; --coral-soft: #3A2620; --teal: #7FCFC3; --teal-soft: #1C302E;
		--teal-ink: #8FDDD1; --sun: #FDD46B; --sun-soft: #3A3220; --link: #8FDDD1; --on-coral: #1B1624; --focus: #8FDDD1;
		--shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .5);
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -8px rgba(0, 0, 0, .45);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #15121A; --bg-2: #1E1A24; --bg-3: #26212D; --bg-4: #312B39; --surface: #1E1A24;
	--ink: #F6F2EC; --text: #DFD9D2; --muted: #ADA7B3; --faint: #8F8996; --border: #312B39;
	--coral: #FD976D; --coral-hover: #FEAA87; --coral-soft: #3A2620; --teal: #7FCFC3; --teal-soft: #1C302E;
	--teal-ink: #8FDDD1; --sun: #FDD46B; --sun-soft: #3A3220; --link: #8FDDD1; --on-coral: #1B1624; --focus: #8FDDD1;
	--shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .5);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -8px rgba(0, 0, 0, .45);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
/* Smooth scrolling is switched on by theme.js after load, so links like /research/#mba-thesis land correctly. */
html.is-loaded { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.is-loaded { scroll-behavior: auto; } }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: var(--font-body); font-size: 1.1rem; font-weight: 400; line-height: 1.6;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	transition: background-color .25s ease, color .25s ease;
}
img, video, iframe { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head); font-variation-settings: "SOFT" 100, "WONK" 0;
	color: var(--ink); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em;
	margin: 0 0 .5em; text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5vw + 1rem, 5.25rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem); }
h3 { font-size: clamp(1.4rem, 1vw + 1rem, 1.9rem); letter-spacing: -0.025em; }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
::selection { background: var(--sun); color: #1B1624; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 1000; top: 12px; left: 12px;
	padding: 10px 18px; background: var(--surface); color: var(--ink); border-radius: 999px; box-shadow: var(--shadow);
}
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.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: 16px; height: 80px; }
.site-brand {
	font-family: var(--font-head); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.45rem;
	color: var(--ink); text-decoration: none; letter-spacing: -0.03em; white-space: nowrap;
}
.site-brand span { color: var(--coral); }
.site-nav { display: flex; align-items: center; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a {
	display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted);
	text-decoration: none; font-size: 1rem; font-weight: 500;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-2); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--ink); background: var(--bg-3); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-cta { padding: 10px 20px !important; font-size: .98rem !important; }
.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
	border: 0; background: var(--bg-2); color: var(--ink); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--bg-3); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }

@media (max-width: 920px) {
	.menu-toggle { display: inline-grid; }
	.header-cta { display: none !important; }
	.site-nav {
		position: absolute; top: 80px; left: 0; right: 0; display: none;
		background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 18px;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 2px; }
	.site-nav a { padding: 12px 16px; font-size: 1.1rem; color: var(--ink); }
}

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; gap: 8px; justify-content: center;
	padding: 13px 26px 12px; border-radius: 9999px; font-family: var(--font-body); font-weight: 500;
	font-size: 1.05rem; line-height: 1.3; text-decoration: none; border: 0;
	background: var(--coral); color: var(--on-coral);
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover, .wp-block-button__link:hover { background: var(--coral-hover); color: var(--on-coral); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost, .is-style-outline .wp-block-button__link, .is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--ghost:hover, .is-style-outline .wp-block-button__link:hover { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }
.is-style-ak-teal .wp-block-button__link { background: var(--teal); color: #1B1624; }
.is-style-ak-teal .wp-block-button__link:hover { background: color-mix(in srgb, var(--teal) 85%, #000); color: #1B1624; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.link-arrow::after { content: " →"; text-decoration: none; display: inline-block; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Page hero (Blog, pages) ---------- */
.site-main { min-height: 60vh; }
.page-hero-wrap { padding-inline: clamp(0px, 1.5vw, 16px); }
.page-hero {
	max-width: calc(var(--wrap) + 160px); margin-inline: auto; background: var(--bg-2);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(36px, 5vw, 64px);
}
.page-hero__inner { max-width: var(--wrap); margin-inline: auto; }
.page-hero__eyebrow, .eyebrow {
	display: inline-block; font-family: var(--font-body); font-size: .9rem; font-weight: 500;
	color: var(--muted); margin-bottom: 10px;
}
.page-hero h1 { margin-bottom: .2em; font-size: clamp(2.4rem, 4vw + 1rem, 4.25rem); }
.page-hero__lead { font-size: 1.25rem; color: var(--muted); max-width: 640px; margin: 0; }
.page-hero__inner.has-media { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero__media { position: relative; margin: 0; max-width: 520px; justify-self: end; width: 100%; }
.page-hero__media::before {
	content: ""; position: absolute; inset: 10% -5% -7% 8%; z-index: 0;
	background: var(--sun); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; transform: rotate(-3deg); opacity: .85;
}
.page-hero__media img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 900px) {
	.page-hero__inner.has-media { grid-template-columns: 1fr; }
	.page-hero__media { justify-self: start; max-width: 440px; width: calc(100% - 24px); }
}
.page-content { padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--section); }
.page-content > .entry-content { max-width: var(--prose); }

/* ---------- Prose ---------- */
.prose { font-size: 1.15rem; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1.2em; }
.prose > * { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.7rem, 1.5vw + 1rem, 2.2rem); margin-top: 1.9em; }
.prose h3 { font-size: clamp(1.35rem, 1vw + 1rem, 1.65rem); margin-top: 1.6em; }
.prose h4 { font-size: 1.2rem; margin-top: 1.4em; }
.prose a { color: var(--link); }
.prose a.wp-block-button__link, .prose a.wp-block-button__link:hover { color: var(--on-coral); text-decoration: none; }
.prose .is-style-outline a.wp-block-button__link { color: var(--ink); }
.prose .is-style-outline a.wp-block-button__link:hover { color: var(--bg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--coral); }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { font-size: .92rem; color: var(--muted); text-align: center; margin-top: .6em; }
.prose blockquote {
	margin-inline: 0; padding: 20px 26px; background: var(--bg-2); border-radius: var(--radius-sm);
	border-left: 4px solid var(--coral); font-family: var(--font-head); font-size: 1.3rem; color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-size: .88em; background: var(--bg-3); padding: .15em .45em; border-radius: 6px; }
.prose pre { background: var(--bg-2); padding: 20px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .92rem; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-2); color: var(--ink); font-weight: 600; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-sm); border: 0; }
.alignwide { max-width: calc(var(--prose) + 240px); }
.aligncenter { margin-inline: auto; display: block; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }

/* ---------- Chips ---------- */
.chip {
	display: inline-flex; align-items: center; padding: 4px 12px 3px; border-radius: 999px;
	background: var(--coral-soft); color: var(--ink); font-size: .82rem; font-weight: 500;
	text-decoration: none; line-height: 1.6;
}
a.chip:hover { background: var(--coral); color: var(--on-coral); }
.chip--plain { background: var(--bg-3); color: var(--muted); }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card {
	position: relative; display: flex; flex-direction: column; background: var(--bg-2);
	border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--bg-3); }
.post-card__media { aspect-ratio: 16 / 9; background: var(--bg-3); overflow: hidden; margin: 10px 10px 0; border-radius: 16px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .86rem; color: var(--muted); }
.post-card__title { font-size: 1.35rem; margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { color: var(--muted); font-size: 1rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .chip { position: relative; z-index: 1; }

/* ---------- Blog layout ---------- */
.blog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: clamp(32px, 5vw, 56px); padding-bottom: var(--section); }
.blog-sidebar { position: sticky; top: 104px; }
.blog-sidebar h2 { font-family: var(--font-body); font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin: 0 0 10px; }
.blog-sidebar .search-form { margin-bottom: 28px; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cat-nav a {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px;
	border-radius: 14px; color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 500;
}
.cat-nav a:hover { background: var(--bg-2); color: var(--ink); }
.cat-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.cat-nav .count { font-size: .82rem; color: var(--faint); font-variant-numeric: tabular-nums; background: var(--bg-3); padding: 1px 9px; border-radius: 999px; }
.cat-nav a[aria-current="page"] .count { background: color-mix(in srgb, var(--bg) 18%, transparent); color: inherit; }
.blog-results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; color: var(--muted); font-size: .98rem; }

@media (max-width: 900px) {
	.blog-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.blog-sidebar { position: static; min-width: 0; }
	.blog-sidebar h2.cat-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.cat-nav { margin-inline: calc(var(--gutter) * -1); }
	.cat-nav ul { flex-direction: row; overflow-x: auto; gap: 8px; padding: 2px var(--gutter) 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
	.cat-nav ul::-webkit-scrollbar { display: none; }
	.cat-nav li { flex: 0 0 auto; scroll-snap-align: start; }
	.cat-nav a { border-radius: 999px; padding: 8px 14px; background: var(--bg-2); white-space: nowrap; font-size: .95rem; }
	.blog-sidebar .search-form { margin-bottom: 14px; }
}

/* ---------- Search form ---------- */
.search-form { display: block; }
.search-box { position: relative; display: flex; }
.search-label { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); margin: 0 0 10px; }
.search-field {
	width: 100%; padding: 13px 46px 13px 18px; border-radius: 999px; border: 0; background: var(--bg-2);
	color: var(--ink); font: inherit; font-size: 1rem; box-shadow: inset 0 0 0 1px var(--border);
}
.search-field::placeholder { color: var(--faint); }
.search-field:focus { outline: 2.5px solid var(--focus); outline-offset: 1px; }
.search-submit {
	position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
	border: 0; border-radius: 999px; background: var(--coral); color: var(--on-coral); cursor: pointer; display: grid; place-items: center;
}
.search-submit:hover { background: var(--coral-hover); }
.search-submit svg { width: 17px; height: 17px; }

/* ---------- Pagination ---------- */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 48px; }
.page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px;
	background: var(--bg-2); color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 500;
}
.page-numbers.current { background: var(--ink); color: var(--bg); }
a.page-numbers:hover { background: var(--bg-3); color: var(--ink); }
.page-numbers.dots { background: none; }

/* ---------- Single post ---------- */
.single-head-wrap { padding-inline: clamp(0px, 1.5vw, 16px); }
.single-head {
	max-width: calc(var(--wrap) + 160px); margin-inline: auto; background: var(--bg-2);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(32px, 5vw, 56px);
}
.single-head__inner { max-width: 820px; margin-inline: auto; text-align: center; }
.single-head .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; justify-content: center; }
.single-head h1 { font-size: clamp(2.1rem, 3vw + 1rem, 3.5rem); margin-bottom: 18px; }
.single-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .98rem; align-items: center; justify-content: center; }
.single-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }
.single-figure { max-width: 980px; margin: clamp(28px, 4vw, 48px) auto 40px; padding-inline: var(--gutter); }
.single-figure img { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.single-body { max-width: var(--prose); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.single-body.no-figure { margin-top: clamp(32px, 5vw, 56px); }
.single-tags { max-width: var(--prose); margin: 40px auto 0; padding-inline: var(--gutter); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; box-sizing: content-box; }
.single-tags span { font-size: .9rem; color: var(--muted); margin-right: 4px; }
.reading-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--coral); z-index: 60; border-radius: 0 4px 4px 0; transition: width .1s linear; }
.author-box {
	max-width: var(--prose); margin: 48px auto 0; display: flex; gap: 18px; align-items: center; padding: 24px 26px;
	background: var(--bg-2); border-radius: var(--radius); box-sizing: content-box;
}
.author-box img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p { margin: 0; color: var(--muted); font-size: 1rem; }
.author-box strong { color: var(--ink); font-family: var(--font-head); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: 1.25rem; display: block; letter-spacing: -0.02em; }
.single-wrap { padding-inline: var(--gutter); }
.related { margin-top: var(--section); padding: var(--section) 0; background: var(--bg-2); }
.related h2 { margin-bottom: 28px; }
.related .post-card { background: var(--bg); }
.related .post-card:hover { background: var(--bg); }

/* ---------- Comments ---------- */
.comments-area { max-width: var(--prose); margin: 56px auto 0; box-sizing: content-box; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 24px; border-left: 2px solid var(--border); }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
.comment-meta { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.comment-meta .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-author .fn { color: var(--ink); font-weight: 600; font-style: normal; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
	width: 100%; padding: 13px 16px; border: 0; border-radius: 14px; background: var(--bg-2);
	color: var(--ink); font: inherit; box-shadow: inset 0 0 0 1px var(--border);
}
.comment-respond .submit { cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 0 clamp(0px, 1.5vw, 16px) 16px; }
.site-footer__card {
	max-width: calc(var(--wrap) + 160px); margin-inline: auto; background: var(--bg-2);
	border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 56px) var(--gutter);
}
.site-footer__inner { max-width: var(--wrap); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; color: var(--muted); }
.site-footer .site-brand { font-size: 1.3rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.site-footer__legal { max-width: var(--wrap); margin: 24px auto 0; font-size: .9rem; color: var(--faint); }

/* ---------- 404 / empty ---------- */
.empty-state { text-align: center; padding-top: var(--section); padding-bottom: var(--section); }
.empty-state p { color: var(--muted); }
.empty-state .search-form { max-width: 440px; margin: 24px auto 0; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.post-card, .post-card__media img, .btn, .wp-block-button__link { transition: none; }
}
