/*
Theme Name: Psihomir Child
Template: twentytwentytwo
Description: Дочерняя тема psihomir.ru — Cloud Dancer + олива
Version: 1.0
*/

/* ══════════════════════════════════════════════
   ШРИФТЫ
══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ══════════════════════════════════════════════
   ПЕРЕМЕННЫЕ
══════════════════════════════════════════════ */
:root {
  --bg:            #F3EDE4;
  --white:         #FFFFFF;
  --olive:         #6B7A48;
  --olive-dark:    #4A5632;
  --olive-light:   #8FA06A;
  --olive-mist:    #EEF2E6;
  --text:          #2C2A25;
  --text-light:    #2C2A25;
  --border:        #E5DDD4;
  --shadow:        0 2px 24px rgba(44,42,37,.08);
  --radius:        16px;
  --font-h:        'Cormorant Garamond', Georgia, serif;
  --font-b:        'Inter', system-ui, sans-serif;
}

/* ══════════════════════════════════════════════
   ГЛОБАЛЬНЫЙ СБРОС И БАЗА
══════════════════════════════════════════════ */
html, body {
  overflow-x: hidden;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-b) !important;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h) !important;
  color: var(--text) !important;
  font-weight: 500;
  line-height: 1.25;
}

a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--olive-dark); }

img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ══════════════════════════════════════════════
   ШАПКА
══════════════════════════════════════════════ */
.wp-block-template-part[class*="header"],
header.wp-block-template-part,
.site-header,
#masthead {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0 !important;
}

.wp-block-site-title a,
.site-title a {
  font-family: var(--font-h) !important;
  font-size: 1.4rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  letter-spacing: 0.02em;
}

/* Навигация */
.wp-block-navigation a,
.main-navigation a {
  font-family: var(--font-b) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: var(--text-light) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .2s;
}
.wp-block-navigation a:hover { color: var(--olive) !important; }

/* ══════════════════════════════════════════════
   БЛОГ — КАРТОЧКИ СТАТЕЙ
══════════════════════════════════════════════ */
.wp-block-post-template {
  gap: 24px !important;
}

.wp-block-post {
  background: var(--white) !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(44,42,37,.12);
}

.wp-block-post-title a {
  font-family: var(--font-h) !important;
  font-size: 1.4rem !important;
  color: var(--text) !important;
  font-weight: 500;
}
.wp-block-post-title a:hover { color: var(--olive) !important; }

.wp-block-post-excerpt p {
  font-family: var(--font-b) !important;
  color: var(--text) !important;
  font-size: 0.9rem !important;
}

/* Категории */
.wp-block-post-terms a {
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive-light) !important;
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   ОДИНОЧНАЯ СТАТЬЯ
══════════════════════════════════════════════ */
.entry-content,
.wp-block-post-content {
  font-family: var(--font-b) !important;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text) !important;
  max-width: 720px;
  margin: 0 auto;
}

.entry-content h2,
.wp-block-post-content h2,
.entry-content h2.wp-block-heading,
.wp-block-post-content h2.wp-block-heading,
.is-root-container h2,
.wp-block-group__inner-container h2,
article h2 {
  font-family: var(--font-h) !important;
  font-size: clamp(1.8rem,4vw,2.6rem) !important;
  margin-top: 2.5rem !important;
  color: var(--olive-dark) !important;
  font-style: italic !important;
  font-weight: 700 !important;
  border-left: 4px solid var(--olive) !important;
  padding-left: 16px !important;
  line-height: 1.25 !important;
}
.entry-content h3,
.wp-block-post-content h3,
.entry-content h3.wp-block-heading,
.wp-block-post-content h3.wp-block-heading,
.is-root-container h3,
.wp-block-group__inner-container h3,
article h3 {
  font-family: var(--font-h) !important;
  font-size: clamp(1.4rem,3vw,1.8rem) !important;
  margin-top: 1.8rem !important;
  color: var(--olive-dark) !important;
  font-style: italic !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
.entry-content strong,
.wp-block-post-content strong,
.is-root-container strong,
article strong {
  color: var(--olive-dark) !important;
  font-weight: 700 !important;
}

/* ══════════════════════════════════════════════
   КНОПКИ (глобально)
══════════════════════════════════════════════ */
.wp-block-button__link,
.wp-element-button {
  background: var(--olive) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 14px 32px !important;
  font-family: var(--font-b) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  transition: background .2s, transform .2s !important;
  cursor: pointer;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
  background: var(--olive-dark) !important;
  transform: translateY(-1px);
  color: var(--white) !important;
}

/* ══════════════════════════════════════════════
   ПОДВАЛ
══════════════════════════════════════════════ */
.wp-block-template-part[class*="footer"],
footer.wp-block-template-part,
.site-footer,
#colophon {
  background: var(--text) !important;
  color: rgba(255,255,255,.6) !important;
  padding: 0 !important;
  border-radius: 20px 20px 0 0 !important;
  overflow: hidden !important;
}
.site-footer a, #colophon a {
  color: rgba(255,255,255,.7) !important;
}
.site-footer a:hover, #colophon a:hover {
  color: var(--white) !important;
}

/* ══════════════════════════════════════════════
   СКРОЛЛБАР
══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--olive-light); border-radius: 3px; }

/* ══════════════════════════════════════════════
   ТЁМНЫЙ ТЕКСТ ПОВСЮДУ
══════════════════════════════════════════════ */
p, li, span, td, th, blockquote, figcaption { color: var(--text); }
.wp-block-post-excerpt, .wp-block-post-excerpt p { color: var(--text) !important; }
.wp-block-navigation a, .main-navigation a { color: var(--text) !important; }
.wp-block-post-date, .wp-block-post-author { color: var(--text) !important; }

@media(max-width:768px){
  .ph-hero-avatar{display:block!important;opacity:1!important;visibility:visible!important;width:120px!important;height:120px!important;position:relative!important;z-index:5!important}
  .ph-hero .ph-container{z-index:3!important}
}
