/*
Theme Name: Monem Plain Web
Theme URI: https://monem.one
Author: Monem Alnahdi
Description: قالب ووردبريس بسيط جدًا بروح الويب الأول: مقالات شخصية، كتب، وملفات تحميل. يدعم RTL ومناسب لووردبريس 7.
Version: 1.0.0
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monem-plain-web
Tags: blog, rtl-language-support, one-column, custom-menu
*/

:root {
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --text: #222;
  --muted: #666;
  --line: #d8d0c0;
  --link: #0645ad;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Times New Roman", "Noto Naskh Arabic", "Amiri", serif;
  font-size: 20px;
  line-height: 1.9;
  direction: rtl;
  text-align: right;
}

.site {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.site-header h1 {
  font-size: 36px;
  margin: 0 0 5px;
  line-height: 1.35;
}

.site-header h1 a {
  color: #111;
  text-decoration: none;
}

.site-description {
  color: var(--muted);
  margin: 0 0 25px;
  font-size: 18px;
}

.site-nav {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  margin: 25px 0;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav li {
  display: inline-block;
  margin: 0 0 0 18px;
}

.site-nav a,
a {
  color: var(--link);
  text-decoration: none;
}

.site-nav a:hover,
a:hover { text-decoration: underline; }

.post,
.page-content,
.archive-header {
  margin-bottom: 35px;
  border-bottom: 1px dotted #bbb;
  padding-bottom: 20px;
}

.post-title,
.page-title,
.archive-title {
  font-size: 27px;
  margin: 0 0 5px;
  line-height: 1.55;
}

.post-title a { color: #111; text-decoration: none; }
.post-title a:hover { text-decoration: underline; }

.post-meta {
  color: #777;
  font-size: 15px;
  margin-bottom: 12px;
}

.post-content p,
.page-content p { margin: 0 0 1.2em; }

.post-content img,
.page-content img {
  max-width: 100%;
  height: auto;
}

.post-content blockquote,
.page-content blockquote {
  border-right: 4px solid var(--line);
  margin: 1.5em 0;
  padding: 0.5em 1em;
  color: #444;
  background: #faf7ef;
}

.post-content pre,
.page-content pre {
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  padding: 15px;
  background: #f0ece2;
  border: 1px solid var(--line);
}

.read-more { font-size: 17px; }

.pagination {
  margin: 35px 0;
  font-size: 17px;
}

.site-footer {
  margin-top: 40px;
  font-size: 15px;
  color: #777;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  body { font-size: 18px; }
  .site {
    margin: 0;
    padding: 20px;
    border-left: 0;
    border-right: 0;
  }
  .site-header h1 { font-size: 30px; }
  .site-nav li {
    display: inline-block;
    margin: 0 0 8px 14px;
  }
}
