/*
Theme Name: Православен пат
Description: Тема за веб-изданието на списанието „Православен пат“. Изведена од Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.1.2
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: pravoslaven-pat
*/

/* Colors, fonts and base typography are in theme.json; this file holds the layout
   and the magazine-specific details that theme.json cannot express. */

.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 !important;
	width: 1px; word-wrap: normal !important;
}

/* ---------- header: just the logo ---------- */
.pp-header {
	padding: 3.5rem 1.25rem 2.25rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.pp-logo {
	display: block; margin: 0 auto; width: min(560px, 88vw); aspect-ratio: 609.36 / 178.72;
	background: var(--wp--preset--color--logo);
	-webkit-mask: url(assets/logo.svg) center / contain no-repeat;
	        mask: url(assets/logo.svg) center / contain no-repeat;
}

/* ---------- two-column layout ---------- */
.pp-wrap { padding: 3rem 1.25rem 4rem; }
.wp-block-columns.pp-cols { column-gap: 4.5rem; row-gap: 3rem; margin: 0; }
@media (max-width: 781px) { .pp-wrap { padding-top: 2rem; } }
.pp-main { min-width: 0; }

/* ---------- byline, title, subtitle, meta (list + single) ---------- */
.pp-byline {
	margin: 0 0 .35rem;
	font-family: var(--wp--preset--font-family--vollkorn);
	font-style: italic; font-weight: 500; font-size: 1.05rem; line-height: 1.35;
	color: var(--wp--preset--color--brown);
}
.pp-byline a { color: inherit; text-decoration: none; }
.pp-byline a:hover { text-decoration: underline; color: inherit; }
.pp-byline .wp-block-post-terms__separator { opacity: .6; }

.pp-title { margin: 0 !important; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.pp-article-head .pp-title { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }

.pp-subtitle {
	margin: .5rem 0 0 !important;
	font-family: var(--wp--preset--font-family--vollkorn);
	font-style: italic; font-weight: 500; font-size: 1.25rem; line-height: 1.35;
}
.pp-subtitle:empty { display: none; }

.pp-meta {
	margin-top: 1rem !important; gap: .35rem .9rem !important;
	font-size: .82rem; color: var(--wp--preset--color--muted);
}
.pp-meta .wp-block-post-date { color: inherit; }
.pp-issue a {
	display: inline-block; padding: .1rem .55rem;
	border: 1px solid var(--wp--preset--color--gold); border-radius: 2px;
	color: var(--wp--preset--color--brown); text-decoration: none; font-weight: 500;
}
.pp-issue a:hover { background: var(--wp--preset--color--gold); color: #fff; }

/* ---------- post list ---------- */
.pp-post-list .wp-block-post-template { margin: 0; padding: 0; }
.pp-card {
	padding-bottom: 2.75rem; margin-bottom: 2.75rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.pp-post-list .wp-block-post-template > li:last-child .pp-card { border-bottom: 0; margin-bottom: 1rem; }
.pp-card > * { margin-block-start: 0; }

/* featured image: above the byline in lists, under the title block on the article page */
.pp-thumb { margin: 0 0 1.25rem !important; }
.pp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-thumb a { display: block; overflow: hidden; }
.pp-thumb a img { transition: transform .4s ease; }
.pp-thumb a:hover img { transform: scale(1.02); }
.pp-hero { margin: 0 0 2.25rem !important; }
.pp-hero img { display: block; width: 100%; height: auto; }
.pp-excerpt { margin-top: 1.1rem !important; }
.pp-excerpt .wp-block-post-excerpt__excerpt { margin: 0; }
.pp-excerpt .wp-block-post-excerpt__more-text { margin: .6rem 0 0; }
.pp-excerpt .wp-block-post-excerpt__more-link { font-weight: 500; font-size: .95rem; text-decoration: none; }
.pp-excerpt .wp-block-post-excerpt__more-link:hover { text-decoration: underline; }
.pp-post-list .wp-block-query-pagination { font-size: .95rem; font-weight: 500; }
.pp-post-list .wp-block-query-pagination a { text-decoration: none; }

.pp-archive-head { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.pp-archive-head .wp-block-query-title { margin: 0; color: var(--wp--preset--color--red); font-size: clamp(1.9rem, 4vw, 2.6rem); }
.pp-archive-head .wp-block-term-description { color: var(--wp--preset--color--muted); }
.pp-archive-head .pp-issue-year {
	margin: .35rem 0 0;
	font-family: var(--wp--preset--font-family--vollkorn); font-style: italic; font-weight: 500;
	font-size: 1.2rem; color: var(--wp--preset--color--brown);
}

/* ---------- single article ---------- */
.pp-article-head {
	margin-bottom: 2.25rem; padding-bottom: 1.75rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.pp-article-head > * { margin-block-start: 0; }
.pp-content { max-width: 40rem; }
.pp-content p { hyphens: auto; }
/* drop cap on the first ordinary paragraph (skips intro notes, questions etc., which carry a pp- class) */
.pp-content > p:not([class*="pp-"]):not(p:not([class*="pp-"]) ~ p)::first-letter {
	float: left; margin: .06em .1em 0 0; padding: 0;
	font-family: var(--wp--preset--font-family--vollkorn);
	font-style: normal; font-weight: 400; font-size: 4.4em; line-height: .82;
	color: var(--wp--preset--color--red);
}
.pp-content h2 { margin-top: 2.2em; font-size: 1.55rem; line-height: 1.25; }
.pp-content h3 { margin-top: 1.8em; font-size: 1.3rem; }
.pp-content sup a, .pp-content sup.fn a { text-decoration: none; font-size: .78em; padding: 0 .1em; }

/* pull quote = the magazine's brown quote box */
.pp-content .wp-block-pullquote {
	margin: 2.2rem 0; padding: 1.6rem 1.75rem 1.5rem; border: 0;
	background: var(--wp--preset--color--brown); color: #fff; text-align: left;
}
.pp-content .wp-block-pullquote blockquote { margin: 0; }
/* "„" hangs below the baseline. Vollkorn sets USE_TYPO_METRICS (952/441), so every browser puts the
   baseline at ~0.76em in a line-height:1 box and the mark's ink spans ~0.61–0.91em. The box below ends
   ~0.15em under the ink (≈10px at this size) and is pulled up into the padding. */
.pp-content .wp-block-pullquote blockquote::before {
	content: "„"; display: block; height: 1.05em; margin: -.5em 0 0;
	font: 700 4.5rem/1 var(--wp--preset--font-family--vollkorn); color: var(--wp--preset--color--gold);
}
.pp-content .wp-block-pullquote p {
	margin: 0; font-family: var(--wp--preset--font-family--vollkorn);
	font-style: italic; font-weight: 700; font-size: 1.35rem; line-height: 1.4;
}
.pp-content .wp-block-pullquote cite { color: rgba(255,255,255,.75); font-size: .85rem; font-style: normal; }

/* ordinary quote (citations inside the text) */
.pp-content .wp-block-quote {
	margin: 1.6rem 0; padding: .2rem 0 .2rem 1.25rem;
	border-left: 3px solid var(--wp--preset--color--gold);
	font-style: italic;
}

/* imported from the magazine: intro note, interview questions, signature, end notes */
.pp-content .pp-lead {
	font-family: var(--wp--preset--font-family--vollkorn); font-style: italic; font-weight: 500;
	font-size: 1.1rem; line-height: 1.5; color: var(--wp--preset--color--brown);
}
.pp-content .pp-question {
	margin-top: 2em;
	font-family: var(--wp--preset--font-family--vollkorn); font-style: italic; font-size: 1.12rem; line-height: 1.45;
	color: var(--wp--preset--color--red);
}
.pp-content .pp-question strong { font-weight: 700; }
.pp-content .pp-signature { text-align: right; font-style: italic; color: var(--wp--preset--color--muted); }
.pp-content .pp-note {
	margin-top: 2.2rem; font-size: .9rem; line-height: 1.55; font-style: italic;
	color: var(--wp--preset--color--muted);
}
.pp-content .pp-note + .pp-note { margin-top: .4rem; }
.pp-content .pp-privacy-link { font-size: 1.05rem; }
/* intro line on pages (Контакт, Импресум, Политика на приватност); article intro notes keep their size */
.pp-page-content .pp-lead { font-size: 1.3rem; }

/* Импресум page: role label above the names */
.pp-impresum > p { margin: 0 0 1.4rem; line-height: 1.55; }
.pp-impresum .pp-role {
	display: inline-block; margin-bottom: .15rem;
	font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--wp--preset--color--brown);
}

/* footnotes (core Footnotes block) */
.pp-content .wp-block-footnotes {
	margin-top: 3rem; padding: 1.25rem 0 0 1.3rem;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: .85rem; line-height: 1.55; color: var(--wp--preset--color--muted);
}
.pp-content .wp-block-footnotes li { margin-bottom: .4rem; }

.pp-article-foot {
	margin-top: 2.5rem !important; padding: 1.25rem 1.4rem;
	background: var(--wp--preset--color--paper-2); font-size: .92rem;
	max-width: 40rem;
}
.pp-article-foot > * { margin: 0 !important; }
.pp-article-foot:not(:has(.wp-block-post-terms)) { display: none; }
.pp-article-foot .wp-block-post-terms__prefix { font-weight: 600; }

/* ---------- sidebar ---------- */
.pp-side { font-size: .95rem; }
.pp-side > * + * { margin-top: 2.5rem; }
.pp-widget > * { margin-block-start: 0; }
.pp-widget-title {
	margin: 0 0 .9rem !important; padding-top: .7rem;
	border-top: 3px solid var(--wp--preset--color--red);
	font-size: 1.2rem; line-height: 1.2;
}

.pp-list, .pp-list ul { list-style: none; margin: 0; padding: 0; }
.pp-list li {
	padding: .45rem 0; line-height: 1.4;
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted); font-size: .95rem;
}
.pp-list li a { color: var(--wp--preset--color--ink); text-decoration: none; }
.pp-list li a:hover { color: var(--wp--preset--color--red); }
.pp-links li a::after { content: " →"; color: var(--wp--preset--color--gold); }

.pp-search .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--line); background: #fff; padding: 0;
}
.pp-search .wp-block-search__input { border: 0; padding: .65rem .8rem; background: transparent; font-size: .95rem; }
.pp-search .wp-block-search__button { margin: 0; padding: 0 1rem; font-size: .9rem; border-radius: 0; }

.pp-cover { margin: 0 0 .8rem; }
.pp-cover a { display: block; transition: transform .2s; }
.pp-cover a:hover { transform: translateY(-2px); }
.pp-cover img {
	display: block; width: 100%; height: auto;
	box-shadow: 0 1px 2px rgba(35,31,32,.12), 0 8px 24px -8px rgba(35,31,32,.35);
}

/* tag cloud: size comes from WordPress (how often a tag is used) */
.pp-tag-cloud.wp-block-tag-cloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .85rem; line-height: 1.25; }
.pp-tag-cloud.wp-block-tag-cloud a {
	margin: 0; color: var(--wp--preset--color--ink); text-decoration: none;
	font-family: var(--wp--preset--font-family--vollkorn); font-style: italic; font-weight: 500;
}
.pp-tag-cloud.wp-block-tag-cloud a:hover { color: var(--wp--preset--color--red); text-decoration: underline; }

/* ---------- footer ---------- */
.pp-footer {
	padding: 2rem 1.25rem 3rem; text-align: center;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: .85rem; color: var(--wp--preset--color--muted);
}
.pp-footer p { margin: .2rem 0; }
