@charset "UTF-8";
/*
Theme Name: Twenty Twenty-One Child (Fides Style)
Theme URI: https://psychotestywejherowo.pl/
Template: twentytwentyone
Author: Custom
Description: Motyw potomny Twenty Twenty-One nawiązujący układem, kolorystyką i typografią do psychotestywejherowo.pl.
Version: 1.0.6
Text Domain: twentytwentyone-child
*/

/*********************************************************************************/
/* Zmienne kolorów i podstawy                                                    */
/*********************************************************************************/

:root {
	--fides-accent: #d52349;
	--fides-accent-hover: #e53359;
	--fides-accent-active: #c51349;
	--fides-dark: #252122;
	--fides-dark-alt: #353132;
	--fides-text: #5d5d5d;
	--fides-bg-section: #f7f7f7;
	--fides-border: #dddddd;
	--fides-footer-text: #c5c4c4;
	--fides-footer-muted: #858484;
	/*
	 * Na oryginalnej stronie (psychotestywejherowo.pl) import Source Sans Pro
	 * leci po http:// na stronie https://, więc przeglądarki blokują go jako
	 * mixed content i font nigdy się nie ładuje — realnie widoczna jest tam
	 * domyślna czcionka szeryfowa przeglądarki. Odwzorowujemy to tutaj
	 * celowo, żeby wygląd bloga był zgodny z tym, co użytkownicy faktycznie
	 * widzą na oryginalnej stronie (nie z tym, co CSS tamtej strony zakładał).
	 */
	--fides-font: Georgia, 'Times New Roman', Times, serif;
}

body,
input,
textarea,
select {
	font-family: var(--fides-font);
	font-weight: 300;
	color: var(--fides-text);
	font-size: 1.05rem;
	line-height: 1.75;
}

/*
 * The parent theme re-declares its own (system-font) family on several
 * components with higher selector specificity than a plain "body" rule, so
 * it wins the cascade even though our stylesheet loads after the parent's.
 * Pin those components back to the site's actual font (Source Sans Pro,
 * same as the original site) explicitly.
 */
.entry-content,
.entry-summary,
.site-footer,
.primary-navigation,
.wp-block-quote,
.wp-block-pullquote,
button,
.button,
.faux-button,
.wp-block-button__link {
	font-family: var(--fides-font);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fides-font);
	color: var(--fides-dark);
	font-weight: 700;
}

/*
 * The parent theme's fluid heading scale runs up to 6rem on desktop, which
 * reads as oversized on this site. Replace it with a compact, tidy scale.
 * (Equal-specificity rules loaded after the parent stylesheet win the
 * cascade, except where the parent adds an extra class for more specificity
 * — those are matched explicitly below.)
 */
h1, .entry-title,
.singular .entry-title {
	font-size: 1.9rem;
	line-height: 1.25;
}

h2 {
	font-size: 1.45rem;
	line-height: 1.3;
}

h3 {
	font-size: 1.15rem;
	line-height: 1.35;
}

h4 {
	font-size: 1.05rem;
	line-height: 1.4;
}

h5, h6 {
	font-size: 1rem;
	line-height: 1.4;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	color: inherit;
	text-decoration: none;
}

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

a:hover {
	color: var(--fides-accent-hover);
}

/*********************************************************************************/
/* Przyciski                                                                     */
/*********************************************************************************/

.fides-button,
.wp-block-button__link,
input[type="submit"],
button {
	display: inline-block;
	border-radius: 5px;
	background: var(--fides-accent);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	padding: 0.65em 1.5em;
	border: 0;
	cursor: pointer;
	transition: background-color .25s ease-in-out;
}

.fides-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover {
	background: var(--fides-accent-hover);
}

.fides-button:active,
.wp-block-button__link:active,
input[type="submit"]:active,
button:active {
	background: var(--fides-accent-active);
}

.fides-button.alt {
	background: var(--fides-dark);
}

.fides-button.alt:hover {
	background: var(--fides-dark-alt);
}

/*********************************************************************************/
/* Nagłówek strony (header.php)                                                 */
/*********************************************************************************/

.fides-header {
	background: #ffffff;
	border-bottom: solid 1px #ccc;
	padding: 2em 0 1.5em;
	text-align: center;
}

.fides-header .fides-logo {
	margin: 0 0 0.75em;
	font-size: 2.25em;
	font-weight: 900;
	letter-spacing: -0.03em;
}

.fides-header .fides-logo a {
	color: var(--fides-dark);
}

.fides-header .fides-tagline {
	font-style: italic;
	color: var(--fides-text);
	margin: 0 0 1em;
}

.fides-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.35em;
}

.fides-nav li {
	font-style: italic;
}

.fides-nav a {
	display: inline-block;
	border-radius: 5px;
	color: var(--fides-text);
	text-decoration: none;
	padding: 0.6em 1.2em;
	transition: background-color .25s ease-in-out;
}

.fides-nav a:hover {
	background: #f3f3f3;
	color: var(--fides-text);
}

.fides-nav .current-menu-item > a {
	background: var(--fides-accent);
	color: #fff !important;
	font-weight: 700;
}

/*********************************************************************************/
/* Menu mobilne (hamburger)                                                     */
/* Odwzorowuje panel boczny #navPanel z psychotestywejherowo.pl (Skel/Dopetrope)*/
/*********************************************************************************/

.fides-nav-toggle {
	display: none;
	position: absolute;
	top: 1em;
	left: 1em;
	width: 44px;
	height: 40px;
	border: 0;
	border-radius: 5px;
	background: rgba(150, 150, 150, 0.75);
	cursor: pointer;
	padding: 0;
	z-index: 20;
}

.fides-nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px auto;
	background: #fff;
}

.fides-mobile-nav {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 80%;
	max-width: 320px;
	height: 100%;
	background: var(--fides-dark);
	box-shadow: inset -3px 0 5px 0 rgba(0, 0, 0, 0.35);
	transform: translateX(-100%);
	transition: transform .25s ease-in-out;
	z-index: 30;
	overflow-y: auto;
}

.fides-mobile-nav.is-open {
	transform: translateX(0);
}

.fides-mobile-nav ul {
	list-style: none;
	margin: 3.5em 0 0;
	padding: 0;
}

.fides-mobile-nav a {
	display: block;
	color: #888;
	text-decoration: none;
	height: 44px;
	line-height: 44px;
	padding: 0 1.5em;
	border-top: solid 1px rgba(255, 255, 255, 0.05);
	font-style: italic;
}

.fides-mobile-nav li:first-child a {
	border-top: 0;
}

.fides-mobile-nav .current-menu-item > a {
	color: #fff;
}

.fides-nav-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 25;
}

.fides-nav-overlay.is-open {
	display: block;
}

body.fides-nav-is-open {
	overflow: hidden;
}

@media (max-width: 736px) {
	.fides-nav-toggle {
		display: block;
	}

	.fides-header {
		position: relative;
	}

	.fides-nav {
		display: none;
	}
}

@media (min-width: 737px) {
	.fides-mobile-nav,
	.fides-nav-overlay {
		display: none !important;
	}
}

/*********************************************************************************/
/* Hero / baner (front-page.php)                                                */
/*********************************************************************************/

.fides-hero {
	background: var(--fides-dark);
	text-align: center;
	padding: 6em 1.5em;
}

.fides-hero-inner {
	display: inline-block;
	max-width: 40em;
}

.fides-hero-inner h1 {
	color: #fff;
	font-size: 2.25em;
	margin: 0 0 0.5em;
}

.fides-hero-inner p {
	color: var(--fides-accent);
	font-size: 1.25em;
	margin: 0 0 1.25em;
}

/*********************************************************************************/
/* Siatka wpisów (front-page.php)                                               */
/*********************************************************************************/

.fides-posts-section {
	background: var(--fides-bg-section);
	padding: 4em 1.5em;
}

.fides-posts-section > h2 {
	text-align: center;
	font-size: 1.75em;
	margin: 0 0 1.5em;
}

.fides-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2em;
	max-width: 1100px;
	margin: 0 auto;
}

.fides-post-card {
	background: #fff;
	border-radius: 5px;
	border-top: 4px solid var(--fides-accent);
	padding: 1.75em;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fides-post-card h3 {
	font-size: 1.2em;
	margin: 0 0 0.5em;
}

.fides-post-card .fides-post-excerpt {
	margin: 0 0 1.25em;
	font-size: 0.95em;
}

/*********************************************************************************/
/* Tło strony i "box" artykułu (single.php, page.php)                           */
/* Odwzorowuje układ #main-wrapper + .box z psychotestywejherowo.pl/o-nas:      */
/* ciemne tło strony, jasnoszara strefa treści, biały "box" na artykuł.        */
/*********************************************************************************/

body {
	background: var(--fides-dark);
}

/* Ograniczone do .singular (pojedynczy wpis/strona) — front-page.php ma
 * własny pełnoszerokościowy układ (.fides-hero / .fides-posts-section) i nie
 * powinien zostać ściśnięty do szerokości boksu artykułu. */
.singular #content.site-content {
	background: var(--fides-bg-section);
	padding: 4em 0;
}

.singular .site-main {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 1.5em;
}

.singular .site-main > article,
.singular .site-main > .navigation.post-navigation {
	background: #ffffff;
	padding: 2.75em 1.75em;
	margin: 0 0 2em;
}

.singular .site-main > article {
	border-bottom: solid 1px #ccc;
}

.single .entry-title {
	font-size: 2.3rem;
	letter-spacing: -0.015em;
}

.singular .entry-header {
	padding-top: 1em;
	margin: 0 0 2em;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.post-thumbnail {
	display: block;
	margin: -2.75em -1.75em 2em;
}

.post-thumbnail img {
	display: block;
	width: 100%;
}

.navigation.post-navigation .nav-links {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 3em;
}

.navigation.post-navigation .nav-previous,
.navigation.post-navigation .nav-next {
	flex: 1 1 0;
	max-width: none;
	margin: 0;
}

.navigation.post-navigation .nav-next {
	text-align: right;
}

.navigation.post-navigation a {
	text-decoration: none;
}

.navigation.post-navigation .meta-nav {
	display: flex;
	align-items: center;
	gap: 0.5em;
	color: var(--fides-accent);
	font-weight: 700;
	margin: 0 0 0.5em;
}

.navigation.post-navigation .nav-next .meta-nav {
	justify-content: flex-end;
}

.navigation.post-navigation .post-title {
	color: var(--fides-text);
	line-height: 1.4;
}

/*********************************************************************************/
/* Metadane wpisu (data publikacji / autor / edytuj / kategorie)                */
/*********************************************************************************/

.entry-footer,
.posted-by,
.post-taxonomies,
.entry-header .posted-on,
.entry-header .byline {
	display: none;
}

/*********************************************************************************/
/* Stopka (footer.php)                                                          */
/*********************************************************************************/

.fides-footer {
	background: var(--fides-dark);
	color: var(--fides-footer-muted);
	padding: 4em 1.5em 2em;
}

.fides-footer-columns {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2.5em;
	max-width: 1100px;
	margin: 0 auto 2.5em;
}

@media (max-width: 700px) {
	.fides-footer-columns {
		grid-template-columns: 1fr;
	}
}

.fides-footer h2,
.fides-footer h3 {
	color: #fff;
	font-size: 1.1em;
}

.fides-footer a {
	color: var(--fides-footer-text);
}

.fides-footer a:hover {
	color: #fff;
}

.fides-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fides-footer-links li {
	display: flex;
	align-items: flex-start;
	gap: 1em;
	margin: 0 0 1.5em;
}

.fides-link-icon {
	flex-shrink: 0;
	width: 2.5em;
	height: 2.5em;
	margin-top: 0.15em;
	background: var(--fides-accent);
	clip-path: polygon(0 0, 65% 0, 100% 50%, 65% 100%, 0 100%);
}

.fides-link-body h3 {
	margin: 0 0 0.3em;
	font-size: 1.05em;
}

.fides-link-body h3 a {
	color: #fff;
}

.fides-link-body p {
	margin: 0;
	font-size: 0.9em;
	color: var(--fides-footer-muted);
}

.fides-footer-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.75em;
}

.fides-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3em;
	height: 3em;
	border-radius: 6px;
	background: #888;
	color: #fff !important;
	font-size: 1.2em;
	transition: background-color .25s ease-in-out;
}

.fides-footer-social a.fides-social-facebook {
	background: #4a67a3;
}

.fides-footer-social a.fides-social-facebook:hover {
	background: #3b5998;
}

.fides-footer-social a.fides-social-googleplus {
	background: #dd4b39;
}

.fides-footer-social a.fides-social-googleplus:hover {
	background: #c23321;
}

.fides-footer-social a.fides-social-instagram:hover,
.fides-footer-social a.fides-social-twitter:hover,
.fides-footer-social a.fides-social-linkedin:hover,
.fides-footer-social a.fides-social-youtube:hover,
.fides-footer-social a.fides-social-default:hover {
	background: var(--fides-accent);
}

.fides-copyright {
	text-align: center;
	font-size: 0.9em;
}

.fides-copyright .fides-copyright-links {
	display: inline-block;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 5px;
	padding: 0.6em 1.5em;
	margin: 0 0 1em;
}

.fides-copyright .fides-copyright-links a {
	margin: 0 0.5em;
}
