/*
Theme Name: The Build Ledger
Theme URI: https://thebuildledger.info/
Author: Angelina
Author URI: https://thebuildledger.info/
Description: IT-блог: белая шапка с логотипом и круглой кнопкой поиска, простой текстовый баннер сверху, аккуратная контейнерная карточка последней статьи (фото слева, плашка категории + заголовок + текст + дата справа, с отступами от краёв страницы), асимметричная сетка "Новые публикации" (одна крупная карточка + четыре поменьше), полоса "Свежие материалы" со стрелками. Без сайдбара, sticky-подвал без логотипа с переключателем языка. About-страница с блоком автора (фото + развёрнутая био). Раздел Articles — обычная страница с привязанной категорией. Polylang EN/RU с самого начала.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: thebuildledger
*/

/* ==========================================================================
   0. Fonts & variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
	--c-bg:#ffffff;
	--c-paper:#ffffff;
	--c-paper-soft:#f4f2fc;
	--c-line:#e7e5f2;
	--c-ink:#1b1730;
	--c-ink-soft:#615c7a;
	--c-purple:#582bda;
	--c-purple-dark:#4520b0;
	--c-blue:#1165fc;
	--c-link:#1b1730;
	--radius:12px;
	--maxw:1240px;
	--font-head:'Manrope', 'Inter', sans-serif;
	--font-body:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   1. Reset & base — sticky footer via flex column
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box;}
html{height:100%;}
body{
	margin:0;
	min-height:100%;
	display:flex;
	flex-direction:column;
	font-family:var(--font-body);
	color:var(--c-ink);
	background:var(--c-bg);
	line-height:1.6;
	font-size:16px;
}
#main-content{flex:1 0 auto;}
.site-footer{flex-shrink:0;}
img{max-width:100%;height:auto;display:block;}
a{color:var(--c-link);text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;}
input,textarea{font-family:inherit;font-size:15px;}
h1,h2,h3,h4{font-family:var(--font-head);font-weight:800;line-height:1.2;margin:0 0 .5em;color:var(--c-ink);}
p{margin:0 0 1em;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px;}
.screen-reader-text{position:absolute;left:-9999px;}

/* ==========================================================================
   2. Header
   ========================================================================== */
.site-header{background:var(--c-paper);border-bottom:1px solid var(--c-line);}
.header-inner{display:flex;align-items:center;gap:28px;padding:16px 24px;}
.brand{display:flex;align-items:center;gap:12px;flex-shrink:0;}
.brand img{height:38px;width:auto;}
.brand-text{display:flex;flex-direction:column;line-height:1.15;}
.brand-name{font-family:var(--font-head);font-size:18px;font-weight:800;color:var(--c-ink);letter-spacing:.01em;text-transform:uppercase;}
.brand-tag{font-size:11px;color:var(--c-ink-soft);}

.menu-toggle{display:none;background:none;border:none;color:var(--c-ink);font-size:22px;padding:6px;}
.primary-nav{flex:1;display:flex;justify-content:center;}
.primary-nav ul{display:flex;gap:8px;}
.primary-nav a{display:block;padding:10px 14px;font-size:14.5px;font-weight:600;color:var(--c-ink);}
.primary-nav a:hover{color:var(--c-purple);}
.primary-nav .current-menu-item a{color:var(--c-purple);}

.header-actions{display:flex;align-items:center;gap:14px;flex-shrink:0;}
.search-toggle{background:var(--c-paper-soft);border:none;color:var(--c-ink);display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;}
.search-toggle:hover{background:var(--c-purple);color:#fff;}

.header-search{background:var(--c-paper-soft);border-bottom:1px solid var(--c-line);max-height:0;overflow:hidden;transition:max-height .2s ease;}
.header-search.is-open{max-height:70px;}
.header-search .container{padding-top:14px;padding-bottom:14px;}

@media (max-width:900px){
	.menu-toggle{display:block;}
	.primary-nav{display:none;width:100%;order:5;justify-content:flex-start;}
	.primary-nav.is-open{display:block;}
	.primary-nav ul{flex-direction:column;}
	.header-inner{flex-wrap:wrap;}
}

/* ==========================================================================
   3. Hero — plain text banner
   ========================================================================== */
.hero{background:var(--c-paper-soft);padding:44px 0;}
.hero-eyebrow{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--c-purple);margin-bottom:14px;}
.hero h1{font-size:36px;max-width:740px;margin-bottom:14px;}
.hero p{color:var(--c-ink-soft);font-size:16.5px;max-width:600px;margin:0;}

/* ==========================================================================
   3b. Feature story — contained horizontal card (image left, content
   right), padded from the page edges, with a category badge.
   ========================================================================== */
.feature-story{display:grid;grid-template-columns:1.2fr 1fr;border:1px solid var(--c-line);border-radius:var(--radius);overflow:hidden;margin-bottom:20px;}
@media (max-width:760px){.feature-story{grid-template-columns:1fr;}}
.fs-thumb{display:block;aspect-ratio:16/10.5;overflow:hidden;background:var(--c-line);}
.fs-thumb img{width:100%;height:100%;object-fit:cover;}
.fs-body{padding:28px 32px;display:flex;flex-direction:column;align-self:center;}
.fs-cat{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.04em;color:#fff;background:var(--c-purple);padding:5px 11px;border-radius:20px;margin-bottom:12px;width:fit-content;}
.fs-date{display:block;font-size:13px;color:var(--c-ink-soft);margin-bottom:10px;}
.fs-body h2{font-size:23px;margin-bottom:12px;}
.fs-body h2 a{color:var(--c-ink);}
.fs-body h2 a:hover{color:var(--c-purple);}
.fs-body p{color:var(--c-ink-soft);font-size:15px;margin-bottom:16px;}
.btn-more{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--c-purple);width:fit-content;}
.btn-more:hover{color:var(--c-purple-dark);}

/* ==========================================================================
   4. Breadcrumbs
   ========================================================================== */
.breadcrumbs{padding:16px 0 4px;font-size:13.5px;color:var(--c-ink-soft);}
.breadcrumbs a{color:var(--c-ink-soft);font-weight:600;}
.breadcrumbs a:hover{color:var(--c-ink);}
.bc-sep{margin:0 4px;color:#c9c6dd;}

/* ==========================================================================
   5. Layout
   ========================================================================== */
.home-wrap{padding:36px 0 60px;}
.home-wrap.narrow{max-width:800px;}
.page-title{margin:30px 0 18px;}
.page-title h1{font-size:30px;}
.section-head{margin:0 0 18px;}
.section-head h2{font-size:22px;margin:0;}

/* ==========================================================================
   6. Asymmetric publication grid (1 large + 2x2)
   ========================================================================== */
.pub-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:22px;}
@media (max-width:900px){.pub-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:600px){.pub-grid{grid-template-columns:1fr;}}
.pub-card{background:var(--c-paper);border:1px solid var(--c-line);border-radius:var(--radius);overflow:hidden;transition:box-shadow .15s ease,transform .15s ease;}
.pub-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(27,23,48,.08);}
.pub-large{grid-row:1 / span 2;}
@media (max-width:900px){.pub-large{grid-column:1 / span 2;grid-row:auto;}}
@media (max-width:600px){.pub-large{grid-column:1;}}
.pub-card .pc-thumb{display:block;aspect-ratio:16/11;overflow:hidden;background:var(--c-line);}
.pub-large .pc-thumb{aspect-ratio:16/13.5;}
.pub-card .pc-thumb img{width:100%;height:100%;object-fit:cover;}
.pub-card .pc-body{padding:16px 18px 20px;}
.pc-cat{display:block;font-size:11px;font-weight:800;letter-spacing:.04em;color:var(--c-purple);margin-bottom:8px;}
.pub-card h3{font-size:16px;margin-bottom:8px;line-height:1.35;}
.pub-large h3{font-size:19px;}
.pub-card h3 a{color:var(--c-ink);}
.pub-card h3 a:hover{color:var(--c-purple);}
.pc-date{font-size:12.5px;color:var(--c-ink-soft);}

/* ==========================================================================
   7. Fresh material strip
   ========================================================================== */
.fresh-strip{display:flex;align-items:center;gap:24px;background:var(--c-paper-soft);border-radius:var(--radius);padding:22px 28px;margin-top:40px;flex-wrap:wrap;}
.fresh-strip-label{flex:0 0 auto;font-family:var(--font-head);font-size:15px;font-weight:800;color:var(--c-ink);}
.fresh-strip-items{flex:1;display:flex;flex-wrap:wrap;gap:24px;min-width:200px;}
.fresh-item{display:flex;flex-direction:column;gap:6px;max-width:220px;}
.fi-title{font-size:13.5px;font-weight:700;color:var(--c-ink);line-height:1.35;}
.fresh-item:hover .fi-title{color:var(--c-purple);}
.fi-meta{display:flex;align-items:center;gap:6px;color:var(--c-purple);}
.fi-date{font-size:12px;color:var(--c-ink-soft);}

/* ==========================================================================
   8. Post-card grid (Articles page, search, 404)
   ========================================================================== */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
@media (max-width:900px){.post-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:640px){.post-grid{grid-template-columns:1fr;}}
.post-card .pc-thumb{display:block;aspect-ratio:16/10.5;overflow:hidden;border-radius:var(--radius);background:var(--c-line);margin-bottom:14px;}
.post-card .pc-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .2s ease;}
.post-card:hover .pc-thumb img{transform:scale(1.03);}
.post-card h3{font-size:18px;margin-bottom:8px;}
.post-card h3 a{color:var(--c-ink);}
.post-card h3 a:hover{color:var(--c-purple);}
.post-card p{color:var(--c-ink-soft);font-size:14.5px;margin-bottom:10px;}

/* ==========================================================================
   9. Static pages
   ========================================================================== */
.content-card{background:var(--c-paper);}
.content-card.narrow{max-width:800px;}
.content-card p{color:var(--c-ink-soft);font-size:16.5px;}

.author-box{display:grid;grid-template-columns:200px 1fr;gap:28px;align-items:start;margin-top:8px;}
@media (max-width:600px){.author-box{grid-template-columns:1fr;}}
.author-box img{border-radius:var(--radius);aspect-ratio:1/1;object-fit:cover;width:100%;}
.author-box .author-name{font-family:var(--font-head);font-size:18px;margin-bottom:6px;color:var(--c-ink);}
.author-box p{font-size:15px;}

.contact-form{max-width:none;margin-top:6px;}
.form-row{margin-bottom:18px;}
.form-row label{display:block;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.03em;margin-bottom:8px;color:var(--c-ink-soft);}
.form-row input,.form-row textarea{width:100%;border:1px solid var(--c-line);padding:12px 14px;border-radius:6px;background:var(--c-paper-soft);color:var(--c-ink);}
.form-row textarea{min-height:130px;resize:vertical;}
.form-row input:focus,.form-row textarea:focus{outline:2px solid var(--c-purple);background:#fff;}
.btn-submit{background:var(--c-purple);color:#fff;border:none;padding:13px 30px;border-radius:6px;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.03em;}
.btn-submit:hover{background:var(--c-purple-dark);}
.form-notice{padding:11px 15px;margin-bottom:18px;font-size:14px;font-weight:600;border-radius:6px;}
.form-notice.success{background:#efeafc;color:#4520b0;}
.form-notice.error{background:#fdecec;color:#a3231f;}

/* ==========================================================================
   10. Single post
   ========================================================================== */
.single-post-wrap .entry-title{font-size:30px;margin:6px 0 10px;}
.single-post-wrap .post-meta{font-size:13px;color:var(--c-ink-soft);text-transform:uppercase;letter-spacing:.03em;margin-bottom:16px;}
.entry-thumb{margin-bottom:20px;border-radius:var(--radius);overflow:hidden;}
.entry-content{font-size:16.5px;color:var(--c-ink);}
.entry-content p{margin-bottom:1.3em;}
.entry-content img{margin:1.4em 0;border-radius:8px;}
.entry-content h2{font-size:23px;}
.entry-content h3{font-size:18.5px;}

/* ==========================================================================
   11. Pagination
   ========================================================================== */
.pagination{display:flex;gap:8px;padding-top:24px;}
.pagination a,.pagination span{padding:8px 14px;border-radius:6px;font-size:14px;font-weight:700;border:1px solid var(--c-line);}
.pagination .current{background:var(--c-purple);color:#fff;border-color:var(--c-purple);}

/* ==========================================================================
   12. Footer — sticky, no logo, language switcher above copyright
   ========================================================================== */
.site-footer{background:#160f36;color:#a79fce;}
.footer-inner{padding:28px 0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:center;}
.footer-brand{display:flex;align-items:center;gap:10px;font-family:var(--font-head);font-size:17px;font-weight:800;color:#fff;letter-spacing:.02em;}
.footer-nav ul{display:flex;gap:20px;flex-wrap:wrap;}
.footer-nav a{font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:#a79fce;}
.footer-nav a:hover{color:#fff;}

.footer-lang{border-top:1px solid rgba(255,255,255,.12);padding:16px 0;}
.footer-lang ul{display:flex;gap:22px;flex-wrap:wrap;}
.footer-lang a{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700;color:#c6bfe6;}
.footer-lang a:hover{color:#fff;}
.footer-lang img{width:18px;height:auto;border-radius:2px;}

.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:14px 0;text-align:center;font-size:12.5px;color:#7c73a0;}

.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}
