/*
Theme Name: Grzechy PiS — Archiwum
Theme URI: https://www.grzechy-pis.org/
Author: Zespół grzechy-pis.org
Description: Lekki motyw redakcyjny eksponujący istniejące tematy serwisu.
Version: 1.0.4
Text Domain: grzechy-pis
*/

:root {
	--ink: #152035;
	--muted: #5e6879;
	--paper: #f7f5ef;
	--surface: #ffffff;
	--line: #dce0e6;
	--red: #b4232f;
	--red-dark: #7e1721;
	--navy: #101b31;
	--gold: #c7963f;
	--radius: 18px;
	--shadow: 0 18px 50px rgba(16, 27, 49, .09);
	--wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }
.wrap { width: var(--wrap); margin-inline: auto; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	position: fixed; z-index: 9999; top: 12px; left: 12px; width: auto; height: auto;
	padding: 12px 18px; clip: auto; background: #fff; color: #000;
}

.site-header {
	position: sticky; z-index: 100; top: 0;
	border-bottom: 1px solid rgba(255,255,255,.12);
	background: rgba(16,27,49,.97);
	color: #fff;
	backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
	display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark {
	display: grid; width: 44px; height: 44px; place-items: center;
	border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
	background: var(--red); color: #fff; font-family: Georgia, serif; font-size: 18px; font-weight: 700; letter-spacing: -.04em;
}
.brand:hover .brand-mark { color: #fff; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 700; }
.brand-tagline { margin-top: 6px; color: #bdc5d2; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 25px; }
.primary-nav a { color: #f4f6f9; font-size: 14px; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.search-toggle, .menu-toggle {
	display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.24);
	border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 18px;
}
.menu-toggle { display: none; border-radius: 10px; }
.header-search { display: none; padding: 14px 0 18px; border-top: 1px solid rgba(255,255,255,.12); }
.header-search.is-open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-field {
	min-width: 0; flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
	background: #fff; color: var(--ink); font: inherit;
}
.search-submit, .button {
	display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px;
	border: 0; border-radius: 10px; background: var(--red); color: #fff;
	font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.search-submit:hover, .button:hover { background: var(--red-dark); color: #fff; }

.hero {
	position: relative; overflow: hidden; padding: 92px 0 78px;
	background:
		radial-gradient(circle at 88% 15%, rgba(199,150,63,.22), transparent 25%),
		linear-gradient(135deg, #101b31 0%, #182845 58%, #6e1720 145%);
	color: #fff;
}
.hero::after {
	position: absolute; right: -110px; bottom: -190px; width: 520px; height: 520px;
	border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: "";
}
.hero-grid { position: relative; z-index: 1; display: block; max-width: 900px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #e3c58e; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 34px; height: 2px; background: var(--gold); content: ""; }
.hero h1 {
	max-width: 790px; margin: 0; font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(48px, 7vw, 88px); line-height: .98; letter-spacing: -.045em;
}
.hero-lead { max-width: 750px; margin: 28px 0 0; color: #d7dce5; font-size: clamp(18px, 2vw, 21px); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button.secondary { border: 1px solid rgba(255,255,255,.32); background: transparent; }
.button.secondary:hover { background: #fff; color: var(--navy); }
.hero-stat {
	padding: 26px; border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius);
	background: rgba(255,255,255,.07); backdrop-filter: blur(8px);
}
.hero-stat strong { display: block; font-family: Georgia, serif; font-size: 52px; line-height: 1; }
.hero-stat span { display: block; margin-top: 10px; color: #cbd2dd; font-size: 14px; }

.section { padding: 76px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -.025em; }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
	position: relative; display: flex; min-width: 0; min-height: 340px; flex-direction: column; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
	box-shadow: 0 8px 26px rgba(16,27,49,.045); transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media {
	position: relative; display: block; height: 176px; overflow: hidden;
	background:
		linear-gradient(135deg, rgba(255,255,255,.04), transparent),
		linear-gradient(135deg, var(--navy), #283c60);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .card-media img { transform: scale(1.035); }
.card-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(255,255,255,.17); font-family: Georgia, serif; font-size: 86px; font-weight: 700; }
.card-number {
	position: absolute; top: 14px; left: 14px; padding: 5px 9px; border-radius: 999px;
	background: rgba(16,27,49,.86); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em;
}
.card-body { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.card-meta { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-card h3 { margin: 8px 0 9px; font-family: Georgia, serif; font-size: 25px; line-height: 1.18; letter-spacing: -.015em; }
.article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h3 a::after { position: absolute; inset: 0; content: ""; }
.card-excerpt { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.card-link { margin-top: auto; padding-top: 18px; color: var(--red-dark); font-size: 13px; font-weight: 800; }

.principles { padding: 52px 0; background: #ebe8df; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.principle { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.principle-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; }
.principle h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 20px; }
.principle p { margin: 0; color: var(--muted); font-size: 14px; }

.content-shell { padding: 62px 0 90px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 790px) minmax(230px, 1fr); gap: 64px; align-items: start; }
.article-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 10px 0 16px; font-family: Georgia, serif; font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -.04em; }
.article-meta { color: var(--muted); font-size: 13px; }
.featured-image { margin: 30px 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.entry-content { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.82; }
.entry-content > * { max-width: 760px; }
.entry-content h2, .entry-content h3 { margin-top: 1.7em; color: var(--navy); line-height: 1.2; }
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 25px; }
.entry-content blockquote { margin: 2em 0; padding: 8px 0 8px 26px; border-left: 4px solid var(--red); color: #3f4857; font-style: italic; }
.entry-content a { overflow-wrap: anywhere; }
.entry-content figure { margin: 2em 0; }
.entry-content img { border-radius: 10px; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; }
.entry-content td, .entry-content th { padding: 10px; border: 1px solid var(--line); }
.article-aside { position: sticky; top: 110px; padding: 25px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.article-aside h2 { margin: 0 0 18px; font-family: Georgia, serif; font-size: 24px; }
.article-aside a { color: #fff; }
.aside-teasers { border-top: 1px solid rgba(255,255,255,.13); }
.aside-teaser {
	display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 15px 0;
	border-bottom: 1px solid rgba(255,255,255,.13); text-decoration: none;
}
.aside-teaser:hover { color: #fff; }
.aside-teaser-image { display: block; height: 64px; overflow: hidden; border-radius: 7px; background: #263955; }
.aside-teaser-image img { width: 100%; height: 100%; object-fit: cover; }
.aside-teaser-copy { display: block; min-width: 0; }
.aside-teaser-copy strong { display: block; font-family: Georgia, serif; font-size: 15px; line-height: 1.2; }
.aside-teaser-copy > span {
	display: -webkit-box; margin-top: 5px; overflow: hidden; color: #c9d0db; font-size: 11px; line-height: 1.35;
	-webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.aside-all { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 800; text-decoration: none; }
.aside-all:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-nav a { font-weight: 700; text-decoration: none; }

.archive-header { padding: 60px 0 28px; }
.archive-header h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(40px, 6vw, 64px); }
.empty-state { padding: 60px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; }

.site-footer { padding: 50px 0 28px; background: #0c1527; color: #c5ccd7; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; }
.site-footer .brand { display: inline-flex; margin-bottom: 15px; }
.footer-note { max-width: 600px; margin: 0; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { color: #fff; font-size: 14px; text-decoration: none; }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.11); color: #8f99a8; font-size: 12px; }

@media (max-width: 900px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.hero-grid, .article-layout { grid-template-columns: 1fr; }
	.hero-stat { max-width: 360px; }
	.article-aside { position: static; }
	.primary-nav {
		position: absolute; top: 76px; right: 20px; left: 20px; display: none; padding: 20px;
		flex-direction: column; align-items: stretch; border-radius: 12px; background: var(--navy); box-shadow: var(--shadow);
	}
	.primary-nav.is-open { display: flex; }
	.menu-toggle { display: grid; }
	.search-toggle { display: none; }
	.principles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
	:root { --wrap: min(100% - 28px, 1180px); }
	body { font-size: 16px; }
	.admin-bar .site-header { top: 46px; }
	.header-inner { min-height: 68px; }
	.brand-tagline { display: none; }
	.brand-name { font-size: 21px; }
	.brand-mark { width: 38px; height: 38px; }
	.primary-nav { top: 68px; }
	.hero { padding: 64px 0 56px; }
	.hero-grid { gap: 34px; }
	.hero h1 { font-size: clamp(44px, 15vw, 64px); }
	.section { padding: 56px 0; }
	.section-head { align-items: start; flex-direction: column; }
	.cards { grid-template-columns: 1fr; }
	.article-card { min-height: 0; }
	.card-media { height: 185px; }
	.content-shell { padding: 42px 0 64px; }
	.entry-content { font-size: 18px; }
	.footer-grid { grid-template-columns: 1fr; gap: 30px; }
	.footer-links { justify-content: flex-start; }
	.article-nav { flex-direction: column; }
}

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