/*
Theme Name: Ejdanova Law
Theme URI: https://ejdanova.ru/
Author: Elena Zhdanova
Description: Индивидуальная тема сайта Елены Ждановой. Сохраняет содержимое WordPress и выводит его без постороннего оформления.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ejdanova-law
*/

:root {
  --ej-ink: #2b2325;
  --ej-wine: #76203d;
  --ej-cream: #f5f0eb;
  --ej-paper: #fffdfa;
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--ej-paper); color: var(--ej-ink); }
body, button, input, textarea, select { font-family: Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }
.site-content, .page-content, .site-article { width: 100%; max-width: none; margin: 0; padding: 0; }
.site-article > .entry-content { margin: 0; padding: 0; }
.site-article > .entry-content > :first-child { margin-top: 0; }
.site-article > .entry-content > :last-child { margin-bottom: 0; }

.ej-document-page {
  min-height: 100vh;
  padding: 48px 22px 90px;
  background: var(--ej-cream);
  color: var(--ej-ink);
  font-size: 18px;
  line-height: 1.65;
}
.ej-document-page article { max-width: 960px; margin: 0 auto; }
.ej-document-page .back-link { color: var(--ej-wine); }
.ej-document-page .eyebrow { color: var(--ej-wine); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.ej-document-page h1 { margin: 12px 0 16px; color: #21191c; font: 500 clamp(38px, 6vw, 62px)/1.05 Georgia, serif; letter-spacing: -.025em; }
.ej-document-page .subtitle { color: #6d6264; font-size: 20px; }
.ej-document-page figure { max-width: 780px; margin: 35px auto 0; padding: 18px; overflow: hidden; border: 1px solid #ded3cd; border-radius: 8px; background: #fff; }
.ej-document-page figure img { display: block; width: 100%; object-fit: contain; }
.ej-document-page figcaption { padding-top: 12px; color: #6d6264; }

@media (hover: hover) {
  a[style*="background:#76203d"]:hover { filter: brightness(.92); transform: translateY(-1px); }
  article[style*="border:1px"]:hover, a[style*="border:1px"]:hover { border-color: rgba(118, 32, 61, .5) !important; }
}

@media (max-width: 720px) {
  .ej-document-page { padding: 34px 16px 64px; font-size: 16px; }
  .ej-document-page figure { padding: 10px; }
}

