/*
Theme Name: Lumen Press
Description: A fast, smooth, modern magazine-style theme for blogs. Presentation only: posts, categories, URLs, SEO plugin data and comments are untouched.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: lumen
*/

:root {
	--bg: #F7F7FB; --surface: #FFFFFF; --ink: #15142B; --muted: #5E5C7A; --line: #E7E6F2;
	--brand: #5B3DF5; --on-brand: #FFFFFF; --tint: #EFEBFF; --deep: #17152E;
	--font: "Inter", "Segoe UI Variable Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--shadow: 0 24px 44px -26px rgba(15, 40, 100, .35);
}
@media (prefers-color-scheme: dark) {
	:root { --bg: #0A0F1A; --surface: #111827; --ink: #EEF2F8; --muted: #9AA6B8; --line: #1F2937; --brand: #5B9BFF; --on-brand: #07101F; --tint: #112038; --deep: #060A12; --shadow: 0 24px 44px -26px rgba(0, 0, 0, .7); }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.empty { padding: 64px 0; color: var(--muted); }
.admin-hint { background: var(--surface); border: 1px dashed var(--line); padding: 14px 18px; border-radius: 16px; color: var(--muted); }

/* Buttons & pills */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font: 700 .92rem/1 var(--font); padding: 14px 24px; border-radius: 999px; background: var(--brand); color: var(--on-brand); box-shadow: 0 12px 24px -12px var(--brand); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px var(--brand); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.pill { display: inline-block; font: 700 .78rem/1 var(--font); padding: 7px 13px; border-radius: 999px; background: var(--tint); color: var(--brand); transition: background .25s, color .25s; }
a.pill:hover { background: var(--brand); color: var(--on-brand); }
.pill--glass { background: rgba(255, 255, 255, .18); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-size: .82rem; }
.more { display: inline-block; margin-top: 8px; font-weight: 700; font-size: .88rem; color: var(--brand); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { flex: none; white-space: nowrap; font: 800 1.45rem/1 var(--font); letter-spacing: -.04em; }
.brand a { display: block; }
.brand img { max-height: 40px; width: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; color: var(--muted); transition: background .25s, color .25s; }
.site-nav a:hover { color: var(--ink); background: var(--tint); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background .25s; }
.icon-btn:hover { background: var(--tint); }
.search-toggle { margin-left: auto; }
.hdr-cats { margin-left: auto; min-width: 0; padding-left: 20px; border-left: 1px solid var(--line); }
.hdr-cats ~ .search-toggle { margin-left: 0; }
.hdr-cats ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0 14px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.hdr-cats ul::-webkit-scrollbar { display: none; }
.hdr-cats a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 10px; font-size: .85rem; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.hdr-cats a:hover { color: var(--ink); background: var(--tint); }
.hdr-cats a[aria-current] { color: var(--brand); background: var(--tint); }
.site-nav .nav-cats { display: none; }
.menu-toggle { display: none; }
.search-panel { border-top: 1px solid var(--line); padding: 16px 0; background: var(--surface); }
.searchform { display: flex; gap: 10px; max-width: 640px; }
.searchform input { flex: 1; min-width: 0; font: inherit; padding: 13px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .25s; }
.searchform input:focus { border-color: var(--brand); outline: none; }
.cat-bar ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 16px 0 4px; overflow-x: auto; scrollbar-width: none; }
.cat-bar a { display: block; white-space: nowrap; padding: 9px 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; font-weight: 600; color: var(--muted); transition: all .25s var(--ease); }
.cat-bar a:hover, .cat-bar a[aria-current] { background: var(--brand); color: var(--on-brand); box-shadow: none; transform: translateY(-1px); }
@media (max-width: 1100px) {
	.hdr-cats { display: none; }
	.site-nav .nav-cats { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
	.site-nav .nav-cats a { font-size: .95rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
	.bar { gap: 8px; }
	.brand { order: 1; margin-right: auto; }
	.search-toggle { order: 2; margin-left: 0; }
	.menu-toggle { display: grid; order: 3; }
	.site-nav { position: fixed; inset: 68px 0 0 0; padding: 24px 20px; background: var(--bg); transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; }
	.admin-bar .site-nav { top: 114px; }
	.site-nav.open { transform: none; }
	.site-nav ul { flex-direction: column; gap: 6px; }
	.site-nav a { font-size: 1.3rem; font-weight: 700; padding: 14px 16px; color: var(--ink); }
}

/* Sections */
.section { margin-top: 84px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.block-title { font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.sub { margin: 8px 0 0; color: var(--muted); }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid, .grid--2, .grid--list { grid-template-columns: 1fr; } .section { margin-top: 60px; } }

/* Cards */
.card { background: var(--surface); border-radius: 24px; padding: 12px 12px 22px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.ph { display: grid; place-items: center; width: 100%; height: 100%; font: 800 3rem var(--font); color: var(--brand); background: var(--tint); }
.card__body { padding: 16px 10px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.card__title { font-size: 1.22rem; line-height: 1.22; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.card:hover .card__title a { background-size: 100% 2px; }
.card__ex { margin: 0; color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rank--badge { position: absolute; left: 12px; bottom: 12px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--brand); color: var(--on-brand); font: 800 1.15rem var(--font); }
.card--compact { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: 20px; }
.card--compact .card__media { aspect-ratio: 1; border-radius: 14px; }
.card--compact .card__body { padding: 0; gap: 6px; }
.card--compact .card__title { font-size: 1.02rem; }
.card--wide { position: relative; padding: 0; border-radius: 28px; overflow: hidden; min-height: 400px; display: flex; isolation: isolate; background: var(--deep); }
.card--wide .card__media { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; border-radius: 0; }
.card--wide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 9, 30, .9) 6%, rgba(10, 9, 30, 0) 68%); }
.card--wide .card__body { align-self: flex-end; padding: 30px; color: #fff; }
.card--wide .card__title { font-size: clamp(1.45rem, 2.3vw, 2rem); }
.card--wide .card__ex, .card--wide .meta { color: rgba(255, 255, 255, .8); }
.card--wide .pill { background: rgba(255, 255, 255, .18); color: #fff; }

/* Hero: bento tiles */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(260px, auto)); gap: 16px; margin-top: 26px; }
.tile { position: relative; display: flex; border-radius: 28px; overflow: hidden; isolation: isolate; background: var(--deep); color: #fff; }
.tile--main { grid-column: span 7; grid-row: span 2; min-height: 560px; }
.tile--side { grid-column: span 5; }
.tile__img { position: absolute; inset: 0; z-index: -2; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile__img .ph { background: var(--deep); color: #fff; opacity: .3; font-size: 7rem; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 9, 30, .9) 8%, rgba(10, 9, 30, 0) 66%); }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile--main .tile__img img { animation: settle 1.5s var(--ease); }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
.tile__text { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(22px, 3.4vw, 40px); max-width: 760px; }
.tile .pill { background: rgba(255, 255, 255, .18); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile--main h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.06; }
.tile--side h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.18; }
.tile__text p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 58ch; }
.tile .meta { color: rgba(255, 255, 255, .75); }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.tile .btn { background: #fff; color: #17152E; box-shadow: none; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; grid-template-rows: none; } .tile--main, .tile--side { grid-column: auto; grid-row: auto; } .tile--main { min-height: 480px; } .tile--side { min-height: 260px; } }

/* Most read rail & category panels */
.band { margin-top: 84px; padding: 60px 0 44px; background: var(--tint); }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 22px; scrollbar-width: thin; scrollbar-color: var(--brand) transparent; }
.rail .card { flex: 0 0 min(310px, 80%); scroll-snap-align: start; }
.catsec { padding: clamp(22px, 4vw, 44px); border-radius: 36px; background: var(--tint); }
.catsec__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.catsec--flip .catsec__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.catsec--flip .catsec__lead { order: 2; }
.catsec__list { display: grid; gap: 14px; }
@media (max-width: 860px) { .catsec__grid, .catsec--flip .catsec__grid { grid-template-columns: 1fr; } .catsec--flip .catsec__lead { order: 0; } }

/* Footer */
.site-footer { margin-top: 100px; background: var(--deep); color: #C9C6EA; padding-top: 64px; border-radius: 40px 40px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.brand--foot a { color: #fff; }
.foot-desc { max-width: 38ch; color: #A9A5D3; }
.site-footer h2 { font: 700 1rem var(--font); color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background .25s, transform .3s var(--ease); }
.socials a:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-2px); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; margin-top: 52px; padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } .site-footer { border-radius: 28px 28px 0 0; } }

/* Archive / page heads */
.page-head { padding: 46px 0 34px; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-top: 12px; }
.page-desc { max-width: 62ch; color: var(--muted); font-size: 1.08rem; margin-top: 12px; }
.page-desc p { margin: 0; }
.page-search { margin-top: 22px; }
.page-head--author .avatar-lg { border-radius: 50%; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.chips a { display: block; padding: 9px 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: .9rem; transition: all .25s var(--ease); }
.chips a:hover { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.tabs { display: inline-flex; margin-top: 24px; padding: 4px; border-radius: 999px; background: var(--tint); }
.tabs a { padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted); transition: all .25s; }
.tabs a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(40, 20, 120, .12); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 14px; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 56px 0 0; }
.page-numbers { min-width: 46px; height: 46px; padding: 0 18px; display: grid; place-items: center; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; transition: all .25s; }
a.page-numbers:hover { background: var(--tint); color: var(--brand); }
.page-numbers.current { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.page-numbers.dots { background: none; box-shadow: none; }

/* Single article */
.article-head { max-width: 860px; padding-top: 40px; }
.article-head .pill { margin-bottom: 18px; }
.entry-title { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.05; letter-spacing: -.035em; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 26px; }
.byline__who { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.byline__who img { border-radius: 50%; }
.byline .meta a:hover { color: var(--brand); }
.article-hero { max-width: 1080px; margin-top: 36px; margin-bottom: 0; }
.article-hero img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 28px; }
.article-hero figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; text-align: center; }
.article-body { max-width: 760px; margin-top: 44px; }
.toc { border-radius: 20px; background: var(--tint); padding: 20px 24px; margin-bottom: 36px; }
.toc summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; }
.toc ol { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.toc .toc--h3 { margin-left: 18px; list-style: circle; font-size: .95rem; }
.toc a { color: var(--brand); font-weight: 600; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose { font-size: 1.125rem; line-height: 1.85; overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 1.4em; }
.prose h2 { font-size: 1.9rem; margin-top: 2em; margin-bottom: .6em; }
.prose h3 { font-size: 1.45rem; margin-top: 1.7em; margin-bottom: .5em; }
.prose h4 { font-size: 1.15rem; font-weight: 800; margin-top: 1.5em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose img, .prose video, .prose iframe { max-width: 100%; border-radius: 16px; }
.prose figure { margin-inline: 0; }
.prose figcaption, .wp-caption-text { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: 8px; }
.prose blockquote { margin-inline: 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--brand); font-size: 1.25rem; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose pre { overflow-x: auto; padding: 18px; border-radius: 16px; background: var(--deep); color: #E8E6FF; font-size: .9rem; line-height: 1.6; }
.prose code { font-size: .88em; background: var(--tint); padding: 2px 7px; border-radius: 7px; }
.prose pre code { background: none; padding: 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--tint); }
.prose .alignwide, .prose .alignfull { max-width: 100%; }
.prose .alignleft { float: left; margin: 0 1.2em 1em 0; }
.prose .alignright { float: right; margin: 0 0 1em 1.2em; }
.prose .aligncenter { margin-inline: auto; }
.prose::after { content: ""; display: block; clear: both; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }
.tags a { padding: 7px 15px; border-radius: 999px; background: var(--tint); font-size: .85rem; font-weight: 600; color: var(--brand); }
.tags a:hover { background: var(--brand); color: var(--on-brand); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 36px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.share__label { font-weight: 800; margin-right: 6px; }
.share a, .share button { font: 700 .88rem var(--font); padding: 10px 18px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; transition: all .25s var(--ease); }
.share a:hover, .share button:hover { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.author-box { display: flex; gap: 20px; padding: 26px; border-radius: 24px; background: var(--surface); }
.author-box img { border-radius: 50%; flex: none; height: 72px; width: 72px; }
.author-box h2 { font-size: 1.2rem; margin-bottom: 6px; }
.author-box p { margin: 0; color: var(--muted); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; justify-content: stretch; }
.post-navigation a { display: block; padding: 22px; border-radius: 22px; background: var(--surface); height: 100%; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-navigation a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.pn__label { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 6px; }
.pn__title { display: block; font-weight: 800; font-size: 1.08rem; line-height: 1.3; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: 1; text-align: left; } .prose { font-size: 1.06rem; } }
.progress { position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }
.admin-bar .progress { top: 32px; }

/* Comments */
.comments { margin-top: 56px; }
.comment-list, .comment-list ol { list-style: none; padding: 0; margin: 22px 0 0; }
.comment-list .children { padding-left: 28px; }
.comment-body { padding: 18px 0; border-top: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: .82rem; color: var(--muted); margin: 4px 0 8px 60px; }
.comment-content { margin-left: 60px; }
.comment-content p { margin: 0 0 .8em; }
.reply a { font-size: .85rem; font-weight: 700; color: var(--brand); margin-left: 60px; }
.comment-respond { margin-top: 36px; }
.comment-reply-title { font-size: 1.5rem; font-weight: 800; }
.comment-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; font: inherit; padding: 13px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .25s; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--brand); outline: none; }
.comment-form .submit { font: 700 .95rem var(--font); padding: 14px 26px; border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); cursor: pointer; }

/* =====================================================================
   HOME PAGE (v1.3) – clean, professional tech landing
   ===================================================================== */
.btn--lg { padding: 16px 28px; font-size: .98rem; }
.btn--white { background: #fff; color: #0B1220; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--outline:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px #fff; }
.arr { display: inline-block; margin-left: 8px; transition: transform .3s var(--ease); }
.btn:hover .arr, .hm-topic:hover .arr, .hm-row:hover .arr { transform: translateX(5px); }
.magnetic { will-change: transform; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hero */
.hm-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); min-height: min(82vh, 780px); display: flex; align-items: center; }
.hm-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.blob--1 { width: 560px; height: 560px; left: -160px; top: -200px; background: var(--brand); opacity: .2; animation: drift1 18s ease-in-out infinite alternate; }
.blob--2 { width: 480px; height: 480px; right: -160px; top: 18%; background: #38BDF8; opacity: .15; animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-120px, 100px) scale(.9); } }
.hm-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%); }
.hm-spot { position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%); }

.hm-hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 11px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 600 .8rem var(--mono); color: var(--muted); }
.hm-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }
.hm-title { margin: 22px 0 0; font: 800 clamp(2.7rem, 6.6vw, 5.4rem)/1.04 var(--font); letter-spacing: -.045em; }
.hm-rotator { display: inline-block; padding-bottom: .08em; }
.hm-word { display: inline-block; background: linear-gradient(100deg, var(--brand), #38BDF8 60%, var(--brand)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease); }
.hm-word.out { opacity: 0; transform: translateY(.3em); filter: blur(8px); }
@keyframes shine { to { background-position: -200% 0; } }
.hm-lead { max-width: 50ch; margin: 22px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hm-stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.hm-stats b { display: block; font: 700 2rem/1 var(--mono); letter-spacing: -.03em; }
.hm-stats span { color: var(--muted); font-size: .82rem; font-weight: 600; }

/* Latest panel */
.hm-panel { border-radius: 22px; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); overflow: hidden; animation: bob 9s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }
.hm-panel__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 600 .76rem var(--mono); color: var(--muted); letter-spacing: .02em; }
.hm-panel__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hm-panel__bar span { margin-left: 8px; }
.hm-panel__bar b { margin-left: auto; color: var(--brand); font-weight: 700; }
.hm-row { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); transition: background .3s; }
.hm-row:hover { background: var(--tint); }
.hm-row__img { flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--tint); }
.hm-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hm-row:hover .hm-row__img img { transform: scale(1.08); }
.hm-row__img .ph { font-size: 1.8rem; }
.hm-row__txt { display: grid; gap: 4px; min-width: 0; flex: 1; }
.hm-row__txt small { color: var(--brand); font: 700 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hm-row__txt strong { font: 700 1rem/1.3 var(--font); letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-row__txt em { font-style: normal; color: var(--muted); font-size: .78rem; }
.hm-row .arr { color: var(--brand); margin: 0; opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.hm-row:hover .arr { opacity: 1; }
.hm-panel__foot { display: block; padding: 15px 18px; font-weight: 700; font-size: .88rem; color: var(--brand); }
.hm-panel__foot:hover { background: var(--tint); }
.hm-scroll { position: absolute; left: 50%; bottom: 24px; width: 24px; height: 38px; margin-left: -12px; border-radius: 20px; box-shadow: inset 0 0 0 2px var(--muted); opacity: .45; }
.hm-scroll span { position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 4px; background: var(--muted); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* Marquee */
.hm-marquee { overflow: hidden; padding: 18px 0; background: var(--surface); border-block: 1px solid var(--line); }
.hm-marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.hm-marquee:hover .hm-marquee__track { animation-play-state: paused; }
.hm-marquee__row { display: flex; align-items: center; gap: 30px; padding-right: 30px; }
.hm-marquee span { font: 600 .9rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hm-marquee i { font-style: normal; color: var(--brand); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.hm-section { margin-top: clamp(72px, 10vw, 124px); }
.hm-head { max-width: 640px; margin-bottom: 36px; }
.hm-kicker { font: 700 .76rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.hm-kicker::before { content: "// "; opacity: .6; }
.hm-h2 { margin-top: 12px; font-size: clamp(1.9rem, 4vw, 3rem); }
.hm-head p { margin: 12px 0 0; color: var(--muted); font-size: 1.08rem; }

/* Topics */
.hm-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-topic { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; background: var(--surface); overflow: hidden; isolation: isolate; box-shadow: inset 0 0 0 1px var(--line); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: box-shadow .4s var(--ease), transform .5s var(--ease) var(--d, 0s), opacity .9s var(--ease) var(--d, 0s); }
.hm-topic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(300px circle at var(--px, 50%) var(--py, 0%), color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); opacity: 0; transition: opacity .4s; }
.hm-topic::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.hm-topic:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, var(--line)), var(--shadow); }
.hm-topic:hover::before { opacity: 1; }
.hm-topic:hover::after { transform: scaleX(1); }
.js .hm-topic.reveal { transform: translateY(28px); }
.js .hm-topic.reveal.is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.hm-topic__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--tint); color: var(--brand); font: 700 .95rem var(--mono); transition: background .35s, color .35s; }
.hm-topic:hover .hm-topic__ic { background: var(--brand); color: var(--on-brand); }
.hm-topic h3 { margin-top: 12px; font-size: 1.35rem; }
.hm-topic p { margin: 0; color: var(--muted); font-size: .94rem; }
.hm-topic__go { margin-top: 10px; font: 700 .8rem var(--mono); letter-spacing: .02em; color: var(--brand); }

/* Features */
.hm-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-feat { padding: 30px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.hm-feat.is-in:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.hm-feat__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--tint); color: var(--brand); margin-bottom: 18px; }
.hm-feat h3 { font-size: 1.2rem; }
.hm-feat p { margin: 10px 0 0; color: var(--muted); }

/* CTA band */
.hm-cta-band { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 60px); border-radius: 28px; background: var(--deep); color: #fff; }
.hm-cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent); mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent); }
.hm-cta-band .blob { opacity: .35; z-index: -1; }
.hm-cta-band .blob--1 { left: -100px; top: -160px; width: 380px; height: 380px; }
.hm-cta-band .blob--2 { right: -100px; top: auto; bottom: -180px; width: 360px; height: 360px; }
.hm-cta-band p { max-width: 52ch; margin: 14px auto 0; color: rgba(255,255,255,.75); font-size: 1.08rem; }
.hm-cta-band .hm-cta { justify-content: center; }
.site-footer { border-radius: 28px 28px 0 0; }

@media (max-width: 960px) {
	.hm-hero__in { grid-template-columns: 1fr; }
	.hm-topics, .hm-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hm-scroll { display: none; }
}
@media (max-width: 620px) {
	.hm-topics, .hm-feats { grid-template-columns: 1fr; }
	.hm-hero { min-height: 0; }
	.hm-cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; } .hm-marquee__track { animation: none !important; } }
