/*
Theme Name: Феміда
Theme URI: https://example.org/
Author: ГО «ЦГПІ «Феміда»
Description: Тема сайту громадської організації «Центр громадсько-правових ініціатив «Феміда». Головна, новини, проєкти, команда, «Правовий дайджест», реквізити для внесків і форма заявки на правничу допомогу.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: femida
*/

:root {
	--f-bg: #F7F1E8;
	--f-paper: #FFFBF4;
	--f-sand: #EFE5D6;
	--f-line: #E3D8C6;
	--f-line-soft: #EDE3D3;
	--f-ink: #2A2522;
	--f-ink-2: #4A433D;
	--f-muted: #6B6158;
	--f-accent: #B4532A;
	--f-accent-ink: #9A4321;
	--f-accent-dark: #6A2E16;
	--f-tag-bg: #F3DFD2;
	--f-tag-ink: #7A3418;
	--f-on-dark: #F7F1E8;
	--f-on-dark-2: #D9CFC1;
	--f-on-dark-accent: #F0B593;
	--f-serif: 'Lora', Georgia, serif;
	--f-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--f-wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--f-bg);
	color: var(--f-ink);
	font-family: var(--f-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--f-accent-ink); }
a:hover { color: var(--f-accent-dark); }
:focus-visible { outline: 3px solid var(--f-accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 600; margin: 0; line-height: 1.15; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	position: fixed !important; top: 8px; left: 8px; z-index: 100000;
	background: var(--f-ink); color: var(--f-on-dark); padding: 12px 18px; border-radius: 10px;
}

.f-wrap { max-width: var(--f-wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.f-narrow { max-width: 1000px; }
.f-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--f-accent-ink); }
.f-h2 { font-size: clamp(32px, 3.6vw, 44px); }
.f-section { padding: 96px 0; }
.f-section--paper { background: var(--f-paper); border-top: 1px solid #E8DDCB; border-bottom: 1px solid #E8DDCB; padding: 88px 0; }
.f-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.f-section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.f-more { font-weight: 700; padding: 12px 0; text-decoration: none; }
.f-more:hover { text-decoration: underline; }

/* Buttons */
.f-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; border-radius: 999px;
	font: 700 15px/1 var(--f-sans); text-decoration: none; cursor: pointer;
	border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.f-btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.f-btn--accent { background: var(--f-accent); color: #fff; }
.f-btn--accent:hover { background: var(--f-accent-dark); color: #fff; }
.f-btn--outline { border-color: var(--f-ink); color: var(--f-ink); background: transparent; }
.f-btn--outline:hover { background: var(--f-ink); color: var(--f-on-dark); }
.f-btn--ghost { border: 1px solid #D5C7B1; color: var(--f-ink); background: transparent; font-weight: 600; min-height: 44px; padding: 0 18px; }

.f-tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--f-tag-bg); color: var(--f-tag-ink); line-height: 1.5; }
.f-tag--line { background: transparent; border: 1px solid #D5C7B1; color: var(--f-ink-2); font-weight: 600; }
.f-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Header */
.f-header { border-bottom: 1px solid var(--f-line); background: var(--f-bg); }
.f-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.f-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--f-ink); }
.f-brand:hover { color: var(--f-ink); }
.f-brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.f-brand__title { font-family: var(--f-serif); font-style: italic; font-weight: 600; font-size: 28px; }
.f-brand__sub { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--f-muted); }
.f-brand .custom-logo { max-height: 56px; width: auto; }
.f-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.f-nav a { display: block; padding: 10px 0; color: var(--f-ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.f-nav a:hover, .f-nav .current-menu-item > a, .f-nav .current_page_item > a { color: var(--f-accent-ink); }
.f-header__actions { display: flex; align-items: center; gap: 12px; }
.f-lang { display: flex; list-style: none; margin: 0; padding: 3px; border: 1px solid #D5C7B1; border-radius: 999px; }
.f-lang a { display: flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; font: 700 13px var(--f-sans); text-decoration: none; color: var(--f-ink); text-transform: uppercase; }
.f-lang .current-lang a, .f-lang a[aria-current] { background: var(--f-ink); color: var(--f-on-dark); }

/* Hero */
.f-hero { padding: 72px 0 88px; }
.f-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.f-hero__text { display: flex; flex-direction: column; gap: 24px; }
.f-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.08; }
.f-hero h1 em { color: var(--f-accent-ink); }
.f-hero__lead { margin: 0; font-size: 19px; color: var(--f-ink-2); max-width: 540px; }
.f-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.f-hero__art { background: var(--f-sand); border-radius: 28px; padding: 40px 32px 32px; display: flex; justify-content: center; }
.f-hero__art svg { width: 100%; max-width: 480px; height: auto; }

/* Cards */
.f-grid { display: grid; gap: 24px; }
.f-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.f-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.f-dir { background: var(--f-bg); border: 1px solid var(--f-line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.f-dir h3 { font-size: 23px; }
.f-dir p { margin: 0; color: var(--f-ink-2); font-size: 16px; }
.f-dir svg { color: var(--f-accent); }

.f-project { background: var(--f-paper); border: 1px solid var(--f-line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.f-project__img { width: 100%; height: 200px; object-fit: cover; background: var(--f-sand); }
.f-project__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.f-project h3 { font-size: 25px; line-height: 1.25; }
.f-project p { margin: 0; color: var(--f-ink-2); font-size: 16px; flex: 1; }

.f-news { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--f-ink); }
.f-news:hover { color: var(--f-ink); }
.f-news img, .f-news__ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; background: var(--f-sand); }
.f-news__meta { font-size: 14px; color: var(--f-muted); }
.f-news__title { font-family: var(--f-serif); font-size: 22px; font-weight: 600; line-height: 1.3; }
.f-news:hover .f-news__title { color: var(--f-accent-ink); }

.f-person { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 2px solid var(--f-ink); }
.f-person img { width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 12px; }
.f-person__name { font-family: var(--f-serif); font-size: 21px; font-weight: 600; }
.f-person__role { font-size: 15px; color: var(--f-muted); }

/* Help (dark) */
.f-help { padding: 0 0 96px; }
.f-help__box { background: var(--f-ink); color: var(--f-on-dark); border-radius: 32px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: start; }
.f-help__box .f-eyebrow { color: var(--f-on-dark-accent); }
.f-help__box h2 { font-size: clamp(30px, 3.4vw, 42px); }
.f-help__text { display: flex; flex-direction: column; gap: 18px; }
.f-help__text p { margin: 0; color: var(--f-on-dark-2); font-size: 18px; }
.f-checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--f-on-dark-2); font-size: 16px; }
.f-checks li { display: flex; gap: 10px; align-items: center; }
.f-checks svg { flex: none; color: var(--f-on-dark-accent); }

.f-form { display: flex; flex-direction: column; gap: 16px; background: var(--f-bg); color: var(--f-ink); border-radius: 24px; padding: 28px; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field label { font-size: 14px; font-weight: 700; }
.f-field input, .f-field textarea {
	min-height: 50px; border: 1px solid #CDBFA8; border-radius: 12px; padding: 12px 16px;
	font: 16px var(--f-sans); background: #fff; color: var(--f-ink); width: 100%;
}
.f-field textarea { resize: vertical; min-height: 110px; }
.f-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--f-ink-2); }
.f-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--f-accent); flex: none; }
.f-hp { position: absolute !important; left: -9999px; }
.f-notice { padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; }
.f-notice--ok { background: #E3EEDB; color: #2F4A22; }
.f-notice--err { background: #F6DCD4; color: #7A2412; }

/* Reports */
.f-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: start; }
.f-split__text { display: flex; flex-direction: column; gap: 14px; }
.f-split__text p { margin: 0; color: var(--f-ink-2); max-width: 460px; }
.f-files { display: flex; flex-direction: column; border-top: 1px solid var(--f-line); }
.f-files a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--f-line); color: var(--f-ink); text-decoration: none; font-weight: 600; }
.f-files a:hover { color: var(--f-accent-ink); }
.f-files__name { display: flex; align-items: center; gap: 14px; }
.f-files__meta { font-size: 14px; color: var(--f-muted); font-weight: 400; }
.f-widget-files ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--f-line); }
.f-widget-files li { padding: 18px 4px; border-bottom: 1px solid var(--f-line); font-weight: 600; }

/* Donate */
.f-donate__text { display: flex; flex-direction: column; gap: 18px; }
.f-donate__text p { margin: 0; color: var(--f-ink-2); max-width: 480px; }
.f-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; padding: 20px; background: #fff; border: 1px solid var(--f-line); border-radius: 24px; align-self: flex-start; }
.f-qr img { width: 180px; height: 180px; }
.f-qr__text { display: flex; flex-direction: column; gap: 8px; max-width: 240px; }
.f-qr__text strong { font-size: 17px; }
.f-qr__text span { font-size: 15px; color: var(--f-ink-2); line-height: 1.5; }
.f-req { background: var(--f-paper); border: 1px solid var(--f-line); border-radius: 24px; padding: 32px; }
.f-req h3 { font-size: 24px; margin-bottom: 12px; }
.f-req__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--f-line-soft); }
.f-req__row:last-child { border-bottom: 0; }
.f-req__row > div { display: flex; flex-direction: column; min-width: 0; }
.f-req__label { font-size: 13px; color: var(--f-muted); }
.f-req__value { font-weight: 600; overflow-wrap: anywhere; }
.f-copy { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #D5C7B1; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--f-ink); }
.f-copy:hover { background: var(--f-sand); }
.f-copy.is-done { border-color: #6E8F5A; color: #3D5A2E; }

/* Partners */
.f-partners { padding: 0 0 88px; }
.f-partners__in { border-top: 1px solid var(--f-line); padding-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; }
.f-partners__label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--f-muted); }
.f-partners__name { font-family: var(--f-serif); font-size: 22px; font-weight: 600; color: var(--f-ink-2); }

/* Footer */
.f-footer { background: var(--f-ink); color: #E6DCCD; padding: 64px 0 40px; }
.f-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; margin-bottom: 48px; }
.f-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.f-footer__col strong { color: var(--f-on-dark); }
.f-footer a { color: #E6DCCD; text-decoration: none; }
.f-footer a:hover { color: var(--f-on-dark-accent); }
.f-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.f-footer__brand { font-family: var(--f-serif); font-style: italic; font-weight: 600; font-size: 32px; color: var(--f-on-dark); }
.f-footer__bottom { border-top: 1px solid var(--f-ink-2); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #B8AC9B; }

/* Single */
.f-article { padding: 48px 0 96px; }
.f-article__in { display: flex; flex-direction: column; gap: 32px; }
.f-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--f-muted); }
.f-article__head { display: flex; flex-direction: column; gap: 18px; max-width: 840px; }
.f-article__head h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.12; }
.f-article__lead { margin: 0; font-size: 21px; color: var(--f-ink-2); line-height: 1.55; }
.f-article__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; }
.f-content { font-size: 18px; line-height: 1.7; }
.f-content > * { max-width: 720px; }
.f-content > .alignwide, .f-content > .wp-block-gallery, .f-content > .wp-block-image.alignwide { max-width: 100%; }
.f-content p { margin: 0 0 20px; }
.f-content h2 { font-size: 30px; margin: 40px 0 16px; }
.f-content h3 { font-size: 24px; margin: 32px 0 12px; }
.f-content blockquote, .f-content .wp-block-quote {
	margin: 28px 0; padding: 28px 32px; background: var(--f-paper); border: 1px solid var(--f-line); border-radius: 22px;
	font-family: var(--f-serif); font-style: italic; font-size: 24px; line-height: 1.45;
}
.f-content blockquote p { margin: 0; }
.f-content blockquote cite { display: block; margin-top: 12px; font: normal 15px var(--f-sans); color: var(--f-muted); }
.f-content .wp-block-gallery img, .f-content .wp-block-image img { border-radius: 18px; }
.f-share { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--f-line); }
.f-share__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.f-cta { background: var(--f-ink); color: var(--f-on-dark); border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.f-cta__title { font-family: var(--f-serif); font-size: 28px; font-weight: 600; line-height: 1.25; }
.f-cta__text { color: var(--f-on-dark-2); font-size: 17px; }
.f-credits { background: var(--f-paper); border: 1px solid var(--f-line); border-radius: 22px; padding: 28px 32px; font-size: 16px; }

/* Digest */
.f-digest-hero { padding: 56px 0 40px; border-bottom: 1px solid #E8DDCB; background: var(--f-paper); }
.f-digest-hero__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.f-digest-hero h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.1; }
.f-digest-hero p { margin: 0; font-size: 19px; color: var(--f-ink-2); }
.f-verified { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid var(--f-line); border-radius: 18px; background: var(--f-bg); max-width: 360px; font-size: 15px; line-height: 1.45; color: var(--f-ink-2); }
.f-verified svg { flex: none; color: var(--f-accent); }
.f-digest { padding: 40px 0 96px; }
.f-digest__layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.f-digest__main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.f-digest__aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
.f-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.f-filter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--f-ink); color: var(--f-ink); font: 700 14px var(--f-sans); text-decoration: none; }
.f-filter a[aria-current="page"], .f-filter a:hover { background: var(--f-ink); color: var(--f-on-dark); }
.f-digest__count { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--f-ink); padding-bottom: 12px; }
.f-digest__count h2 { font-size: 28px; }
.f-digest__count span { font-size: 15px; color: var(--f-muted); }
.f-ditem { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--f-paper); border: 1px solid var(--f-line); border-radius: 22px; }
.f-ditem h3 { font-size: 24px; line-height: 1.3; }
.f-ditem h3 a { color: inherit; text-decoration: none; }
.f-ditem__body { color: var(--f-ink-2); }
.f-ditem__body p { margin: 0 0 10px; }
.f-ditem__action { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--f-bg); border-radius: 14px; font-size: 15px; }
.f-ditem__action svg { flex: none; margin-top: 3px; color: var(--f-accent); }
.f-ditem__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; color: var(--f-muted); }
.f-box { border: 1px solid var(--f-line); border-radius: 22px; padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--f-ink-2); }
.f-box--dark { background: var(--f-ink); color: var(--f-on-dark); border-color: var(--f-ink); padding: 28px; }
.f-box--dark .f-box__title { color: var(--f-on-dark); }
.f-box--dark p { color: var(--f-on-dark-2); }
.f-box__title { font-family: var(--f-serif); font-size: 23px; font-weight: 600; line-height: 1.3; color: var(--f-ink); }
.f-box p { margin: 0; }
.f-pager { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.f-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid #D5C7B1; border-radius: 999px; color: var(--f-ink); text-decoration: none; font-weight: 700; }
.f-pager .current { background: var(--f-ink); color: var(--f-on-dark); border-color: var(--f-ink); }
.f-empty { padding: 32px; border: 1px dashed #D5C7B1; border-radius: 22px; color: var(--f-muted); }

@media (max-width: 720px) {
	body { font-size: 16px; }
	.f-section { padding: 64px 0; }
	.f-section--paper { padding: 64px 0; }
	.f-hero { padding: 48px 0 64px; }
	.f-header__actions .f-btn { display: none; }
}
