/*
Theme Name: Hemingway Child – Parafia św. Mikołaja
Template: hemingway
Description: UWAGA: to jest motyw POTOMNY (child theme) motywu Hemingway i bez niego nie działa. NIE USUWAJ motywu Hemingway, nawet gdy nie jest aktywny. Motyw potomny Hemingway. Responsywne zdjęcie główne (osobny kadr na komputer i na telefon), tytuł z gradientem zamiast ciemnej ramki.
Version: 1.3.0
Text Domain: hemingway-child
*/

/* ==========================================================================
   CZCIONKI (dołączone do motywu, nic nie jest pobierane z zewnętrznych serwerów)
   Cormorant Garamond i Lato, licencja SIL OFL. Zakres latin-ext zawiera polskie litery.
   ========================================================================== */

@font-face {
	font-family: 'Hero Serif';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url( assets/fonts/cormorant-garamond-latin-ext-400-normal.woff2 ) format( 'woff2' );
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Hero Serif';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url( assets/fonts/cormorant-garamond-latin-400-normal.woff2 ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Hero Serif';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url( assets/fonts/cormorant-garamond-latin-ext-500-normal.woff2 ) format( 'woff2' );
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Hero Serif';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url( assets/fonts/cormorant-garamond-latin-500-normal.woff2 ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Hero Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url( assets/fonts/lato-latin-ext-400-normal.woff2 ) format( 'woff2' );
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Hero Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url( assets/fonts/lato-latin-400-normal.woff2 ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Hero Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url( assets/fonts/lato-latin-ext-700-normal.woff2 ) format( 'woff2' );
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Hero Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url( assets/fonts/lato-latin-700-normal.woff2 ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   USTAWIENIA DO SZYBKIEJ ZMIANY
   Wszystko, co zwykle chcemy poprawić, jest tutaj.
   ========================================================================== */

:root {
	/* Wysokość zdjęcia głównego na komputerze */
	--hero-height: 78vh;          /* zapas dla starych przeglądarek */
	--hero-min-height: 420px;
	--hero-max-height: 900px;

	/* Które miejsce zdjęcia ma zostać w kadrze, gdy trzeba je przyciąć.
	   Wartości: center, top, bottom, left, right albo np. "50% 30%". */
	--hero-pos-desktop: center;
	--hero-pos-mobile: center;

	/* Pionowe położenie napisu: center | flex-start (góra) | flex-end (dół) */
	--hero-text-y: center;
	--hero-text-y-mobile: flex-end;

	/* Kolory */
	--hero-text-color: #fff;
	--hero-accent: #c9a96e;        /* cienka kreska pod tytułem */

	/* Gradient pod napisem: siła przyciemnienia 0 (brak) do 1 (czarny).
	   Na komputerze idzie od lewej strony, na telefonie od dołu. */
	--hero-shade: 0.62;

	/* Maksymalna szerokość bloku z napisem i odstęp od lewej krawędzi zdjęcia */
	--hero-text-width: 640px;
	--hero-side-space: clamp( 24px, 8vw, 160px );
}

@supports ( height: 1svh ) {
	:root { --hero-height: 78svh; }
}

@media ( max-width: 800px ) {
	:root {
		--hero-height: 72vh;
		--hero-min-height: 380px;
		--hero-max-height: 760px;
	}
	@supports ( height: 1svh ) {
		:root { --hero-height: 72svh; }
	}
}

/* ==========================================================================
   ZDJĘCIE GŁÓWNE
   ========================================================================== */

.header-cover {
	overflow: hidden;
}

.header.section {
	position: relative;
	display: flex;
	align-items: var(--hero-text-y);
	justify-content: center;
	box-sizing: border-box;
	height: var(--hero-height);
	min-height: var(--hero-min-height);
	max-height: var(--hero-max-height);
	padding: 40px 0;
	background: #262626;
}

.hero-picture,
.hero-picture img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hero-picture {
	display: block;
}

.hero-picture img {
	object-fit: cover;
	object-position: var(--hero-pos-desktop);
}

/* gradient pod napisem: ciemny od lewej, znika w stronę prawej */
.header.section::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		90deg,
		rgba( 0, 0, 0, var(--hero-shade) ) 0%,
		rgba( 0, 0, 0, calc( var(--hero-shade) * 0.55 ) ) 35%,
		rgba( 0, 0, 0, 0 ) 70%
	);
	z-index: 1;
	pointer-events: none;
}

.header-inner {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 var(--hero-side-space);
	text-align: left;
}

/* Efekt paralaksy z motywu (global.js) jest wyłączony: przy stałej wysokości
   zdjęcia robiłby przerwę u góry. Napis też nie zanika podczas przewijania. */
.header.section {
	bottom: auto !important;
}

.blog-info {
	opacity: 1 !important;
}

/* ==========================================================================
   NAPIS: mały tytuł nad dużym, złota kreska, adres pod spodem
   ========================================================================== */

.blog-info {
	display: block;
	max-width: var(--hero-text-width);
	background: transparent;
	padding: 0;
	color: var(--hero-text-color);
	text-shadow: 0 1px 12px rgba( 0, 0, 0, 0.35 );
}

.blog-title {
	width: auto;
	margin: 0;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	font-family: 'Hero Serif', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	font-weight: 400;
	line-height: 1.08;
	color: var(--hero-text-color);
	cursor: default;
}

/* górny, mały wiersz: np. PARAFIA RZYMSKOKATOLICKA */
.blog-title-small {
	display: block;
	margin-bottom: 0.55em;
	font-family: 'Hero Sans', Lato, 'Helvetica Neue', Arial, sans-serif;
	font-size: clamp( 0.72rem, 0.62rem + 0.5vw, 1rem );
	font-weight: 400;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	line-height: 1.5;
}

/* duży wiersz: np. pw. św. Mikołaja */
.blog-title-main {
	display: block;
	font-size: clamp( 2.3rem, 1.2rem + 4.2vw, 4.6rem );
	font-weight: 500;
	letter-spacing: 0.005em;
}

/* cienka złota kreska pod tytułem */
.blog-description:before {
	content: "";
	display: block;
	width: 96px;
	height: 1px;
	margin: 22px 0 18px;
	background: var(--hero-accent);
}

.blog-description {
	margin: 0;
	text-align: left;
	font-family: 'Hero Sans', Lato, 'Helvetica Neue', Arial, sans-serif;
	font-size: clamp( 0.95rem, 0.85rem + 0.5vw, 1.2rem );
	font-weight: 400;
	letter-spacing: 0.06em;
	line-height: 1.6;
	color: var(--hero-text-color);
}

.blog-address,
.blog-phone {
	display: block;
}

/* ==========================================================================
   TELEFON: kadr pionowy, napis na dole, gradient od dołu
   ========================================================================== */

@media ( max-width: 800px ) {

	.header.section {
		align-items: var(--hero-text-y-mobile);
		padding: 0 0 28px;
	}

	.hero-picture img {
		object-position: var(--hero-pos-mobile);
	}

	.header.section::after {
		background: linear-gradient(
			0deg,
			rgba( 0, 0, 0, var(--hero-shade) ) 0%,
			rgba( 0, 0, 0, calc( var(--hero-shade) * 0.6 ) ) 40%,
			rgba( 0, 0, 0, 0 ) 80%
		);
	}

	.blog-title-small {
		letter-spacing: 0.2em;
	}

	.blog-title-main {
		font-size: clamp( 2.1rem, 1.4rem + 4.5vw, 3.2rem );
	}

	.blog-description:before {
		width: 72px;
		margin: 16px 0 14px;
	}

	.blog-description {
		letter-spacing: 0.04em;
	}
}
