/* =========================================================
   Astronex theme — dark UI theo mau Prism.ai (Framer)
   Token: nen #010513→#010821, surface #02081d, text #ebf3fe,
   accent #0073ff / #2989ff, radius 12/16/20/40, font Geist + Inter Tight
   ========================================================= */

:root {
	--bg: #010513;
	--bg-2: #010821;
	--surface: #02081d;
	--surface-2: #030b26;
	--card: rgba(255, 255, 255, 0.04);
	--card-hover: rgba(255, 255, 255, 0.07);
	--border: rgba(235, 243, 254, 0.10);
	--border-strong: rgba(235, 243, 254, 0.18);
	--fg: #ebf3fe;
	--fg-soft: rgba(235, 243, 254, 0.80);
	--muted: rgba(235, 243, 254, 0.60);
	--accent: #0073ff;
	--accent-2: #2989ff;
	--accent-soft: rgba(41, 137, 255, 0.20);
	--accent-glow: rgba(0, 115, 255, 0.35);
	--danger: #e52e2e;

	--font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Inter Tight", "Geist", system-ui, sans-serif;

	--container: 1200px;
	--gutter: 1rem;
	--r-sm: 12px;
	--r-md: 16px;
	--r-lg: 20px;
	--r-pill: 40px;

	--shadow-inset: inset 0 0 32px rgba(116, 176, 253, 0.12), inset 0 3px 12px rgba(212, 232, 255, 0.08), inset 0 0.5px 0.5px rgba(212, 232, 255, 0.12);
	--shadow-btn: inset 0 4px 12px rgba(6, 128, 250, 0.12), 0 8px 24px rgba(0, 115, 255, 0.25);

	--ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) { :root { --gutter: 1.5rem; } }

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html { background: var(--bg); }
body {
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
/* Chan scroll ngang tren mobile: phai dat ca html va body, dung clip de khong tao scroll container. */
html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
html.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--fg); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0;
	color: var(--fg);
	text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

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

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed;
	top: 8px; left: 8px;
	width: auto; height: auto;
	clip: auto;
	padding: .5rem .75rem;
	background: var(--fg);
	color: var(--bg);
	z-index: 100;
}

/* ---------- Primitives ---------- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .35rem .9rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--r-pill);
	background: var(--card);
	box-shadow: var(--shadow-inset);
	color: var(--fg-soft);
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 1.25rem;
}
.eyebrow::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--accent-2);
	box-shadow: 0 0 10px var(--accent-2);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .7rem 1.25rem;
	border-radius: var(--r-pill);
	font-family: var(--font-body);
	font-size: .95rem;
	font-weight: 500;
	line-height: 1.2;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
	white-space: nowrap;
}
.btn__icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.btn--lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn--primary {
	color: #fff;
	background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
	box-shadow: var(--shadow-btn);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 4px 12px rgba(6, 128, 250, 0.2), 0 12px 32px rgba(0, 115, 255, 0.4); }
.btn--ghost {
	color: var(--fg);
	background: var(--card);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-inset);
}
.btn--ghost:hover { background: var(--card-hover); border-color: rgba(235, 243, 254, .3); transform: translateY(-2px); }

.frame {
	position: relative;
	border-radius: var(--r-lg);
	border: 1px solid var(--border);
	background: var(--surface);
	overflow: hidden;
	box-shadow: var(--shadow-inset);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--glow::after {
	content: "";
	position: absolute; inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(1, 5, 19, 0) 60%, rgba(1, 5, 19, .55) 100%);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .6rem;
	padding: 1.5rem;
	border-radius: var(--r-lg);
	border: 1px solid var(--border);
	background: var(--card);
	box-shadow: var(--shadow-inset);
	transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--card-hover); }
.card__kicker {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent-2);
}
.card__title { font-size: 1.35rem; }
.card__title--sm { font-size: 1.1rem; }
.card__text { color: var(--muted); font-size: .95rem; }
.card__media {
	border-radius: var(--r-sm);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	margin-bottom: .75rem;
	background: var(--surface-2);
	border: 1px solid var(--border);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
/* Icon cu la PNG 300x511: hexagon o ~60% duoi, phia tren la dai sang -> crop lay hexagon. */
.card__icon {
	width: 64px; height: 64px;
	margin-bottom: .5rem;
	filter: drop-shadow(0 8px 20px rgba(0, 115, 255, .35));
}
.card__icon img { width: 64px; height: 64px; object-fit: cover; object-position: center bottom; }

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 480px) and (max-width: 1023px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
	.grid--4 .card { padding: 1.25rem; }
}
@media (min-width: 1024px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Header ---------- */
/* Header dang pill noi, can giua (theo mau Astrax). Sticky, nen trong suot;
   nen blur nam tren pill (.site-header__inner), khong tren header de khong
   bien header thanh containing block cua .site-nav position:fixed tren mobile. */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px); /* dang nhap: tru chieu cao admin bar */
	z-index: 50;
	padding: .75rem 0;
	pointer-events: none; /* chi pill nhan click, vung 2 ben cho scroll/click xuyen */
}
.site-header .site-header__inner {
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	width: fit-content;
	max-width: calc(100% - 2 * var(--gutter));
	min-height: 56px;
	margin-inline: auto;
	padding: .4rem .4rem .4rem 1.25rem;
	border-radius: var(--r-pill);
	border: 1px solid var(--border);
	background: rgba(14, 18, 30, .72);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35), var(--shadow-inset);
	transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled .site-header__inner { background: rgba(10, 13, 24, .88); border-color: var(--border-strong); }
/* Logo tach xa menu (theo mau Astrax). */
@media (min-width: 901px) {
	.site-header .site-header__inner { padding-left: 1.5rem; padding-right: .75rem; }
	.site-header__brand { margin-right: clamp(3rem, 9vw, 10rem); }
}
.brand, .custom-logo-link { display: inline-flex; align-items: center; }
.brand__logo, .custom-logo { height: 30px; width: auto; }
/* CTA trong pill: pill xam sang, khong gradient. */
.site-header__cta.btn--primary {
	background: rgba(235, 243, 254, .10);
	color: var(--fg);
	box-shadow: none;
	border-color: var(--border);
	padding: .6rem 1.15rem;
}
.site-header__cta.btn--primary:hover { background: rgba(235, 243, 254, .18); box-shadow: none; }

.site-nav ul.menu { display: flex; gap: .25rem; list-style: none; }
.site-nav .menu a {
	display: inline-block;
	padding: .5rem .85rem;
	border-radius: var(--r-pill);
	color: var(--fg-soft);
	font-size: .95rem;
	font-weight: 500;
	transition: color .2s, background .2s;
}
.site-nav .menu a:hover,
.site-nav .menu a.is-active,
.site-nav .current-menu-item > a { color: var(--fg); background: var(--card); }
.site-nav .sub-menu { display: none; }
.site-nav__cta, .site-header__cta { display: none; } /* nav 3 muc giong nhau, Contact la item menu */

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	background: var(--card);
	border: 1px solid var(--border-strong);
	border-radius: var(--r-sm);
	cursor: pointer;
	place-items: center;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	display: block;
	width: 18px; height: 2px;
	background: var(--fg);
	content: "";
	position: relative;
	transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle__bar::before { top: -6px; position: absolute; }
.nav-toggle__bar::after { top: 6px; position: absolute; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: grid; width: 40px; height: 40px; border-radius: var(--r-pill); }
	.site-header__cta { display: none; }
	/* Khong dung backdrop-filter o day: no bien pill thanh containing block cua .site-nav position:fixed
	   -> menu mobile bi tinh theo pill va mat. Dung nen dac thay blur. */
	.site-header .site-header__inner {
		width: calc(100% - 2 * var(--gutter));
		padding: .4rem .4rem .4rem 1rem;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: rgba(10, 13, 24, .94);
	}
	.site-nav {
		display: none;
		position: fixed;
		top: calc(84px + var(--wp-admin--admin-bar--height, 0px)); right: 0; bottom: 0; left: 0;
		background: rgba(1, 5, 19, .96);
		backdrop-filter: blur(14px);
		padding: 1.5rem var(--gutter);
		border-top: 1px solid var(--border);
		overflow-y: auto;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul.menu { flex-direction: column; gap: .25rem; }
	.site-nav .menu a { display: block; font-size: 1.15rem; padding: .85rem 1rem; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0; scroll-margin-top: 80px; }
.section--alt {
	background: linear-gradient(180deg, rgba(1, 7, 29, 0) 0%, rgba(2, 8, 29, .9) 15%, rgba(2, 8, 29, .9) 85%, rgba(1, 7, 29, 0) 100%);
}
.section__head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section__head .eyebrow { margin-bottom: 1rem; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.035em; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin-top: 1.1rem; max-width: 56ch; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
	overflow: hidden;
}
.hero__glow {
	position: absolute;
	top: -30%; left: 0; right: 0;
	margin-inline: auto;
	width: 100%; max-width: 1400px; height: 80%;
	background: radial-gradient(50% 60% at 50% 30%, rgba(0, 115, 255, .28) 0%, rgba(0, 115, 255, 0) 70%);
	pointer-events: none;
}
.hero__inner {
	position: relative;
	display: grid;
	gap: 3rem;
	align-items: center;
}
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.hero__title {
	font-size: clamp(2.4rem, 5.2vw, 4rem);
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 1.02;
}
.hero__subtitle { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); margin-top: 1.25rem; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
/* Hero can giua, full-width, khong anh; nen sao ve bang canvas (assets/js/main.js). */
.hero--center { min-height: min(78vh, 760px); display: flex; align-items: center; padding-block: clamp(4rem, 10vw, 7rem); }
.hero--center .hero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; width: 100%; }
.hero--center .hero__copy { width: 100%; max-width: 880px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Xuong dong theo dung cho PO nhap (textarea -> <br>), khong de trinh duyet tu can bang. */
.hero--center .hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); text-wrap: initial; margin-inline: auto; }
.hero--center .hero__subtitle { margin-inline: auto; }
.hero--center .hero__actions { justify-content: center; }
/* Tablet */
@media (max-width: 1023px) {
	.hero--center .hero__title { font-size: clamp(2.3rem, 5.6vw, 3.6rem); }
}
/* Mobile: title nho hon, 2 nut xep doc full width, bo min-height de khong thua khoang trong. */
@media (max-width: 640px) {
	.hero--center { min-height: 0; padding-block: 3rem 3.5rem; }
	.hero--center .hero__title { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
	.hero--center .hero__title br { display: none; } /* man nho: de chu tu xuong dong */
	.hero--center .hero__subtitle { font-size: 1rem; margin-top: 1rem; }
	.hero--center .hero__actions { flex-direction: column; width: 100%; max-width: 360px; margin-top: 1.75rem; }
	.hero--center .hero__actions .btn { width: 100%; }
}
.hero--center .hero__glow { top: auto; bottom: -50%; height: 90%; background: radial-gradient(50% 60% at 50% 100%, rgba(0, 115, 255, .30) 0%, rgba(0, 115, 255, 0) 70%); }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero--center::after {
	/* Mo dan xuong duoi de sao khong cat ngang o mep section. */
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
	background: linear-gradient(180deg, rgba(1, 5, 19, 0), var(--bg));
	pointer-events: none;
}

/* ---------- Panel (Contact) ---------- */
.panel {
	display: grid;
	gap: 2.5rem;
	padding: clamp(1.75rem, 4vw, 3.5rem);
	border-radius: var(--r-lg);
	border: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(2, 8, 29, .9) 0%, rgba(1, 5, 19, .9) 100%);
	box-shadow: var(--shadow-inset);
	position: relative;
	overflow: hidden;
}
.panel::before {
	content: "";
	position: absolute; inset: -40% -20% auto auto;
	width: 60%; height: 120%;
	background: radial-gradient(closest-side, rgba(0, 115, 255, .22), transparent);
	pointer-events: none;
}
@media (min-width: 900px) { .panel { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.panel__copy, .panel__stat { position: relative; }
.panel__stat {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 2rem;
	border-radius: var(--r-md);
	border: 1px solid var(--border-strong);
	background: var(--card);
}

.contact__btn { margin-top: 1.75rem; }
.contact__info { align-items: stretch; text-align: left; }
.contact__list { display: grid; gap: 1.1rem; margin: 0; }
.contact__list > div { display: grid; gap: .2rem; }
.contact__list dt {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent-2);
}
.contact__list dd { margin: 0; color: var(--fg-soft); font-size: .95rem; line-height: 1.55; }
.contact__list dd a { color: var(--fg); }
.contact__list dd a:hover { color: var(--accent-2); }
.contact__list dd strong { color: var(--fg); font-weight: 600; }

/* ---------- Products ---------- */
.section__lead--center { margin-inline: auto; }
/* Marquee san pham: full-bleed, 2 group giong nhau chay ngang lien mach, hover thi dung.
   Toc do theo so card (--marquee-count) de nhieu card khong chay quá nhanh. */
.marquee {
	position: relative;
	overflow: hidden;
	max-width: 1900px;
	margin-inline: auto;
	padding-block: .5rem 1.5rem;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
	display: flex;
	width: max-content;
	gap: 1.25rem;
	animation: marquee calc(var(--marquee-count, 6) * 6s) linear infinite;
	will-change: transform;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
/* JS dieu khien (keo chuot / vuot): tat CSS animation, con tro grab. */
.marquee.is-js .marquee__track { animation: none; }
.marquee.is-js { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee.is-dragging { cursor: grabbing; }
.marquee.is-dragging .card--product { pointer-events: none; }
.marquee.is-js img { -webkit-user-drag: none; }
.marquee__group { display: flex; gap: 1.25rem; }
.marquee-rows { display: grid; gap: .5rem; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee .card--product { width: clamp(220px, 19vw, 260px); flex: 0 0 auto; }
@keyframes marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(-50% - .625rem)); } /* nua track + nua gap */
}
/* Reduced motion / khong JS: khong chay, cho cuon ngang tay, an ban copy. */
@media (prefers-reduced-motion: reduce) {
	.marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.marquee__track { animation: none; width: auto; }
	.marquee__group[aria-hidden="true"] { display: none; }
}
.card--product { gap: .9rem; }
.card--product .card__media { margin-bottom: 0; aspect-ratio: 1 / 1; }
.product__head { display: flex; align-items: center; gap: .9rem; }
.product__head .card__title { font-size: 1.1rem; line-height: 1.2; }
.product__head .card__kicker { display: block; margin-top: .25rem; }
.product__link { color: var(--fg); }
.product__link:hover { color: var(--accent-2); }
.product__actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.product__actions .btn { min-width: 0; padding: .55rem .6rem; font-size: .82rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible { opacity: 1; transform: none; }
.grid .reveal:nth-child(2) { transition-delay: .08s; }
.grid .reveal:nth-child(3) { transition-delay: .16s; }
.grid .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Footer ---------- */
.site-footer {
	margin-top: 2rem;
	padding: clamp(3rem, 6vw, 5rem) 0 2rem;
	border-top: 1px solid var(--border);
	background: var(--surface);
	color: var(--muted);
	font-size: .9rem;
}
.site-footer__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: auto 1fr; gap: 3rem; } }
.site-footer__brand .brand__logo, .site-footer__brand .custom-logo { height: 40px; width: auto; }
.site-footer__info { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 700px) { .site-footer__info { grid-template-columns: 1.4fr 1fr; } }
.site-footer__info-col p + p { margin-top: .5rem; }
.site-footer__info a { color: var(--muted); }
.site-footer__info a:hover { color: var(--fg); }
.site-footer__company { color: var(--fg); font-weight: 600; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem;
	margin-top: 2.5rem; padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	font-size: .85rem;
}
.site-footer__legal { display: flex; flex-wrap: wrap; list-style: none; }
.site-footer__legal li + li::before { content: "|"; margin: 0 .75rem; color: var(--border); }
.site-footer__legal a { color: var(--muted); }
.site-footer__legal a:hover { color: var(--fg); }

/* ---------- Inner pages (blog / page / 404) ---------- */
.page-content { padding-block: clamp(2.5rem, 6vw, 4.5rem); max-width: 800px; }
.page-content--center { text-align: center; margin-inline: auto; }
.page-content--wide { max-width: var(--container); }
.page-content--wide .page-title { margin-bottom: 1.5rem; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .75rem; }
.archive-description { color: var(--muted); margin-bottom: 2rem; }

.entry { color: var(--fg-soft); font-size: 1.05rem; }
.entry > * + * { margin-top: 1.25rem; }
.entry h2, .entry h3 { margin-top: 2.5rem; }
.entry a { text-decoration: underline; text-underline-offset: 3px; }
.entry img { border-radius: var(--r-md); }
.entry blockquote { border-left: 3px solid var(--accent); padding-left: 1.25rem; color: var(--muted); margin-inline: 0; }
.entry pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1rem; overflow: auto; }
.entry code { font-size: .9em; }

.post-list { display: grid; gap: 1.5rem; padding-block: 1rem 3rem; }
.post-card {
	display: flex; flex-direction: column;
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--card);
	box-shadow: var(--shadow-inset);
	transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.post-card__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.post-card__title { font-size: 1.2rem; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--accent-2); }
.post-card__excerpt { color: var(--muted); font-size: .95rem; }

.post__meta { color: var(--muted); font-size: .85rem; }
.post__thumb { margin: 2rem 0; }
.post__thumb img { border-radius: var(--r-lg); }
.post__footer { margin-top: 2.5rem; }

.link-more { font-size: .9rem; font-weight: 600; color: var(--accent-2); }
.link-more::after { content: " →"; }
.link-more:hover { color: var(--fg); }

.pagination { margin: 1rem 0 3rem; }
.pagination .page-numbers {
	display: inline-block;
	padding: .45rem .85rem;
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	margin-right: .25rem;
	color: var(--fg-soft);
	background: var(--card);
}
.pagination .current { background: var(--accent); color: #fff; border-color: transparent; }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.tags a { display: inline-block; padding: .25rem .75rem; border-radius: var(--r-pill); border: 1px solid var(--border); font-size: .8rem; }

.search-form { display: flex; gap: .5rem; margin-top: 1.5rem; justify-content: center; }
.search-form input[type="search"] {
	flex: 1; max-width: 360px;
	padding: .7rem 1rem;
	border-radius: var(--r-pill);
	border: 1px solid var(--border-strong);
	background: var(--card);
	color: var(--fg);
	font: inherit;
}
.search-form input[type="submit"], .search-form button {
	padding: .7rem 1.25rem;
	border-radius: var(--r-pill);
	border: 0;
	background: linear-gradient(180deg, var(--accent-2), var(--accent));
	color: #fff;
	font: inherit; font-weight: 500;
	cursor: pointer;
}
.page-links a { color: var(--accent-2); }

/* WP core */
.alignwide { max-width: var(--container); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { border-radius: var(--r-md); }
