@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@600;700&family=Playfair+Display:wght@600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* =========================================================
   Editor scopes:
   - Gutenberg: .editor-styles-wrapper
   - Classic/TinyMCE: .mce-content-body
   - Fallback: body (на случай, если WP меняет обёртку)
   ========================================================= */

.editor-styles-wrapper,
.mce-content-body,
body {
  font-family: 'Montserrat', sans-serif;
  color: #5D4037;
  line-height: 1.65;
}

.editor-styles-wrapper p,
.mce-content-body p,
p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6,
.mce-content-body h1,
.mce-content-body h2,
.mce-content-body h3,
.mce-content-body h4,
.mce-content-body h5,
.mce-content-body h6,
h1, h2, h3, h4, h5, h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
  color: #5D4037;
}

.editor-styles-wrapper h1,
.mce-content-body h1,
h1 { font-size: 2.2rem; font-weight: 700; }

.editor-styles-wrapper h2,
.mce-content-body h2,
h2 { font-size: 1.8rem; font-weight: 600; }

.editor-styles-wrapper h3,
.mce-content-body h3,
h3 { font-size: 1.5rem; font-weight: 600; }

.editor-styles-wrapper ul,
.editor-styles-wrapper ol,
.mce-content-body ul,
.mce-content-body ol,
ul, ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding: 0;
}

.editor-styles-wrapper li,
.mce-content-body li,
li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.editor-styles-wrapper a,
.mce-content-body a,
a {
  color: #2E5D3E;
  text-decoration: underline;
}

.editor-styles-wrapper blockquote,
.mce-content-body blockquote,
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #2E5D3E;
  background: #f9f6f0;
  font-style: italic;
  color: #5D4037;
}

.editor-styles-wrapper img,
.mce-content-body img,
img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 6px;
}
