/*
Theme Name: QuestPress PDG
Theme URI: https://poradnikidogier.pl/
Author: Poradniki do Gier
Author URI: https://poradnikidogier.pl/
Description: Lekki, jasny i charakterystyczny motyw gamingowy dla PoradnikiDoGier.pl. Zoptymalizowany pod długie poradniki, narzędzia dla graczy, Core Web Vitals i SEO.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
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: questpress-pdg
Tags: blog, news, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, translation-ready
*/

:root {
	--ink: #111827;
	--ink-soft: #344054;
	--paper: #f7f5ee;
	--surface: #fffef9;
	--surface-2: #efede5;
	--line: #d9d7cf;
	--lime: #b7f235;
	--lime-deep: #7eb817;
	--coral: #ff5a5f;
	--blue: #536dfe;
	--gold: #ffc857;
	--white: #fff;
	--shadow: 0 18px 50px rgba(17, 24, 39, .09);
	--shadow-small: 0 9px 24px rgba(17, 24, 39, .08);
	--radius: 22px;
	--radius-sm: 13px;
	--shell: 1180px;
	--font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-display: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	background-image: radial-gradient(rgba(17, 24, 39, .065) .75px, transparent .75px);
	background-size: 18px 18px;
	mask-image: linear-gradient(to bottom, #000, transparent 38%);
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.035em;
	text-wrap: balance;
}
::selection { background: var(--lime); color: var(--ink); }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.site-main { min-height: 60vh; overflow: clip; }
.section { padding-block: 72px; }
.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;
}
.screen-reader-text:focus, .skip-link:focus {
	clip: auto !important;
	width: auto; height: auto;
	top: 12px; left: 12px;
	padding: 10px 16px;
	background: var(--ink); color: var(--white);
	z-index: 10000;
	border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: -.22em; }
.eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	color: var(--ink-soft);
	font-size: .76rem;
	font-weight: 850;
	letter-spacing: .13em;
	line-height: 1.3;
	text-transform: uppercase;
}
.eyebrow .icon { color: var(--coral); }
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 19px;
	border: 2px solid var(--ink);
	border-radius: 12px 12px 3px 12px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--ink); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { color: var(--lime); }
.button-ghost { background: transparent; color: var(--ink); }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(247, 245, 238, .93);
	border-bottom: 1px solid rgba(17, 24, 39, .12);
	backdrop-filter: blur(14px);
}
.header-inner {
	display: grid;
	grid-template-columns: 244px 1fr auto;
	align-items: center;
	gap: 26px;
	min-height: 82px;
}
.site-branding { line-height: 0; }
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { display: block; width: auto; max-width: 244px; max-height: 58px; object-fit: contain; object-position: left center; }
.primary-nav { justify-self: center; }
.primary-nav .menu, .primary-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.primary-nav .menu { display: flex; align-items: center; gap: 6px; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block;
	padding: 9px 11px;
	border-radius: 9px;
	color: var(--ink);
	font-size: .9rem;
	font-weight: 750;
	line-height: 1.25;
	text-decoration: none;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-category-ancestor > a { background: var(--lime); }
.primary-nav .sub-menu {
	position: absolute;
	visibility: hidden;
	opacity: 0;
	top: calc(100% + 10px); left: 0;
	width: 230px;
	padding: 8px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-small);
	transform: translateY(-5px);
	transition: .18s ease;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.menu-toggle { display: none; }
.header-search { position: relative; }
.header-search summary {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: .84rem;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	list-style: none;
}
.header-search summary::-webkit-details-marker { display: none; }
.header-search[open] summary { background: var(--ink); color: white; }
.header-search-panel {
	position: absolute;
	top: calc(100% + 14px); right: 0;
	width: min(520px, calc(100vw - 40px));
	padding: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}

/* Search */
.search-form { display: flex; gap: 9px; }
.search-form label {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	padding: 0 14px;
	background: var(--white);
	border: 2px solid var(--ink);
	border-radius: 13px 13px 3px 13px;
}
.search-form label:focus-within { box-shadow: 4px 4px 0 var(--lime); }
.search-field {
	width: 100%;
	min-width: 0;
	padding: 12px 10px;
	background: transparent;
	border: 0;
	color: var(--ink);
	outline: 0;
}
.search-submit {
	padding: 10px 18px;
	background: var(--lime);
	border: 2px solid var(--ink);
	border-radius: 10px 10px 3px 10px;
	color: var(--ink);
	font-weight: 850;
	cursor: pointer;
}
.search-submit:hover { background: var(--coral); color: var(--white); }

/* Homepage hero */
.home-hero {
	position: relative;
	padding: 70px 0 76px;
	background: linear-gradient(135deg, #fffdf5 0 54%, #e9f8bc 54% 100%);
	border-bottom: 1px solid var(--line);
}
.home-hero::after {
	content: "";
	position: absolute;
	right: 4%; top: 4%;
	width: 180px; height: 90px;
	background-image: radial-gradient(var(--ink) 2px, transparent 2.5px);
	background-size: 16px 16px;
	opacity: .13;
	transform: rotate(10deg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr); align-items: center; gap: 70px; }
.hero-intro { position: relative; z-index: 1; }
.hero-intro h1 {
	margin: 0;
	max-width: 760px;
	font-size: clamp(3.1rem, 4.6vw, 6.1rem);
	line-height: .91;
	letter-spacing: -.07em;
}
.hero-intro h1 span {
	display: inline-block;
	margin-top: .12em;
	padding: .04em .13em .11em;
	background: var(--coral);
	color: var(--white);
	clip-path: polygon(2% 3%, 98% 0, 100% 86%, 94% 100%, 0 95%);
}
.hero-lede { max-width: 620px; margin: 25px 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.hero-search { max-width: 620px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 11px 22px; margin-top: 23px; color: var(--ink-soft); font-size: .82rem; }
.hero-stats span { display: flex; align-items: baseline; gap: 5px; }
.hero-stats strong { color: var(--ink); font-family: var(--font-display); font-size: 1rem; }

.hero-feature {
	position: relative;
	display: block;
	background: var(--ink);
	border: 3px solid var(--ink);
	border-radius: 24px 24px 5px 24px;
	box-shadow: 12px 12px 0 var(--coral);
	color: var(--white);
	overflow: hidden;
	text-decoration: none;
	transform: rotate(1.25deg);
	transition: transform .2s ease, box-shadow .2s ease;
}
.hero-feature:hover { color: var(--white); transform: rotate(0) translateY(-4px); box-shadow: 15px 15px 0 var(--lime); }
.hero-feature-top { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 4px rgba(183, 242, 53, .15); }
.hero-level { margin-left: auto; color: var(--lime); }
.hero-feature-image { aspect-ratio: 16 / 8.2; background: #263043; overflow: hidden; }
.hero-feature-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature-art {
	position: relative;
	height: 185px;
	background: linear-gradient(145deg, var(--tone, var(--lime)) 0 60%, #fff4 60% 62%, transparent 62%), radial-gradient(circle at 74% 26%, var(--coral) 0 11%, transparent 11.5%);
	overflow: hidden;
}
.hero-feature-art::before { content: ""; position: absolute; inset: 18px; border: 2px dashed var(--ink); border-radius: 50%; opacity: .32; }
.art-cross { position: absolute; left: 11%; top: 8%; color: var(--ink); font: 900 4rem/1 var(--font-display); transform: rotate(12deg); }
.art-route { position: absolute; left: 24%; bottom: 28%; width: 55%; border-top: 9px dotted var(--ink); transform: rotate(-8deg); }
.art-pin { position: absolute; right: 16%; bottom: 20%; display: grid; place-items: center; width: 56px; height: 56px; background: var(--coral); border: 5px solid var(--ink); border-radius: 50% 50% 50% 5px; transform: rotate(-45deg); color: white; }
.hero-feature-copy { padding: 24px; }
.hero-feature h2 { margin: 11px 0 10px; color: var(--white); font-size: clamp(1.55rem, 2.5vw, 2.35rem); }
.hero-feature p { margin: 0 0 16px; color: #ccd2dd; font-size: .95rem; }
.hero-feature .category-chip { background: var(--tone, var(--lime)); border-color: var(--tone, var(--lime)); color: var(--ink); }
.hero-feature .text-link { color: var(--lime); }

.tone-lime { --tone: var(--lime); }
.tone-gold { --tone: var(--gold); }
.tone-coral { --tone: var(--coral); }

/* Shared section headings */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); }
.section-heading > p { max-width: 500px; margin: 0 0 5px; color: var(--ink-soft); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 850; text-decoration: none; }
.text-link .icon { transition: transform .18s ease; }
.text-link:hover .icon { transform: translateX(4px); }
.category-chip {
	display: inline-flex;
	align-items: center;
	min-height: 27px;
	padding: 4px 9px;
	background: #e8f8c5;
	background: color-mix(in srgb, var(--tone, var(--lime)) 36%, white);
	border: 1px solid var(--line);
	border-color: color-mix(in srgb, var(--tone, var(--lime)) 70%, var(--ink));
	border-radius: 999px;
	color: var(--ink);
	font-size: .68rem;
	font-weight: 850;
	letter-spacing: .06em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

/* Game chooser */
.game-switcher { padding-bottom: 45px; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game-card {
	display: grid;
	grid-template-columns: 66px 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 17px;
	background: var(--surface);
	border: 2px solid var(--ink);
	border-radius: 16px 16px 4px 16px;
	color: var(--ink);
	text-decoration: none;
	transition: .18s ease;
}
.game-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 6px 6px 0 var(--accent); }
.game-monogram { display: grid; place-items: center; width: 66px; aspect-ratio: 1; background: var(--accent); border: 2px solid var(--ink); border-radius: 13px 13px 3px 13px; font: 900 1.3rem/1 var(--font-display); }
.game-card strong, .game-card small { display: block; }
.game-card strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.game-card small { margin-top: 5px; color: var(--ink-soft); font-size: .75rem; line-height: 1.35; }
.game-count { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 4px; background: var(--surface-2); border-radius: 50%; font-size: .74rem; font-weight: 850; }
.game-minecraft { --accent: var(--lime); }
.game-lol { --accent: var(--gold); }
.game-guides { --accent: #91d4ff; }

/* Tools */
.tools-strip { background: var(--ink); color: var(--white); }
.tools-strip .eyebrow, .tools-strip .section-heading > p { color: #aeb7c7; }
.tools-strip .section-heading h2 { color: var(--white); }
.tools-strip .text-link { color: var(--lime); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-card {
	display: grid;
	grid-template-columns: 54px 1fr;
	align-items: center;
	column-gap: 14px;
	padding: 17px;
	background: #1e293b;
	border: 1px solid #354156;
	border-radius: 15px 15px 4px 15px;
	color: var(--white);
	text-decoration: none;
	transition: .18s ease;
}
.tool-card:hover { background: #29364b; border-color: var(--lime); color: var(--white); transform: translateY(-3px); }
.tool-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 54px; height: 54px; background: var(--lime); border-radius: 12px 12px 3px 12px; color: var(--ink); }
.tool-card strong { align-self: end; font-family: var(--font-display); line-height: 1.2; }
.tool-card small { align-self: start; margin-top: 4px; color: #b9c2d1; font-size: .73rem; line-height: 1.3; }

/* Post cards */
.latest-section { padding-bottom: 84px; }
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.post-grid-three { grid-template-columns: repeat(3, 1fr); }
.post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px 18px 5px 18px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: 7px 7px 0 var(--tone, var(--lime)); }
.post-card-media-link { display: block; color: var(--ink); text-decoration: none; }
.post-card-media { aspect-ratio: 5 / 3; background: var(--surface-2); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-media img { transform: scale(1.035); }
.post-card-placeholder { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(145deg, var(--tone, var(--lime)) 0 57%, #fff8 57% 59%, var(--surface-2) 59%); overflow: hidden; }
.post-card-placeholder::after { content: ""; position: absolute; inset: 14px; border: 2px dashed var(--ink); border-radius: 50%; opacity: .16; }
.post-card-placeholder > span { position: relative; z-index: 1; font: 900 clamp(2.5rem, 5vw, 5rem)/1 var(--font-display); }
.post-card-placeholder .icon { position: absolute; right: 12%; bottom: 13%; width: 44px; height: 44px; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.post-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: .7rem; }
.post-card h2 { margin: 14px 0 10px; font-size: 1.22rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: #304ecc; }
.post-card p { margin: 0 0 20px; color: var(--ink-soft); font-size: .83rem; line-height: 1.55; }
.post-card .text-link { margin-top: auto; font-size: .8rem; }

/* Manifesto */
.home-manifesto { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 30px; margin-bottom: 82px; padding: 34px; background: var(--lime); border: 3px solid var(--ink); border-radius: 24px 24px 6px 24px; box-shadow: 10px 10px 0 var(--coral); }
.manifesto-mark { display: grid; place-items: center; width: 110px; aspect-ratio: 1; background: var(--ink); border-radius: 50%; color: var(--lime); transform: rotate(-7deg); }
.manifesto-mark .icon { width: 58px; height: 58px; }
.home-manifesto h2 { margin: 0 0 10px; max-width: 800px; font-size: clamp(1.65rem, 3vw, 2.65rem); }
.home-manifesto p:last-child { margin: 0; max-width: 760px; }

/* Breadcrumbs and archives */
.breadcrumbs { padding-top: 25px; color: var(--ink-soft); font-size: .75rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .45; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span { display: inline-block; max-width: 50ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.archive-shell { padding-bottom: 90px; }
.archive-header { position: relative; margin: 30px 0 42px; padding: 45px; background: var(--surface); border: 2px solid var(--ink); border-radius: 24px 24px 6px 24px; overflow: hidden; }
.archive-header::after { content: ""; position: absolute; right: -55px; bottom: -75px; width: 230px; height: 230px; border: 38px solid var(--tone, var(--lime)); border-radius: 50%; opacity: .75; }
.archive-header h1 { position: relative; z-index: 1; margin: 0; max-width: 800px; font-size: clamp(2.5rem, 6vw, 5.2rem); }
.archive-header > p, .archive-description { position: relative; z-index: 1; max-width: 720px; margin: 15px 0 0; color: var(--ink-soft); }
.archive-description p { margin: 0; }
.search-header .search-form { position: relative; z-index: 2; max-width: 680px; margin-top: 24px; }
.navigation.pagination { margin-top: 44px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.page-numbers { display: grid; place-items: center; min-width: 43px; height: 43px; padding: 0 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 750; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.empty-state { grid-column: 1 / -1; max-width: 660px; margin: 50px auto; padding: 45px; background: var(--surface); border: 2px dashed var(--ink); border-radius: var(--radius); text-align: center; }
.empty-state > span { color: var(--coral); }
.empty-state .icon { width: 60px; height: 60px; }
.empty-state h2 { margin: 15px 0 8px; font-size: 2rem; }

/* Single guide */
.single-guide > .shell:first-child { padding-bottom: 38px; }
.article-header { display: grid; grid-template-columns: 1.15fr .72fr; align-items: center; gap: 62px; padding: 42px 0 30px; }
.article-header h1 { margin: 16px 0; font-size: clamp(2.7rem, 6.2vw, 5.8rem); line-height: .98; }
.article-deck { max-width: 760px; margin: 0 0 19px; color: var(--ink-soft); font-size: 1.12rem; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; color: var(--ink-soft); font-size: .76rem; }
.entry-meta span { display: inline-flex; align-items: center; gap: 5px; }
.entry-meta a { color: var(--ink); font-weight: 750; text-decoration: none; }
.article-cover { aspect-ratio: 4 / 3; background: var(--tone, var(--lime)); border: 3px solid var(--ink); border-radius: 25px 25px 6px 25px; box-shadow: 10px 10px 0 var(--tone, var(--lime)); overflow: hidden; transform: rotate(1.5deg); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover-placeholder { position: relative; display: grid; place-items: center; background: linear-gradient(145deg, var(--tone, var(--lime)) 0 60%, var(--surface) 60%); overflow: hidden; }
.article-cover-placeholder img { position: relative; z-index: 2; width: 48%; height: auto; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(17,24,39,.18)); }
.cover-line { position: absolute; left: 10%; bottom: 22%; width: 75%; border-top: 10px dotted var(--ink); transform: rotate(-12deg); opacity: .24; }
.cover-dot { position: absolute; right: 10%; top: 10%; width: 48px; height: 48px; background: var(--coral); border: 4px solid var(--ink); border-radius: 50%; }
.reading-progress { position: sticky; top: 81px; z-index: 90; height: 4px; background: transparent; }
.reading-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--coral), var(--lime)); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 780px); justify-content: center; gap: 55px; padding-top: 40px; padding-bottom: 62px; }
.article-layout.no-toc { grid-template-columns: minmax(0, 780px); }
.article-rail { min-width: 0; }
.toc { position: sticky; top: 117px; max-height: calc(100vh - 150px); overflow: auto; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px 15px 4px 15px; font-size: .76rem; line-height: 1.45; scrollbar-width: thin; }
.toc > strong { display: block; margin-bottom: 11px; font-family: var(--font-display); font-size: .82rem; }
.toc ol, .toc-mobile ol { margin: 0; padding: 0; list-style: none; }
.toc li + li { margin-top: 8px; }
.toc .toc-level-3 { padding-left: 12px; }
.toc a { display: block; color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.toc-mobile { display: none; }
.article-main { min-width: 0; }

/* Article typography */
.entry-content { font-size: 1.06rem; line-height: 1.82; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content h2 { margin: 2.25em 0 .7em; padding-top: .15em; font-size: clamp(1.75rem, 3.3vw, 2.75rem); }
.entry-content h2::before { content: ""; display: block; width: 54px; height: 7px; margin-bottom: 14px; background: var(--tone, var(--lime)); border: 1px solid var(--ink); border-radius: 4px 4px 1px 4px; }
.entry-content h3 { margin: 1.85em 0 .65em; font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
.entry-content h4 { margin: 1.5em 0 .5em; font-size: 1.18rem; }
.entry-content a { color: #304ecc; font-weight: 650; text-decoration-thickness: .08em; }
.entry-content a:hover { color: var(--coral); }
.entry-content ul, .entry-content ol { margin: 0 0 1.45em; padding-left: 1.25em; }
.entry-content li { padding-left: .3em; }
.entry-content li + li { margin-top: .48em; }
.entry-content li::marker { color: var(--coral); font-weight: 850; }
.entry-content blockquote {
	position: relative;
	margin: 2em 0;
	padding: 24px 26px 24px 67px;
	background: #f2f7e6;
	background: color-mix(in srgb, var(--tone, var(--lime)) 25%, var(--surface));
	border: 2px solid var(--ink);
	border-radius: 17px 17px 4px 17px;
	box-shadow: 6px 6px 0 var(--tone, var(--lime));
}
.entry-content blockquote::before { content: "!"; position: absolute; left: 19px; top: 20px; display: grid; place-items: center; width: 32px; height: 32px; background: var(--ink); color: white; border-radius: 50%; font: 900 1rem/1 var(--font-display); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; margin: 2em 0; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: .91rem; }
.entry-content th, .entry-content td { padding: 13px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content tr > *:last-child { border-right: 0; }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content th { background: var(--ink); color: white; font-family: var(--font-display); font-size: .82rem; }
.entry-content tbody tr:nth-child(even) { background: #f3f2ec; }
.entry-content figure { margin: 2em 0; }
.entry-content figure.wp-block-image { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-small); }
.entry-content figure.wp-block-image > svg, .entry-content figure.wp-block-image > img { display: block; width: 100%; height: auto; }
.entry-content figcaption { padding: 10px 14px; color: var(--ink-soft); font-size: .72rem; line-height: 1.4; text-align: center; }
.entry-content pre { max-width: 100%; padding: 18px; background: var(--ink); border-radius: var(--radius-sm); color: #e6edf6; overflow: auto; font-size: .84rem; }
.entry-content :not(pre) > code { padding: .12em .35em; background: #e7e4da; border-radius: 5px; color: #c02c45; font-size: .87em; }
.entry-content hr { margin: 2.5em 0; border: 0; border-top: 2px dashed var(--line); }
.entry-content .alignwide { width: min(980px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-block-button__link { background: var(--ink); border-radius: 10px 10px 3px 10px; color: white !important; font-weight: 800; }

.article-footer { margin-top: 45px; padding-top: 27px; border-top: 2px dashed var(--line); }
.updated-note { display: flex; justify-content: space-between; gap: 20px; padding: 17px 19px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: .78rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 19px; font-size: .72rem; }
.tag-list a { padding: 4px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); text-decoration: none; }
.author-box { display: grid; grid-template-columns: 80px 1fr; gap: 18px; margin-top: 35px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { border-radius: 15px 15px 4px 15px; }
.author-box span { color: var(--ink-soft); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.author-box h2 { margin: 3px 0 6px; font-size: 1.25rem; }
.author-box p { margin: 0; color: var(--ink-soft); font-size: .82rem; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.post-navigation > div { min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.post-navigation > div:last-child { text-align: right; }
.post-navigation span { display: block; margin-bottom: 4px; color: var(--ink-soft); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.post-navigation a { color: var(--ink); font-family: var(--font-display); font-size: .85rem; font-weight: 800; text-decoration: none; }
.related-section { border-top: 1px solid var(--line); }

/* Pages, comments, 404 */
.standard-page { max-width: 900px; padding-bottom: 90px; }
.page-header { margin: 42px 0 34px; padding-bottom: 32px; border-bottom: 2px solid var(--ink); }
.page-header h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 5.4rem); }
.page-header > p:last-child { max-width: 700px; color: var(--ink-soft); }
.page-cover { margin-bottom: 36px; border-radius: var(--radius); overflow: hidden; }
.page-content { max-width: 780px; }
.comments-shell { max-width: 835px; padding-bottom: 85px; }
.comments-area { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.comments-title, .comment-reply-title { font-size: 1.5rem; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.comment-meta { font-size: .72rem; }
.comment-form label { display: block; font-size: .78rem; font-weight: 800; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.form-submit .submit { padding: 11px 18px; background: var(--ink); border: 0; border-radius: 9px; color: white; font-weight: 800; cursor: pointer; }
.not-found { display: grid; grid-template-columns: .8fr 1fr; align-items: center; gap: 60px; min-height: 70vh; padding-block: 80px; }
.error-code { font: 900 clamp(8rem, 24vw, 20rem)/.8 var(--font-display); color: var(--lime); letter-spacing: -.1em; -webkit-text-stroke: 4px var(--ink); text-shadow: 12px 12px 0 var(--coral); transform: rotate(-4deg); }
.not-found h1 { margin: 0 0 15px; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.not-found-copy > p:not(.eyebrow) { color: var(--ink-soft); }
.not-found .search-form { margin: 24px 0 18px; }

/* Plugin integration: more specific than the plugin's neutral defaults. */
.pdg-narzedzia .pdg-wrap {
	--pdg-bg: var(--surface);
	--pdg-panel: #eeece3;
	--pdg-line: var(--line);
	--pdg-ink: var(--ink);
	--pdg-mute: var(--ink-soft);
	--pdg-radius: 16px;
	max-width: var(--shell);
	padding-top: 35px;
	padding-bottom: 90px;
}
.pdg-narzedzia .pdg-page-head { margin: 28px 0 36px; padding: 38px; background: var(--surface); border: 2px solid var(--ink); border-radius: 22px 22px 5px 22px; box-shadow: 8px 8px 0 var(--pdg-accent); }
.pdg-narzedzia .pdg-page-head h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.pdg-narzedzia .pdg-card { border: 2px solid var(--ink); border-radius: 15px 15px 4px 15px; }
.pdg-narzedzia .pdg-card:hover { border-color: var(--ink); box-shadow: 5px 5px 0 var(--pdg-accent); }
.pdg-narzedzia .pdg-panel { border-color: var(--line); border-radius: 18px 18px 5px 18px; }
.pdg-narzedzia .pdg-chip.is-on, .pdg-narzedzia .pdg-promo-btn { color: var(--ink); }
.entry-content .pdg-wrap { --pdg-bg: var(--surface); --pdg-panel: #eeece3; --pdg-line: var(--line); --pdg-ink: var(--ink); --pdg-mute: var(--ink-soft); }
.entry-content .pdg-promo { margin-top: 2.3em; border: 2px solid var(--ink); border-radius: 16px 16px 4px 16px; box-shadow: 6px 6px 0 var(--lime); }

/* Footer */
.site-footer { background: var(--ink); color: #d8deea; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .65fr .8fr; gap: 55px; padding-block: 56px 45px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { object-fit: contain; }
.footer-brand strong { color: var(--white); font: 850 1.3rem/1.2 var(--font-display); }
.footer-brand p, .footer-note p { margin: 6px 0 0; color: #9aa6ba; font-size: .82rem; }
.site-footer h2 { margin: 0 0 12px; color: var(--white); font-size: .9rem; letter-spacing: 0; }
.footer-menu { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: #bbc5d4; font-size: .8rem; text-decoration: none; }
.footer-menu a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid #2e394c; color: #8995a9; font-size: .72rem; }
.footer-bottom a { color: #b8c2d1; text-decoration: none; }

@media (max-width: 1080px) {
	.header-inner { grid-template-columns: 210px 1fr auto; gap: 13px; }
	.custom-logo { max-width: 205px; }
	.primary-nav a { padding-inline: 8px; font-size: .82rem; }
	.hero-grid { gap: 38px; }
	.post-grid { grid-template-columns: repeat(3, 1fr); }
	.game-card { grid-template-columns: 54px 1fr; }
	.game-monogram { width: 54px; }
	.game-count { display: none; }
	.article-layout { grid-template-columns: 200px minmax(0, 740px); gap: 35px; }
}

@media (max-width: 860px) {
	body { font-size: 16px; }
	.header-inner { grid-template-columns: 1fr auto auto; min-height: 72px; }
	.custom-logo { max-width: 190px; max-height: 50px; }
	.menu-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .78rem; font-weight: 800; cursor: pointer; }
	.primary-nav { position: absolute; display: none; top: 72px; left: 0; right: 0; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-small); }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { display: grid; gap: 3px; }
	.primary-nav a { padding: 12px; font-size: .92rem; }
	.primary-nav .sub-menu { position: static; visibility: visible; opacity: 1; width: auto; margin-left: 15px; padding: 0; background: transparent; border: 0; box-shadow: none; transform: none; }
	.header-search summary span { display: none; }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-feature { max-width: 640px; transform: none; }
	.home-hero { background: linear-gradient(160deg, #fffdf5 0 65%, #e9f8bc 65%); }
	.game-grid { grid-template-columns: 1fr; }
	.tool-grid { grid-template-columns: repeat(2, 1fr); }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.home-manifesto { grid-template-columns: 90px 1fr; }
	.manifesto-mark { width: 90px; }
	.home-manifesto .button { grid-column: 2; justify-self: start; }
	.article-header { grid-template-columns: 1fr; gap: 30px; }
	.article-cover { width: min(100%, 620px); aspect-ratio: 16 / 9; transform: none; }
	.article-layout { display: block; max-width: 820px; }
	.article-rail { display: none; }
	.toc-mobile { display: block; margin: 0 0 28px; padding: 15px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
	.toc-mobile summary { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 800; cursor: pointer; }
	.toc-mobile[open] summary span { transform: rotate(45deg); }
	.toc-mobile ol { margin-top: 14px; }
	.toc-mobile li + li { margin-top: 7px; }
	.toc-mobile .toc-level-3 { padding-left: 15px; }
	.toc-mobile a { color: var(--ink-soft); font-size: .82rem; text-decoration: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
	.shell { width: min(calc(100% - 26px), var(--shell)); }
	.section { padding-block: 52px; }
	.custom-logo { max-width: 154px; max-height: 44px; }
	.menu-toggle span { display: none; }
	.header-search-panel { right: -2px; }
	.search-form { display: grid; grid-template-columns: 1fr auto; }
	.hero-grid { display: block; }
	.home-hero { padding: 50px 0 60px; }
	.hero-intro h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
	.hero-lede { margin-block: 20px; }
	.hero-stats { margin-bottom: 32px; }
	.hero-feature-art { height: 150px; }
	.section-heading { display: block; }
	.section-heading > p, .section-heading > .text-link, .section-heading > .button { display: inline-flex; margin-top: 15px; }
	.tool-grid, .post-grid, .post-grid-three { grid-template-columns: 1fr; }
	.post-card-media { aspect-ratio: 16 / 8.7; }
	.post-card-placeholder > span { font-size: 3.6rem; }
	.post-card-placeholder .icon { width: 38px; height: 38px; }
	.post-card-body { padding: 15px; }
	.post-card h2 { font-size: 1.08rem; }
	.post-card p { display: block; }
	.home-manifesto { display: block; margin-bottom: 62px; padding: 25px; }
	.manifesto-mark { width: 72px; margin-bottom: 20px; }
	.manifesto-mark .icon { width: 40px; }
	.home-manifesto .button { margin-top: 20px; }
	.archive-header { padding: 30px 24px; }
	.archive-header h1 { font-size: 2.6rem; }
	.article-header { padding-top: 25px; }
	.article-header h1 { font-size: clamp(2.55rem, 12vw, 4.2rem); }
	.reading-progress { top: 71px; }
	.article-layout { padding-top: 24px; }
	.entry-content { font-size: 1rem; line-height: 1.76; }
	.entry-content table { display: block; max-width: 100%; overflow-x: auto; white-space: normal; }
	.entry-content blockquote { padding: 58px 19px 20px; }
	.updated-note { display: grid; gap: 5px; }
	.post-navigation { grid-template-columns: 1fr; }
	.post-navigation > div:last-child { text-align: left; }
	.footer-grid { grid-template-columns: 1fr; gap: 30px; }
	.footer-brand { grid-column: auto; }
	.not-found { grid-template-columns: 1fr; gap: 45px; }
	.error-code { font-size: 9rem; }
	.pdg-narzedzia .pdg-page-head { padding: 25px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
	.site-header, .site-footer, .article-rail, .toc-mobile, .reading-progress, .related-section, .comments-shell, .pdg-promo { display: none !important; }
	body { background: white; color: black; font-size: 11pt; }
	body::before { display: none; }
	.article-layout { display: block; padding: 0; }
	.article-header { display: block; padding: 0; }
	.article-cover { max-width: 500px; box-shadow: none; }
	.entry-content a { color: black; text-decoration: underline; }
}
