/*
Theme Name: Z Maryją ku przemianie życia
Description: Minimalistyczny, jednostronicowy motyw inspirowany Matką Bożą Nieustającej Pomocy. Ekran wejściowy z wizerunkiem, tytułem, hasłem i losowarką (wtyczka „Z Maryją – losowarka inspiracji”). Bez menu, bez komentarzy, bez zewnętrznych czcionek i skryptów.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Author: Z Maryją ku przemianie życia
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zmt
Update URI: false
*/

:root {
	--zmt-navy: #102A43;
	--zmt-blue: #315C85;
	--zmt-gold: #C9A24D;
	--zmt-cream: #F3EBDD;
	--zmt-white: #FAF7F0;
	--zmt-serif: Georgia, Cambria, "Times New Roman", Times, serif;
	--zmt-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--zmt-white);
	background-image: radial-gradient(ellipse at 50% -10%, rgba(201, 162, 77, 0.16), rgba(201, 162, 77, 0) 60%);
	background-repeat: no-repeat;
	color: var(--zmt-navy);
	font-family: var(--zmt-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	overflow-wrap: break-word;
}

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

a {
	color: var(--zmt-blue);
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--zmt-navy);
}

a:focus-visible {
	outline: 3px solid var(--zmt-blue);
	outline-offset: 2px;
	border-radius: 2px;
}

.skip-link {
	position: absolute;
	left: 0.75rem;
	top: -4rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	border-radius: 0.5rem;
	background: var(--zmt-navy);
	color: #fff;
	font-weight: 600;
}

.skip-link:focus {
	top: 0.75rem;
	color: #fff;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

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

.zmt-main {
	flex: 1 0 auto;
	width: 100%;
	max-width: 70rem;
	margin: 0 auto;
	padding: 1rem 1rem 1.5rem;
}

.zmt-hero {
	display: grid;
	gap: 0.75rem;
}

.zmt-icon {
	margin: 0 auto;
	width: 7.5rem;
}

.zmt-icon__img,
.zmt-icon__placeholder {
	display: block;
	width: 100%;
	height: auto;
}

.zmt-icon__img {
	border: 3px solid var(--zmt-gold);
	border-radius: 0.5rem;
	box-shadow: 0 0 0 4px var(--zmt-white), 0 0 0 5px rgba(201, 162, 77, 0.6), 0 8px 24px rgba(16, 42, 67, 0.18);
}

.zmt-head {
	text-align: center;
	margin-bottom: 0.9rem;
}

.zmt-title {
	margin: 0;
	font-family: var(--zmt-serif);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.005em;
	color: var(--zmt-navy);
}

.zmt-ornament {
	display: block;
	width: 7rem;
	height: 0.75rem;
	margin: 0.45rem auto 0.4rem;
	color: var(--zmt-gold);
}

.zmt-motto {
	margin: 0;
	font-family: var(--zmt-serif);
	font-size: 1.125rem;
	font-style: italic;
	line-height: 1.4;
	color: var(--zmt-blue);
}

.zmt-invite {
	margin: 0.5rem 0 0;
	font-size: 1.0625rem;
	line-height: 1.45;
}

.zmt-message {
	margin: 1.25rem 0 0;
	font-family: var(--zmt-serif);
	font-size: 1.25rem;
	line-height: 1.4;
	text-align: center;
	color: var(--zmt-navy);
}

.zmt-message strong {
	display: block;
	font-weight: 600;
	color: var(--zmt-blue);
}

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

/* ---------- Strony dokumentów ---------- */

.zmt-doc {
	width: 100%;
	max-width: 46rem;
	margin: 0 auto;
	padding: 1.25rem 1rem 2rem;
	flex: 1 0 auto;
}

.zmt-doc__back {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 0.4rem 0;
	font-size: 1rem;
}

.zmt-doc__title {
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--zmt-gold);
	font-family: var(--zmt-serif);
	font-size: 1.85rem;
	font-weight: 600;
	line-height: 1.25;
}

.zmt-doc h2 {
	margin: 1.75rem 0 0.5rem;
	font-family: var(--zmt-serif);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.3;
}

.zmt-doc h3 {
	margin: 1.25rem 0 0.4rem;
	font-size: 1.1rem;
}

.zmt-doc p,
.zmt-doc li {
	max-width: 70ch;
}

.zmt-doc ul,
.zmt-doc ol {
	padding-left: 1.4rem;
}

.zmt-doc table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.98rem;
}

.zmt-doc th,
.zmt-doc td {
	padding: 0.5rem;
	border: 1px solid rgba(16, 42, 67, 0.25);
	text-align: left;
	vertical-align: top;
}

.zmt-doc .wp-block-table {
	overflow-x: auto;
	margin: 1rem 0;
}

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

.zmt-footer {
	flex-shrink: 0;
	padding: 1rem 1rem 1.25rem;
	border-top: 1px solid rgba(201, 162, 77, 0.45);
	text-align: center;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #33475b;
}

.zmt-footer p {
	margin: 0.2rem 0;
}

.zmt-footer a {
	display: inline-block;
	padding: 0.35rem 0.25rem;
	color: #33475b;
}

.zmt-footer a:hover {
	color: var(--zmt-navy);
}

.zmt-footer__sep {
	margin: 0 0.3rem;
	color: var(--zmt-gold);
}

/* ---------- Większe ekrany ---------- */

@media (min-width: 380px) {
	.zmt-icon {
		width: 8.5rem;
	}
}

@media (min-width: 600px) {
	.zmt-main {
		padding-top: 1.75rem;
	}

	.zmt-hero {
		max-width: 38rem;
		margin: 0 auto;
	}

	.zmt-icon {
		width: 10rem;
	}

	.zmt-title {
		font-size: 2.2rem;
	}

	.zmt-doc {
		padding-top: 2rem;
	}
}

@media (min-width: 900px) {
	.zmt-main {
		padding: 2.5rem 2rem 2rem;
	}

	.zmt-hero {
		max-width: none;
		grid-template-columns: minmax(15rem, 20rem) minmax(0, 40rem);
		justify-content: center;
		align-items: start;
		gap: 3.5rem;
	}

	.zmt-icon {
		width: 100%;
		position: sticky;
		top: 2rem;
	}

	.zmt-head {
		text-align: left;
	}

	.zmt-ornament {
		margin-left: 0;
	}

	.zmt-title {
		font-size: 2.6rem;
	}

	.zmt-motto {
		font-size: 1.3rem;
	}

	.zmt-invite {
		font-size: 1.125rem;
	}

	.zmt-message {
		text-align: left;
	}

	.zmt-message strong {
		display: inline;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.skip-link,
	.zmt-footer {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
	}
}
