/* ============================================================================
   NewsPress — editorial blog & magazine theme
   ============================================================================ */
:root {
	--np-bg: #f4f4f5;
	--np-surface: #ffffff;
	--np-ink: #121416;
	--np-muted: #5b6167;
	--np-subtle: #8a9096;
	--np-line: #e5e5e8;
	--np-line-strong: #d5d5d9;
	--np-tag: #24262b;
	--np-accent: #e03131;
	--np-accent-ink: #ffffff;
	--np-radius: 4px;
	--np-container: 1200px;
	--np-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--np-space: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--np-bg);
	color: var(--np-ink);
	font-family: var(--np-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--np-ink); text-decoration: none; }
a:hover { color: var(--np-accent); }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 800; line-height: 1.18; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--np-accent); outline-offset: 2px; }

.np-container { width: min(100% - 2.5rem, var(--np-container)); margin-inline: auto; }
.np-skip-link { position: fixed; top: 0; left: 0; padding: 0.6rem 1rem; background: var(--np-ink); color: #fff; transform: translateY(-120%); z-index: 200; }
.np-skip-link:focus { transform: translateY(0); color: #fff; }

/* ---- Header ------------------------------------------------------------ */
.np-header { position: sticky; top: 0; z-index: 100; background: var(--np-surface); border-bottom: 1px solid var(--np-line); }
.np-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.np-brand { display: flex; align-items: baseline; gap: 0.6rem; }
.np-brand__name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--np-ink); }
.np-brand__tag { color: var(--np-subtle); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.np-nav { margin-left: auto; }
.np-nav ul { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.np-nav a { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--np-ink); }
.np-nav a:hover, .np-nav .current-menu-item > a { color: var(--np-accent); }
.np-nav .sub-menu { display: none; }
.np-header__tools { display: flex; align-items: center; gap: 0.75rem; }
.np-icon-btn { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; background: transparent; color: var(--np-ink); cursor: pointer; }
.np-nav-toggle { display: none; }

/* ---- Category tag pill ------------------------------------------------- */
.np-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.np-tag { display: inline-block; padding: 0.25rem 0.55rem; background: var(--np-tag); color: #fff; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.np-tag:hover { background: var(--np-accent); color: #fff; }

/* ---- Featured hero ----------------------------------------------------- */
.np-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; padding-block: 1.5rem; }
.np-hero__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.np-feature { position: relative; display: block; overflow: hidden; border-radius: var(--np-radius); min-height: 16rem; background: var(--np-line-strong); }
.np-feature--lg { min-height: 30rem; }
.np-feature__link { position: absolute; inset: 0; display: block; color: #fff; }
.np-feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.np-feature__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,12,0) 30%, rgba(10,11,12,0.85) 100%); }
.np-feature__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: block; padding: 1.25rem; color: #fff; }
.np-feature__title { display: block; color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.2; letter-spacing: -0.01em; }
.np-feature--lg .np-feature__title { font-size: 1.8rem; max-width: 22ch; }
.np-feature__meta { display: block; color: rgba(255,255,255,0.82); font-size: 0.78rem; margin-top: 0.4rem; }
.np-feature__tags { position: absolute; top: 0.85rem; left: 0.85rem; z-index: 3; }
.np-feature:hover .np-feature__title { text-decoration: underline; text-underline-offset: 0.15em; }

/* ---- Category showcase blocks ----------------------------------------- */
.np-cat-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-block: 1.5rem; border-top: 1px solid var(--np-line); }
.np-cat-block__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.9rem; }
.np-cat-block__title { font-size: 1.15rem; margin: 0; }
.np-cat-block__count { color: var(--np-subtle); font-size: 0.78rem; }
.np-cat-block__list { margin: 0.9rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.np-cat-block__list li { border-top: 1px solid var(--np-line); padding-top: 0.6rem; font-size: 0.9rem; font-weight: 600; }

/* ---- Main layout ------------------------------------------------------- */
.np-main { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; padding-block: var(--np-space); align-items: start; }
.np-main--full { grid-template-columns: minmax(0, 1fr); }

/* ---- Post cards / grid ------------------------------------------------- */
.np-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.75rem; }
.np-card { display: flex; flex-direction: column; }
.np-card__media { position: relative; display: block; overflow: hidden; border-radius: var(--np-radius); aspect-ratio: 3 / 2; background: var(--np-line-strong); margin-bottom: 0.9rem; }
.np-card__media-link { position: absolute; inset: 0; display: block; }
.np-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.np-card__media:hover img { transform: scale(1.04); }
.np-card__tags { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; }
.np-card__title { font-size: 1.2rem; margin: 0 0 0.5rem; }
.np-card__meta { display: flex; align-items: center; gap: 0.5rem; color: var(--np-muted); font-size: 0.8rem; margin-bottom: 0.6rem; }
.np-card__avatar { width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--np-line-strong); display: inline-grid; place-items: center; font-size: 0.6rem; font-weight: 800; color: var(--np-muted); overflow: hidden; }
.np-card__author { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; color: var(--np-ink); }
.np-card__excerpt { color: var(--np-muted); font-size: 0.92rem; margin: 0 0 0.9rem; }
.np-more { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--np-ink); border-bottom: 2px solid var(--np-ink); padding-bottom: 2px; width: fit-content; }
.np-more:hover { color: var(--np-accent); border-color: var(--np-accent); }

/* First card spans wide occasionally */
.np-grid > .np-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.np-grid > .np-card--wide .np-card__media { margin-bottom: 0; aspect-ratio: 4 / 3; }

/* ---- Pagination / show more ------------------------------------------- */
.np-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.np-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.6rem; background: var(--np-surface); border: 1px solid var(--np-line); font-weight: 700; }
.np-pagination .current { background: var(--np-ink); color: #fff; border-color: var(--np-ink); }
.np-showmore { display: block; width: fit-content; margin: 2.5rem auto 0; padding: 0.85rem 2.5rem; background: var(--np-ink); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; border-radius: var(--np-radius); }
.np-showmore:hover { background: var(--np-accent); color: #fff; }

/* ---- Sidebar ----------------------------------------------------------- */
.np-sidebar { display: grid; gap: 2rem; position: sticky; top: 6rem; }
.np-widget { background: var(--np-surface); border: 1px solid var(--np-line); border-radius: var(--np-radius); padding: 1.25rem; }
.np-widget__title, .np-widget .widget-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.9rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--np-ink); }
.np-widget ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.np-widget li { border-bottom: 1px solid var(--np-line); padding-bottom: 0.6rem; font-size: 0.9rem; }

/* ---- Single / article -------------------------------------------------- */
.np-article__header { padding-top: var(--np-space); }
.np-article__title { font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3rem); max-width: 20ch; }
.np-article__meta { display: flex; align-items: center; gap: 0.75rem; color: var(--np-muted); font-size: 0.85rem; margin: 1rem 0; }
.np-article__hero { margin: 1.5rem 0; border-radius: var(--np-radius); overflow: hidden; }
.np-article__body { max-width: 44rem; font-size: 1.08rem; line-height: 1.75; }
.np-article__body p { margin: 0 0 1.35rem; }
.np-article__body h2 { margin-top: 2rem; font-size: 1.6rem; }
.np-article__body h3 { margin-top: 1.5rem; font-size: 1.3rem; }
.np-article__body img { border-radius: var(--np-radius); margin: 1.5rem 0; }
.np-article__body blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--np-accent); font-size: 1.2rem; font-style: italic; color: var(--np-ink); }
.np-article__body a { color: var(--np-accent); text-decoration: underline; text-underline-offset: 0.15em; }

/* ---- Page header (archive/search) ------------------------------------- */
.np-page-header { padding: var(--np-space) 0 0; }
.np-page-header__eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--np-accent); font-weight: 800; }
.np-page-header__title { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem); margin-top: 0.4rem; }

/* ---- Forms ------------------------------------------------------------- */
.np-search-form { display: flex; gap: 0.5rem; }
.np-search-form input[type="search"] { flex: 1; padding: 0.6rem 0.8rem; border: 1px solid var(--np-line-strong); border-radius: var(--np-radius); font: inherit; background: var(--np-surface); }
.np-search-form button { padding: 0.6rem 1rem; background: var(--np-ink); color: #fff; border: 0; border-radius: var(--np-radius); font-weight: 700; cursor: pointer; }

/* ---- Footer ------------------------------------------------------------ */
.np-footer { background: var(--np-surface); border-top: 1px solid var(--np-line); margin-top: var(--np-space); }
.np-footer__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 2.5rem; border-bottom: 1px solid var(--np-line); }
.np-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; color: var(--np-muted); font-size: 0.85rem; }
.np-footer__base nav ul { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; list-style: none; font-weight: 600; }

/* ---- Empty ------------------------------------------------------------- */
.np-empty { padding: var(--np-space) 0; text-align: center; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 62rem) {
	.np-nav { display: none; }
	.np-nav-toggle { display: inline-grid; }
	.np-main { grid-template-columns: 1fr; }
	.np-sidebar { position: static; }
	.np-hero { grid-template-columns: 1fr; }
	.np-cat-blocks { grid-template-columns: 1fr; }
	.np-footer__strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 40rem) {
	.np-grid, .np-grid > .np-card--wide { grid-template-columns: 1fr; }
	.np-footer__strip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- Supporting components -------------------------------------------- */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.np-brand { color: var(--np-ink); }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 48px; width: auto; }

/* Nav menu list produced by wp_nav_menu (menu_class) */
.np-nav__list { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.np-nav__list a { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--np-ink); }
.np-nav__list a:hover, .np-nav__list .current-menu-item > a { color: var(--np-accent); }
.np-nav__list .sub-menu { display: none; }

/* Social links */
.np-social__list { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0; list-style: none; font-size: 0.78rem; font-weight: 700; }

/* Search + mobile panels */
.np-search-panel { border-top: 1px solid var(--np-line); background: var(--np-surface); }
.np-search-panel > .np-container { padding-block: 1rem; }
.np-mobile-nav { border-top: 1px solid var(--np-line); background: var(--np-surface); }
.np-mobile-nav__list { list-style: none; margin: 0; padding: 0.5rem 0 1.25rem; display: grid; gap: 0.25rem; }
.np-mobile-nav__list a { display: block; padding: 0.6rem 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; border-bottom: 1px solid var(--np-line); }
.np-mobile-nav__list .sub-menu { list-style: none; margin: 0; padding: 0 0 0 1rem; }

.np-page-header__desc { color: var(--np-muted); max-width: 60ch; margin-top: 0.75rem; }

/* Post navigation */
.np-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3rem 0; padding-top: 1.5rem; border-top: 1px solid var(--np-line); }
.np-postnav a { font-weight: 700; }
.np-postnav .nav-next { text-align: right; }
.np-postnav__dir { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--np-subtle); margin-bottom: 0.2rem; }

/* Article footer / tags / page links */
.np-article__footer { margin-top: 2rem; }
.np-article__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.85rem; color: var(--np-muted); }
.np-article__tags a { display: inline-block; padding: 0.2rem 0.55rem; border: 1px solid var(--np-line-strong); border-radius: 999px; font-size: 0.78rem; }
.np-page-links { margin: 1.5rem 0; font-weight: 700; display: flex; gap: 0.5rem; }

/* Comments */
.np-comments { max-width: 44rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--np-line); }
.np-comments__title { font-size: 1.4rem; margin-bottom: 1.5rem; }
.np-comments__list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.5rem; }
.np-comments__list ol { list-style: none; }
.np-comments .comment-body { background: var(--np-surface); border: 1px solid var(--np-line); border-radius: var(--np-radius); padding: 1.25rem; }
.np-comments .children { list-style: none; margin: 1.5rem 0 0 1.5rem; padding: 0; display: grid; gap: 1.5rem; }
.np-comments .comment-author { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.np-comments .comment-author .avatar { border-radius: 999px; }
.np-comments .comment-metadata { color: var(--np-subtle); font-size: 0.8rem; margin: 0.25rem 0 0.75rem; }
.np-comments .comment-metadata a { color: var(--np-subtle); }
.np-comments .reply { margin-top: 0.5rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.np-comments__closed { color: var(--np-muted); }
.np-comments .comment-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.np-comments .comment-form p { margin: 0; }
.np-comments .comment-form label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.3rem; }
.np-comments .comment-form input[type="text"], .np-comments .comment-form input[type="email"], .np-comments .comment-form input[type="url"], .np-comments .comment-form textarea {
	width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--np-line-strong); border-radius: var(--np-radius); font: inherit; background: var(--np-surface);
}
.np-comments .comment-form textarea { min-height: 8rem; resize: vertical; }
.np-comments .comment-form .np-showmore { border: 0; cursor: pointer; }

/* Footer menu */
.np-footer__menu { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 0.85rem; }

/* WordPress core alignment + caption helpers */
.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--np-subtle); font-size: 0.85rem; text-align: center; margin-top: 0.4rem; }
.sticky .np-card__title::before { content: "★ "; color: var(--np-accent); }
.np-card__avatar-img, .np-card__avatar img { width: 100%; height: 100%; border-radius: 999px; }
.np-card__meta img.avatar { width: 1.5rem; height: 1.5rem; border-radius: 999px; }
