/*
Theme Name: Passport Footnotes
Description: Minimal one-column business blog (EN/RU) with an author box, Author and Contact templates.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: passportfootnotes
*/

:root {
	--accent: #6d3fd6;
	--text: #222;
	--muted: #6f6f78;
	--line: #ececf1;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: var(--text); font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2 { line-height: 1.25; }
.pf-col { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.pf-main { flex: 1; padding-top: 40px; padding-bottom: 56px; }
.pf-muted { color: var(--muted); font-size: 14px; margin: 0; }
.pf-muted a { color: inherit; }

/* Header */
.pf-top { border-bottom: 1px solid var(--line); }
.pf-top__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.pf-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text); font-weight: 700; font-size: 18px; text-decoration: none; }
.pf-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.pf-nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.pf-nav a:hover { color: var(--accent); }
.pf-langs { font-size: 14px; color: var(--muted); }
.pf-langs strong { color: var(--accent); }

/* Home */
.pf-banner { display: block; width: 100%; border-radius: 8px; margin-bottom: 28px; }
.pf-intro { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.pf-intro h1 { font-size: 34px; margin: 0 0 10px; }
.pf-intro p { font-size: 19px; color: var(--muted); margin: 0; }
.pf-title { font-size: 32px; margin: 8px 0 20px; }

/* Post list */
.pf-posts { list-style: none; margin: 0; padding: 0; }
.pf-post { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.pf-post > div { flex: 1; }
.pf-post h2 { font-size: 22px; margin: 4px 0 8px; }
.pf-post h2 a { color: var(--text); text-decoration: none; }
.pf-post h2 a:hover { color: var(--accent); }
.pf-post p:last-child { margin: 0; }
.pf-post__img { flex: 0 0 160px; }
.pf-post__img img { display: block; width: 160px; height: 107px; object-fit: cover; border-radius: 6px; }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; gap: 12px; }
.pagination .current { font-weight: 700; }

/* Article */
.pf-cover { display: block; width: 100%; border-radius: 8px; margin-bottom: 20px; }
.pf-text { font-size: 18px; }
.pf-text h2 { font-size: 24px; margin-top: 1.6em; }
.pf-text blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 3px solid var(--accent); color: #444; }
.pf-text img { border-radius: 6px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 16px; margin: 28px 0; font-size: 15px; }

/* Author */
.pf-author { display: flex; gap: 18px; align-items: center; margin-top: 36px; padding: 20px; background: #f7f5fc; border-radius: 10px; }
.pf-author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pf-author p { margin: 0; font-size: 15px; color: #444; }
.pf-author .pf-author__name { font-weight: 700; font-size: 17px; color: var(--text); margin-bottom: 4px; }
.pf-profile { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 24px; }
.pf-profile img { width: 220px; height: 220px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pf-profile h2 { margin-top: 0; }

/* Forms */
.pf-search { display: flex; gap: 8px; margin-top: 36px; }
.pf-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #d9d9e3; border-radius: 6px; font: inherit; }
.pf-search button, .pf-form button, .comment-form .submit { padding: 10px 20px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.pf-form { display: grid; gap: 8px; max-width: 520px; }
.pf-form label { font-size: 14px; font-weight: 600; margin-top: 8px; }
.pf-form input, .pf-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d9d9e3; border-radius: 6px; font: inherit; }
.pf-form button { justify-self: start; margin-top: 12px; }
.pf-hidden { position: absolute; left: -9999px; }
.pf-note { padding: 10px 14px; border-radius: 6px; background: #eaf6ee; color: #1f6b3a; }
.pf-note--bad { background: #fbecec; color: #9b2c2c; }
.pf-comments { margin-top: 32px; }

/* Footer */
.pf-bottom { border-top: 1px solid var(--line); padding: 22px 0; font-size: 14px; }
.pf-bottom p { margin: 0 0 6px; }

@media (max-width: 600px) {
	body { font-size: 16px; }
	.pf-brand { width: 100%; }
	.pf-intro h1 { font-size: 27px; }
	.pf-intro p { font-size: 17px; }
	.pf-title { font-size: 26px; }
	.pf-post { flex-direction: column-reverse; gap: 12px; }
	.pf-post__img, .pf-post__img img { flex-basis: auto; width: 100%; height: auto; aspect-ratio: 3 / 2; }
	.pf-profile { flex-direction: column; }
	.pf-author { align-items: flex-start; }
	.pf-author img { width: 64px; height: 64px; }
	.post-navigation .nav-links { flex-direction: column; }
}
