/*
Theme Name: pub/archivist - WordPress.com
Theme URI: https://wordpress.com/themes/archivist/
Description: 
Version: 1.0.0
Author: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption {
    text-wrap: balance;
}
p {
    text-wrap: pretty;
}

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--secondary);
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: .0625em !important;
	text-underline-offset: .15em;
}
body, 
#page, 
.site-content, 
.archive-page {
    background-color: #ffffff !important;
    background-image: none !important; /* Usuwa ewentualne tekstury tła */
}

/* 2. Zmiana czcionki na standardową (bezszeryfową) */
body, 
button, 
input, 
select, 
textarea, 
.site-title, 
.entry-title, 
.entry-meta, 
.archive-item-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* 3. Dostosowanie koloru tekstu dla lepszej czytelności na białym tle */
body, 
.entry-content, 
.archive-item-excerpt {
    color: #333333;
    line-height: 1.6;
}

/* 4. Usunięcie efektu "typewriter" (jeśli był animowany lub stylizowany) */
.site-title a, 
.entry-title {
    text-transform: none;
    letter-spacing: normal;
}
/* Wymuszenie standardowego fontu na absolutnie wszystkim */
* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Specyficzne poprawki dla elementów Archivist */
pre, 
code, 
kbd, 
samp, 
tt, 
var, 
.site-description, 
.entry-meta, 
.nav-links, 
.widget-title,
.main-navigation a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-variant-ligatures: none !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Jeśli nagłówek nadal stawia opór */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 700 !important;
}