/*
Theme Name: Psychoterapia z Sensem
Theme URI: https://psychoterapiazsensem.pl
Author: Maciej Kryczka
Author URI: https://psychoterapiazsensem.pl
Description: Autorski block theme dla gabinetu psychoterapeutycznego "Psychoterapia z Sensem". Elegancki, spokojny, oparty na duzej bialej przestrzeni, typografii Cormorant Garamond + Jost oraz lagodnej palecie lupkowo-bezowej. Zero animacji, maksimum czytelnosci. Projekt zakłada latwe zarzadzanie trescia przez Gutenberg.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: psychoterapia-z-sensem
Tags: full-site-editing, block-patterns, minimal, one-column, custom-colors, custom-menu, translation-ready
*/

/* --------------------------------------------------------------
   Dodatkowe style — wiekszosc konfiguracji siedzi w theme.json.
   Tutaj tylko to, co trudno zapisac deklaratywnie.
-------------------------------------------------------------- */

/* Plynne skalowanie typografii + stabilny rytm */
html {
	scroll-behavior: auto; /* bez animacji, zgodnie z brief */
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Naglowki — lepsza typografia przez font-feature-settings */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	font-feature-settings: "kern", "liga", "dlig";
	text-wrap: balance;
}

/* Paragrafy — poprawiona czytelnosc */
p {
	text-wrap: pretty;
	hyphens: auto;
}

/* Ograniczenie szerokosci czytelnego tekstu */
.entry-content > p,
.wp-block-post-content > p {
	max-width: 65ch;
}

/* Blockquote — lewa linia w kolorze terracotta */
.wp-block-quote,
blockquote {
	border-left: 3px solid var(--wp--preset--color--terracotta);
	padding: 0.25rem 0 0.25rem 1.75rem;
	margin: 2.5rem 0;
	font-style: italic;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
	color: var(--wp--preset--color--slate);
}

.wp-block-quote cite,
blockquote cite {
	display: block;
	margin-top: 1rem;
	font-size: 0.875rem;
	font-style: normal;
	font-family: var(--wp--preset--font-family--jost);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* Przyciski — konsystentny styl */
.wp-block-button__link {
	transition: none; /* bez animacji */
	letter-spacing: 0.02em;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
	background-color: var(--wp--preset--color--slate-dark) !important;
	color: var(--wp--preset--color--cream) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1px;
}

/* Linki w tekscie */
.wp-block-post-content a,
.entry-content a {
	color: var(--wp--preset--color--terracotta);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

.wp-block-post-content a:hover,
.entry-content a:hover {
	color: var(--wp--preset--color--slate-dark);
}

/* Karty — subtelny kontur zamiast ciezkiego cienia */
.is-style-card {
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--50);
	border-radius: 2px;
}

/* Separator — elegancki, cienki */
.wp-block-separator {
	border: none;
	border-top: 1px solid var(--wp--preset--color--border);
	max-width: 6rem;
	margin: 3rem auto;
}

.wp-block-separator.is-style-wide {
	max-width: 100%;
}

/* Menu — podkreslenie aktywnego elementu */
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation .current_page_item > a {
	color: var(--wp--preset--color--terracotta);
}

/* Naglowki strony — mniej agresywny wrap */
.wp-block-post-title {
	text-wrap: balance;
}

/* Lepsze formularze kontaktowe (CF7 / WPForms) */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 1rem;
	color: var(--wp--preset--color--slate-dark);
}

input:focus,
textarea:focus {
	outline: 2px solid var(--wp--preset--color--terracotta);
	outline-offset: 2px;
}

/* Drobnostka — screen-reader only */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Redukcja ruchu — zgodnie z zerem animacji uzytkownika */
@media (prefers-reduced-motion: no-preference) {
	/* Nic — swiadomie bez przejsc */
}
