@font-face {
  font-family: 'Pushkin';
  src: url('https://raw.githubusercontent.com/forever-chance/fonts/main/Pushkin.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}






/* Search icon in header (Font Awesome) — force hover color */
.header-right .search-toggle-wrapper.search-header a.search-toggle-btn:hover i.fa-search:before,
.header-right .search-toggle-wrapper.search-header a.search-toggle-btn:hover i.fa.fa-search:before,
.header-right .search-toggle-wrapper.search-header:hover i.fa-search:before,
.header-right .search-toggle-wrapper.search-header:hover i.fa.fa-search:before {
	transition: color 0.5s ease-out;
  color: #3596a2 !important;
}


.header-right .search-toggle-wrapper.search-header a.search-toggle-btn:hover,
.header-right .search-toggle-wrapper.search-header:hover a.search-toggle-btn {
	transition: color 0.5s ease-out;
  color: currentColor;
}

body.archive .davenport-post .davenport-post-image-wrapper,
body.category .davenport-post .davenport-post-image-wrapper,
body.tag .davenport-post .davenport-post-image-wrapper,
body.search .davenport-post  .davenport-post-image-wrapper {
    padding-bottom: 17%;
}

body.archive .davenport-post,
body.category .davenport-post,
body.tag .davenport-post,
body.search .davenport-post 
{
    margin-right: 150px;
    margin-left: 150px;
}

/* Категории: скрыть индикатор/кнопку infinite scroll */
body.archive .infinite-loader,
body.archive #infinite-loader,
body.archive #infinite-handle,
body.tag .infinite-loader,
body.tag #infinite-loader,
body.tag #infinite-handle,
body.search .infinite-loader,
body.search #infinite-loader,
body.search #infinite-handle,
body.category .infinite-loader,
body.category #infinite-loader,
body.category #infinite-handle {
  display: none !important;
}

/* Hide comments form (Jetpack + theme) */
.comments-form-wrapper,
#respond {
  display: none !important;
}

.contact-buttons .wp-block-button__link {
  border-radius: 999px !important;
}

.about-text p {
  text-align: justify;
}



.pointer-events-none-txt {
  font-family: 'Pushkin', serif !important;
  font-size: clamp(60px, 2vw, 250px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #d4d4d4;

  text-transform: none !important;
}

.pointer-events-none-txt {

  overflow-wrap: break-word;
}


.header-cover-photo {
  position: relative;
}

.header-cover-photo .pointer-events-none-txt {
  position: relative;
  z-index: 3;
}

.header-cover-photo {
  position: relative;
  overflow: hidden;
}

/* HEADER: затемнение + зерно (одним слоем, без конфликтов) */
.header-cover-photo{
  position: relative;
  overflow: hidden;
}

.header-cover-photo::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;

  /* 1) затемнение 2) зерно */
  background-image:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.10) 0%,
      rgba(0,0,0,0.25) 45%,
      rgba(0,0,0,0.45) 100%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.20'/%3E%3C/svg%3E");

  /* это делает зерно видимым, но не грязным */
  background-size: cover, 220px 220px;
  background-repeat: no-repeat, repeat;

  mix-blend-mode: multiply;
  opacity: 1;
}

/* текст поверх */
.header-cover-photo .pointer-events-none-txt{
  position: relative;
  z-index: 3;
}

.header-cover-photo {
  aspect-ratio: 1 / 1;
}

.contact-buttons {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.jp-relatedposts {
  display: none !important;
}


.post-social-title-text {
  display: none !important;
}

body.page-id-3237 .davenport-block-title {
  position: relative;
}

body.page-id-3237 .davenport-block-title h3 {
  font-size: 14px;
  font-weight: 850;
	  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;

  position: relative;
  padding-top: 14px; /* расстояние от линии */
}

/* линия */
body.page-id-3237 .davenport-block-title h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  opacity: 0.9;
}

.davenport-block .davenport-block-title {
    text-align: left;

    border-top: 2px solid #000000;
    padding-top: 5px;
    margin-left: 15px;
    margin-right: 15px;
	  border-bottom: none !important;
	  margin-bottom: 20px;   /* было больше — уменьшаем */
  padding-bottom: 0;     /* на всякий случай */
}


/* Вернуть дефолтные отступы postline-блока */
.davenport-postline-block .davenport-block-title {
  margin: revert;
  padding: revert;
  border: revert;
}

/* Вернуть дефолтные стили заголовка Posts Line (отменяем наш "all: unset") */
.davenport-postline-block .davenport-block-title,
.davenport-postline-block .davenport-block-title *{
  all: revert !important;
}

.davenport-postline-block .davenport-block-title {
	margin-top: -10px  !important;   /* было больше — уменьшаем */
  padding-top: 0  !important;
}

/* пункт меню "Home S" */
#menu-menu-3 > li:first-child > a {
  font-family: inherit; /* на всякий случай */
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-transform: none;

  padding-right: 18px;
  margin-right: 10px;

  opacity: 0.9;
}

/* hover — чуть живее */
#menu-menu-3 > li:first-child > a:hover {
  opacity: 1;
}

/* скрываем Home/S в обычном хедере */
.main-header:not(.fixed) #menu-menu-3 > li:first-child {
  display: none;
}

/* показываем Home/S только в sticky */
.main-header.fixed #menu-menu-3 > li:first-child {
  display: block;
}

/* пункт меню с "s" */
.mainmenu .menu-item-home a {
  display: inline-block;
  transform: scaleY(0.9);
}

.main-header.fixed #menu-menu-3 > li:first-child > a {
  position: relative;
  top: 0px; /* если нужно — подвинь */
}

/* sticky: делаем контейнер хедера точкой отсчёта */
.main-header.fixed .navbar-inner{
  position: relative;
}

/* sticky: S (первый пункт) как "логотип" слева */
.main-header.fixed #menu-menu-3 > li:first-child{
  position: absolute;
  left: -130px;                 /* <-- обязательно px */
  top: 55%;
  transform: translateY(-50%);
  z-index: 5;
}

/* чтобы меню не наезжало на S (подбери число) */
.main-header.fixed .navbar-center-wrapper{
  padding-left: 15px;
}

/* опционально: чтобы ссылка не имела лишних паддингов */
.main-header.fixed #menu-menu-3 > li:first-child > a{
  padding-left: 0 !important;
  padding-right: 12px;
}

/* Карусель (owl-carousel): скрыть плашку категории */
.home .owl-carousel .post-categories{
  display: none !important;
}

/* Убираем стикер категории на страницах категорий */
.category .post-categories {
    display: none !important;
}

#infinite-footer {
	display: none !important;
}


/* Автоподпись в конце каждого поста (фиксированный текст) */
.single .davenport-post-content .post-content::after,
.single .entry-content::after{
  content: "Автор — Анна Рубан";
  display: block;
  text-align: right;
  font-size: 0.9em;
  font-style: italic;
  color: rgba(0,0,0,.3);
  margin-top: 6.2em;
  line-height: 1.3;
}
