/*
Theme Name: Iniyan
Theme URI: https://iniyan.in
Author: Thamiziniyan
Author URI: https://iniyan.in
Description: Personal site theme for a digital growth consultant & product builder. Editorial serif display type, cream/ink palette, gamified XP progress bar, custom cursor, scroll reveals and a WordPress-native blog. Port of the iniyan.in Next.js front end.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: Creative Commons Attribution 4.0
License URI: https://creativecommons.org/licenses/by/4.0/
Text Domain: iniyan
Tags: one-column, custom-logo, custom-menu, featured-images, blog, portfolio
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--white: #fafaf9;
	--cream: #f4efe6;
	--cream2: #ede7da;
	--ink: #181818;
	--ink2: #2e2e2e;
	--muted: #6a6a6a;
	--muted2: #9a9a9a;
	--accent: #b94030;
	--accent-light: rgba(185, 64, 48, 0.08);
	--accent2: #2b5fb5;
	--accent3: #1f9b6e;
	--border: rgba(24, 24, 24, 0.08);
	--border2: rgba(24, 24, 24, 0.15);
	--radius: 16px;
	--radius-sm: 10px;

	--font-display: 'Playfair Display', Georgia, serif;
	--font-body: 'Inter', system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, monospace;
	--tracking-tight: -0.02em;
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--container: 72rem;
}

/* ==========================================================================
   Reset (mirrors Tailwind preflight)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; line-height: 1.5; }
body {
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
ul, ol { list-style: none; }
img, svg, video { display: block; vertical-align: middle; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
em { font-style: italic; }

.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;
}
.screen-reader-text:focus, .skip-link:focus {
	background: var(--ink); color: var(--white); clip: auto !important; clip-path: none;
	display: block; height: auto; width: auto; left: 12px; top: 12px;
	padding: 12px 20px; border-radius: 999px; z-index: 100000; font-size: 0.875rem;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { max-width: var(--container); margin: 0 auto; }
.section { padding: 6rem 1.5rem; }
@media (min-width: 768px) { .section { padding-left: 3rem; padding-right: 3rem; } }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: #fff; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--muted);
	text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--accent); display: block; }
.section .eyebrow { margin-bottom: 0.75rem; }
.bg-ink .eyebrow { color: rgba(250, 250, 249, 0.4); }

.section-title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 2.25rem;
	letter-spacing: var(--tracking-tight);
	line-height: 1;
	color: var(--ink);
	margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .section-title { font-size: 3rem; } }
.bg-ink .section-title { color: #fff; }

.section-lede {
	font-size: 1rem;
	line-height: 1.625;
	color: var(--muted);
	max-width: 32rem;
	margin-bottom: 2.5rem;
}
.bg-ink .section-lede { color: rgba(250, 250, 249, 0.5); }

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

.link-underline {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ink);
	border-bottom: 1px solid var(--ink);
	padding-bottom: 0.125rem;
	transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.link-underline:hover { color: var(--accent); border-color: var(--accent); }

.pill {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: rgba(185, 64, 48, 0.1);
	color: var(--accent);
}

/* ==========================================================================
   Micro-interactions: cursor, XP bar, fade-up
   ========================================================================== */
.cursor-dot, .cursor-ring { display: none; }
@media (min-width: 901px) and (pointer: fine) {
	body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
	.has-cursor .cursor-dot, .has-cursor .cursor-ring { display: block; }
}
.cursor-dot {
	width: 10px; height: 10px;
	background: var(--accent);
	border-radius: 50%;
	position: fixed; top: 0; left: 0;
	pointer-events: none; z-index: 9999;
	transform: translate(-100px, -100px);
	transition: background 0.2s;
}
.cursor-ring {
	width: 32px; height: 32px;
	border: 1.5px solid var(--accent);
	border-radius: 50%;
	position: fixed; top: 0; left: 0;
	pointer-events: none; z-index: 9998;
	opacity: 0.4;
	transform: translate(-100px, -100px);
	transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.cursor-dot.is-hover { background: var(--accent2); }

.xp-bar-wrap { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none; }
.xp-bar { height: 100%; width: 0; background: linear-gradient(90deg, #b94030, #2b5fb5); transition: width 0.1s linear; }
.admin-bar .xp-bar-wrap { top: 32px; }

.js .fade-up {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .fade-up.visible { opacity: 1; transform: translateY(0); }

@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

.lift { transition: transform 0.15s var(--ease); }
.lift:hover { transform: translateY(-0.25rem); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
	position: fixed;
	top: 3px; left: 0; right: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 2rem;
	background: rgba(250, 250, 249, 0.9);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border);
	transition: all 0.15s var(--ease);
}
@media (min-width: 768px) { .site-nav { padding: 1rem 3rem; } }
.admin-bar .site-nav { top: 35px; }
@media screen and (max-width: 782px) {
	.admin-bar .xp-bar-wrap { top: 46px; }
	.admin-bar .site-nav { top: 49px; }
}
.site-nav.is-scrolled, .site-nav.is-open { background: rgba(250, 250, 249, 0.97); }
.site-nav.is-scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04); }

.brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 900;
	letter-spacing: var(--tracking-tight);
	color: var(--ink);
	line-height: 1.4;
}
.brand img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.site-menu { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .site-menu { display: flex; } }
.site-menu a:not(.btn-nav) {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: var(--muted);
	transition: color 0.15s var(--ease);
}
.site-menu a:not(.btn-nav):hover { color: var(--ink); }
.site-menu .current-menu-item > a,
.site-menu a[aria-current="page"] {
	color: var(--ink);
	border-bottom: 1.5px solid var(--accent);
	padding-bottom: 2px;
}
.btn-nav {
	display: inline;
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
	background: var(--ink);
	padding: 0.5rem 1rem;
	border-radius: 999px;
	transition: background-color 0.15s var(--ease);
}
.btn-nav:hover { background: var(--accent); }

.nav-toggle {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 0.25rem;
	z-index: 10;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle span {
	display: block;
	width: 1.5rem;
	height: 0.125rem;
	background: var(--ink);
	transition: all 0.15s var(--ease);
}
.is-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(2px, 3px); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(2px, -3px); }

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	background: rgba(250, 250, 249, 0.98);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}
.mobile-menu[hidden] { display: none; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }
.mobile-menu ul { display: contents; }
.mobile-menu a:not(.btn-mobile) {
	font-family: var(--font-display);
	font-size: 2.25rem;
	line-height: 2.5rem;
	font-weight: 900;
	font-style: italic;
	color: var(--ink);
	transition: color 0.15s var(--ease);
}
.mobile-menu a:not(.btn-mobile):hover { color: var(--accent); }
.btn-mobile {
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	background: var(--ink);
	padding: 0.75rem 2rem;
	border-radius: 999px;
	margin-top: 1rem;
	transition: background-color 0.15s var(--ease);
}
.btn-mobile:hover { background: var(--accent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	min-height: 100vh;
	max-width: var(--container);
	margin: 0 auto;
	padding: 9rem 1.5rem 5rem;
	display: grid;
	gap: 4rem;
	align-items: center;
}
@media (min-width: 768px) {
	.hero { grid-template-columns: 1fr 420px; padding-left: 3rem; padding-right: 3rem; }
}
.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent3);
	border: 1px solid rgba(31, 155, 110, 0.25);
	background: rgba(31, 155, 110, 0.06);
	padding: 0.375rem 1rem;
	border-radius: 999px;
	margin-bottom: 1.5rem;
}
.status-badge .dot {
	width: 0.375rem; height: 0.375rem;
	border-radius: 50%;
	background: var(--accent3);
	animation: blink 2s infinite;
}
.hero-title {
	font-family: var(--font-display);
	font-weight: 900;
	color: var(--ink);
	line-height: 1;
	margin-bottom: 1.5rem;
	font-size: clamp(3rem, 5.5vw, 5rem);
	letter-spacing: -0.02em;
}
.hero-title em { color: var(--accent); }
.hero-lede {
	font-size: 1.125rem;
	line-height: 1.625;
	color: var(--muted);
	max-width: 28rem;
	margin-bottom: 2rem;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #fff;
	font-weight: 600;
	font-size: 0.875rem;
	padding: 0.875rem 1.75rem;
	border-radius: 999px;
	background: var(--accent);
	box-shadow: 0 4px 16px rgba(185, 64, 48, 0.25);
	transition: all 0.15s var(--ease);
}
.btn-cta:hover { transform: translateY(-0.125rem); }
.btn-cta svg { width: 1rem; height: 1rem; }

.trusted {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}
.trusted-label { font-size: 0.75rem; font-weight: 500; color: var(--muted2); }
.chip {
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--border2);
	color: var(--muted);
	background: var(--cream);
}

.hero-side { display: flex; flex-direction: column; gap: 0.75rem; }
.profile-card {
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid var(--border2);
	background: var(--cream);
}
.profile-card .photo { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.profile-card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-card .meta { padding: 0.875rem 1.25rem; }
.profile-card .name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.profile-card .role { font-size: 0.75rem; margin-top: 0.125rem; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.stat {
	position: relative;
	border-radius: 10px;
	padding: 1.25rem;
	overflow: hidden;
	background: var(--cream);
	border: 1px solid var(--border);
}
.stat::before, .flagship-link::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0;
	height: 2.5px;
	background: var(--bar, var(--accent));
}
.stat .num {
	font-family: var(--font-display);
	font-weight: 900;
	color: var(--ink);
	line-height: 1;
	margin-bottom: 0.25rem;
	font-size: 2.2rem;
	letter-spacing: -0.03em;
}
.stat .label { font-size: 0.75rem; line-height: 1.375; color: var(--muted); }
.flagship-link {
	grid-column: span 2;
	position: relative;
	border-radius: 10px;
	padding: 1rem;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--ink);
}
.flagship-link .title { font-family: var(--font-display); font-weight: 900; color: #fff; font-size: 1.3rem; }
.flagship-link .sub { font-size: 0.75rem; margin-top: 0.125rem; color: rgba(250, 250, 249, 0.45); }
.live-pill {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #fff;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: var(--accent);
}

/* ==========================================================================
   Consulting
   ========================================================================== */
.consulting .section-title { font-size: clamp(2rem, 3.5vw, 2.8rem); letter-spacing: -0.025em; }
.consulting-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .consulting-grid { grid-template-columns: 1fr 360px; } }
.service {
	display: grid;
	grid-template-columns: 36px 1fr;
	column-gap: 1.25rem;
	align-items: start;
	padding: 1.75rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.service .num { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--accent); padding-top: 0.25rem; }
.service .title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: #fff; margin-bottom: 0.375rem; }
.service p { font-size: 0.875rem; line-height: 1.625; margin-bottom: 0.625rem; color: rgba(250, 250, 249, 0.5); }
.result-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.68rem;
	font-weight: 400;
	color: rgba(250, 250, 249, 0.4);
	font-style: italic;
}
.result-badge::before { content: '\2192'; font-size: 0.65rem; font-style: normal; opacity: 0.5; }

.cta-card {
	border-radius: 1rem;
	padding: 2rem;
	height: fit-content;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) { .cta-card { position: sticky; top: 7rem; } }
.cta-card .avatar {
	width: 3.5rem; height: 3.5rem;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.5rem;
	margin-bottom: 1rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-card .title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.cta-card > p:not(.fine) { font-size: 0.875rem; line-height: 1.625; margin-bottom: 1.5rem; color: rgba(250, 250, 249, 0.5); }
.cta-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.cta-tags span {
	font-size: 0.75rem; font-weight: 500;
	padding: 0.25rem 0.75rem; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(250, 250, 249, 0.6);
}
.btn-light {
	display: flex; align-items: center; justify-content: center; gap: 0.5rem;
	width: 100%;
	padding: 0.875rem 0;
	border-radius: 999px;
	font-size: 0.875rem; font-weight: 600;
	background: var(--white);
	color: var(--ink);
	transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn-light:hover { background: var(--accent); color: #fff; }
.cta-card .fine { font-size: 0.75rem; text-align: center; margin-top: 0.75rem; font-style: italic; color: rgba(250, 250, 249, 0.3); }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 200px 1fr; } }
.about-photo {
	width: 200px; height: 200px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--border2);
	margin: 0 auto;
	flex-shrink: 0;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-body { text-align: center; }
.about-body h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; font-style: italic; color: var(--ink); margin-bottom: 0.75rem; }
.about-body p { font-size: 1rem; line-height: 1.625; max-width: 36rem; color: var(--muted); }
.about-links { display: flex; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; justify-content: center; }
.about-links a {
	font-size: 0.75rem; font-weight: 500; color: var(--ink);
	border-bottom: 1px solid var(--border2);
	padding-bottom: 0.125rem;
	transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.about-links a:hover { color: var(--accent); border-color: var(--accent); }
@media (min-width: 768px) {
	.about-photo { margin: 0; }
	.about-body { text-align: left; }
	.about-links { justify-content: flex-start; }
}

/* ==========================================================================
   Products
   ========================================================================== */
.products-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
.product {
	position: relative;
	display: block;
	border-radius: 1rem;
	padding: 2rem;
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--border);
	transition: all 0.3s var(--ease);
}
.product:hover {
	transform: translateY(-0.375rem);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.product .arrow {
	position: absolute; top: 1.5rem; right: 1.5rem;
	font-size: 1rem;
	color: var(--muted);
	transition: all 0.15s var(--ease);
}
.product:hover .arrow { transform: translate(0.125rem, -0.125rem); color: var(--accent); }
.product .icon {
	width: 3rem; height: 3rem;
	border-radius: 0.75rem;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.25rem;
	margin-bottom: 1.25rem;
	background: var(--cream);
}
.product .name { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-tight); margin-bottom: 0.5rem; font-size: 1.25rem; color: var(--ink); }
.product p { font-size: 0.875rem; line-height: 1.625; margin-bottom: 1.25rem; color: var(--muted); }
.product .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product .tags span {
	font-size: 11px; font-weight: 500;
	padding: 0.25rem 0.75rem; border-radius: 999px;
	background: var(--cream); color: var(--muted);
	border: 1px solid var(--border);
}
.product.is-flagship { background: var(--ink); border-color: transparent; color: #fff; }
@media (min-width: 768px) { .product.is-flagship { grid-column: span 2; } }
.product.is-flagship .arrow { color: rgba(255, 255, 255, 0.4); }
.product.is-flagship:hover .arrow { color: var(--accent); }
.product.is-flagship .icon { background: rgba(255, 255, 255, 0.1); }
.product.is-flagship .name { font-size: 1.5rem; color: #fff; }
.product.is-flagship p { color: rgba(255, 255, 255, 0.6); }
.product.is-flagship .tags span { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); border-color: transparent; }
.flagship-pill {
	display: inline-block;
	background: var(--accent); color: #fff;
	font-size: 10px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.1em;
	padding: 0.25rem 0.75rem; border-radius: 999px;
	margin-bottom: 1rem;
}

/* ==========================================================================
   Expertise
   ========================================================================== */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .skills-grid { grid-template-columns: repeat(4, 1fr); } }
.skill {
	border: 1px solid var(--border2);
	border-radius: 1rem;
	padding: 1.5rem;
	background: var(--white);
	transition: all 0.15s var(--ease);
}
.skill:hover { border-color: var(--accent); transform: translateY(-0.25rem); }
.skill .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.skill .title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: var(--tracking-tight); margin-bottom: 0.25rem; }
.skill p { font-size: 0.75rem; line-height: 1.625; color: var(--muted); }

/* ==========================================================================
   Career XP
   ========================================================================== */
.levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .levels { grid-template-columns: repeat(5, 1fr); } }
.level {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 1rem;
	padding: 1.25rem;
	transition: border-color 0.15s var(--ease);
}
.level.is-active { border-color: var(--accent); }
.level.is-active::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 0.125rem; background: var(--accent); }
.level .badge { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.level .name { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.level p { font-size: 0.75rem; line-height: 1.625; color: rgba(250, 250, 248, 0.4); }

.xp-meter {
	margin-top: 3rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 1rem;
	padding: 2rem;
	background: rgba(255, 255, 255, 0.04);
}
.xp-meter .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.875rem; }
.xp-meter .row > span:first-child { color: rgba(250, 250, 248, 0.7); }
.xp-meter .xp-count { font-family: var(--font-mono); font-weight: 700; color: var(--accent); }
.xp-track { height: 0.375rem; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.xp-fill {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #b94030, #d4705a);
	transition: all 1.5s var(--ease);
}

/* ==========================================================================
   Blog (home section)
   ========================================================================== */
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.blog-head .section-title { margin-bottom: 0; }
.blog-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	border-radius: 1rem;
	padding: 1.5rem;
	overflow: hidden;
	background: var(--cream);
	border: 1px solid var(--border);
	transition: all 0.15s var(--ease);
}
.post-card::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--border);
	transition: background-color 0.15s var(--ease);
}
.post-card:hover { transform: translateY(-0.25rem); border-color: rgba(24, 24, 24, 0.2); }
.post-card:hover::before { background: var(--accent); }
.post-card .meta { display: flex; align-items: center; gap: 0.75rem; }
.post-card .date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.post-card h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--ink); letter-spacing: var(--tracking-tight); line-height: 1.375; }
.post-card p {
	font-size: 0.875rem; line-height: 1.625; color: var(--muted); flex: 1;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .more { font-size: 0.875rem; font-weight: 500; color: var(--accent); margin-top: auto; transition: all 0.15s var(--ease); }

.post-card.is-featured { background: var(--ink); border: 0; padding: 2rem; }
@media (min-width: 768px) { .post-card.is-featured { grid-column: span 2; } }
.post-card.is-featured::before { background: var(--accent); }
.post-card.is-featured:hover { border-color: transparent; }
.post-card.is-featured .pill { background: rgba(185, 64, 48, 0.25); }
.post-card.is-featured .date { color: rgba(255, 255, 255, 0.4); }
.post-card.is-featured h3 { font-size: 1.5rem; color: #fff; }
.post-card.is-featured p { color: rgba(255, 255, 255, 0.55); display: block; overflow: visible; }
.post-card.is-featured .more { margin-top: 0.5rem; }

/* ==========================================================================
   Achievements
   ========================================================================== */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (min-width: 768px) { .badges { grid-template-columns: repeat(6, 1fr); } }
.badge-card {
	border: 1px solid var(--border);
	border-radius: 1rem;
	padding: 1.25rem;
	background: var(--white);
	text-align: center;
	cursor: default;
	transition: transform 0.15s var(--ease);
}
.badge-card:hover { transform: translateY(-0.25rem) rotate(1.5deg); }
.badge-card .icon { display: block; font-size: 1.875rem; line-height: 2.25rem; margin-bottom: 0.5rem; }
.badge-card .name { font-size: 0.75rem; font-weight: 600; color: var(--ink); margin-bottom: 0.125rem; }
.badge-card .sub { font-size: 10px; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	max-width: 1200px;
	margin: 0 auto;
	padding: 4rem 2rem;
	border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .site-footer { padding-left: 3rem; padding-right: 3rem; } }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; align-items: center; } }
.site-footer .brand { font-size: 1.5rem; line-height: 2rem; }
.site-footer .brand span { color: var(--accent); }
.footer-links, .footer-links ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.15s var(--ease); }
.footer-links a:hover { color: var(--ink); }
.footer-license { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.footer-license a { text-decoration: underline; transition: color 0.15s var(--ease); }
.footer-license a:hover { color: var(--ink); }

/* ==========================================================================
   Blog index, archives, single posts, pages
   ========================================================================== */
.page-wrap { max-width: 56rem; margin: 0 auto; padding: 10rem 2rem 6rem; }
@media (min-width: 768px) { .page-wrap { padding-left: 3rem; padding-right: 3rem; } }
.page-wrap > .eyebrow { margin-bottom: 1rem; }
.page-title {
	font-family: var(--font-display);
	font-size: 3rem;
	font-weight: 900;
	letter-spacing: var(--tracking-tight);
	color: var(--ink);
	margin-bottom: 4rem;
	line-height: 1;
}
@media (min-width: 768px) { .page-title { font-size: 3.75rem; } }
.archive-desc { color: var(--muted); margin: -3rem 0 3rem; max-width: 36rem; line-height: 1.625; }

.post-list { display: flex; flex-direction: column; }
.post-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--border);
	transition: color 0.15s var(--ease);
}
.post-row .body { flex: 1; padding-right: 2rem; }
.post-row .cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-right: 0.75rem; }
.post-row h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: var(--tracking-tight); margin-top: 0.25rem; transition: color 0.15s var(--ease); }
.post-row:hover h2 { color: var(--accent); }
.post-row .date { font-family: var(--font-mono); font-size: 0.75rem; white-space: nowrap; padding-top: 0.25rem; color: var(--muted); }
.empty-note { color: var(--muted); }

.pagination { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 3rem; }
.pagination .page-numbers {
	font-family: var(--font-mono); font-size: 0.75rem;
	padding: 0.5rem 0.875rem; border-radius: 999px;
	border: 1px solid var(--border2); color: var(--muted);
	transition: all 0.15s var(--ease);
}
.pagination a.page-numbers:hover { color: var(--accent); border-color: var(--accent); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.back-link { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; transition: color 0.15s var(--ease); }
.back-link:hover { color: var(--accent); }
.entry-title {
	font-family: var(--font-display);
	font-size: 2.25rem;
	font-weight: 900;
	letter-spacing: var(--tracking-tight);
	color: var(--ink);
	line-height: 1.25;
	margin-top: 1rem;
	margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .entry-title { font-size: 3rem; } }
.entry-date { font-size: 0.875rem; margin-bottom: 3rem; color: var(--muted); }
.page .entry-title { margin-top: 0; margin-bottom: 3rem; }

.post-nav {
	margin-top: 4rem;
	padding-top: 2rem;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	border-top: 1px solid var(--border);
}
.post-nav a {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem;
	border-radius: 0.75rem;
	background: var(--cream);
	border: 1px solid var(--border);
	transition: all 0.15s var(--ease);
}
.post-nav a:hover { transform: translateY(-0.125rem); }
.post-nav .next a { text-align: right; }
.post-nav .label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted2); }
.post-nav .title { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: var(--ink); line-height: 1.375; transition: color 0.15s var(--ease); }
.post-nav a:hover .title { color: var(--accent); }

/* Prose — post & page content */
.prose { line-height: 1.8; }
.prose > * + * { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-top: 2em;
	margin-bottom: 0.75em;
	line-height: 1.2;
}
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.375rem; }
.prose h4 { font-size: 1.125rem; }
.prose p { margin-bottom: 1.25em; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose img { border-radius: 12px; margin: 2em 0; }
.prose figure { margin: 2em 0; }
.prose figure img { margin: 0; }
.prose figcaption, .prose .wp-element-caption { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 0.75em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
	border-left: 3px solid var(--accent);
	padding-left: 1em;
	margin: 1.5em 0;
	color: var(--muted);
	font-style: italic;
}
.prose code {
	font-family: var(--font-mono);
	background: var(--cream);
	padding: 0.15em 0.4em;
	border-radius: 4px;
	font-size: 0.9em;
}
.prose pre {
	background: var(--ink);
	color: #f4efe6;
	padding: 1.25em;
	border-radius: 12px;
	overflow-x: auto;
	margin: 1.5em 0;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border-top: 1px solid var(--border2); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.925rem; }
.prose th, .prose td { border-bottom: 1px solid var(--border2); padding: 0.6em 0.75em; text-align: left; }
.prose th { font-weight: 600; }
.prose .wp-block-button__link {
	display: inline-block; background: var(--accent); color: #fff;
	padding: 0.75rem 1.5rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600;
}
.prose .wp-block-button__link:hover { text-decoration: none; }
.prose .alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.prose .alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }

/* Comments */
.comments { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments-title, .comment-reply-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: var(--tracking-tight); }
.comment-list .comment { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.comment-list .children { padding-left: 1.5rem; }
.comment-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
.comment-meta .fn { font-weight: 600; color: var(--ink); font-style: normal; }
.comment-meta img { display: inline-block; border-radius: 50%; vertical-align: middle; margin-right: 0.5rem; }
.comment-content { line-height: 1.7; }
.comment-reply-link { font-size: 0.75rem; color: var(--accent); }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { display: block; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.375rem; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .search-form input[type="search"] {
	width: 100%; font: inherit; font-size: 0.9rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border2);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--ink);
	transition: border-color 0.15s var(--ease);
}
.comment-form input:focus, .comment-form textarea:focus, .search-form input:focus { outline: none; border-color: var(--accent); }
.comment-form .submit, .search-form button {
	justify-self: start;
	background: var(--ink); color: #fff;
	font-size: 0.875rem; font-weight: 600;
	padding: 0.75rem 1.75rem; border-radius: 999px;
	transition: background-color 0.15s var(--ease);
}
.comment-form .submit:hover, .search-form button:hover { background: var(--accent); }
.search-form { display: flex; gap: 0.75rem; margin-bottom: 3rem; }

/* 404 */
.not-found .page-title { margin-bottom: 1.5rem; }
.not-found p { color: var(--muted); margin-bottom: 2rem; }

/* WordPress core alignment helpers */
.alignnone { margin: 1em 0; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { }

/* ==========================================================================
   Line-height parity with Tailwind's text-* scale (size/leading pairs)
   ========================================================================== */
/* text-xs / text-2xl */
.btn-nav, .status-badge, .trusted-label, .chip, .profile-card .role, .flagship-link .sub,
.live-pill, .service .num, .cta-tags span, .cta-card .fine, .cta-card .avatar, .about-body h3,
.about-links a, .skill .icon, .post-card .date, .badge-card .name, .footer-license,
.post-row .date, .post-nav .label { line-height: 1.3333; }
/* text-sm */
.site-menu a:not(.btn-nav), .btn-cta, .link-underline, .btn-light, .level .name,
.xp-meter .row, .post-card .more, .footer-links a, .back-link, .entry-date, .btn-mobile { line-height: 1.4286; }
/* text-lg / text-xl */
.service .title { line-height: 1.5556; }
.cta-card .title, .product .icon, .product .name, .post-row h2 { line-height: 1.4; }
.product.is-flagship .name { line-height: 1.3333; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.js .fade-up { opacity: 1; transform: none; }
}
