/*
Theme Name: Bhushan Chaudhari Portfolio
Theme URI: https://example.com/
Author: Dr. Anand Singh Rajawat
Description: A one-page academic portfolio for Dr. Bhushan Shivram Chaudhari, Professor. Sections: home, about, experience timeline, research and publications with type filter and search, patents and IP, talks and recognition, and contact form. All CV content lives in inc/data.php; photo, Google Scholar, LinkedIn, CV link and contact email are set in Appearance > Customize > Portfolio settings.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bhushan-portfolio
Tags: one-column, portfolio, education, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ------------------------------------------------------------
   Tokens
------------------------------------------------------------ */
:root {
	--ink: #16263d;
	--ink-2: #24385a;
	--paper: #f5f7fa;
	--paper-alt: #e9eef4;
	--mist: #d3dce6;
	--teal: #0e6e73;
	--teal-soft: #d6ebec;
	--amber: #d99a1e;
	--amber-soft: #f6e8c8;
	--text: #16263d;
	--muted: #5a6778;
	--card: #ffffff;

	--serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
	--sans: "Public Sans", "Segoe UI", system-ui, sans-serif;

	--wrap: 1120px;
	--r-sm: 4px;
	--r-md: 10px;
	--gap: clamp(1rem, 2.5vw, 2rem);
	--sec: clamp(3.5rem, 8vw, 6.5rem);
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #0f1a2b;
		--paper-alt: #142236;
		--mist: #2a3b54;
		--teal: #5cc2c6;
		--teal-soft: #173a44;
		--amber: #efb54a;
		--amber-soft: #3a2f16;
		--text: #e7edf5;
		--muted: #9aa8ba;
		--card: #172740;
		--ink: #0a1322;
		--ink-2: #1b2c46;
	}
}

/* ------------------------------------------------------------
   Base
------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); font-size: .94rem; margin: 0; }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: .5rem; }

/* ------------------------------------------------------------
   Buttons
------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .62rem 1.1rem; border-radius: var(--r-sm);
	background: var(--teal); color: #fff; border: 1px solid var(--teal);
	font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--mist); }
.btn-quiet:hover { background: var(--card); color: var(--text); border-color: var(--teal); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-accent { background: var(--amber); border-color: var(--amber); color: #1a1406; }
.btn-accent:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ------------------------------------------------------------
   Header
------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 90%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--mist);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand-mark {
	display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
	background: var(--ink); color: var(--amber); font: 700 .8rem/1 var(--serif);
}
@media (prefers-color-scheme: dark) { .btn:not(.btn-quiet):not(.btn-light) { color: var(--ink); } .btn:not(.btn-quiet):not(.btn-light):hover { color: #fff; } }
@media (max-width: 640px) { .swarm { display: none; } }
@media (prefers-color-scheme: dark) { .brand-mark { background: var(--amber); color: var(--ink); } }
.brand-logo { width: auto; max-height: 2.4rem; }
.brand-name { font: 600 1.05rem/1.2 var(--serif); }

.nav-list { display: flex; gap: .25rem; list-style: none; }
.nav-list a {
	display: block; padding: .45rem .7rem; border-radius: var(--r-sm);
	color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.nav-list a:hover { color: var(--text); background: var(--paper-alt); }
.nav-list a.is-active { color: var(--teal); background: var(--teal-soft); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
	.nav-toggle {
		display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
		background: none; border: 1px solid var(--mist); border-radius: var(--r-sm); cursor: pointer; color: var(--text);
	}
	.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
		display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; transition: transform .2s;
	}
	.nav-toggle-bar::before { position: absolute; top: -6px; }
	.nav-toggle-bar::after { position: absolute; top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
		border-bottom: 1px solid var(--mist); display: none;
	}
	.site-nav.is-open { display: block; }
	.nav-list { flex-direction: column; padding: .5rem 1.25rem 1rem; }
	.nav-list a { padding: .75rem .5rem; font-size: 1rem; }
}

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--mist);
}
.swarm { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid {
	position: relative; display: grid; gap: clamp(2rem, 5vw, 4.5rem);
	grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); align-items: center;
}
.hero-name {
	font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 700; line-height: 1.04;
	letter-spacing: -.02em; margin-bottom: .35em; max-width: 14ch;
}
.hero-title { font: 600 1.15rem/1.4 var(--sans); color: var(--teal); margin-bottom: .4rem; }
.hero-tagline { font: italic 400 1.3rem/1.45 var(--serif); color: var(--text); margin-bottom: 1.2rem; max-width: 34ch; }
.hero-bio { color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }

.hero-photo { margin: 0; justify-self: end; width: min(100%, 340px); position: relative; }
.hero-photo img {
	width: 100%; aspect-ratio: 6 / 7; object-fit: cover; object-position: center 20%;
	border-radius: 50% 50% var(--r-md) var(--r-md);
	box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--mist);
	background: var(--paper-alt);
}

.stats {
	position: relative; margin: clamp(2.5rem, 5vw, 4rem) 0 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr);
	border-top: 2px solid var(--text);
}
.stat { padding: 1rem 1rem 0 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat + .stat { padding-left: 1rem; border-left: 1px solid var(--mist); }
.stat dd { margin: 0; font: 700 2.1rem/1 var(--serif); }
.stat dt { font-size: .88rem; color: var(--muted); margin-top: .4rem; line-height: 1.35; }
.stat-ids dd { display: flex; flex-direction: column; gap: .25rem; font: 500 .95rem/1.4 var(--sans); }
.stat-ids dd a { color: var(--text); }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-photo { order: -1; justify-self: start; width: 180px; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stat { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--mist); }
	.stat + .stat { border-left: 0; padding-left: 0; }
	.stat:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--mist); }
	.stat-ids { grid-column: 1 / -1; border-left: 0 !important; padding-left: 0 !important; }
}

/* ------------------------------------------------------------
   Sections
------------------------------------------------------------ */
.section { padding: var(--sec) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--paper-alt); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .35em; }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin-bottom: 2.2rem; }
.sub-title { font-size: 1.35rem; margin: 2.8rem 0 1.1rem; }
.section-title + .about-grid { margin-top: 1.6rem; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.72; max-width: 66ch; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.about-side h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.about-side h3 + .tag-list { margin-bottom: 1.8rem; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-list li { padding: .3rem .7rem; border: 1px solid var(--mist); border-radius: 999px; font-size: .9rem; background: var(--card); }
.tag-list-code li { border-color: var(--teal); color: var(--teal); background: transparent; font-weight: 600; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

.table-scroll { overflow-x: auto; border: 1px solid var(--mist); border-radius: var(--r-md); background: var(--card); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .96rem; }
.data-table th, .data-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--mist); vertical-align: top; }
.data-table thead th { font-size: .85rem; color: var(--muted); font-weight: 600; background: var(--paper-alt); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th { font-family: var(--serif); font-weight: 600; }

/* Experience timeline: a real chronological sequence. */
.timeline { list-style: none; position: relative; margin-left: .3rem; }
.timeline::before { content: ""; position: absolute; left: 11.5rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--mist); }
.tl-item { display: grid; grid-template-columns: 11.5rem 1fr; position: relative; padding-bottom: 1.8rem; }
.tl-item::before {
	content: ""; position: absolute; left: calc(11.5rem - 5px); top: .45rem;
	width: 12px; height: 12px; border-radius: 50%; background: var(--paper-alt); border: 2px solid var(--muted);
}
.tl-item.is-current::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); }
.tl-dates { font-size: .9rem; color: var(--muted); padding-right: 1.5rem; font-variant-numeric: tabular-nums; margin: .2rem 0 0; }
.tl-body { padding-left: 2rem; }
.tl-role { font-size: 1.2rem; margin-bottom: .15rem; }
.tl-org { margin: 0; font-weight: 500; }
.tl-span { margin: .2rem 0 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 640px) {
	.timeline::before { left: 5px; }
	.tl-item { grid-template-columns: 1fr; padding-left: 1.8rem; }
	.tl-item::before { left: 0; }
	.tl-body { padding-left: 0; }
	.tl-dates { padding: 0 0 .2rem; margin: 0; }
}

.positions { display: grid; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pos-group { background: var(--card); border-top: 3px solid var(--teal); padding: 1.3rem 1.3rem 1.1rem; }
.pos-group:nth-child(2) { border-top-color: var(--ink-2); }
.pos-group:nth-child(3) { border-top-color: var(--amber); }
.pos-group h4 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.count { font: 600 .85rem/1 var(--sans); color: var(--muted); }
.pos-group ul { list-style: none; }
.pos-group li { padding: .5rem 0; border-top: 1px solid var(--mist); font-size: .94rem; line-height: 1.45; }
@media (max-width: 900px) { .positions { grid-template-columns: 1fr; } }

/* Research */
.thesis {
	margin: 1.6rem 0 0; padding: 1.6rem 0 1.6rem 1.6rem;
	border-left: 4px solid var(--amber);
}
.thesis-label { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.thesis-title { font: 600 clamp(1.35rem, 2.6vw, 1.8rem)/1.3 var(--serif); margin: 0; max-width: 40ch; }

.grant-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grant-list li { background: var(--card); border: 1px solid var(--mist); border-radius: var(--r-md); padding: 1.2rem 1.3rem; }
.grant-list p { margin: 0 0 .4rem; }
.grant-amt { font: 700 1.2rem/1.3 var(--serif); color: var(--teal); }
@media (max-width: 700px) { .grant-list { grid-template-columns: 1fr; } }

.pub-tools { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.pub-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
	display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem;
	border: 1px solid var(--mist); border-radius: 999px; background: var(--card); color: var(--text);
	font: 500 .9rem/1.2 var(--sans); cursor: pointer;
}
.chip span { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--teal); }
.chip.is-active { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.chip.is-active span { color: var(--amber); }
.pub-search { flex: 1 1 280px; max-width: 380px; }
.pub-search input {
	width: 100%; padding: .6rem .9rem; border: 1px solid var(--mist); border-radius: var(--r-sm);
	background: var(--card); color: var(--text); font: 400 .95rem var(--sans);
}
.pub-search input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.pub-status { font-size: .9rem; color: var(--muted); min-height: 1.4em; margin-bottom: .6rem; }

.pub-list { list-style: none; border-top: 1px solid var(--mist); }
.pub { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--mist); }
.pub[hidden] { display: none; }
.pub-year { font: 600 1rem/1.5 var(--serif); color: var(--muted); font-variant-numeric: tabular-nums; }
.pub-body p { margin: 0; }
.pub-title { font: 600 1.08rem/1.4 var(--serif); margin-bottom: .25rem !important; }
.pub-authors { font-size: .93rem; }
.pub-venue { font-size: .9rem; color: var(--muted); font-style: italic; }
.pub-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem !important; }
.badge { font-size: .76rem; font-weight: 600; padding: .18rem .55rem; border-radius: var(--r-sm); background: var(--paper-alt); color: var(--muted); }
.badge-sci { background: var(--teal-soft); color: var(--teal); }
.badge-book { background: var(--amber-soft); color: #7a5306; }
@media (prefers-color-scheme: dark) { .badge-book { color: var(--amber); } }
.badge-status { background: transparent; border: 1px dashed var(--mist); }
.pub-more { margin-top: 1.4rem; }
.pub-empty { padding: 1.5rem 0; color: var(--muted); }
mark { background: var(--amber-soft); color: inherit; padding: 0 .1em; border-radius: 2px; }
@media (max-width: 560px) { .pub { grid-template-columns: 1fr; gap: .2rem; } }

/* Patents */
.patent-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.patent { background: var(--card); border: 1px solid var(--mist); border-radius: var(--r-md); padding: 1.4rem; display: flex; flex-direction: column; }
.patent.is-granted { grid-column: 1 / -1; border: 2px solid var(--amber); }
.patent.is-granted .patent-title { font-size: 1.45rem; }
.patent-status { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .5rem; }
.is-granted .patent-status { color: #8a5d05; }
@media (prefers-color-scheme: dark) { .is-granted .patent-status { color: var(--amber); } }
.patent-title { font-size: 1.15rem; line-height: 1.35; }
.patent-inv { font-size: .9rem; color: var(--muted); }
.patent-facts { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; padding-top: .9rem; border-top: 1px solid var(--mist); font-size: .88rem; }
.patent-facts dt { color: var(--muted); }
.patent-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .patent-list { grid-template-columns: 1fr; } }

.copy-list { list-style: none; display: grid; gap: .9rem; }
.copy-list li { padding-left: 1rem; border-left: 3px solid var(--teal); }
.copy-title { font: 600 1.08rem/1.4 var(--serif); margin-bottom: .2rem; }

/* Recognition */
.rec-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.rec-grid .sub-title:first-child { margin-top: 1.6rem; }
.talk-list, .award-list { list-style: none; }
.talk-list li, .award-list li { padding: .9rem 0; border-top: 1px solid var(--mist); }
.talk-title, .award-title { font: 600 1.05rem/1.4 var(--serif); margin: 0 0 .2rem; }
.talk-date { font-size: .85rem; font-weight: 600; color: var(--teal); margin: .3rem 0 0; }
@media (max-width: 820px) { .rec-grid { grid-template-columns: 1fr; } }

.fold { border: 1px solid var(--mist); border-radius: var(--r-md); background: var(--card); margin-bottom: .8rem; }
.fold summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; font: 400 1.3rem/1 var(--sans); color: var(--muted); }
.fold[open] summary::after { content: "−"; }
.plain-list { list-style: none; padding: 0 1.2rem 1rem; columns: 2 340px; column-gap: 2.5rem; }
.plain-list li { break-inside: avoid; padding: .55rem 0; border-top: 1px solid var(--mist); font-size: .93rem; line-height: 1.45; }

.member-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.member-list li { display: flex; flex-direction: column; padding: .9rem 1rem; background: var(--card); border: 1px solid var(--mist); border-radius: var(--r-sm); }
.member-name { font-weight: 600; font-size: .95rem; }

/* Contact */
.section-ink { background: var(--ink); color: #e7edf5; }
.section-ink .section-lead { color: #a9b6c8; }
.section-ink a { color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); }
.contact-emails { list-style: none; margin-bottom: 1.6rem; }
.contact-emails a { font: 600 clamp(1.1rem, 2.2vw, 1.4rem)/1.8 var(--serif); }
.contact-profiles { display: flex; flex-wrap: wrap; gap: .6rem; }
.contact-form { background: var(--ink-2); padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r-md); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.opt { font-weight: 400; color: #a9b6c8; }
.field input, .field textarea {
	width: 100%; padding: .7rem .85rem; border-radius: var(--r-sm);
	border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.18); color: #fff; font: 400 1rem var(--sans);
}
.field input:focus, .field textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(217,154,30,.3); }
.form-note { padding: .8rem 1rem; border-radius: var(--r-sm); font-size: .95rem; }
.form-note-ok { background: rgba(92,194,198,.18); border: 1px solid #5cc2c6; }
.form-note-err { background: rgba(239,120,90,.16); border: 1px solid #ef785a; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #a9b6c8; border-top: 1px solid rgba(255,255,255,.08); padding: 2rem 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-name { color: #fff; font: 600 1.05rem var(--serif); margin: 0; }
.footer-role, .footer-meta { margin: 0; }
.footer-meta { text-align: right; font-variant-numeric: tabular-nums; }
.footer-menu { list-style: none; display: flex; gap: 1rem; }
.site-footer a { color: #fff; }

/* Blog / pages */
.page-head { padding-bottom: 2rem; }
.page-title { font-size: clamp(2rem, 4.5vw, 3rem); }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; }
.blog-layout:not(:has(.sidebar)) { grid-template-columns: minmax(0, 760px); }
@media (max-width: 860px) { .blog-layout { grid-template-columns: 1fr; } }
.post-item { padding: 1.4rem 0; border-top: 1px solid var(--mist); }
.post-date { font-size: .88rem; color: var(--muted); margin-bottom: .3rem; }
.post-title { font-size: 1.5rem; }
.post-title a { color: var(--text); text-decoration: none; }
.post-title a:hover { color: var(--teal); }
.entry-content { font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 1.2rem; border-left: 3px solid var(--amber); font-style: italic; }
.entry-content pre { background: var(--paper-alt); padding: 1rem; overflow-x: auto; border-radius: var(--r-sm); font-size: .9rem; }
.entry-image { border-radius: var(--r-md); margin-bottom: 2rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--mist); font-family: var(--sans); font-size: .95rem; }
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 1.1rem; }
.widget ul { list-style: none; }
.widget li { padding: .35rem 0; border-top: 1px solid var(--mist); }
.search-form { display: flex; gap: .5rem; margin-top: 1rem; }
.search-form .search-field { flex: 1; padding: .6rem .8rem; border: 1px solid var(--mist); border-radius: var(--r-sm); background: var(--card); color: var(--text); }
.search-form .search-submit { padding: .6rem 1rem; border: 0; border-radius: var(--r-sm); background: var(--teal); color: #fff; font-weight: 600; cursor: pointer; }
.nav-links { display: flex; gap: .5rem; margin-top: 2rem; }
.page-numbers { padding: .4rem .75rem; border: 1px solid var(--mist); border-radius: var(--r-sm); text-decoration: none; }
.page-numbers.current { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }

/* WordPress core alignment */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--muted); }

@media print {
	.site-header, .swarm, .pub-tools, .contact-form, .hero-actions { display: none !important; }
	.section-ink, .site-footer { background: none; color: #000; }
	.fold { border: 0; }
	body { background: #fff; }
}
