/*
Theme Name:   NewsPlainly Child
Description:  GeneratePress child theme for NewsPlainly: newspaper typography, highlighter accents.
Author:       NewsPlainly
Template:     generatepress
Version:      0.2.4
Text Domain:  newsplainly-child
*/

:root {
	--np-ink: #15181d;
	--np-ink-soft: #3a3f47;
	--np-muted: #6b7079;
	--np-paper: #fbfaf6;
	--np-card: #ffffff;
	--np-rule: #e4e0d5;
	--np-accent: #1d4d7a;
	--np-mark: #ffe27a;
	--np-mark-soft: #fff4c4;
	--np-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--np-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

/* ---------- Base: take over GeneratePress's boxes ---------- */

body {
	background: var(--np-paper);
	color: var(--np-ink);
	font-family: var(--np-serif);
	-webkit-font-smoothing: antialiased;
}
body .site.grid-container { max-width: none; background: transparent; }
body .site-content { display: block; padding: 0; }
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.inside-page-header { background: transparent; padding: 0; }
.separate-containers .site-main { margin: 0; }
a { color: inherit; text-decoration: none; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--np-serif); color: var(--np-ink); }
.np-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.np-hide-m { }

.np-label {
	font-family: var(--np-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--np-accent);
	margin: 0 0 10px;
}
.np-label-ink { color: var(--np-ink); font-size: 13px; letter-spacing: 0.06em; }
.np-kicker {
	font-family: var(--np-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--np-accent);
}
.np-kicker::after { content: " · Explained"; color: var(--np-muted); font-weight: 600; }
.np-meta { font-family: var(--np-sans); font-size: 12.5px; color: var(--np-muted); }
.np-time { font-family: var(--np-sans); font-size: 12px; font-weight: 600; color: var(--np-accent); }

/* ---------- Logo ---------- */

.np-logo { font-family: var(--np-serif); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--np-ink); }
.np-logo span { background: linear-gradient(transparent 58%, var(--np-mark) 58%, var(--np-mark) 92%, transparent 92%); padding: 0 2px; }

/* ---------- Header ---------- */

.np-strip { font-family: var(--np-sans); font-size: 12.5px; color: var(--np-muted); border-bottom: 1px solid var(--np-rule); }
.np-strip .np-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.np-mast .np-wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 14px; }
.np-brand { display: block; }
.np-tagline { display: block; font-family: var(--np-sans); font-size: 13px; color: var(--np-muted); margin-top: 6px; }
.np-search input {
	font-family: var(--np-sans);
	font-size: 14px;
	border: 1px solid var(--np-rule);
	background: var(--np-card);
	padding: 8px 12px;
	border-radius: 6px;
	width: 240px;
	color: var(--np-ink);
}
.np-nav { border-top: 1px solid var(--np-ink); border-bottom: 3px double var(--np-ink); }
.np-nav .np-wrap {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scrollbar-width: none;
	font-family: var(--np-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.np-nav .np-wrap::-webkit-scrollbar { display: none; }
.np-nav a { padding: 11px 0; white-space: nowrap; }
.np-nav a.cur, .np-nav a:hover { box-shadow: inset 0 -3px 0 var(--np-accent); color: var(--np-accent); }

/* ---------- Homepage ---------- */

.np-sixty { padding: 18px 0; border-bottom: 1px solid var(--np-rule); }
.np-sixty ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: np; }
.np-sixty li { counter-increment: np; font-size: 15.5px; line-height: 1.35; display: flex; gap: 10px; margin: 0; }
.np-sixty li::before {
	content: counter(np);
	font-family: var(--np-sans);
	font-weight: 700;
	font-size: 12px;
	background: var(--np-mark);
	min-width: 22px;
	height: 22px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	margin-top: 1px;
}
.np-sixty a:hover { text-decoration: underline; text-underline-offset: 3px; }

.np-lead { display: grid; grid-template-columns: 1.65fr 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--np-rule); }
.np-lead-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.np-lead-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.np-lead-main h2 { font-size: 34px; line-height: 1.12; letter-spacing: -0.01em; margin: 8px 0 10px; font-weight: 700; }
.np-stand { font-size: 17px; line-height: 1.45; color: var(--np-ink-soft); margin: 0; }
.np-why-line { font-size: 16px; line-height: 1.45; color: var(--np-ink-soft); margin: 10px 0 0; }
.np-why-line b {
	font-family: var(--np-sans);
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--np-mark);
	padding: 2px 6px;
	margin-right: 6px;
	color: var(--np-ink);
}
.np-latest { border-left: 1px solid var(--np-rule); padding-left: 28px; }
.np-latest ul, .np-side ul { list-style: none; margin: 0; padding: 0; }
.np-line { padding: 12px 0; border-top: 1px solid var(--np-rule); margin: 0; }
.np-line:first-child { border-top: 0; padding-top: 0; }
.np-line h3 { font-size: 18px; line-height: 1.25; margin: 4px 0 0; font-weight: 600; }

.np-sec { padding: 26px 0; border-bottom: 1px solid var(--np-rule); }
.np-sec-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--np-ink); margin-bottom: 18px; }
.np-sec-head .np-label { margin-bottom: 8px; }
.np-sec-head a { font-family: var(--np-sans); font-size: 12.5px; color: var(--np-accent); }
.np-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.np-card h3 { font-size: 21px; line-height: 1.22; margin: 10px 0 6px; font-weight: 600; }
.np-card p { font-size: 15px; line-height: 1.45; color: var(--np-ink-soft); margin: 0; }
.np-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.np-card a:hover h3, .np-lead-main h2 a:hover, .np-line a:hover h3, .np-side a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.np-empty { padding: 40px 0; font-size: 18px; color: var(--np-muted); }

/* ---------- Article ---------- */

.single-post .site-content .content-area { width: auto; }
.single-post .site-content {
	display: grid;
	grid-template-columns: minmax(0, 700px) 300px;
	gap: 56px;
	justify-content: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px 40px;
}
.single-post .is-right-sidebar { width: auto; padding: 0; }
.single-post .entry-header { margin: 0; }
.np-kicker-row { margin-bottom: 10px; }
.single-post .entry-title { font-size: 44px; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 14px; font-weight: 700; }
.single-post .np-stand { font-size: 20px; }
.np-byline {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 0;
	margin: 18px 0;
	border-top: 1px solid var(--np-rule);
	border-bottom: 1px solid var(--np-rule);
	font-family: var(--np-sans);
	font-size: 13px;
	color: var(--np-muted);
}
.np-byline strong { color: var(--np-ink); }
.np-mk {
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 50%;
	background: var(--np-ink);
	color: var(--np-mark);
	display: grid;
	place-items: center;
	font-family: var(--np-serif);
	font-weight: 700;
	font-size: 15px;
}
.np-hero { margin: 0; }
.np-graphic { margin: 28px 0; }
.np-graphic img { width: 100%; height: auto; display: block; border: 1px solid var(--np-rule); }
.entry-content .np-graphic figcaption { font-family: var(--np-sans); font-size: 10px; line-height: 1.4; color: #8b9099; margin-top: 4px; }
.np-hero img { width: 100%; display: block; }
.entry-content > p.np-image-credit, .np-image-credit { font-family: var(--np-sans); font-size: 10px; line-height: 1.4; color: #8b9099; margin: 4px 0 0; letter-spacing: 0.01em; }
.entry-content > p.np-image-credit a { color: inherit; border-bottom: 0; text-decoration: underline; text-decoration-color: #c9ccd2; }
.np-updated { display: none; } /* the byline shows the update time */
.single-post .entry-meta { display: none; } /* GeneratePress meta; the byline replaces it */

.single-post .entry-content { margin: 0; }
.entry-content > p, .entry-content > ul, .entry-content > ol { font-size: 19px; line-height: 1.68; margin: 0 0 1.05em; }
.entry-content li { margin-bottom: 0.3em; }
.entry-content > h2 { font-size: 27px; line-height: 1.2; margin: 1.6em 0 0.5em; font-weight: 700; scroll-margin-top: 20px; }
.entry-content > p a, .entry-content > ul a { color: var(--np-accent); border-bottom: 1px solid #b7c7d8; }

.np-key-points { background: var(--np-card); border: 1px solid var(--np-rule); border-radius: 10px; padding: 18px 22px; margin: 24px 0; }
.np-key-points h2, .np-why h2, .np-faq > h2 {
	font-family: var(--np-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.np-key-points ul { margin: 0; padding: 0; list-style: none; }
.np-key-points li { font-size: 17px; line-height: 1.45; padding: 6px 0 6px 22px; position: relative; margin: 0; }
.np-key-points li::before { content: ""; position: absolute; left: 0; top: 14px; width: 11px; height: 11px; background: var(--np-mark); border-radius: 2px; }

.np-why { border-left: 4px solid var(--np-accent); padding: 4px 0 4px 18px; margin: 24px 0 28px; }
.np-why p { font-size: 18.5px; line-height: 1.55; margin: 0; }
.np-why mark { background: linear-gradient(transparent 45%, var(--np-mark) 45%); color: inherit; padding: 0 1px; }

.np-toc { font-family: var(--np-sans); font-size: 14px; margin: 24px 0; padding: 14px 18px; border-top: 1px solid var(--np-rule); border-bottom: 1px solid var(--np-rule); }
.np-toc-title { font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px; }
.np-toc ul { margin: 0; padding-left: 18px; line-height: 1.9; color: var(--np-accent); list-style: decimal; }
.np-toc a:hover { text-decoration: underline; }

.np-faq { margin: 36px 0 24px; border-top: 2px solid var(--np-ink); padding-top: 14px; }
.np-faq details { border-bottom: 1px solid var(--np-rule); padding: 12px 0; }
.np-faq summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.np-faq summary::-webkit-details-marker { display: none; }
.np-faq summary::after { content: "+"; font-family: var(--np-sans); color: var(--np-accent); }
.np-faq details[open] summary::after { content: "\2212"; }
.np-faq details p { font-size: 17px; line-height: 1.55; color: var(--np-ink-soft); margin: 8px 0 0; }

.np-correction { font-family: var(--np-sans); font-size: 14px; background: var(--np-mark-soft); padding: 12px 14px; border-radius: 8px; margin: 20px 0; }
.np-disclosure { display: block; font-family: var(--np-sans); font-size: 13px; color: var(--np-muted); background: var(--np-card); border: 1px dashed var(--np-rule); border-radius: 8px; padding: 12px 14px; margin: 20px 0; }
.np-disclosure a, .np-why a, .np-faq a { color: var(--np-accent); text-decoration: underline; text-underline-offset: 2px; }
.np-author { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--np-rule); padding-top: 18px; margin-top: 24px; }
.np-author img { width: 44px; height: 44px; border-radius: 50%; }
.np-author-name { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.np-author-bio { font-family: var(--np-sans); font-size: 13.5px; line-height: 1.5; color: var(--np-muted); margin: 0; }

.np-side { position: sticky; top: 20px; }
.np-side .np-label { border-bottom: 2px solid var(--np-ink); padding-bottom: 8px; margin-bottom: 4px; }
.np-side li { padding: 12px 0; border-bottom: 1px solid var(--np-rule); margin: 0; }
.np-side h3 { font-size: 17px; line-height: 1.28; margin: 4px 0 0; font-weight: 600; }

/* ---------- Pages, archives, search ---------- */

.page .site-content, .archive .site-content, .search .site-content, .error404 .site-content { max-width: 760px; margin: 0 auto; padding: 30px 20px 40px; }
.archive .site-content, .search .site-content { max-width: 1000px; }
.page .entry-title { font-size: 40px; line-height: 1.1; margin: 0 0 20px; }
.page .entry-content > h2 { font-size: 24px; }
.page-header .page-title { font-family: var(--np-sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 2px solid var(--np-ink); padding-bottom: 8px; margin: 0 0 10px; }
.archive article.post, .search article.post, .blog article.post { border-bottom: 1px solid var(--np-rule); padding: 20px 0; margin: 0; }
.archive .inside-article, .search .inside-article { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.archive .post-image, .search .post-image { margin: 0; grid-row: 1 / span 3; }
.archive .post-image img, .search .post-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.archive .entry-title, .search .entry-title { font-size: 24px; line-height: 1.2; margin: 0; font-weight: 600; }
.archive .entry-header .entry-meta, .search .entry-header .entry-meta { font-family: var(--np-sans); font-size: 12.5px; color: var(--np-muted); margin-top: 6px; }
.archive footer.entry-meta, .search footer.entry-meta { display: none; }
.archive .entry-summary, .search .entry-summary { margin: 0; }
.archive .entry-summary p, .search .entry-summary p { font-size: 16px; line-height: 1.5; color: var(--np-ink-soft); margin: 8px 0 0; }
.archive .read-more, .search .read-more { display: none; }
.paging-navigation, .nav-links { font-family: var(--np-sans); font-size: 14px; padding: 20px 0; }

/* ---------- Footer ---------- */

.np-how { background: var(--np-mark-soft); border-top: 1px solid #f1e3a6; border-bottom: 1px solid #f1e3a6; }
.np-how .np-wrap { display: grid; grid-template-columns: 1.2fr 2fr; gap: 28px; padding: 26px 20px; align-items: center; }
.np-how h3 { font-size: 24px; font-weight: 700; margin: 0; }
.np-how p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--np-ink-soft); }
.np-how a { color: var(--np-accent); border-bottom: 1px solid currentColor; }
.np-foot { background: var(--np-ink); color: #c9ccd2; font-family: var(--np-sans); font-size: 13.5px; }
.np-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 34px 20px; }
.np-foot .np-logo { color: #fff; font-size: 28px; }
.np-foot .np-logo span { background: linear-gradient(transparent 58%, #8a7520 58%, #8a7520 92%, transparent 92%); }
.np-foot p { margin: 10px 0 0; line-height: 1.5; }
.np-foot .np-foot-h { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; }
.np-foot ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.np-foot a:hover { color: #fff; text-decoration: underline; }
.np-fine { border-top: 1px solid #2c3038; padding: 14px 0; font-size: 12px; color: #8b9099; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.np-lead, .np-lead-main { grid-template-columns: 1fr; }
	.np-latest { border-left: 0; padding-left: 0; }
	.np-sixty ol { grid-template-columns: 1fr 1fr; }
	.np-grid3 { grid-template-columns: 1fr 1fr; }
	.single-post .site-content { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.single-post .is-right-sidebar { display: none; }
	.np-how .np-wrap, .np-foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.np-wrap { padding: 0 16px; }
	.np-logo { font-size: 32px; }
	.np-search, .np-hide-m { display: none; }
	.np-sixty ol, .np-grid3 { grid-template-columns: 1fr; }
	.np-lead-main h2 { font-size: 28px; }
	.single-post .site-content { padding: 20px 16px 40px; }
	.single-post .entry-title, .page .entry-title { font-size: 32px; }
	.single-post .np-stand { font-size: 18px; }
	.entry-content > p, .entry-content > ul { font-size: 18px; }
	.archive .inside-article, .search .inside-article { grid-template-columns: 1fr; }
	.archive .post-image, .search .post-image { grid-row: auto; }
}
