/*
Theme Name: StudioSetup
Theme URI: https://studiosetup.pl
Author: BartekDziedzicTV
Description: Lekki motyw pod bazę sprzętu studiosetup.pl. Minimalistyczny, bez zależności, zaprojektowany razem z wtyczką StudioSetup Gear.
Version: 1.1.5
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: studiosetup
*/

/*
 * Jeden jasny motyw, świadomie bez wariantu ciemnego.
 * Kolor wchodzi wyłącznie rozmytymi plamami gradientu, nigdy płaskim tłem.
 */

:root {
	color-scheme: light;

	--sst-text: #1d1d1f;
	--sst-soft: #6e6e73;
	--sst-faint: #86868b;
	--sst-bg: #fbfbfd;
	--sst-surface: #ffffff;
	--sst-surface-2: #f5f5f7;
	--sst-line: rgba(0, 0, 0, 0.08);
	--sst-accent: #0071e3;

	/* Chłodny grafit zamiast koloru — bliżej materiałów Apple dla profesjonalistów. */
	/* Te same wartości co w tokenach wtyczki — wcześniej różniły się o włos. */
	--sst-tint-1: rgba(22, 34, 54, 0.055);
	--sst-tint-2: rgba(22, 34, 54, 0.032);
	--sst-tint-accent: rgba(0, 113, 227, 0.05);

	/* Skala zaokrągleń wspólna z wtyczką: co 4 px. */
	--sst-r-xs: 6px;
	--sst-r-sm: 10px;
	--sst-r-md: 14px;
	--sst-r-lg: 18px;
	--sst-r-xl: 22px;
	--sst-r-2xl: 26px;
	--sst-r-pill: 999px;
	--sst-radius: var(--sst-r-xl);

	--sst-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.06);
	--sst-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.08), 0 24px 60px rgba(0, 0, 0, 0.14);
	--sst-shadow-btn: 0 1px 2px rgba(0, 66, 133, 0.22), 0 6px 18px rgba(0, 113, 227, 0.20);
	--sst-shadow-btn-hover: 0 2px 4px rgba(0, 66, 133, 0.24), 0 10px 24px rgba(0, 113, 227, 0.26);
	--sst-ring: 0 0 0 3px rgba(0, 113, 227, 0.32);

	--sst-wash-tl: radial-gradient(90% 80% at 6% -4%, var(--sst-tint-1), transparent 64%);
	--sst-wash-tr: radial-gradient(100% 120% at 98% 0%, var(--sst-tint-accent), transparent 60%);
	--sst-paper-soft: linear-gradient(180deg, #ffffff, #fafbfc);
	--sst-header: 64px;
	--sst-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}



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

body {
	margin: 0;
	background: var(--sst-bg);
	background-image:
		radial-gradient(60% 40% at 100% 0%, var(--sst-tint-accent), transparent 62%),
		radial-gradient(50% 34% at 0% 2%, var(--sst-tint-1), transparent 60%);
	background-repeat: no-repeat;
	background-attachment: fixed;
	color: var(--sst-text);
	font-family: var(--sst-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.sst-nav-open { overflow: hidden; }

a { color: var(--sst-accent); }

img { max-width: 100%; height: auto; }

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }

.sst-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 18px;
	background: var(--sst-surface);
	border-radius: 0 0 12px 0;
}

.sst-skip:focus { left: 0; }

/* ---------- Nagłówek ---------- */

.sst-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 251, 253, 0.78);
	backdrop-filter: saturate(1.8) blur(20px);
	-webkit-backdrop-filter: saturate(1.8) blur(20px);
	border-bottom: 1px solid var(--sst-line);
}

.sst-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1180px;
	min-height: var(--sst-header);
	margin: 0 auto;
	padding: 0 24px;
}

.sst-brand-text {
	color: var(--sst-text);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.sst-brand img { max-height: 34px; width: auto; }

.sst-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sst-menu li { margin: 0; }

.sst-menu a {
	display: block;
	padding: 8px 14px;
	border-radius: var(--sst-r-pill);
	color: var(--sst-soft);
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background 200ms ease, color 200ms ease;
}

.sst-menu a:hover { color: var(--sst-text); background: var(--sst-surface-2); }

.sst-menu .current-menu-item > a,
.sst-menu .current_page_item > a {
	color: var(--sst-text);
	background: var(--sst-surface);
	box-shadow: var(--sst-shadow);
}

.sst-burger {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--sst-r-md);
	background: transparent;
	cursor: pointer;
}

.sst-burger span {
	display: block;
	width: 18px;
	height: 1.5px;
	margin: 4px auto;
	background: var(--sst-text);
	transition: transform 240ms ease, opacity 240ms ease;
}

.sst-burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.sst-burger[aria-expanded="true"] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

@media (max-width: 860px) {
	.sst-burger { display: block; }

	.sst-nav {
		position: fixed;
		inset: var(--sst-header) 0 0;
		padding: 20px 24px 40px;
		background: var(--sst-bg);
		transform: translateY(-8px);
		opacity: 0;
		pointer-events: none;
		transition: opacity 220ms ease, transform 220ms ease;
		overflow-y: auto;
	}

	.sst-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }

	.sst-menu { flex-direction: column; align-items: stretch; gap: 2px; }

	.sst-menu a {
		padding: 14px 16px;
		border-radius: var(--sst-r-md);
		font-size: 17px;
	}
}

/* ---------- Widoczność z klawiatury ---------- */

/*
 * Motyw nie miał żadnego stanu focus poza linkiem pomijającym — z klawiatury
 * nie było widać, gdzie się jest. Jeden pierścień, ten sam co we wtyczce.
 */

.sst-menu a:focus-visible,
.sst-footer-menu a:focus-visible,
.sst-btn:focus-visible,
.sst-card:focus-visible,
.sst-burger:focus-visible,
.sst-post-item a:focus-visible,
.sst-content a:focus-visible {
	outline: none;
	box-shadow: var(--sst-ring);
}

.sst-menu a:focus-visible,
.sst-footer-menu a:focus-visible,
.sst-content a:focus-visible {
	border-radius: var(--sst-r-xs);
}

.sst-btn:focus-visible {
	box-shadow: var(--sst-shadow-btn), var(--sst-ring);
}

.sst-card:focus-visible {
	transform: translateY(-3px);
}

/* ---------- Układ ---------- */

.sst-main { min-height: 60vh; }

.sst-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.sst-narrow { max-width: 760px; }

.sst-center { text-align: center; }

.sst-page-head { padding: 48px 0 28px; }

.sst-page-title {
	margin: 0;
	font-size: clamp(30px, 5vw, 46px);
	font-weight: 600;
}

.sst-meta { color: var(--sst-faint); font-size: 13.5px; }

.sst-content {
	padding-bottom: 64px;
	font-size: 17px;
	line-height: 1.72;
}

.sst-content > * + * { margin-top: 1.1em; }

.sst-content h2 {
	margin-top: 2em;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 600;
}

.sst-content p { max-width: 68ch; }

.sst-cover {
	margin: 0 0 32px;
	border-radius: var(--sst-radius);
	background: var(--sst-paper-soft);
	overflow: hidden;
}

/* ---------- Strona główna ---------- */

.sst-hero {
	position: relative;
	padding: 84px 0 56px;
}

/* Miękka poświata za nagłówkiem — plamy koloru, nie pas gradientu */
.sst-hero::before {
	content: "";
	position: absolute;
	inset: -80px 0 0;
	z-index: -1;
	background:
		radial-gradient(52% 62% at 8% -4%, var(--sst-tint-1), transparent 66%),
		radial-gradient(46% 58% at 98% 40%, var(--sst-tint-2), transparent 66%);
	pointer-events: none;
}

.sst-eyebrow {
	margin: 0 0 12px;
	color: var(--sst-faint);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sst-hero-title {
	margin: 0 0 18px;
	max-width: 16ch;
	font-size: clamp(34px, 6vw, 60px);
	font-weight: 600;
}

.sst-hero-lede {
	margin: 0 0 30px;
	max-width: 54ch;
	color: var(--sst-soft);
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.6;
}

.sst-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.sst-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border: 0;
	border-radius: var(--sst-r-pill);
	background: linear-gradient(180deg, #0a84ff, #0071e3);
	color: #fff;
	font-size: 15.5px;
	font-weight: 500;
	text-decoration: none;
	box-shadow: var(--sst-shadow-btn);
	transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.sst-btn:hover {
	transform: translateY(-1px);
	background: linear-gradient(180deg, #1a8fff, #0077ed);
	box-shadow: var(--sst-shadow-btn-hover);
}

.sst-btn-quiet {
	background: rgba(255, 255, 255, 0.9);
	color: var(--sst-text);
	box-shadow: var(--sst-shadow);
	backdrop-filter: saturate(1.6) blur(12px);
	-webkit-backdrop-filter: saturate(1.6) blur(12px);
}

.sst-btn-quiet:hover {
	background: #ffffff;
	box-shadow: var(--sst-shadow-lg);
}

.sst-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	padding-bottom: 64px;
}

.sst-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 30px;
	border: 1px solid var(--sst-line);
	border-radius: var(--sst-radius);
	background:
		var(--sst-wash-tr),
		var(--sst-paper-soft);
	color: inherit;
	text-decoration: none;
	transition: transform 240ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 240ms ease;
}

.sst-card:hover { transform: translateY(-3px); box-shadow: var(--sst-shadow-lg); }

.sst-card h2 { margin: 0; font-size: 21px; font-weight: 600; }

.sst-card p { margin: 0; color: var(--sst-soft); font-size: 14.5px; line-height: 1.6; }

.sst-card-cta {
	margin-top: auto;
	padding-top: 8px;
	color: var(--sst-accent);
	font-size: 14px;
	font-weight: 500;
}

.sst-strip {
	position: relative;
	margin-top: 24px;
	padding: 72px 0 88px;
	border-top: 1px solid var(--sst-line);
	background:
		radial-gradient(50% 70% at 50% 0%, var(--sst-tint-1), transparent 68%);
}

.sst-strip h2 { margin: 0 0 8px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 600; }

.sst-strip p { margin: 0 0 20px; color: var(--sst-soft); }

/* ---------- Lista wpisów ---------- */

.sst-post-list { margin: 0 0 48px; padding: 0; list-style: none; display: grid; gap: 20px; }

.sst-post-item a { font-size: 19px; font-weight: 600; text-decoration: none; }

.sst-post-item p { margin: 4px 0 0; color: var(--sst-soft); font-size: 15px; }

/* ---------- Stopka ---------- */

.sst-footer {
	margin-top: 40px;
	padding: 40px 0;
	border-top: 1px solid var(--sst-line);
}

.sst-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.sst-footer-brand { margin: 0; font-weight: 600; letter-spacing: -0.02em; }

.sst-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sst-footer-menu a { color: var(--sst-soft); font-size: 14px; text-decoration: none; }

.sst-footer-menu a:hover { color: var(--sst-text); }

.sst-footer-note {
	flex: 1 1 100%;
	margin: 0;
	color: var(--sst-faint);
	font-size: 12.5px;
}

/* Wtyczka dostaje pełną szerokość kontenera */

.sst-content .ssg-app { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Baner strony ---------- */

.sst-banner {
	position: relative;
	margin: 24px 0 30px;
	border-radius: var(--sst-radius);
	overflow: hidden;
	background: var(--sst-surface-2);
	isolation: isolate;
}

.sst-banner img {
	display: block;
	width: 100%;
	height: clamp(140px, 19vw, 190px);
	object-fit: cover;
}

.sst-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 16, 24, 0.12) 0%, rgba(12, 16, 24, 0.62) 100%);
}

/* Baner rysowany — dla stron bez wgranego zdjęcia. */

.sst-banner-art {
	display: block;
	width: 100%;
	height: clamp(140px, 19vw, 190px);
}

/*
 * Rysunek jest już ciemny, więc nakładka pod tekst może być dużo lżejsza —
 * ta sama co przy zdjęciu zrobiłaby z niego czarną plamę.
 */
.sst-banner.is-drawn::after {
	background: linear-gradient(180deg, rgba(12, 16, 24, 0) 30%, rgba(12, 16, 24, 0.55) 100%);
}

.sst-banner-text {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 1;
	padding: 22px clamp(20px, 3.4vw, 34px);
	color: #fff;
}

.sst-banner-text .sst-page-title {
	margin: 0;
	color: #fff;
	text-shadow: 0 1px 24px rgba(0, 0, 0, 0.3);
}

.sst-banner-lede {
	max-width: 62ch;
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(13px, 1.4vw, 14.5px);
	line-height: 1.55;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.sst-page-lede {
	max-width: 58ch;
	margin: 10px 0 0;
	color: var(--sst-soft);
	font-size: 16px;
	line-height: 1.6;
}

/* Zdjęcie w nagłówku strony głównej */

.sst-hero-media {
	margin-top: 34px;
	border-radius: var(--sst-radius);
	overflow: hidden;
	box-shadow: var(--sst-shadow-lg);
}

.sst-hero-media.is-drawn .sst-banner-art {
	height: clamp(200px, 34vw, 360px);
}

.sst-hero-media img {
	display: block;
	width: 100%;
	height: clamp(220px, 40vw, 420px);
	object-fit: cover;
}
