/* 1001 pomysłów: biel dziennego światła, grafit trzonka, bursztyn żarnika tylko przy pomysłach. */

@font-face {
	font-family: "Bricolage";
	src: url("../fonts/bricolage-latin.woff2") format("woff2");
	font-weight: 500 800;
	font-display: swap;
	unicode-range: U+0020-007E, U+00A0, U+00AB, U+00B7, U+00BB, U+00D3, U+00D7, U+00F3, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2192;
}
@font-face {
	font-family: "Bricolage";
	src: url("../fonts/bricolage-pl.woff2") format("woff2");
	font-weight: 500 800;
	font-display: swap;
	unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C;
}
/* Zastępczy krój o zbliżonych metrykach: mniej przeskoku przy podmianie fontu. */
@font-face {
	font-family: "Bricolage Fallback";
	src: local("Arial");
	size-adjust: 92%;
	ascent-override: 98%;
	descent-override: 26%;
}

:root {
	--white: #ffffff;
	--paper: #f6f4f3;
	--line: #e9e3e0;
	--ink: #3b302c;
	--ink-strong: #261e1b;
	--ink-soft: #6b5d58;
	--amber: #f8a838;
	--amber-ink: #a35d00;
	--glow: #fff4dd;
	--glow-strong: #ffe2a6;
	--green: #38b048;
	--green-ink: #1d7a2c;
	--green-brand: #2f9e3f;

	--font-display: "Bricolage", "Bricolage Fallback", ui-sans-serif, system-ui, sans-serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wrap: 1120px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 6px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	color-scheme: light;
	accent-color: var(--amber-ink);
}

/* Podstawy */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scrollbar-color: #cfc5c1 var(--white);
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--font-body);
	text-rendering: optimizeLegibility;
	caret-color: var(--amber-ink);
}

@media (min-width: 720px) {
	body { font-size: 1.125rem; }
}

::selection { background: var(--glow-strong); color: var(--ink-strong); }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

a {
	color: var(--green-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
a:hover { color: var(--ink-strong); text-decoration-color: var(--amber); text-decoration-thickness: 2px; }

:focus-visible {
	outline: 3px solid var(--amber-ink);
	outline-offset: 2px;
	border-radius: 2px;
}

h1, h2, h3, h4 {
	color: var(--ink-strong);
	font-family: var(--font-display);
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink-strong);
	color: var(--white);
	font-weight: 600;
	border-radius: var(--radius);
}
.skip:focus { top: 8px; color: var(--white); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--flip { transform: scaleX(-1); }
.i-fill { fill: none; }

.glyph { width: 1.4em; height: 1.4em; flex: none; }
.glyph .a { fill: var(--amber); }
.glyph .g { fill: var(--green); }
.glyph .k { fill: var(--ink-strong); }
.glyph--xl { width: 56px; height: 56px; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Nagłówek */

.site-header {
	position: relative;
	z-index: 20;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 60px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink-strong);
	text-decoration: none;
}
.brand:hover { color: var(--ink-strong); }
.brand__mark { width: 38px; height: 38px; }
.brand__name {
	font: 800 1.375rem/1 var(--font-display);
	letter-spacing: -0.02em;
	white-space: nowrap;
}
.brand__num { color: var(--green-brand); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav details { position: static; }
.nav__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: var(--radius);
	color: var(--ink-strong);
	font: 650 1rem/1 var(--font-display);
	list-style: none;
	cursor: pointer;
	user-select: none;
}
.nav__button::-webkit-details-marker { display: none; }
.nav__button:hover { background: var(--paper); }
.nav__button--icon { padding: 0; width: 44px; justify-content: center; }
details[open] > .nav__button { background: var(--glow); }

.nav__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	padding: 24px var(--gutter) 28px;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 18px 30px -18px rgb(38 30 27 / 0.25);
}
.nav__panel > * { max-width: var(--wrap); margin-inline: auto; }
.nav__panel .topics { columns: 2; column-gap: 24px; }
.nav__pages {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 20px auto 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
	font: 650 1rem/1.4 var(--font-display);
}
.nav__pages a { color: var(--ink-strong); text-decoration: none; }
.nav__pages a:hover { color: var(--green-ink); }

details[open] .nav__panel { animation: panel-in 220ms var(--ease-out); }
@keyframes panel-in {
	from { opacity: 0; transform: translateY(-6px); }
}

@media (min-width: 720px) {
	.nav__panel .topics { columns: 4; }
}

/* Wyszukiwarka */

.search {
	display: flex;
	max-width: 640px;
	border: 1.5px solid var(--ink-soft);
	border-radius: var(--radius);
	background: var(--white);
}
.search:focus-within { border-color: var(--amber-ink); box-shadow: 0 0 0 3px var(--glow-strong); }
.search__input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 14px;
	border: 0;
	background: transparent;
	color: var(--ink-strong);
	font: inherit;
	font-size: 1rem;
}
.search__input:focus { outline: none; }
.search__input::placeholder { color: var(--ink-soft); }
.search__button {
	display: grid;
	place-items: center;
	width: 48px;
	border: 0;
	background: none;
	color: var(--ink-strong);
	cursor: pointer;
}
.search__button:hover { color: var(--amber-ink); }

/* Tematy */

.topics { margin: 0; padding: 0; list-style: none; }
.topics li { break-inside: avoid; }
.topics__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	margin-inline: -10px;
	border-radius: var(--radius);
	color: var(--ink-strong);
	font: 600 1rem/1.3 var(--font-display);
	text-decoration: none;
}
.topics__link:hover,
.topics__link[aria-current] { background: var(--glow); color: var(--ink-strong); }
.topics__name { flex: 1; }
.topics__name::first-letter { text-transform: uppercase; }
.topics__count {
	color: var(--ink-soft);
	font: 500 0.875rem/1 var(--font-body);
	font-variant-numeric: tabular-nums;
}

/* Układ z sidebarem */

.site-main { display: block; }

.layout {
	display: grid;
	gap: 56px;
	padding-bottom: 72px;
}
.layout__main { min-width: 0; }

@media (min-width: 1000px) {
	.layout {
		grid-template-columns: minmax(0, 720px) 300px;
		justify-content: space-between;
		gap: 64px;
	}
}

/* Sidebar */

.sidebar { display: grid; gap: 40px; align-content: start; }
@media (min-width: 1000px) {
	.sidebar { padding-top: 32px; }
}
.sidebar__title {
	margin: 0 0 12px;
	font-size: 1.125rem;
}
.sidebar__sticky { position: sticky; top: 24px; }

.latest { margin: 0; padding: 0; list-style: none; }
.latest__item { padding: 10px 0; border-top: 1px solid var(--line); }
.latest__item:first-child { border-top: 0; padding-top: 0; }
.latest__item a {
	color: var(--ink-strong);
	font: 600 1rem/1.35 var(--font-display);
	text-decoration: none;
}
.latest__item a:hover { color: var(--green-ink); text-decoration: underline; text-decoration-color: var(--amber); }

/* Reklamy: zarezerwowane miejsce, wyraźnie oddzielone od treści */

.ad {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 6px;
	margin: 40px 0;
	padding: 10px 0 14px;
	background: var(--paper);
	border-radius: var(--radius);
}
.ad__label {
	margin: 0;
	color: var(--ink-soft);
	font: 500 0.75rem/1 var(--font-body);
	letter-spacing: 0.02em;
}
.ad .adsbygoogle { width: 100%; }
/* Responsywna reklama w treści: na telefonie kwadrat na całą szerokość (~1:1), od 720 px 280 px wysokości.
   Rezerwa = reklama + etykieta i odstępy (56 px), zmierzone na produkcji. */
.ad--inline { min-height: calc(min(100vw, 480px) + 56px); }
@media (min-width: 720px) {
	.ad--inline { min-height: 336px; }
}
.ad--sidebar { margin: 0; min-height: 636px; }
.ad--sidebar .adsbygoogle { width: 300px; }

/* Lista wpisów („rzeka”) */

.listing-head { padding: 32px 0 8px; }
.listing-head__title {
	margin: 0;
	font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
	max-width: 20ch;
}
.listing-head__title--home::first-letter { text-transform: uppercase; }
.listing-head__topic { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.listing-head__topic .listing-head__title::first-letter { text-transform: uppercase; }
.listing-head__desc { max-width: 60ch; color: var(--ink); }
.listing-head__lead {
	margin: 20px 0 0;
	color: var(--ink-soft);
	font: 600 1rem/1.3 var(--font-display);
}
.listing-head .search { margin-top: 20px; }

.river { margin-top: 8px; }
.river__item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	grid-template-areas:
		"media media"
		"count body";
	column-gap: 12px;
	padding: 28px 0;
	border-top: 1px solid var(--line);
}
.river__item:first-child { border-top: 0; }

.river__media {
	grid-area: media;
	display: block;
	margin-bottom: 16px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--paper);
	aspect-ratio: 16 / 10;
}
.river__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.river__item:hover .river__media img { transform: scale(1.03); }

.river__count {
	grid-area: count;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0;
}
.river__num {
	position: relative;
	color: var(--amber-ink);
	font: 800 2.75rem/0.9 var(--font-display);
	font-variant-numeric: lining-nums;
	letter-spacing: -0.03em;
}
.river__unit { margin-top: 6px; color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.2; }

.river__body { grid-area: body; min-width: 0; }
.river__title {
	margin: 6px 0 8px;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	line-height: 1.15;
}
.river__title a { color: var(--ink-strong); text-decoration: none; }
.river__title a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
.river__excerpt {
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.river__meta { margin: 0; color: var(--ink-soft); font-size: 0.875rem; }

.river__item--lead { padding-top: 16px; }
.river__item--lead .river__title { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem); letter-spacing: -0.02em; }
.river__item--lead .river__num { font-size: 3.5rem; }
.river__item--lead .river__excerpt { -webkit-line-clamp: 3; }

@media (min-width: 720px) {
	.river__item {
		grid-template-columns: 88px minmax(0, 1fr) 220px;
		grid-template-areas: "count body media";
		column-gap: 24px;
		align-items: start;
	}
	.river__media { margin-bottom: 0; }
	.river__num { font-size: 3.25rem; }
	.river__item--lead {
		grid-template-columns: 88px minmax(0, 1fr);
		grid-template-areas:
			"media media"
			"count body";
	}
	.river__item--lead .river__media { margin-bottom: 24px; }
	.river__item--lead .river__num { font-size: 4.5rem; }
}

/* Kategoria przy wpisie */

.cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--green-ink);
	font: 650 0.875rem/1.2 var(--font-display);
	text-decoration: none;
}
.cat span::first-letter { text-transform: uppercase; }
.cat .glyph { width: 20px; height: 20px; }
.cat:hover { color: var(--ink-strong); }
.cat--lg { font-size: 1rem; }
.cat--lg .glyph { width: 26px; height: 26px; }

/* Okruszki (Yoast) */

.crumbs {
	margin-bottom: 16px;
	color: var(--ink-soft);
	font-size: 0.875rem;
	line-height: 1.4;
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--ink-strong); }
.crumbs .breadcrumb_last { color: var(--ink); }

/* Wpis */

.post-head { padding-top: 28px; padding-bottom: 24px; }
.post-head__title {
	margin: 12px 0 16px;
	max-width: 22ch;
	font-size: clamp(2rem, 1.25rem + 3.2vw, 3.5rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.03em;
}
.post-head--page .post-head__title { margin-top: 0; }

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.9375rem;
}
.meta__ideas {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ink-strong);
	font: 700 1rem/1 var(--font-display);
}
.meta__ideas .icon { color: var(--amber-ink); }
.meta__ideas .i-fill { fill: var(--amber); stroke: var(--amber-ink); }
.meta__sep { color: var(--line); }

.post-hero { margin: 0 auto 40px; padding-inline: 0; }
.post-hero img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	max-height: 620px;
	object-fit: cover;
}
@media (min-width: 720px) {
	.post-hero { padding-inline: var(--gutter); }
	.post-hero img { aspect-ratio: 2 / 1; max-height: 540px; border-radius: var(--radius); }
}

/* Przełącznik „Ekran nie zgaśnie” */

.lamp {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	margin: 0 0 32px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.lamp[hidden] { display: none; }
.lamp__switch {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink-strong);
	font: 700 1rem/1.2 var(--font-display);
	cursor: pointer;
}
.lamp__track {
	position: relative;
	width: 48px;
	height: 28px;
	border-radius: 14px;
	background: #d9d1ce;
	transition: background 200ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.lamp__knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--white);
	box-shadow: 0 1px 3px rgb(38 30 27 / 0.3);
	transition: transform 240ms var(--ease-out);
}
.lamp__hint { margin: 0; color: var(--ink-soft); font-size: 0.875rem; line-height: 1.4; }
.lamp.is-on { background: var(--glow); border-color: var(--glow-strong); }
.lamp.is-on .lamp__track {
	background: var(--amber);
	box-shadow: 0 2px 14px 2px rgb(248 168 56 / 0.55);
	animation: filament 520ms ease-out;
}
.lamp.is-on .lamp__knob { transform: translateX(20px); }

@keyframes filament {
	0% { box-shadow: 0 0 0 0 rgb(248 168 56 / 0); }
	35% { box-shadow: 0 2px 16px 3px rgb(248 168 56 / 0.7); }
	50% { box-shadow: 0 2px 6px 0 rgb(248 168 56 / 0.25); }
	100% { box-shadow: 0 2px 14px 2px rgb(248 168 56 / 0.55); }
}

/* Treść wpisu */

.entry { max-width: 720px; }
.entry > * { margin-top: 0; }
.entry p, .entry ul, .entry ol, .entry figure, .entry blockquote, .entry table { margin: 0 0 1.15em; }
.entry h2 { margin: 2em 0 0.6em; font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); line-height: 1.15; }
.entry h3 { margin: 1.8em 0 0.5em; font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.4375rem); }
.entry h4 { margin: 1.6em 0 0.4em; font-size: 1.1875rem; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li { margin-bottom: 0.4em; padding-left: 0.2em; }
.entry ul li::marker { color: var(--amber-ink); }
.entry ol li::marker { color: var(--amber-ink); font-family: var(--font-display); font-weight: 750; }
.entry strong { color: var(--ink-strong); font-weight: 650; }
.entry img { display: block; border-radius: var(--radius); }
.entry .wp-caption,
.entry figure { max-width: 100%; }
.entry .wp-caption-text,
.entry figcaption { margin-top: 8px; color: var(--ink-soft); font-size: 0.875rem; line-height: 1.45; }
.entry .aligncenter { margin-inline: auto; }
.entry iframe[src*="youtube"],
.entry iframe[src*="vimeo"],
.entry iframe[src*="facebook"] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); margin-bottom: 1.15em; }
.entry blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 1px solid var(--amber);
	color: var(--ink-strong);
	font-size: 1.1em;
}
.entry hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.entry .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.15em; }
.entry .gallery-columns-1 { grid-template-columns: 1fr; }
.entry .gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry .gallery-item { margin: 0; }
.entry .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.entry .gallery br { display: none; }

/* Pomysły: numer jak zapalona żarówka. Promienie z logo są tłem numeru, więc zawsze stoją nad cyfrą. */

.entry--ideas {
	--rays: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 19' fill='none' stroke='%23f8a838' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M22.0 10.0L22.0 2.0M29.4 12.5L34.3 6.2M14.6 12.5L9.7 6.2M33.0 17.1L40.3 13.9M11.0 17.1L3.7 13.9'/%3E%3C/svg%3E");
	--bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f8a838' stroke='%23a35d00' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0-3.5 10.9c.6.4.9 1.1.9 1.8V17h5.2v-1.3c0-.7.3-1.4.9-1.8A6 6 0 0 0 12 3Z'/%3E%3Cpath fill='none' d='M9.8 20h4.4M10.6 22.5h2.8'/%3E%3C/svg%3E");
	--glow-fill: radial-gradient(closest-side, var(--glow-strong), rgb(255 226 166 / 0)) center 75% / 100% 85% no-repeat;
	--numeral: clamp(3rem, 2.2rem + 3vw, 4.5rem);
}

.entry--ideas .idea { position: relative; margin-top: 2.6em; }

/* Numer: z data-idea albo z treści nagłówka (.idea__n). */
.entry--ideas .idea:not(.idea--num):not(.idea--own)::before,
.entry--ideas .idea__n {
	display: block;
	width: max-content;
	min-width: 1.6em; /* tyle co promienie: przy jednej cyfrze nie są ucinane */
	margin-bottom: 0.12em;
	padding: 0.6em 0.16em 0;
	background: var(--rays) center top / 1.45em 0.63em no-repeat, var(--glow-fill);
	color: var(--amber-ink);
	font: 800 var(--numeral) / 0.9 var(--font-display);
	letter-spacing: -0.04em;
	text-align: center;
	font-variant-numeric: lining-nums;
}
.entry--ideas .idea:not(.idea--num):not(.idea--own)::before { content: attr(data-idea); }
.entry--ideas .idea__p { color: var(--amber); }

/* „Trik 1: …”: żarówka nad nagłówkiem, cyfra w tekście podświetlona. */
.entry--ideas .idea--own::before {
	content: "";
	display: block;
	width: 1.5em;
	height: 1.75em;
	margin-bottom: 0.1em;
	background: var(--rays) center top / 1.45em 0.63em no-repeat, var(--bulb) center bottom / 0.85em 0.95em no-repeat, var(--glow-fill);
	font-size: 2.75rem;
}
.entry--ideas .idea__k { color: var(--amber-ink); }

@media (min-width: 1240px) {
	.entry--ideas .idea:not(.idea--num):not(.idea--own)::before,
	.entry--ideas .idea__n,
	.entry--ideas .idea--own::before {
		position: absolute;
		right: calc(100% + 20px);
		bottom: -0.04em;
		margin: 0;
	}
	.entry--ideas .idea--own::before { bottom: -0.1em; }
}

/* Wiersz pomysłu z przyciskiem „Zrobione” (dodawany przez JS) */

.idea-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	column-gap: 16px;
	margin: 2.6em 0 0.6em;
}
.idea-row .idea { margin: 0; }
.idea-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 12px 0 8px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--white);
	color: var(--ink-soft);
	font: 600 0.875rem/1 var(--font-display);
	cursor: pointer;
	transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.idea-toggle:hover { border-color: var(--amber); color: var(--ink-strong); }
.idea-toggle[aria-pressed="true"] { background: var(--glow); border-color: var(--amber); color: var(--ink-strong); }
.idea-toggle[aria-pressed="true"] .i-fill { fill: var(--amber); stroke: var(--amber-ink); }
.idea-toggle[aria-pressed="true"] .icon { color: var(--amber-ink); }
.idea-row.is-done .idea::before,
.idea-row.is-done .idea__n { --glow-fill: radial-gradient(closest-side, var(--amber), rgb(248 168 56 / 0)) center 75% / 100% 85% no-repeat; }
.idea-row.is-resumed { animation: resumed 1800ms var(--ease-out); }

@keyframes resumed {
	0%, 30% { background: var(--glow); }
}

@media (max-width: 519px) {
	.idea-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.idea-toggle { padding: 0; width: 40px; justify-content: center; }
}

/* Powrót do lektury (dodawany przez JS) */

.resume {
	position: fixed;
	left: 50%;
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 4px;
	max-width: calc(100vw - 24px);
	padding: 6px 6px 6px 14px;
	background: var(--ink-strong);
	color: var(--white);
	border-radius: 28px;
	box-shadow: 0 10px 30px -8px rgb(38 30 27 / 0.45);
	transform: translateX(-50%);
	animation: resume-in 320ms var(--ease-out);
}
.resume .icon { color: var(--amber); }
.resume .i-fill { fill: var(--amber); stroke: var(--amber); }
.resume__go,
.resume__close {
	min-height: 40px;
	border: 0;
	background: none;
	color: inherit;
	font: 600 0.9375rem/1.2 var(--font-display);
	cursor: pointer;
}
.resume__go span { color: var(--amber); text-decoration: underline; text-underline-offset: 0.2em; }
.resume__close { display: grid; place-items: center; width: 40px; border-radius: 50%; }
.resume__close:hover { background: rgb(255 255 255 / 0.1); }
.resume.is-leaving { opacity: 0; transform: translate(-50%, 12px); transition: opacity 200ms, transform 200ms; }

@keyframes resume-in {
	from { opacity: 0; transform: translate(-50%, 16px); }
}

/* Stopka wpisu */

.post-foot {
	display: grid;
	gap: 20px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.share__label { margin: 0; color: var(--ink-strong); font: 700 1rem/1 var(--font-display); }
.share__list { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.share__link {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink-strong);
	transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.share__link:hover { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--white); }
.share__link .icon { width: 20px; height: 20px; }

.tags { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.875rem; }
.tags__label { color: var(--ink-soft); }
.tags a {
	padding: 4px 10px;
	border-radius: 14px;
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
}
.tags a:hover { background: var(--glow); color: var(--ink-strong); }

.post-nav { margin-top: 40px; }
.post-nav .nav-links { display: grid; gap: 16px; }
.post-nav a {
	display: grid;
	gap: 6px;
	padding: 16px 0;
	border-top: 1px solid var(--line);
	text-decoration: none;
}
.post-nav__dir { color: var(--ink-soft); font-size: 0.875rem; }
.post-nav__title { color: var(--ink-strong); font: 700 1.125rem/1.25 var(--font-display); }
.post-nav a:hover .post-nav__title { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
@media (min-width: 720px) {
	.post-nav .nav-links { grid-template-columns: 1fr 1fr; gap: 32px; }
	.post-nav .nav-next { text-align: right; }
}

/* Zobacz też */

.related { padding-top: 48px; padding-bottom: 80px; border-top: 1px solid var(--line); }
.related__title { margin: 0 0 24px; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: -0.02em; }
.related__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.related__item { display: grid; align-content: start; gap: 8px; }
.related__link { display: grid; gap: 12px; color: var(--ink-strong); text-decoration: none; }
.related__link img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--paper); }
.related__name { font: 700 1.125rem/1.2 var(--font-display); }
.related__link:hover .related__name { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.related__count { color: var(--amber-ink); font: 700 0.875rem/1 var(--font-display); }

/* Paginacja */

.pagination { margin-top: 24px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink-strong);
	font: 650 1rem/1 var(--font-display);
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}
a.page-numbers:hover { border-color: var(--amber); background: var(--glow); color: var(--ink-strong); }
.page-numbers.current { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--white); }
.page-numbers.dots { border: 0; min-width: auto; }

/* Strony (Kontakt, Polecamy) i formularz CF7 */

.entry--page { padding-bottom: 80px; }
.wpcf7 label { display: block; color: var(--ink-strong); font: 650 1rem/1.4 var(--font-display); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	border: 1.5px solid #b9aeaa;
	border-radius: var(--radius);
	background: var(--white);
	color: var(--ink-strong);
	font: 400 1rem/1.5 var(--font-body);
}
.wpcf7 input:focus,
.wpcf7 textarea:focus { outline: none; border-color: var(--amber-ink); box-shadow: 0 0 0 3px var(--glow-strong); }
.wpcf7 textarea { min-height: 180px; resize: vertical; }
.wpcf7-submit {
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink-strong);
	color: var(--white);
	font: 700 1rem/1 var(--font-display);
	cursor: pointer;
}
.wpcf7-submit:hover { background: var(--amber-ink); }
.wpcf7-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.wpcf7-not-valid-tip { margin-top: 4px; color: #a8261c; font-size: 0.875rem; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border: 0; border-radius: var(--radius); background: var(--paper); }
.wpcf7 form.sent .wpcf7-response-output { background: #e6f4e8; color: var(--green-ink); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { background: #fbe9e7; color: #8f1f16; }

/* 404 i brak wyników */

.notfound { padding-top: 48px; padding-bottom: 96px; }
.notfound__mark { width: 96px; height: 96px; opacity: 0.35; filter: grayscale(1); }
.notfound__title { margin: 16px 0 12px; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); max-width: 18ch; letter-spacing: -0.03em; }
.notfound__text { max-width: 56ch; margin: 0 0 24px; }
.notfound__cols { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 720px) {
	.notfound__cols { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.empty { padding: 24px 0; }
.empty__text { max-width: 56ch; }

/* Stopka strony */

.site-footer {
	background: var(--ink-strong);
	color: #e8e0dc;
	font-size: 0.9375rem;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--amber); text-decoration-color: var(--amber); }
.site-footer__inner {
	display: grid;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 40px;
}
@media (min-width: 900px) {
	.site-footer__inner { grid-template-columns: 1.2fr 2fr 1fr; gap: 64px; }
}
.brand--light,
.brand--light:hover { color: var(--white); }
.brand--light .brand__num { color: var(--green); }
.site-footer__slogan { margin: 12px 0 0; color: #c9bfbb; max-width: 30ch; }
.site-footer__slogan::first-letter { text-transform: uppercase; }
.site-footer__heading { margin: 0 0 12px; color: var(--white); font-size: 1rem; }
.site-footer .topics--compact { columns: 2; column-gap: 24px; }
.site-footer .topics__link { color: #e8e0dc; padding-block: 6px; font-weight: 500; }
.site-footer .topics__link:hover,
.site-footer .topics__link[aria-current] { background: rgb(255 255 255 / 0.08); color: var(--white); }
.site-footer .glyph .k { fill: #cfc5c1; }
.site-footer__links { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer__copy {
	margin: 0 auto;
	padding-top: 20px;
	padding-bottom: 28px;
	border-top: 1px solid rgb(255 255 255 / 0.12);
	color: #b3a8a4;
	font-size: 0.875rem;
}

/* Ograniczony ruch */

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