/* پیچک‌مگ — حاشیه کتابی */
html { direction: rtl; }
:root {
  --cm-accent: #5d4037;
  --cm-bg: #f4efe6;
  --cm-surface: #fbf7f0;
  --cm-text: #2c241b;
  --cm-muted: #7a6a5a;
  --cm-radius: 0;
  --cm-gap: 1.4rem;
  --cm-font: Parastoo, Tahoma, "Segoe UI", sans-serif;
  --cm-shadow: none;
  --cm-header-dark: #2c241b;
  --wp--preset--font-family--open-sans: Parastoo, Tahoma, sans-serif;
}

html, body, .site, .cm-content, #page,
body, button, input, select, textarea,
.widget, .cm-entry-title, .entry-title,
.main-navigation, .main-navigation a,
h1, h2, h3, h4, h5, h6,
#cm-primary-nav, #cm-primary-nav a,
.cm-header, .cm-header a,
.cm-footer, .cm-footer a,
.cm-entry-meta, .entry-meta,
.entry-content, .search-form input {
  font-family: var(--cm-font) !important;
}

body {
  background: var(--cm-bg);
  color: var(--cm-text);
  font-weight: 400;
  line-height: 1.65;
  direction: rtl;
  text-align: right;
}

a { color: var(--cm-accent); }
a:hover { filter: brightness(0.88); }

.cm-entry-title a, .entry-title a {
  color: var(--cm-text) !important;
  font-weight: 700;
}
.cm-entry-meta, .entry-meta, .cm-entry-meta a {
  color: var(--cm-muted) !important;
  font-size: 0.8rem;
}

img { max-width: 100%; height: auto; }

.cm-header,
.cm-main-header,
.cm-header-1 {
  background: var(--cm-header-dark) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--cm-accent) !important;
}
.cm-header .cm-site-title a,
#cm-site-info .cm-site-title a {
  color: #fff !important;
}
.cm-primary-nav a,
#cm-primary-nav a {
  color: #fff !important;
}

.cm-featured-posts,
.widget,
.cm-posts {
  background: var(--cm-surface);
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
}

.cm-entry-summary, .entry-content {
  font-size: 1.02rem;
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .cm-header .cm-site-title { font-size: 1.1rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
