/*
Theme Name: Tsentas
Theme URI: https://www.tsentas.net/
Author: Yiannis Tsentas
Author URI: https://www.tsentas.net/
Description: A light, airy personal theme with scroll-driven animations: split-text hero, reveal-on-scroll cards, parallax images, a scroll-reactive marquee and a reading progress bar. Image-led cards for photo posts, clean text cards for articles.
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: tsentas
Tags: blog, photography, light, one-column, grid-layout, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--bg: #FAF8F5;
	--bg-alt: #F2EFEA;
	--surface: #FFFFFF;
	--ink: #1B1D22;
	--ink-2: #5B606B;
	--ink-3: #8D919A;
	--line: #E7E3DC;
	--accent: #3B5BFD;
	--accent-2: #FF7A59;
	--accent-soft: #E9EDFF;
	--grad: linear-gradient(120deg, var(--accent) 0%, #8B5CF6 50%, var(--accent-2) 100%);

	--font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
	--font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

	--radius: 22px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(27, 29, 34, .04), 0 8px 24px -8px rgba(27, 29, 34, .10);
	--shadow-lg: 0 2px 4px rgba(27, 29, 34, .04), 0 24px 48px -16px rgba(27, 29, 34, .18);

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(.2, .7, .1, 1);
	--header-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.7 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 .5em;
	color: var(--ink);
}

::selection { background: var(--accent); color: #fff; }

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

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

.skip-link {
	position: fixed; top: 12px; left: 12px; z-index: 1000;
	padding: 10px 16px; border-radius: 999px;
	background: var(--ink); color: #fff;
	transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; color: #fff; }

.grad {
	background: var(--grad);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
	margin: 0 0 10px;
	font: 600 12px/1 var(--font-body);
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--accent);
}

/* ==========================================================================
   Buttons, chips
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14px 24px; border-radius: 999px;
	font: 500 15px/1 var(--font-body);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
}
.btn--solid { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn--solid:hover { color: #fff; background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(59, 91, 253, .55); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.chip {
	position: relative; z-index: 2;
	display: inline-block; padding: 5px 11px; border-radius: 999px;
	background: var(--accent-soft); color: var(--accent);
	font: 600 11px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
	transition: background .25s, color .25s;
}
.chip:hover { background: var(--accent); color: #fff; }

/* ==========================================================================
   Scroll progress + header
   ========================================================================== */
.scroll-progress {
	position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none;
}
.scroll-progress span {
	display: block; height: 100%;
	background: var(--grad);
	transform: scaleX(0); transform-origin: 0 50%;
}

.site-header {
	position: sticky; top: 0; z-index: 100;
	transition: transform .45s var(--ease), background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header__inner {
	max-width: var(--wrap); margin: 0 auto;
	height: var(--header-h);
	padding: 0 var(--gutter);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	transition: height .35s var(--ease);
}
.site-header.is-scrolled {
	background: rgba(250, 248, 245, .78);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .site-header__inner { height: 62px; }
.site-header.is-hidden { transform: translateY(-100%); }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 32px; height: 32px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__stroke { stroke-dasharray: 60; stroke-dashoffset: 0; }
.js .brand__stroke { stroke-dashoffset: 60; }
.js.is-loaded .brand__stroke { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s .2s var(--ease); }
.brand__word {
	display: flex; gap: .32em;
	font: 400 17px/1 var(--font-display); letter-spacing: -0.01em;
}
.brand__first { color: var(--ink-2); }
.brand__last { font-weight: 600; position: relative; }
.brand__last::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
	background: var(--grad); border-radius: 2px;
	transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease);
}
.brand:hover .brand__last::after { transform: scaleX(1); }

/* Nav */
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__list li { position: relative; }
.nav__list a {
	display: block; padding: 9px 16px; border-radius: 999px;
	color: var(--ink-2); font: 500 15px/1 var(--font-body);
	transition: color .25s, background .25s;
}
.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a,
.nav__list .current-menu-parent > a { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 200px;
	background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease);
}
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { box-shadow: none !important; }

.nav-toggle {
	display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: var(--surface); box-shadow: var(--shadow); cursor: pointer; position: relative; z-index: 120;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px;
	background: var(--ink); transition: transform .35s var(--ease), opacity .2s;
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; left: 0; margin: 0; }
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(6px); }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: rotate(45deg); background: var(--ink); }
.nav-open .nav-toggle__bars::after { transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 820px) {
	:root { --header-h: 66px; }
	.brand__word { font-size: 16px; }
	.brand__mark { width: 30px; height: 30px; }
	.nav-toggle { display: block; }
	.nav {
		position: fixed; inset: 0; z-index: 110;
		display: flex; align-items: center; justify-content: center;
		background: rgba(250, 248, 245, .97);
		-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
		opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
	}
	.nav-open .nav { opacity: 1; visibility: visible; }
	.nav-open body { overflow: hidden; }
	.nav__list { flex-direction: column; align-items: center; gap: 6px; }
	.nav__list > li { opacity: 0; transform: translateY(16px); transition: .5s var(--ease); }
	.nav-open .nav__list > li { opacity: 1; transform: none; }
	.nav-open .nav__list > li:nth-child(2) { transition-delay: .05s; }
	.nav-open .nav__list > li:nth-child(3) { transition-delay: .1s; }
	.nav-open .nav__list > li:nth-child(4) { transition-delay: .15s; }
	.nav-open .nav__list > li:nth-child(5) { transition-delay: .2s; }
	.nav-open .nav__list > li:nth-child(n+6) { transition-delay: .25s; }
	.nav__list a { font: 500 30px/1.2 var(--font-display); padding: 10px 22px; }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; text-align: center; }
	.nav__list .sub-menu a { font-size: 18px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.has-hero .site-header { position: fixed; left: 0; right: 0; }

.hero {
	position: relative; overflow: hidden;
	min-height: 100vh; min-height: 100svh;
	display: grid; place-items: center;
	padding: calc(var(--header-h) + 40px) var(--gutter) 120px;
	isolation: isolate;
}
.hero::after {
	content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: radial-gradient(rgba(27, 29, 34, .07) 1px, transparent 1px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero__blobs { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: float 18s ease-in-out infinite; }
.blob--a { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -10%; left: -8%; background: #C9D3FF; }
.blob--b { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; top: 30%; right: -10%; background: #FFD3C4; }
.blob--c { width: 28vw; height: 28vw; max-width: 380px; max-height: 380px; bottom: -8%; left: 30%; background: #E2D6FF; }
.blob--b::before { animation-duration: 22s; animation-direction: reverse; }
.blob--c::before { animation-duration: 26s; }
@keyframes float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(6%, 8%) scale(1.08); }
	66% { transform: translate(-6%, 4%) scale(.95); }
}

.hero__inner { max-width: 980px; text-align: center; will-change: transform, opacity; }
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 28px; padding: 8px 16px; border-radius: 999px;
	background: rgba(255, 255, 255, .7); box-shadow: var(--shadow);
	font: 500 13px/1 var(--font-body); color: var(--ink-2); letter-spacing: .04em;
}
.hero__eyebrow::before {
	content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22C55E;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.hero__title {
	margin: 0;
	font-size: clamp(40px, 7vw, 92px);
	font-weight: 600; line-height: .98; letter-spacing: -0.045em;
}
.hero__title .split { display: block; padding-bottom: .06em; }
.hero__title .grad .char {
	background: var(--grad); background-size: 500% 100%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
}
/* Gradient flows across the letters of "Tsentas" */
.hero__title .grad .char:nth-child(1) { background-position: 0% 0; }
.hero__title .grad .char:nth-child(2) { background-position: 17% 0; }
.hero__title .grad .char:nth-child(3) { background-position: 33% 0; }
.hero__title .grad .char:nth-child(4) { background-position: 50% 0; }
.hero__title .grad .char:nth-child(5) { background-position: 67% 0; }
.hero__title .grad .char:nth-child(6) { background-position: 83% 0; }
.hero__title .grad .char:nth-child(7) { background-position: 100% 0; }
.hero__title .grad[data-split] { -webkit-text-fill-color: initial; background: none; }

.char { display: inline-block; }
.js .char { opacity: 0; transform: translateY(.5em) rotate(6deg); filter: blur(8px); }
.js.is-loaded .char {
	opacity: 1; transform: none; filter: none;
	transition: opacity .8s var(--ease), transform 1s var(--ease), filter .8s var(--ease);
	transition-delay: var(--d, 0ms);
}

.hero__lead {
	max-width: 560px; margin: 30px auto 0;
	font-size: clamp(17px, 2vw, 20px); color: var(--ink-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(18px); }
.js.is-loaded .hero__eyebrow, .js.is-loaded .hero__lead, .js.is-loaded .hero__actions {
	opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js.is-loaded .hero__lead { transition-delay: .7s; }
.js.is-loaded .hero__actions { transition-delay: .85s; }

.hero__scroll {
	position: absolute; bottom: 36px; left: 50%; margin-left: -13px;
	width: 26px; height: 42px; border: 2px solid var(--ink-3); border-radius: 14px;
}
.hero__scroll span {
	position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
	border-radius: 2px; background: var(--ink); animation: scrolly 1.8s var(--ease) infinite;
}
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Marquee */
.marquee {
	overflow: hidden; padding: 22px 0;
	border-block: 1px solid var(--line); background: var(--surface);
	transform: rotate(-1.5deg) scale(1.03); margin: -30px 0 40px;
	position: relative; z-index: 2;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span {
	font: 500 clamp(22px, 3vw, 34px)/1 var(--font-display); letter-spacing: -0.02em;
	padding: 0 28px; color: var(--ink); white-space: nowrap;
}
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--ink-3); }
.marquee__track i { font-style: normal; color: var(--accent-2); align-self: center; font-size: 18px; }
.marquee__track--rev { margin-top: 14px; }
.marquee__track--rev span { font-size: clamp(16px, 2vw, 22px); color: var(--ink-3); }
.marquee__track--rev span:nth-of-type(even) { color: var(--accent); -webkit-text-stroke: 0; }
.marquee__track--rev i { color: var(--accent); font-size: 12px; }

/* Floating shapes behind the post grid */
.listing { position: relative; }
.shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.listing > :not(.shapes) { position: relative; z-index: 1; }
.shape { position: absolute; display: block; will-change: translate, rotate; }
.shape--ring { width: 120px; height: 120px; top: 6%; right: 4%; border-radius: 50%; border: 2px solid rgba(59, 91, 253, .22); }
.shape--plus { width: 36px; height: 36px; top: 38%; left: 1%; }
.shape--plus::before, .shape--plus::after { content: ''; position: absolute; background: rgba(255, 122, 89, .45); border-radius: 2px; }
.shape--plus::before { left: 16px; top: 0; width: 4px; height: 36px; }
.shape--plus::after { top: 16px; left: 0; width: 36px; height: 4px; }
.shape--dot { width: 18px; height: 18px; top: 62%; right: 2%; border-radius: 50%; background: var(--grad); opacity: .6; }
.shape--tri { width: 0; height: 0; bottom: 8%; left: 6%; border-left: 26px solid transparent; border-right: 26px solid transparent; border-bottom: 44px solid rgba(139, 92, 246, .18); }
@media (max-width: 720px) { .shape--ring { width: 70px; height: 70px; } .shape--plus, .shape--tri { display: none; } }

/* ==========================================================================
   Listing + cards
   ========================================================================== */
.listing { max-width: var(--wrap); margin: 0 auto; padding: 80px var(--gutter) 120px; scroll-margin-top: 40px; }
.listing__head {
	display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px 40px;
	margin-bottom: 44px;
}
.listing__head .eyebrow, .listing__head .listing__title, .listing__desc { grid-column: 1; }
.listing__title { font-size: clamp(36px, 5vw, 60px); margin: 0; }
.listing__desc { color: var(--ink-2); max-width: 60ch; }
.listing__desc p { margin: 0; }
.filters { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
	padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
	color: var(--ink-2); font: 500 14px/1 var(--font-body); background: var(--surface);
	transition: .25s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 720px) {
	.listing { padding-top: 56px; }
	.listing__head { grid-template-columns: 1fr; }
	.filters { grid-column: 1; grid-row: auto; }
}

.grid {
	display: grid; gap: 28px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	grid-auto-flow: dense;
}
@media (min-width: 900px) {
	.paged .grid .card:first-child, .grid .card:first-child { grid-column: span 2; }
	.grid .card:first-child.card--photo .card__media { aspect-ratio: 16 / 8.2; }
	.grid .card:first-child .card__title { font-size: clamp(26px, 2.8vw, 36px); }
}

.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.card__media img {
	width: 100%; height: 100%; object-fit: cover;
	transform: scale(1.12); transition: filter .6s var(--ease);
	will-change: transform;
}
.card:hover .card__media img { filter: saturate(1.15) brightness(1.03); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--ink-3); font-size: 13px; }
.card__title { font-size: 22px; margin: 0 0 10px; transition: color .3s; }
.card:hover .card__title { color: var(--accent); }
.card__excerpt { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.card__more {
	margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
	font: 600 14px/1 var(--font-body); color: var(--ink);
}
.card__more svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.card:hover .card__more svg { transform: translateX(5px); }

/* Photo cards: caption sits over the image */
.card--photo:not(.card--no-image) { background: var(--ink); }
.card--photo:not(.card--no-image) .card__media { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .card--photo:not(.card--no-image) .card__media { aspect-ratio: 4 / 3.4; } }
.card--photo:not(.card--no-image) .card__body {
	position: absolute; inset: auto 0 0 0; padding: 70px 24px 22px;
	background: linear-gradient(to top, rgba(10, 12, 18, .78), rgba(10, 12, 18, 0));
	color: #fff;
}
.card--photo:not(.card--no-image) .card__title,
.card--photo:not(.card--no-image) .card__more,
.card--photo:not(.card--no-image) .card__meta { color: #fff; }
.card--photo:not(.card--no-image) .chip { background: rgba(255, 255, 255, .2); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card--photo:not(.card--no-image) .chip:hover { background: #fff; color: var(--ink); }
.card--photo:not(.card--no-image) .card__more { opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.card--photo:hover .card__more { opacity: 1; transform: none; }
@media (hover: none) { .card--photo .card__more { opacity: 1 !important; transform: none !important; } }

/* Text cards get a subtle accent edge */
.card--text .card__media { aspect-ratio: 16 / 9; }
.card--text::before {
	content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; z-index: 2;
	background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.card--text:hover::before { transform: scaleX(1); }

/* Pagination */
.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow);
	font: 500 15px/1 var(--font-body); transition: .25s var(--ease);
}
a.page-numbers:hover { color: var(--ink); transform: translateY(-2px); }
.page-numbers.current { background: var(--ink); color: #fff; }
.page-numbers.dots { background: none; box-shadow: none; }

/* ==========================================================================
   Single / page
   ========================================================================== */
.entry { padding: 70px var(--gutter) 40px; }
.entry__head { max-width: 860px; margin: 0 auto 48px; text-align: center; }
.entry__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--ink-3); font-size: 14px; }
.entry__meta > * + *:not(.chip)::before { content: '·'; margin-right: 14px; color: var(--line); }
.entry__meta time::before { display: none; }
.entry__title { font-size: clamp(36px, 6vw, 72px); letter-spacing: -0.04em; margin: 0; }
.entry__hero {
	max-width: 1280px; margin: 0 auto 64px; border-radius: calc(var(--radius) + 8px); overflow: hidden;
	aspect-ratio: 16 / 8.5; background: var(--bg-alt); box-shadow: var(--shadow-lg);
}
.entry__hero img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
@media (max-width: 720px) { .entry__hero { aspect-ratio: 4 / 3; border-radius: var(--radius); } }

.prose { max-width: 720px; margin: 0 auto; font-size: 18px; }
.prose > * { margin-block: 0 1.3em; }
.prose h2 { font-size: 32px; margin-top: 1.8em; }
.prose h3 { font-size: 24px; margin-top: 1.6em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(59, 91, 253, .4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 600; }
.prose blockquote {
	margin-inline: 0; padding: 6px 0 6px 26px; border-left: 3px solid; border-image: var(--grad) 1;
	font: 400 22px/1.5 var(--font-display); color: var(--ink);
}
.prose code { font: 14px/1.5 ui-monospace, 'Cascadia Code', Consolas, monospace; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: #1B1D22; color: #E8EAF0; padding: 22px 24px; border-radius: var(--radius-sm); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img, .prose figure img { border-radius: var(--radius-sm); }
.prose figure { margin-inline: 0; }
.prose figcaption, .wp-element-caption { margin-top: 10px; font-size: 14px; color: var(--ink-3); text-align: center; }
.prose .alignwide { max-width: 1000px; margin-inline: calc((720px - 1000px) / 2); }
.prose .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.prose .alignfull img { border-radius: 0; }
@media (max-width: 1080px) { .prose .alignwide { margin-inline: 0; } }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }

.entry__tags { max-width: 720px; margin: 48px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.entry__tags a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.entry__tags a:hover { border-color: var(--ink); color: var(--ink); }

.post-nav {
	max-width: 1000px; margin: 40px auto 80px; padding: 0 var(--gutter);
	display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.post-nav__item {
	display: block; padding: 26px 28px; border-radius: var(--radius);
	background: var(--surface); box-shadow: var(--shadow); color: var(--ink);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.post-nav__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.post-nav__item span { display: block; color: var(--ink-3); font-size: 13px; margin-bottom: 6px; }
.post-nav__item strong { font: 600 19px/1.3 var(--font-display); }
.post-nav__item--next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav__item--next { grid-column: 1; } }

/* Comments */
.comments { max-width: 720px; margin: 0 auto 100px; padding: 0 var(--gutter); }
.comments__title { font-size: 26px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; }
.comment-metadata a { color: var(--ink-3); }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="submit"], button[type="submit"], .wp-block-button__link {
	padding: 13px 24px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--ink); color: #fff; font: 500 15px/1 var(--font-body);
	transition: background .25s, transform .25s var(--ease);
}
input[type="submit"]:hover, button[type="submit"]:hover, .wp-block-button__link:hover { background: var(--accent); transform: translateY(-2px); color: #fff; }
.search-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.search-form label { flex: 1; }

/* 404 + empty */
.notfound, .empty { max-width: 640px; margin: 0 auto; padding: 100px var(--gutter) 140px; text-align: center; }
.notfound__code { font: 700 clamp(110px, 22vw, 220px)/1 var(--font-display); letter-spacing: -0.06em; margin: 0; }
.notfound h1 { font-size: clamp(28px, 4vw, 40px); }
.notfound p { color: var(--ink-2); }
.notfound .search-form { margin: 28px auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); overflow: hidden; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 90px var(--gutter) 30px; }
.site-footer__big {
	font: 600 clamp(34px, 6vw, 80px)/1 var(--font-display); letter-spacing: -0.045em;
	color: var(--ink); margin-bottom: 60px;
}
.site-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 60px; }
.widget-title { font-size: 16px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 4px 0; }
.site-footer__bar {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
	padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px;
}
.site-footer__bar p { margin: 0; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.footer-nav a { color: var(--ink-2); }

.to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 90;
	width: 50px; height: 50px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
	transition: .4s var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.js .reveal {
	opacity: 0; transform: translate3d(0, 40px, 0);
	transition: opacity 1s var(--ease), transform 1s var(--ease);
	transition-delay: calc(var(--i, 0) * 110ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Cards tip up from a slight 3D tilt */
.grid { transform-origin: 50% 0; will-change: transform; }
.js .card.reveal { transform: perspective(1000px) translate3d(0, 70px, 0) rotateX(14deg) scale(.96); transform-origin: 50% 0; }

/* Cards: image unveils with a clip wipe */
.js .card.reveal .card__media { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 100ms); }
.js .card.reveal.is-in .card__media { clip-path: inset(0 0 0 0); }
.js .card.reveal.is-in { transform: none; transition: opacity 1s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); transition-delay: calc(var(--i, 0) * 110ms), 0s, 0s; }
.js .card.reveal.is-in:hover { transform: translateY(-6px); }

.js .reveal--zoom { transform: scale(.94); }
.js .reveal--zoom.is-in { transform: none; }

/* Footer name rises letter group by group */
.js .site-footer__big.reveal span { display: inline-block; transform: translateY(60%); opacity: 0; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.js .site-footer__big.reveal .grad { transition-delay: .15s; }
.js .site-footer__big.reveal.is-in span { transform: none; opacity: 1; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
/* Gentle mode: fades stay, movement goes. Overridden by the Customizer "full motion" option. */
@media (prefers-reduced-motion: reduce) {
	html:not([data-motion="full"]) { scroll-behavior: auto; }
	html:not([data-motion="full"]) *,
	html:not([data-motion="full"]) *::before,
	html:not([data-motion="full"]) *::after { animation: none !important; }
	html:not([data-motion="full"]).js .reveal,
	html:not([data-motion="full"]).js .card.reveal,
	html:not([data-motion="full"]).js .char,
	html:not([data-motion="full"]).js .hero__eyebrow,
	html:not([data-motion="full"]).js .hero__lead,
	html:not([data-motion="full"]).js .hero__actions,
	html:not([data-motion="full"]).js .site-footer__big.reveal span { transform: none !important; filter: none !important; }
	html:not([data-motion="full"]).js .card.reveal .card__media { clip-path: none !important; }
}
