/* ==========================================================================
   TopRated Articles — main stylesheet
   Palette: ink navy, cool paper, violet accent, rating gold. Each category
   gets its own hue (--hue) for chips, tiles and tints.
   ========================================================================== */

/* Self-hosted variable fonts (no Google Fonts request). */
@font-face { font-family: "Anybody"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 50% 150%; src: url(../fonts/anybody-latin-wdth-normal.woff2) format("woff2-variations"), url(../fonts/anybody-latin-wdth-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anybody"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 50% 150%; src: url(../fonts/anybody-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(../fonts/anybody-latin-ext-wdth-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(../fonts/literata-latin-opsz-normal.woff2) format("woff2-variations"), url(../fonts/literata-latin-opsz-normal.woff2) format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-display: swap; font-weight: 200 900; src: url(../fonts/literata-latin-opsz-italic.woff2) format("woff2-variations"), url(../fonts/literata-latin-opsz-italic.woff2) format("woff2"); }

:root {
	--paper: #F3F5FA;
	--surface: #FFFFFF;
	--ink: #172036;
	--ink-2: #4E5672;
	--line: #DCE1EE;
	--accent: #2B3FF2;
	--live: #FF4D3D;
	--accent-ink: #FFFFFF;
	--gold: #F5B400;
	--tint: #E9ECF8;

	--display: "Anybody", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Literata", Georgia, "Times New Roman", serif;

	--r-lg: 22px;
	--r-md: 14px;
	--r-sm: 10px;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(.2, .7, .1, 1);
	--ease-spring: cubic-bezier(.34, 1.4, .5, 1);
	--shadow: 0 1px 2px rgba(23, 32, 54, .06), 0 12px 32px -12px rgba(23, 32, 54, .22);
	--chip-bg: hsl(var(--hue, 245) 75% 94%);
	--chip-ink: hsl(var(--hue, 245) 55% 30%);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0E1322;
		--surface: #161D31;
		--ink: #E9ECF6;
		--ink-2: #A3AAC4;
		--line: #273050;
		--accent: #7D8BFF;
		--accent-ink: #0E1322;
		--tint: #131A2D;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .7);
		--chip-bg: hsl(var(--hue, 245) 40% 22%);
		--chip-ink: hsl(var(--hue, 245) 85% 84%);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #0E1322;
	--surface: #161D31;
	--ink: #E9ECF6;
	--ink-2: #A3AAC4;
	--line: #273050;
	--accent: #7D8BFF;
	--accent-ink: #0E1322;
	--tint: #131A2D;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .7);
	--chip-bg: hsl(var(--hue, 245) 40% 22%);
	--chip-ink: hsl(var(--hue, 245) 85% 84%);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.55 var(--display);
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #172036; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--surface); padding: 10px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- Buttons, chips, avatars ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	background: var(--accent); color: var(--accent-ink);
	border: 0; border-radius: 12px; padding: .85em 1.4em;
	font-weight: 600; cursor: pointer;
	transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn--light { background: #fff; color: #172036; }

.chip {
	display: inline-block; align-self: flex-start;
	font-size: .78rem; font-weight: 600; line-height: 1;
	padding: .5em .8em; border-radius: 999px;
	background: var(--chip-bg); color: var(--chip-ink);
	transition: filter .2s;
}
a.chip:hover { filter: brightness(.95) saturate(1.2); }
.chips { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }

.avatar {
	--size: 30px;
	display: inline-grid; place-items: center; flex: none;
	width: var(--size); height: var(--size); border-radius: 50%;
	background: hsl(var(--hue) 70% 88%); color: hsl(var(--hue) 60% 26%);
	font-size: calc(var(--size) * .38); font-weight: 700; letter-spacing: .02em;
}
.avatar--lg { --size: 46px; }

.byline { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--ink-2); flex-wrap: wrap; }
.byline__name { color: var(--ink); font-weight: 600; }
.byline time::before { content: "/"; margin-right: 8px; opacity: .5; }
.byline--lg { gap: 14px; font-size: .95rem; }
.byline__stack { display: grid; gap: 2px; }
.byline__sub { display: flex; gap: 8px; }
.byline--lg time::before { content: none; }

/* ---------- Header ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 82%, transparent);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; transition: min-height .3s var(--ease); }
.site-header.is-scrolled .site-header__inner { min-height: 60px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; flex: none; }
.brand__logo { max-height: 44px; width: auto; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ink); transition: transform .5s var(--ease-spring); }
.brand__mark .star { width: 20px; fill: var(--gold); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.06); }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav__list a { display: block; white-space: nowrap; font-stretch: 88%; padding: .55em .75em; border-radius: 10px; font-size: .95rem; font-weight: 500; color: var(--ink-2); transition: color .2s, background .2s; }
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--ink); background: var(--tint); }
.nav__cta a, .nav__list .menu-cta > a { background: var(--ink); color: var(--paper) !important; }
.nav__cta a:hover { background: var(--accent) !important; }
.nav__list .sub-menu { display: none; }
.nav__mobile-search { display: none; }

.site-header__tools { display: flex; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--ink-2); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .i-sun { display: none; }
	:root:not([data-theme="light"]) .i-moon { display: block; }
}
.nav-toggle { display: none; gap: 4px; align-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
	.nav-toggle { display: grid; }
	.nav {
		position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 70;
		background: var(--surface); padding: 88px 24px 24px; overflow-y: auto;
		transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; box-shadow: var(--shadow);
	}
	.nav-open .nav { transform: none; visibility: visible; transition: transform .45s var(--ease); }
	/* backdrop-filter would trap the fixed drawer inside the header */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
	.nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav__list a { font-size: 1.15rem; padding: .8em .9em; }
	.nav__list .sub-menu { display: block; list-style: none; padding-left: 12px; }
	.nav__mobile-search { display: block; margin-top: 20px; }
	.site-header__tools { margin-left: auto; position: relative; z-index: 71; }
	.nav-open { overflow: hidden; }
	.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(10, 14, 28, .45); z-index: 60; }
}

/* ---------- Search ---------- */
.searchbar {
	display: flex; align-items: center; gap: 6px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
	padding: 6px; box-shadow: var(--shadow); position: relative;
	transition: border-color .2s, box-shadow .2s;
}
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow); }
.searchbar__icon { width: 20px; height: 20px; margin-left: 10px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; flex: none; }
.searchbar input { flex: 1 1 0; min-width: 0; border: 0; background: none; padding: .7em .4em; outline: none; font-size: 1rem; }
.searchbar select { border: 0; border-left: 1px solid var(--line); background: none; padding: .7em .6em; max-width: 180px; cursor: pointer; outline: none; color: var(--ink-2); }
.searchbar select option { background: var(--surface); color: var(--ink); }
.searchbar button { border: 0; background: var(--ink); color: var(--paper); border-radius: 11px; padding: .75em 1.2em; font-weight: 600; cursor: pointer; transition: background .2s; }
.searchbar button:hover { background: var(--accent); color: var(--accent-ink); }
.searchbar--drawer { flex-wrap: wrap; box-shadow: none; }
.searchbar--drawer select { border-left: 0; border-top: 1px solid var(--line); flex: 1 1 100%; max-width: none; }
.searchbar--drawer button { flex: 1 1 100%; }
@media (max-width: 640px) {
	.searchbar { flex-wrap: wrap; }
	.searchbar input { flex: 1 1 0; min-width: 0; width: 0; }
	.searchbar select { border-left: 0; border-top: 1px solid var(--line); flex: 1 1 100%; max-width: none; order: 3; }
	.searchbar button { order: 2; }
}

.search-overlay { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; align-items: start; padding-top: 14vh; }
.search-overlay[hidden] { display: none; }
.search-overlay.is-open .search-overlay__panel { animation: drop .5s var(--ease-spring) both; }
.search-overlay__panel { max-width: 860px; }
.search-overlay__title { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: 20px; }
.search-overlay__close { margin-top: 18px; background: none; border: 0; color: var(--ink-2); cursor: pointer; text-decoration: underline; }
@keyframes drop { from { opacity: 0; transform: translateY(-24px); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.3rem, 5vw, 4.4rem); font-weight: 850; font-stretch: 108%; line-height: .98; letter-spacing: -.035em; margin-bottom: 22px; text-wrap: balance; }
.hero__text { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-2); max-width: 54ch; margin-bottom: 28px; }
.hero__stats { display: flex; gap: 28px; margin: 22px 0 0; color: var(--ink-2); font-size: .95rem; }
.hero__stats strong { color: var(--ink); font-size: 1.35rem; font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }

.hero__text, .hero .searchbar, .hero__stats { animation: fadein .8s var(--ease) both; animation-delay: .45s; }
.hero .searchbar { animation-delay: .55s; }
.hero__stats { animation-delay: .65s; }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } }

/* Orbiting rings behind the deck */
.hero__orbit { position: absolute; width: min(760px, 120vw); aspect-ratio: 1; right: -8%; top: 50%; translate: 0 -50%; pointer-events: none; }
.hero__orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit { fill: none; stroke: var(--line); stroke-width: 1.2; }
.orbit--2 { stroke-dasharray: 4 10; }
.orbit--3 { stroke: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.orbit-dot { transform-origin: 300px 300px; }
.orbit-dot--1 { fill: var(--gold); animation: spin 38s linear infinite; }
.orbit-dot--2 { fill: var(--accent); animation: spin 26s linear infinite reverse; }
.orbit-dot--3 { fill: var(--ink); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Card deck motion graphic */
.deck { position: relative; height: clamp(400px, 40vw, 480px); perspective: 1400px; animation: deckin 1s var(--ease) .2s both; }
@keyframes deckin { from { opacity: 0; transform: translateY(40px) rotate(3deg); } }
.deck__card {
	position: absolute; left: 0; right: 36px; top: 40px; bottom: 54px;
	display: flex; flex-direction: column;
	background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
	box-shadow: var(--shadow); border: 1px solid var(--line);
	transition: transform .8s var(--ease), opacity .6s var(--ease), filter .6s;
	transform-origin: 50% 100%;
	will-change: transform;
}
.deck__card[data-pos="0"] { z-index: 4; transform: none; }
.deck__card[data-pos="1"] { z-index: 3; transform: translate(18px, -20px) rotate(3.5deg) scale(.96); filter: brightness(.97); }
.deck__card[data-pos="2"] { z-index: 2; transform: translate(34px, -40px) rotate(7deg) scale(.92); filter: brightness(.93); }
.deck__card[data-pos="3"] { z-index: 1; transform: translate(48px, -58px) rotate(10deg) scale(.88); opacity: .0; }
.deck__card.is-leaving { z-index: 5; animation: flyout .7s var(--ease) forwards; }
@keyframes flyout {
	40% { transform: translate(-70px, 10px) rotate(-10deg); }
	100% { transform: translate(40px, -60px) rotate(10deg) scale(.86); opacity: 0; }
}
.deck__media { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: var(--tint); }
.deck__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s linear; }
.deck__card[data-pos="0"] .deck__media img { transform: scale(1); }
.deck__body { display: grid; justify-items: start; gap: 8px; padding: 18px 20px 20px; }
.deck__title { font-size: clamp(1.1rem, 1.6vw, 1.32rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deck__meta { font-size: .85rem; color: var(--ink-2); }
.deck__card:hover .deck__title { color: var(--accent); }
@keyframes bob { 50% { translate: 0 -8px; } }
.deck__controls { position: absolute; bottom: 0; left: 0; right: 36px; display: flex; align-items: center; justify-content: space-between; }
.deck__controls button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1rem; transition: background .2s, color .2s, transform .2s var(--ease-spring); }
.deck__controls button:hover { background: var(--ink); color: var(--paper); transform: scale(1.08); }
.deck__dots { display: flex; gap: 6px; }
.deck__dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .4s var(--ease), background .4s; }
.deck__dots i.is-on { width: 28px; background: var(--accent); }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__orbit { right: -40%; top: 72%; }
	.deck { height: 420px; max-width: 520px; width: 100%; margin-inline: auto; }
}


/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--flush { padding-top: 32px; }
.section--tint { background: var(--tint); }
.section--row { padding-block: clamp(36px, 5vw, 56px); }
.section--row + .section--row { padding-top: 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; letter-spacing: -.035em; }
.section--row .section__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.section--row .section__title a:hover { background-size: 100% 2px; }
.section--row .section__title::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: hsl(var(--hue) 70% 58%); margin-right: 12px; vertical-align: middle; transform: rotate(45deg) translateY(-3px); }
.link-more { font-weight: 600; font-size: .95rem; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.link-more::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .3s var(--ease); }
.link-more:hover::after { width: 30px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
	.grid--3 { grid-template-columns: 1fr; }
	.scroller { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
	.scroller::-webkit-scrollbar { display: none; }
	.scroller > * { scroll-snap-align: start; }
}
.stack { display: grid; gap: 18px; }
.stack--wide { gap: 22px; max-width: 920px; }

.card { display: flex; flex-direction: column; gap: 14px; position: relative; min-width: 0; }
.card__media { display: block; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 16 / 10; background: var(--tint); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 50%, hsl(var(--hue) 70% 40% / .35)); opacity: 0; transition: opacity .4s; }
.card:hover .card__media img { transform: scale(1.05); }
.card:hover .card__media::after { opacity: 1; }
.card__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__title { font-size: 1.14rem; font-weight: 650; line-height: 1.25; letter-spacing: -.015em; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease); }
.card:hover .card__title a { background-size: 100% 1.5px; }
.card__excerpt { color: var(--ink-2); font-size: .97rem; margin: 0; }

.card--lead { background: var(--surface); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow); gap: 18px; }
.card--lead .card__media { aspect-ratio: 16 / 9; }
.card--lead .card__body { padding: 0 10px 12px; gap: 12px; }
.card--lead .card__title { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }

.card--row { flex-direction: row; gap: 18px; align-items: flex-start; }
.card--row .card__media { flex: 0 0 clamp(120px, 30%, 200px); aspect-ratio: 4 / 3; }
.card--row .card__title { font-size: 1.08rem; }
.card--row .card__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .93rem; }
@media (max-width: 520px) { .card--row .card__excerpt { display: none; } }

.latest { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .latest { grid-template-columns: 1fr; } }

.archive-grid .card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
.archive-grid .card--lead .card__media { height: 100%; aspect-ratio: auto; min-height: 280px; }
@media (max-width: 780px) { .archive-grid .card--lead { grid-template-columns: 1fr; } .archive-grid .card--lead .card__media { min-height: 0; aspect-ratio: 16 / 9; } }

/* ---------- Ranked list ("Most read") ---------- */
.ranked { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.ranked__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.ranked__num { font-size: 4.2rem; line-height: .8; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--ink); letter-spacing: -.05em; transition: color .35s, -webkit-text-stroke-color .35s, transform .5s var(--ease-spring); }
.ranked__item:hover .ranked__num { color: var(--gold); -webkit-text-stroke-color: var(--gold); transform: rotate(-6deg); }
.ranked__cat { font-size: .78rem; font-weight: 600; color: var(--accent); }
.ranked__title { font-size: 1.02rem; font-weight: 650; line-height: 1.25; margin: 6px 0; }
.ranked__title a:hover { color: var(--accent); }
.ranked__meta { font-size: .82rem; color: var(--ink-2); }
@media (max-width: 1080px) { .ranked { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ranked { grid-template-columns: 1fr; } }

/* ---------- Category tiles ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile a {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	aspect-ratio: 5 / 4; padding: 18px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
	background: hsl(var(--hue) 55% 45%); color: #fff;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.tile a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, hsl(var(--hue) 60% 20% / .05) 20%, hsl(var(--hue) 60% 14% / .88)); transition: background .4s; }
.tile a:hover img { transform: scale(1.08) rotate(.5deg); }
.tile a:hover::before { background: linear-gradient(180deg, hsl(var(--hue) 70% 30% / .35) 0%, hsl(var(--hue) 70% 16% / .92)); }
.tile__name { font-size: 1.2rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; transition: transform .4s var(--ease); }
.tile__count { font-size: .85rem; opacity: .82; margin-top: 4px; transition: transform .4s var(--ease); }
.tile a:hover .tile__name, .tile a:hover .tile__count { transform: translateY(-4px); }

/* ---------- Feed ---------- */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.feed__item { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.feed__item:hover { border-color: var(--accent); transform: translateY(-2px); }
.feed__item img { width: 72px; height: 72px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.feed__src { display: block; font-size: .78rem; color: var(--ink-2); margin-bottom: 4px; }
.feed__title { font-weight: 600; line-height: 1.3; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 96px) 0; text-align: center; overflow: hidden; }
:root[data-theme="dark"] .cta { background: var(--accent); color: #0E1322; }
.cta__inner { display: grid; justify-items: center; gap: 24px; }
.cta__title { font-size: clamp(1.8rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; max-width: 18ch; text-wrap: balance; }
.cta__stars { display: flex; gap: 8px; }
.cta__star { width: 34px; fill: color-mix(in srgb, currentColor 18%, transparent); transition: fill .3s; }
.cta.is-in .cta__star { animation: starfill .5s var(--ease-spring) forwards; }
.cta.is-in .cta__star:nth-child(2) { animation-delay: .12s; }
.cta.is-in .cta__star:nth-child(3) { animation-delay: .24s; }
.cta.is-in .cta__star:nth-child(4) { animation-delay: .36s; }
.cta.is-in .cta__star:nth-child(5) { animation-delay: .48s; }
@keyframes starfill { 50% { transform: scale(1.35) rotate(-12deg); } to { fill: var(--gold); transform: none; } }

/* ---------- Page heads ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); background: linear-gradient(135deg, hsl(var(--hue, 245) 70% 95%), var(--paper) 70%); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .page-head { background: linear-gradient(135deg, hsl(var(--hue, 245) 40% 16%), var(--paper) 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-head { background: linear-gradient(135deg, hsl(var(--hue, 245) 40% 16%), var(--paper) 70%); } }
.page-head__bg { position: absolute; top: 0; right: 0; width: 46%; height: 100%; object-fit: cover; z-index: -1; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); opacity: .85; animation: fadein 1.2s var(--ease) both; }
@media (max-width: 760px) { .page-head__bg { width: 100%; opacity: .14; mask-image: none; -webkit-mask-image: none; } }
.page-head__inner { position: relative; }
.page-head__title { font-size: clamp(2.1rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; max-width: 18ch; text-wrap: balance; }
.page-head__desc { color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; margin-top: 16px; }
.page-head__desc p:last-child { margin: 0; }
.page-head--search .searchbar { max-width: 760px; margin-top: 24px; }
.page-head--plain { background: none; }

.crumbs { font-size: .86rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.crumbs a:hover { color: var(--accent); }
.crumbs li[aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Single article ---------- */
.article__head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 28px; max-width: 980px; display: grid; justify-items: start; gap: 18px; }
.article__head .crumbs { margin-bottom: 0; }
.article__title { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
.article__banner { margin: 0 auto; }
.article__banner img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-lg); background: var(--tint); transform: scale(var(--s, 1.04)); transition: transform .1s linear; }
.article__banner { overflow: hidden; border-radius: var(--r-lg); padding: 0; max-width: calc(var(--wrap) - var(--gutter) * 2); width: calc(100% - var(--gutter) * 2); }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); padding-top: clamp(32px, 5vw, 56px); padding-bottom: 64px; }
.article__body { max-width: 720px; }
.article__aside { position: relative; }
.toc { position: sticky; top: 96px; padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.toc__title { font-weight: 700; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: none; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); font-size: .9rem; color: var(--ink-2); line-height: 1.35; transition: color .2s, border-color .2s, background .2s; }
.toc .toc__l3 a { padding-left: 22px; font-size: .85rem; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.article__widgets { margin-top: 24px; }
@media (max-width: 1000px) {
	.article__layout { grid-template-columns: minmax(0, 1fr); }
	.article__aside { display: contents; }
	.toc { order: -1; }
	.article__widgets { order: 2; margin-top: 0; }
	.toc { position: static; }
	.toc ol { max-height: 240px; overflow: auto; }
}

/* Prose */
.prose { font-family: var(--serif); font-size: 1.2rem; line-height: 1.72; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.18; }
.prose h2 { font-size: 1.85rem; font-weight: 750; margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; font-weight: 700; margin-top: 1.5em; }
.prose h4 { font-size: 1.12rem; font-weight: 700; margin-top: 1.3em; }
.prose > :is(h2, h3, h4) + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--gold); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.6em; }
.prose ul li + li, .prose ol li + li { margin-top: .45em; }
.prose ul li::before { content: ""; position: absolute; left: .1em; top: .52em; width: .7em; height: .7em; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.prose ol { padding-left: 0; list-style: none; counter-reset: li; }
.prose ol li { counter-increment: li; position: relative; padding-left: 2.2em; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: .2em; width: 1.5em; height: 1.5em; display: grid; place-items: center; border-radius: 50%; background: var(--chip-bg); color: var(--chip-ink); font: 700 .72em/1 var(--display); }
.prose blockquote { margin-inline: 0; padding: 1em 1.4em; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; font-style: italic; }
.prose img { border-radius: var(--r-md); }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-caption-text { font: .85rem/1.4 var(--display); color: var(--ink-2); margin-top: 8px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.prose strong { font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font: .95rem/1.45 var(--display); }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--tint); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.prose iframe, .prose video { max-width: 100%; border-radius: var(--r-md); }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.prose .aligncenter { margin-inline: auto; }
@media (max-width: 600px) { .prose { font-size: 1.1rem; } .prose h2 { font-size: 1.55rem; } }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--line); font-family: var(--display); }
.share__label { font-weight: 700; margin-right: 6px; font-size: .95rem; }
.share a, .share button { font-size: .85rem; padding: .5em .9em; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none !important; color: var(--ink) !important; cursor: pointer; transition: border-color .2s, background .2s; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.share button.is-done { background: var(--gold); border-color: var(--gold); color: #172036 !important; }

.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 40px 72px; }
.postnav__link { display: grid; gap: 6px; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); font-weight: 650; line-height: 1.3; transition: border-color .2s, transform .3s var(--ease); }
.postnav__link span { font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.postnav__link:hover { border-color: var(--accent); transform: translateY(-2px); }
.postnav__link--next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .postnav { grid-template-columns: 1fr; } .postnav__link--next { grid-column: auto; } }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 48px; }
.pager .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.pager a.page-numbers:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .dots { border: 0; background: none; }

/* ---------- Empty / 404 / forms ---------- */
.empty { text-align: center; padding: 40px 0; display: grid; justify-items: center; gap: 10px; }
.empty .tiles { width: 100%; margin-top: 28px; text-align: left; }
.empty__star { width: 56px; fill: var(--gold); animation: bob 3s ease-in-out infinite; }
.empty h2 { font-size: 1.6rem; }
.empty p { color: var(--ink-2); }
.notfound { padding: clamp(64px, 12vw, 140px) 0; text-align: center; }
.notfound__inner { display: grid; justify-items: center; gap: 18px; max-width: 760px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.04em; text-wrap: balance; }
.notfound p { color: var(--ink-2); }
.notfound .searchbar { width: 100%; }
.notfound__stars { display: flex; gap: 8px; }
.notfound__star { width: 32px; fill: var(--line); }
.notfound__star:first-child { fill: var(--gold); animation: starfill 1s var(--ease-spring) .3s both; }

.contact-form { display: grid; gap: 16px; font-family: var(--display); font-size: 1rem; margin-top: 1.4em; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: .8em 1em; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 400; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.contact-form .btn { justify-self: start; }
.contact-form .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 12px; font: 600 .95rem/1.4 var(--display); }
.notice--ok { background: #E4F6EE; color: #11603F; }
.notice--err { background: #FDECEC; color: #9B1C1C; }

.sitemap { columns: 3 280px; column-gap: 40px; }
.sitemap > div { break-inside: avoid; margin-bottom: 28px; }
.sitemap h2 { font-size: 1.1rem; margin-bottom: 10px; }
.sitemap ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .93rem; color: var(--ink-2); }
.sitemap a:hover { color: var(--accent); }
.archive-list { list-style: none; padding: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 64px; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1.5fr .8fr; gap: 48px; padding-bottom: 48px; }
.site-footer__about p { color: var(--ink-2); margin: 16px 0; max-width: 40ch; }
.site-footer__heading { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__cats ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.site-footer a { color: var(--ink-2); transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand, .site-footer .brand:hover { color: var(--ink); }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { padding: .45em .9em; border-radius: 99px; border: 1px solid var(--line); font-size: .85rem; }
.site-footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; }
.site-footer__base p { margin: 0; }
.to-top { background: none; border: 0; color: var(--ink-2); cursor: pointer; font-weight: 600; }
.to-top:hover { color: var(--accent); }
.widget { margin-top: 20px; }
.widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.widget input[type="search"], .widget input[type="text"], .widget select { width: 100%; padding: .6em .8em; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.widget button, .widget input[type="submit"] { margin-top: 8px; padding: .55em 1em; border-radius: 10px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; }
.article__widgets .widget-title, .article__widgets h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.widget-title { font-size: 1rem; margin-bottom: 10px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Scroll reveal (grids only) ---------- */
.js [data-reveal] > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--n, 0) * 70ms); }
.js [data-reveal].is-in > * { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.ticker__track { animation: none; }
	.kinetic__track { transform: none !important; }
	.js [data-reveal] > * { opacity: 1; transform: none; }
}
.site-footer .widget h2, .site-footer .widget .wp-block-heading { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }

/* ==========================================================================
   v1.1 — creative layer
   ========================================================================== */

/* ---------- Stretch headlines (Anybody's width axis) ---------- */
[data-stretch] .sw { display: inline-block; white-space: nowrap; }
[data-stretch] .sc {
	display: inline-block;
	font-stretch: var(--w, inherit);
	transition: font-stretch .35s var(--ease), font-weight .35s var(--ease), color .35s;
}
.js [data-stretch].is-ready .sc { animation: stretchin 1.1s var(--ease) both; animation-delay: calc(var(--d) * 22ms + 60ms); }
@keyframes stretchin {
	from { font-stretch: 50%; opacity: 0; transform: translateY(.35em); }
	60% { opacity: 1; }
}
[data-stretch] .sc.is-hot { color: var(--accent); }

/* ---------- Rotating rating seal ---------- */
.seal { position: absolute; z-index: 6; top: -6px; right: -4px; width: 118px; height: 118px; display: grid; place-items: center; animation: bob 5s ease-in-out infinite; pointer-events: none; }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 18s linear infinite; }
.seal circle { fill: var(--gold); filter: drop-shadow(0 8px 16px rgba(245, 180, 0, .45)); }
.seal text { font: 700 9.4px/1 var(--display); font-stretch: 125%; letter-spacing: .06em; fill: #172036; }
.seal__star { position: relative; width: 26px; fill: #172036; animation: spin 18s linear infinite reverse; }

/* ---------- Header ticker ---------- */
.ticker { display: flex; align-items: stretch; background: var(--ink); color: var(--paper); font-size: .88rem; position: relative; z-index: 40; overflow: hidden; }
.ticker[hidden] { display: none; }
.ticker__label { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--live); color: #fff; font-weight: 800; font-stretch: 125%; letter-spacing: .02em; }
.ticker__viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); }
.ticker__track { display: flex; width: max-content; animation: tick var(--dur, 90s) linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker__list a { display: inline-flex; gap: 10px; align-items: center; padding: 10px 26px 10px 0; white-space: nowrap; opacity: .86; transition: opacity .2s; }
.ticker__list a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.ticker__list b { font-weight: 700; color: var(--gold); }
.ticker__list li + li a::before, .ticker__list li:first-child a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .4; margin-right: 6px; }
@keyframes tick { to { transform: translateX(-50%); } }
.live__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; position: relative; flex: none; }
.ticker__label .live__dot { background: #fff; }
.live__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }

/* ---------- Kinetic category rows (move with scroll) ---------- */
.kinetic { padding: clamp(18px, 3vw, 34px) 0; border-block: 1px solid var(--line); overflow: hidden; background: var(--surface); display: grid; gap: 6px; }
.kinetic__row { overflow: hidden; }
.kinetic__track { display: flex; width: max-content; will-change: transform; }
.kinetic a {
	display: inline-flex; align-items: center; gap: .35em; padding-right: .35em;
	font-size: clamp(1.8rem, 4.6vw, 3.6rem); font-weight: 800; font-stretch: 140%; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap;
	color: transparent; -webkit-text-stroke: 1.2px var(--ink);
	transition: color .35s, -webkit-text-stroke-color .35s, font-stretch .45s var(--ease);
}
.kinetic__row[data-dir="1"] a { font-weight: 300; color: var(--ink-2); -webkit-text-stroke: 0; font-stretch: 100%; }
.kinetic a:hover, .kinetic a:focus-visible { color: hsl(var(--hue) 75% 52%); -webkit-text-stroke-color: transparent; font-stretch: 150%; }
.kinetic__row[data-dir="1"] a:hover { font-weight: 800; color: hsl(var(--hue) 75% 52%); }
.kinetic__star { width: .42em; fill: var(--gold); flex: none; transition: transform .5s var(--ease-spring); }
.kinetic a:hover .kinetic__star { transform: rotate(144deg) scale(1.3); }

/* ---------- Scroll-lit statement ---------- */
.manifesto { position: relative; background: var(--accent); color: #fff; padding: clamp(72px, 12vw, 160px) 0; overflow: hidden; }
.manifesto__text { font-family: var(--display); font-size: clamp(1.8rem, 4.4vw, 3.6rem); font-weight: 750; font-stretch: 118%; line-height: 1.12; letter-spacing: -.03em; max-width: 26ch; margin: 0; text-wrap: balance; }
.js .manifesto__text .mw { opacity: .18; transition: opacity .25s linear; }
.js .manifesto__text .mw.is-lit { opacity: 1; }
.manifesto__stars { position: absolute; right: clamp(-60px, -2vw, 0px); bottom: 24px; width: min(420px, 50vw); fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: .35; }
.manifesto__stars path { transition: fill .5s var(--ease), stroke .5s; transition-delay: calc(var(--k) * 120ms); }
.manifesto.is-done .manifesto__stars path { fill: var(--gold); stroke: var(--gold); }

/* ---------- Live wire ---------- */
.section--live { padding-top: clamp(48px, 7vw, 88px); }
.live__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.live__title-main { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; font-stretch: 125%; letter-spacing: -.035em; }
.live__title-main .live__dot { color: var(--live); width: 12px; height: 12px; }
.live__status { margin: 0; color: var(--ink-2); font-size: .9rem; }
.live__filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.live__filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: .5em 1em; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.live__filters button:hover { border-color: var(--ink); }
.live__filters button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.live__new { display: block; margin: 0 auto 16px; border: 0; background: var(--live); color: #fff; font-weight: 700; padding: .6em 1.2em; border-radius: 99px; cursor: pointer; box-shadow: 0 10px 24px -10px var(--live); animation: drop .5s var(--ease-spring) both; }
.live__new[hidden] { display: none; }
.live__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.live--compact .live__list { grid-template-columns: 1fr; }
.live__item { border-top: 1px solid var(--line); }
.live__item[hidden] { display: none; }
.live__item a { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; padding: 16px 0; }
.live__thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: hsl(var(--hue) 70% 90%); display: grid; place-items: center; }
.live__thumb b { font-size: 1.8rem; font-weight: 800; font-stretch: 130%; color: hsl(var(--hue) 60% 35%); }
.live__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.live__item a:hover .live__thumb img { transform: scale(1.08); }
.live__meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--ink-2); margin-bottom: 4px; }
.live__src { font-weight: 700; color: hsl(var(--hue) 60% 38%); }
:root[data-theme="dark"] .live__src { color: hsl(var(--hue) 80% 75%); }
.live__title { display: block; font-weight: 650; font-size: 1.05rem; line-height: 1.3; }
.live__item a:hover .live__title { color: var(--accent); }
.live__item.is-new { animation: slidein .8s var(--ease) both; }
.live__item.is-new .live__thumb::after { content: "New"; position: absolute; left: 6px; top: 6px; background: var(--live); color: #fff; font-size: .65rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
@keyframes slidein { from { opacity: 0; transform: translateY(-14px); background: color-mix(in srgb, var(--gold) 30%, transparent); } }
.live__empty { color: var(--ink-2); padding: 20px 0; }
.live .link-more { margin-top: 18px; }
@media (max-width: 760px) { .live__list { grid-template-columns: 1fr; } .live__item a { grid-template-columns: 68px 1fr; } .live__thumb { width: 68px; height: 68px; } }
.page-head--live { --hue: 5; }

/* ---------- Category accordion ---------- */
.accordion { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; height: clamp(360px, 42vw, 480px); }
.accordion__panel { flex: 1 1 0; min-width: 0; transition: flex-grow .7s var(--ease); }
.accordion__panel.is-open { flex-grow: 4.2; }
.accordion__panel a { position: relative; display: block; height: 100%; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; background: hsl(var(--hue) 55% 42%); color: #fff; }
.accordion__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.15); transition: transform 1.2s var(--ease), filter .7s; filter: saturate(.6); }
.accordion__panel.is-open img { transform: scale(1); filter: none; }
.accordion__panel a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, hsl(var(--hue) 70% 25% / .15), hsl(var(--hue) 70% 12% / .9)); }
.accordion__num { position: absolute; top: 16px; left: 18px; font-size: .9rem; font-weight: 700; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: .3em .7em; border-radius: 99px; }
.accordion__label { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.accordion__name { font-size: 1.15rem; font-weight: 800; font-stretch: 112%; line-height: 1.1; letter-spacing: -.02em; transition: font-size .6s var(--ease); }
.accordion__desc { font-size: .95rem; opacity: 0; max-height: 0; overflow: hidden; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease), max-height .5s; }
.accordion__panel.is-open .accordion__name { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-stretch: 125%; }
.accordion__panel.is-open .accordion__desc { opacity: .9; max-height: 6em; transform: none; transition-delay: .25s; }
.accordion__panel:not(.is-open) .accordion__name { writing-mode: vertical-rl; transform: rotate(180deg); justify-self: start; }
@media (max-width: 860px) {
	.accordion { height: auto; flex-direction: column; }
	.accordion__panel { flex: none; height: 92px; transition: height .6s var(--ease); }
	.accordion__panel.is-open { height: 300px; }
	.accordion__panel:not(.is-open) .accordion__name { writing-mode: horizontal-tb; transform: none; }
}

/* ---------- Tilt + glare ---------- */
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); transform-style: preserve-3d; }
[data-tilt].is-tilting { transition: transform .1s linear; }
[data-tilt] .glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .35), transparent 45%); opacity: 0; transition: opacity .4s; z-index: 2; mix-blend-mode: soft-light; }
[data-tilt].is-tilting .glare { opacity: 1; }
.deck { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
[data-magnetic] { transition: transform .35s var(--ease-spring); }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
::view-transition-group(tra-img), ::view-transition-group(tra-title) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Dark-mode details for new parts ---------- */
:root[data-theme="dark"] .kinetic a { -webkit-text-stroke-color: var(--ink); }
:root[data-theme="dark"] .manifesto { background: #1A2280; }

@media (prefers-reduced-motion: reduce) {
	.ticker__track { animation: none; }
	.ticker__viewport { overflow-x: auto; }
	.ticker__list[aria-hidden] { display: none; }
	.js .manifesto__text .mw { opacity: 1; }
	[data-tilt], .deck { transform: none !important; }
	@view-transition { navigation: none; }
}
/* Small titles in narrow columns use normal width; big section titles stay wide. */
.card__title, .ranked__title, .deck__title, .live__title, .postnav__link, .toc a { font-stretch: 100%; }
.card--lead .card__title { font-stretch: 108%; }
@media (max-width: 480px) {
	.site-header__inner { gap: 10px; }
	.brand { font-size: 1.05rem; font-stretch: 90%; gap: 8px; min-width: 0; }
	.brand__mark { width: 32px; height: 32px; }
	.icon-btn { width: 38px; height: 38px; }
	.site-header__tools { gap: 4px; }
	.seal { width: 92px; height: 92px; }
}
@media (max-width: 600px) { .live__title-main { font-stretch: 100%; font-size: 1.6rem; } .manifesto__text { font-stretch: 100%; } }

/* ---------- Contact page ---------- */
.contact-form select { width: 100%; padding: .8em 1em; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 400; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; font-family: var(--display); }
.contact-card { padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.contact-card__label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.contact-card__value { font-size: 1.02rem; font-weight: 600; }
.contact-card .social { margin-top: 2px; }
.prose .searchbar { font-family: var(--display); font-size: 1rem; }
