/*
Theme Name: Chú Giang
Theme URI: https://chugiang.me
Author: Chú Giang
Description: Giao diện biên tập chân dung cho chugiang.me. No page builder, no build step, semantic HTML5, mobile-first, minimal JS.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nibanquat
*/

/* ==========================================================================
   0. Design tokens
   Editorial grid, hairline rules, square corners, name set at cover scale.
   ========================================================================== */
:root {
	--paper: #fff6f8;
	--paper-alt: #fce4eb;
	--card-bg: #fff6f8;
	--ink: #2b0f1a;
	--ink-soft: #5c3a47;
	--ink-faint: #80596a;
	--line: #ebc2cf;
	--accent: #d6195c;
	--accent-strong: #b50f4c;
	--accent-tint: #fbd9e4;
	--on-accent: #fff6f8;
	--pink: #ff4d8d;
	--focus: #d6195c;
	--foot-bg: #fce4eb;
	--foot-fg: #2b0f1a;

	--container: 1200px;
	--gutter: 24px;
	--section-gap: 72px;

	--font-display: "Bricolage Grotesque", "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
	:root {
		--paper: #1a0a11;
		--paper-alt: #26111b;
		--card-bg: #1a0a11;
		--ink: #ffedf2;
		--ink-soft: #e3bfcc;
		--ink-faint: #c497a8;
		--line: #4a2434;
		--accent: #ff6b9d;
		--accent-strong: #ff8fb5;
		--accent-tint: #3a1626;
		--on-accent: #2b0f1a;
		--pink: #ff8fb5;
		--focus: #ff8fb5;
		--foot-bg: #26111b;
		--foot-fg: #ffedf2;
		color-scheme: dark;
	}
}

/* ==========================================================================
   1. Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.2em; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-strong); }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.1;
	margin: 0 0 0.5em;
	font-weight: 800;
	font-stretch: 85%;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
p { margin: 0 0 1em; }
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--ink); color: var(--paper); padding: 10px 16px;
}
.skip-link:focus { left: 0; }
.mono, .section-kicker, .hero__eyebrow, .footer-heading, .article-card__cat, .single-article__cat {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* ==========================================================================
   2. Layout helpers
   ========================================================================== */
.wrap {
	width: 100%;
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 780px) { .wrap { padding-left: var(--gutter); padding-right: var(--gutter); } }
.section { padding: var(--section-gap) 0 0; }
.section--alt { background: transparent; }
.section-head {
	display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
	border-top: 2px solid var(--accent); padding-top: 12px; margin-bottom: 28px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0; }
.section-kicker { color: var(--ink-faint); margin: 0 0 0 auto; order: 3; }
.section-link {
	font-size: 0.88rem; font-weight: 600; white-space: nowrap; text-decoration: underline;
	text-underline-offset: 4px; text-decoration-thickness: 1px; order: 2;
}
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   3. Header + navigation
   ========================================================================== */
.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 50;
}
body::before {
	content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
	background: var(--paper); z-index: 60;
}
.site-header__bar { display: flex; align-items: center; gap: 24px; height: 56px; }
.site-branding { min-width: 0; }
.site-branding__name { margin: 0; line-height: 1; }
.site-branding__name a {
	font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.35rem;
	letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; color: var(--ink);
}
.site-branding__name a:hover { color: var(--ink); }
.site-branding__name i { font-style: normal; font-size: 0; color: var(--pink); padding: 0 0.12em; }
.site-branding__name i::before { content: "\2665"; font-size: 0.8rem; vertical-align: 0.2em; }

.primary-nav { display: none; margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
	display: block; padding: 18px 0 16px; font-weight: 500; font-size: 0.9rem; color: var(--ink);
	border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--accent-strong); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a { border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search-toggle,
.menu-toggle {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 36px; min-width: 36px; padding: 0 10px; border: 1px solid var(--ink); border-radius: 0;
	background: transparent; cursor: pointer; color: var(--ink);
	font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.header-search-toggle:hover, .menu-toggle:hover { background: var(--ink); color: var(--paper); }
.menu-toggle__icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { display: inline; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }

.header-search { display: none; border-bottom: 1px solid var(--line); background: var(--paper-alt); }
.header-search.is-open { display: block; }
.header-search form { display: flex; gap: 8px; padding: 12px max(16px, env(safe-area-inset-left, 0px)); }
.header-search input[type="search"] {
	flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--ink); border-radius: 0;
	font-size: 0.95rem; background: var(--paper); color: var(--ink);
}
.header-search button {
	padding: 9px 18px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper);
	font-weight: 600; cursor: pointer;
}
.header-search button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.mobile-nav {
	display: none; position: fixed; left: 0; right: 0; bottom: 0;
	top: calc(57px + env(safe-area-inset-top, 0px));
	background: var(--paper); overflow-y: auto; z-index: 49;
	padding: 8px max(16px, env(safe-area-inset-left, 0px)) 32px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
	display: flex; align-items: center; justify-content: space-between; min-height: 56px;
	font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: 1.9rem;
	border-bottom: 1px solid var(--line);
}
.mobile-nav a::after { content: "\2192"; font-family: var(--font-mono); font-size: 1rem; color: var(--ink-faint); }
.mobile-nav .current-menu-item > a, .mobile-nav .current_page_item > a { color: var(--accent-strong); }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
	.primary-nav { display: block; }
	.header-actions { margin-left: 0; }
	.menu-toggle { display: none; }
	.mobile-nav { display: none !important; }
}

/* ==========================================================================
   4. Breadcrumbs
   ========================================================================== */
.breadcrumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-faint); padding: 18px 0 0; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.breadcrumbs .sep { margin: 0 6px; color: var(--ink-faint); }
.breadcrumbs .current { color: var(--ink); }

/* ==========================================================================
   5. Hero: editorial cover
   ========================================================================== */
.hero { padding: 28px 0 0; }
.hero__grid {
	display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 0;
}
.hero__eyebrow { grid-column: 1 / 8; color: var(--ink-faint); margin: 0 0 4px; }
.hero__eyebrow::before { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.hero__portrait {
	grid-column: 8 / 13; grid-row: 1 / 5; aspect-ratio: 4 / 5; position: relative;
	border: 1px solid var(--accent); overflow: hidden;
	background: var(--paper-alt);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero__portrait--placeholder {
	position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px;
	font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__name {
	grid-column: 1 / 13; grid-row: 2; position: relative; z-index: 2; pointer-events: none;
	margin: 20px 0 0; font-size: clamp(3.6rem, 14.5vw, 12.5rem); font-weight: 800; font-stretch: 75%;
	line-height: 0.84; letter-spacing: -0.025em; text-transform: uppercase;
}
.hero__name span { display: block; }
.hero__name .hero__name-last { color: var(--accent); }
.hero__tagline { grid-column: 1 / 7; grid-row: 3; align-self: end; font-size: 1.15rem; line-height: 1.55; max-width: 44ch; padding-top: 24px; margin: 0; }
.hero__social { grid-column: 1 / 7; grid-row: 4; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding-top: 20px; }
.hero__social a:not(.btn) {
	font-size: 0.9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.hero__social a:not(.btn)::after { content: " \2197"; }

.hero-strip {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 40px;
	border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line);
}
.hero-strip__item { padding: 12px 16px 12px 0; min-width: 0; }
.hero-strip__item + .hero-strip__item { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-strip__label { display: block; color: var(--ink-faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-strip__value { font-family: var(--font-display); font-weight: 700; font-stretch: 85%; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }

@media (max-width: 820px) {
	.hero { padding-top: 20px; }
	.hero__grid { display: flex; flex-direction: column; }
	.hero__eyebrow { order: 0; }
	.hero__name { order: 1; }
	.hero__portrait { order: 2; }
	.hero__tagline { order: 3; }
	.hero__social { order: 4; }
	.hero__name { margin-top: 12px; font-size: clamp(3.4rem, 22vw, 7rem); pointer-events: auto; }
	.hero__portrait { margin-top: 20px; max-width: 100%; }
	.hero__tagline { padding-top: 20px; font-size: 1.05rem; }
	.hero__social { padding-top: 16px; }
	.hero-strip { grid-template-columns: 1fr 1fr; margin-top: 28px; }
	.hero-strip__item:nth-child(odd) { padding-left: 0; border-left: 0; }
	.hero-strip__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 0; font-weight: 600; font-size: 0.85rem;
	letter-spacing: 0.02em; border: 1px solid var(--ink); line-height: 1.4;
}
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ==========================================================================
   7. Profile + essay
   ========================================================================== */
.profile-layout { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; }
.profile-layout > * { min-width: 0; }
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.fact-row:last-child { border-bottom: 1px solid var(--line); }
.fact-row__label { font-family: var(--font-mono); font-size: 12px; line-height: 1.9; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint); }
.fact-row__value { font-weight: 500; overflow-wrap: anywhere; }
.fact-row__value a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fact-row__icon { display: none; }
.topic-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.topic-chip {
	font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
	border: 1px solid var(--line); padding: 5px 10px; color: var(--ink-soft);
}
.profile-card__portrait { aspect-ratio: 4 / 5; border: 1px solid var(--ink); overflow: hidden; margin-bottom: 20px; background: var(--paper-alt); }
.profile-card__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.essay { max-width: 64ch; }
.essay__block + .essay__block { margin-top: 40px; }
.essay h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.essay__kicker { display: block; color: var(--accent-strong); margin-bottom: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.essay p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; }
.essay__block--lead p { color: var(--ink); font-size: 1.25rem; line-height: 1.55; font-weight: 500; border-left: 3px solid var(--accent); padding-left: 18px; }
.essay__more { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.essay__more a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.prose-block { max-width: 64ch; }
.prose-block p { color: var(--ink-soft); }
.editable-note, .quick-facts__empty {
	border: 1px dashed var(--line); padding: 16px 18px; color: var(--ink-faint); font-size: 0.92rem;
}

@media (max-width: 820px) {
	.profile-layout { grid-template-columns: 1fr; gap: 40px; }
	.fact-row { grid-template-columns: 1fr; gap: 0; }
	.section { padding-top: 56px; }
}

/* ==========================================================================
   8. Official channels
   ========================================================================== */
.channel-list { border-bottom: 1px solid var(--line); }
.channel {
	display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
	padding: 18px 0; border-top: 1px solid var(--line);
}
.channel__platform { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.channel__handle { font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.1; overflow-wrap: anywhere; }
.channel__handle a:hover { color: var(--accent-strong); }
.channel__note { display: block; font-family: var(--font-body); font-weight: 400; font-stretch: 100%; font-size: 0.92rem; color: var(--ink-soft); margin-top: 6px; }
.channel__handle { display: flex; flex-direction: column; }
.channel__note--pre { order: -1; margin: 0 0 6px; }
.channel__go { transition: transform 0.2s ease; font-family: var(--font-mono); }
.channel:hover .channel__go { transform: translateX(4px); color: var(--accent-strong); }
@media (max-width: 640px) {
	.channel { grid-template-columns: minmax(0, 1fr) auto; }
	.channel__platform { grid-column: 1 / 3; }
}

/* ==========================================================================
   9. Article cards + grids
   ========================================================================== */
.card-grid { display: grid; gap: 28px var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid--2, .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.article-card { display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding-top: 12px; }
.article-card__thumb { aspect-ratio: 16 / 10; background: var(--paper-alt); overflow: hidden; order: 2; margin-top: 12px; }
.article-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.article-card:hover .article-card__thumb img { transform: scale(1.03); }
.article-card__body { display: flex; flex-direction: column; gap: 6px; order: 1; }
.article-card__cat { color: var(--accent-strong); }
.article-card__title { font-size: 1.3rem; margin: 0; }
.article-card__title a:hover { color: var(--accent-strong); }
.article-card__excerpt { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.article-card__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-faint); }

.featured-card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-alt); border: 1px solid var(--ink); }
.featured-card img { width: 100%; height: 100%; object-fit: cover; }
.featured-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.8) 100%); display: flex; align-items: flex-end; padding: 18px; }
.featured-card__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #ffd3e1; }
.featured-card__title { color: #fff; font-size: 1.3rem; margin: 4px 0 0; }
.featured-card__title a { color: #fff; }
.featured-card__title a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   10. FAQ
   ========================================================================== */
.faq-list { max-width: 840px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 0; font-family: var(--font-display); font-weight: 700; font-stretch: 90%; font-size: 1.2rem; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+"; flex-shrink: 0; font-family: var(--font-mono); font-weight: 400; font-size: 1.6rem; line-height: 1;
	color: var(--accent-strong); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-strong); }
.faq-item p { margin: 0; padding: 0 0 20px; max-width: 62ch; color: var(--ink-soft); animation: faq-in 0.2s ease; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   11. About box
   ========================================================================== */
.about-box { display: flex; gap: 20px; align-items: flex-start; border-top: 1px solid var(--ink); padding-top: 16px; max-width: 840px; }
.about-box__avatar { width: 56px; height: 56px; object-fit: cover; flex-shrink: 0; background: var(--paper-alt); }
.about-box__title { margin: 0 0 8px; font-size: 1.4rem; }
.about-box__text { color: var(--ink-soft); font-size: 0.95rem; margin: 0; max-width: 62ch; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { background: var(--foot-bg); color: var(--foot-fg); margin-top: var(--section-gap); border-top: 2px solid var(--accent); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand__name {
	font-family: var(--font-display); font-weight: 800; font-stretch: 75%; text-transform: uppercase;
	font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 0.88; letter-spacing: -0.01em; margin: 0 0 16px; color: var(--accent);
}
.footer-brand__desc { font-size: 0.92rem; max-width: 42ch; opacity: 0.8; }
.footer-heading { opacity: 0.65; margin: 6px 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { font-size: 0.92rem; opacity: 0.9; }
.footer-links a:hover { color: var(--accent-strong); opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--foot-fg); }
.footer-bottom {
	border-top: 1px solid color-mix(in srgb, var(--foot-fg) 22%, transparent); margin-top: 36px; padding-top: 16px;
	font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; line-height: 1.6; opacity: 0.75;
	display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ==========================================================================
   13. Single article
   ========================================================================== */
.single-article { padding: 32px 0 0; }
.single-article__header { max-width: 72ch; margin: 0 auto 28px; }
.single-article__cat { color: var(--accent-strong); }
.single-article__title { font-size: clamp(2rem, 5vw, 3.4rem); margin: 10px 0 12px; }
.single-article__meta { font-family: var(--font-mono); color: var(--ink-faint); font-size: 12px; letter-spacing: 0.04em; }
.single-article__thumb { max-width: 960px; margin: 0 auto 32px; overflow: hidden; border: 1px solid var(--ink); }
.single-article__body { max-width: 72ch; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; }
.single-article__body h2 { font-size: 1.8rem; margin-top: 1.8em; }
.single-article__body h3 { font-size: 1.35rem; margin-top: 1.5em; }
.single-article__body a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent-strong); }
.single-article__body blockquote { margin: 1.6em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-soft); }
.single-article__tags { max-width: 72ch; margin: 32px auto 0; display: flex; gap: 8px; flex-wrap: wrap; }
.single-article__tags a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line); color: var(--ink-soft); }
.single-article__tags a:hover { border-color: var(--ink); color: var(--ink); }
.pillar-link-box { max-width: 72ch; margin: 32px auto 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.pillar-link-box a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   14. Archive / search / 404
   ========================================================================== */
.archive-header { padding-top: 40px; }
.archive-header__title { font-size: clamp(2.6rem, 8vw, 6rem); font-stretch: 75%; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.02em; margin-bottom: 14px; }
.archive-header__desc { color: var(--ink-soft); max-width: 62ch; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 40px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
	padding: 0 10px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.85rem;
}
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a:hover { border-color: var(--ink); }
.no-results { padding: 60px 0; color: var(--ink-soft); }
.error-404 { padding: 72px 0 0; }
.error-404__code { font-family: var(--font-display); font-stretch: 75%; font-size: clamp(5rem, 22vw, 14rem); font-weight: 800; color: var(--accent); margin: 0; line-height: 0.82; }
.error-404__title { font-size: 1.8rem; margin: 16px 0 8px; }
.error-404__actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   15. Image gallery (natural ratios, no cropping) + lightbox
   ========================================================================== */
.gallery-grid { column-count: 2; column-gap: 12px; }
@media (min-width: 700px) { .gallery-grid { column-count: 3; column-gap: 16px; } }
@media (min-width: 1100px) { .gallery-grid { column-count: 4; } }
.gallery-grid__item {
	position: relative; display: block; break-inside: avoid; margin: 0 0 12px; overflow: hidden;
	background: var(--paper-alt); border: 1px solid var(--line); transition: border-color 0.2s ease;
}
@media (min-width: 700px) { .gallery-grid__item { margin-bottom: 16px; } }
.gallery-grid__item:hover, .gallery-grid__item:focus-visible { border-color: var(--ink); }
.gallery-grid__item img { width: 100%; height: auto; transition: transform 0.4s ease; }
.gallery-grid__item:hover img { transform: scale(1.025); }
.gallery-grid__caption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 0.8rem; color: var(--ink);
	background: var(--paper); border-top: 1px solid var(--line); opacity: 0; transition: opacity 0.2s ease;
}
.gallery-grid__item:hover .gallery-grid__caption, .gallery-grid__item:focus-visible .gallery-grid__caption { opacity: 1; }
@media (hover: none) { .gallery-grid__caption { opacity: 1; } }

.empty-state {
	border: 1px dashed var(--line); padding: 56px 24px; text-align: center; color: var(--ink-soft);
	background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--line) 40%, transparent) 12px 13px);
}
.empty-state__title { font-size: 1.5rem; margin: 0 0 6px; color: var(--ink); }
.empty-state p { margin: 0; }

.nibanquat-lightbox {
	position: fixed; inset: 0; background: rgba(26, 8, 16, 0.96); z-index: 1000;
	display: flex; align-items: center; justify-content: center; padding: 56px 72px;
}
.nibanquat-lightbox[hidden] { display: none; }
.nibanquat-lightbox__figure { margin: 0; text-align: center; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.nibanquat-lightbox__img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; }
.nibanquat-lightbox__caption { color: #ffe3ec; font-size: 0.9rem; margin-top: 12px; max-width: 60ch; }
.nibanquat-lightbox__counter { position: absolute; top: 20px; left: 20px; color: #e9bccb; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.nibanquat-lightbox__close, .nibanquat-lightbox__prev, .nibanquat-lightbox__next {
	position: absolute; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 0;
	width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.nibanquat-lightbox__close:hover, .nibanquat-lightbox__prev:hover, .nibanquat-lightbox__next:hover { background: #fff; color: #2b0f1a; }
.nibanquat-lightbox :focus-visible { outline-color: #fff; }
.nibanquat-lightbox__close { top: 12px; right: 12px; }
.nibanquat-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.nibanquat-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
body.nibanquat-lightbox-open { overflow: hidden; }
@media (max-width: 640px) {
	.nibanquat-lightbox { padding: 64px 12px 56px; }
	.nibanquat-lightbox__prev, .nibanquat-lightbox__next { top: auto; bottom: 8px; transform: none; }
	.nibanquat-lightbox__prev { left: 12px; }
	.nibanquat-lightbox__next { right: 12px; }
}

/* ==========================================================================
   16. Video library (TikTok poster + link to the original video)
   ========================================================================== */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
@media (min-width: 760px) { .video-grid { grid-template-columns: repeat(3, 1fr); gap: 32px var(--gutter); } }
.video-card { min-width: 0; }
.video-card__embed { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 1px solid var(--line); background: var(--paper-alt); overflow: hidden; }
.video-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.video-card__thumb:hover, .video-card__thumb:focus-visible { border-color: var(--ink); }
.video-card__play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); display: grid; place-items: center; transition: background 0.2s ease, border-color 0.2s ease; }
.video-card__play::after { content: ""; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.video-card__thumb:hover .video-card__play, .video-card__thumb:focus-visible .video-card__play { background: var(--accent); border-color: var(--accent); }
.video-card__thumb:hover .video-card__play::after, .video-card__thumb:focus-visible .video-card__play::after { border-left-color: var(--on-accent); }
.video-card__unavailable { display: grid; place-items: center; padding: 16px; text-align: center; font-size: 0.85rem; color: var(--ink-soft); }
.video-card__unavailable p { margin: 0; }
.video-card__open { margin: 8px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.video-card__open a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.video-card__title { font-family: var(--font-body); font-weight: 600; font-stretch: 100%; font-size: 0.95rem; line-height: 1.4; letter-spacing: 0; margin: 10px 0 0; }
.video-card__caption { color: var(--ink-soft); font-size: 0.85rem; margin: 4px 0 0; }

/* ==========================================================================
   17. Gutenberg base blocks
   ========================================================================== */
.wp-block-image { margin: 1.4em 0; }
.wp-block-quote { border-left: 3px solid var(--accent); padding-left: 18px; color: var(--ink-soft); }
.wp-block-gallery { margin: 1.4em 0; }
.alignwide { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   18. Profile article overrides
   The long profile page ships its own inline <style> inside the page content.
   These rules sit one step higher in specificity so the article follows the
   same square, hairline language without touching the saved content.
   ========================================================================== */
body .nibanquat-profile-page .lp-kicker {
	font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; font-weight: 500;
	background: transparent; color: var(--accent-strong); border: 1px solid var(--accent); border-radius: 0; padding: 4px 10px;
}
body .nibanquat-profile-page .lp-answer { font-size: 1.25rem; line-height: 1.55; font-weight: 500; }
body .nibanquat-profile-page .lp-toc { background: transparent; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
body .nibanquat-profile-page .lp-toc summary { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
body .nibanquat-profile-page .lp-facts { gap: 0 24px; border-top: 1px solid var(--ink); }
body .nibanquat-profile-page .lp-fact { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
body .nibanquat-profile-page .lp-fact dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }
body .nibanquat-profile-page h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); border-top: 1px solid var(--line); padding-top: 14px; }
body .nibanquat-profile-page .lp-note { background: transparent; border-radius: 0; border-left: 3px solid var(--accent); }
body .nibanquat-profile-page .lp-imgbreak img { border-radius: 0; }
body .nibanquat-profile-page .lp-links a { border-radius: 0; background: transparent; border-color: var(--ink); }
body .nibanquat-profile-page .lp-links a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.single-article__body a, .single-article__body .lp-toc a { text-decoration-thickness: 1px; }

/* ---- Collection pages (/hinh-anh/, /video/) ---- */
.collection-count { color: var(--ink-faint); margin: 0 0 18px; }
.video-group + .video-group { margin-top: 48px; }
.video-group__title { font-size: 1.25rem; margin: 0 0 16px; padding-top: 10px; border-top: 2px solid var(--accent); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.video-group__title .mono { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
.video-card__date { margin: 6px 0 0; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; }

/* ---- Feature pages (/phong-cach/, /lifestyle/) and news empty state ---- */
.feature { max-width: 720px; }
.feature > p { color: var(--ink-soft); margin: 0 0 1.1em; }
.feature > p:first-child { font-size: 1.15rem; color: var(--ink); line-height: 1.6; }
.feature h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.2em 0 0.6em; padding-top: 12px; border-top: 2px solid var(--accent); }
.feature a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.feature .fig-row { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.4em 0; }
.feature .fig-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature figure { margin: 0; min-width: 0; }
.feature figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.feature figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-faint); margin-top: 6px; }
.feature .fig-single { max-width: 340px; margin: 1.4em 0; }
@media (max-width: 520px) { .feature .fig-row { gap: 8px; } .feature figcaption { font-size: 10px; } }
.feature .rhythm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 1.4em 0; border-top: 1px solid var(--line); }
.feature .rhythm > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.feature .rhythm dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.feature .rhythm dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.feature .dated-list { list-style: none; padding: 0; margin: 1em 0; border-top: 1px solid var(--line); }
.feature .dated-list li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feature .dated-list .mono { color: var(--ink-faint); font-size: 12px; flex: none; }
.feature .principle { margin: 1.2em 0; padding: 0 0 0 16px; border-left: 2px solid var(--accent); color: var(--ink-soft); }
.news-empty { max-width: 560px; border-top: 2px solid var(--accent); padding-top: 14px; color: var(--ink-soft); }
.news-empty__title { font-size: 1.5rem; color: var(--ink); margin: 0 0 6px; font-family: var(--font-display, inherit); }
.news-empty a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.feature .fig-row figure img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%; }

/* ==========================================================================
   Homepage polish (spacing, alignment, rules; no palette/font changes)
   ========================================================================== */
/* Hero */
.hero__eyebrow { color: var(--ink-soft); }
.hero__tagline { font-size: 1.2rem; max-width: 40ch; color: var(--ink); padding-top: 22px; }
.hero__social { padding-top: 22px; gap: 24px; }
.hero-strip { margin-top: 36px; }
.hero-strip__label { color: var(--ink-soft); }
.hero-strip__value { font-size: 1.1rem; }
.btn { min-height: 44px; display: inline-flex; align-items: center; }

/* Profile */
.fact-row__label { color: var(--ink-soft); }
.essay { max-width: 62ch; }
.essay__block--lead p { font-size: 1.2rem; }
.essay p { color: var(--ink); opacity: 0.88; }

/* Gallery: even 3:4 tiles, faces kept in frame */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-count: auto; gap: 12px; }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-count: auto; gap: 16px; } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-count: auto; } }
.gallery-grid__item { margin: 0; aspect-ratio: 3 / 4; }
.gallery-grid__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.gallery-grid__item:hover img { transform: none; }

/* Video: poster fills the 9:16 frame */
.video-card__thumb img { object-fit: cover; object-position: 50% 35%; }

/* Channels */
.channel { align-items: center; padding: 20px 0; }
@media (min-width: 641px) { .channel { grid-template-columns: 140px minmax(0, 1fr) 24px; } }
@media (max-width: 640px) { .channel { grid-template-columns: minmax(0, 1fr) auto; } .channel__platform { grid-column: 1 / 3; } }
.channel__handle a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.channel__handle a:hover, .channel__handle a:focus-visible { color: var(--accent-strong); }
.channel__platform { color: var(--ink-soft); }
.channel__note { color: var(--ink-soft); }
.channel__go { justify-self: end; color: var(--accent-strong); }

/* FAQ */
.faq-item summary { padding: 16px 0; font-size: 1.12rem; min-height: 56px; }
.faq-item summary::after { width: 28px; height: 28px; display: grid; place-items: center; font-size: 1.5rem; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-item p { padding-bottom: 18px; color: var(--ink); opacity: 0.85; }

/* About box: same 2px rose rule as the section heads */
.about-box { border-top: 2px solid var(--accent); padding-top: 14px; }
.about-box__text { color: var(--ink); opacity: 0.85; }

/* Footer */
.site-footer .wrap { padding-top: 40px; padding-bottom: 24px; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; } }
.footer-brand__name { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 12px; }
.footer-brand__desc { font-size: 0.95rem; line-height: 1.6; opacity: 1; color: var(--foot-fg); max-width: 44ch; margin: 0; }
.footer-heading { opacity: 0.8; margin: 4px 0 10px; }
.footer-links { gap: 6px; }
.footer-links a { opacity: 1; display: inline-block; padding: 4px 0; }
.footer-bottom { margin-top: 28px; opacity: 0.9; }
@media (max-width: 779px) { .footer-grid { gap: 24px; } .footer-bottom { margin-top: 20px; } }

/* Homepage article block */
.home-article__body { max-width: 720px; color: var(--ink); line-height: 1.75; font-size: 1.05rem; }
.home-article__body > *:first-child { margin-top: 0; }
.home-article__body p, .home-article__body ul, .home-article__body ol { margin: 0 0 1.1em; }
.home-article__body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.8em 0 0.5em; }
.home-article__body h3 { font-size: 1.25rem; margin: 1.5em 0 0.4em; }
.home-article__body ul, .home-article__body ol { padding-left: 1.4em; }
.home-article__body a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.home-article__body img { max-width: 100%; height: auto; display: block; margin: 1.4em 0; }
