/*
Theme Name: Leee Minimal Blog
Author: Shahab
Description: A custom RTL Persian WordPress theme for وبلاگ فراموشی لی.
Version: 1.0.0
Text Domain: leee
*/

@font-face {
  font-family: 'Studio';
  src: url('assets/fonts/STUDIO.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sahel';
  src: url('assets/fonts/Sahel-FD.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sahel';
  src: url('assets/fonts/Sahel-Black-FD.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --leee-text: #050505;
  --leee-muted: #6f3a22;
  --leee-cream: #ffe5ae;
  --leee-soft: #fbfaf7;
  --leee-line: #050505;
  --leee-max: 1280px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--leee-text);
  direction: rtl;
  font-family: 'Sahel', Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-shell {
  width: min(var(--leee-max), calc(100% - 48px));
  margin: 82px auto 56px;
}

.site-header {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  gap: 64px;
  align-items: end;
  margin-bottom: 34px;
}

.site-nav,
.site-title,
.site-kicker,
.current-date {
  font-family: 'Studio', Tahoma, Arial, sans-serif;
  font-weight: normal;
}

.site-nav {
  border-bottom: 4px solid var(--leee-line);
  padding-bottom: 12px;
}

.site-nav ul {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 33px;
}

.site-nav li + li::before {
  content: "*";
  margin-left: 9px;
}

.brand {
  border-bottom: 5px solid var(--leee-line);
  padding-bottom: 10px;
  white-space: nowrap;
}

.brand-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 22px;
}

.site-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.site-kicker {
  font-size: 24px;
}

.site-kicker::before {
  content: "*";
  margin-left: 14px;
  font-size: 36px;
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 200px;
  gap: 64px;
  align-items: start;
}

.left-rail,
.right-rail {
  min-width: 0;
}

.current-date {
  border-top: 0;
  border-bottom: 4px solid var(--leee-line);
  padding-top: 0;
  padding-bottom: 0px;
  margin-top: -80px;
  margin-bottom: 22px;
  font-size: 20px;
  text-align: center;
}

.search-form {
  margin-bottom: 28px;
}

.search-form input[type="search"] {
  width: 80%;
  border: 0;
   background: #d9d8d5;  
   padding: 8px 14px;
  min-height: 42px;
  text-align: center;
  font-family: 'Sahel', Tahoma, Arial, sans-serif;
  font-weight: 900;
}

.feature-card {
  width: 200px;
  margin: 0 0 30px auto;
  text-align: center;
}

.feature-media {
  position: relative;
  width: 100%;
  min-height: 250px;
  background: var(--leee-cream);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 250px;
  min-height: 0;
  object-fit: cover;
}

.feature-label {
  position: absolute;
  top: 14px;
  right: 0;
  background: #000000;
  color: #fff;
  padding: 2px 10px 4px;
  font-size: 16px;
  font-weight: 900;
}

.feature-empty {
  padding: 22px;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.55;
}

.feature-filename {
  margin-top: 9px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list li {
  border-bottom: 0;
  margin-bottom: 15px;
}

.sidebar-list a {
  display: block;
  background: #d9d8d5;
  padding: 7px 12px 7px 10px;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 900;
  text-align: right;
}

.side-pager {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 15px;
}

.post-list {
  display: grid;
  gap: 34px;
}

.post-card {
  overflow: hidden;
}

.post-title,
.single-title,
.archive-title {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
  text-align: right;
}

.post-title {
  text-align: right;
  margin-right: 0;
  margin-bottom: 14px;
  line-height: 1.15;
}

.post-title a,
.single-title {
  display: inline;
  background: #d9d8d5;
  padding: 2px 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.post-card.has-thumb .post-thumb {
  float: left;
  width: 140px;
  height: 190px;
  margin: 6px 22px 16px 0;
  background: #a8a8a8;
  display: grid;
  place-items: center;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-featured-image {
  width: 150px;
  max-width: 38%;
  margin: 55px 15px 10px 0;
  float: left;
}

.single-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.post-content,
.single-content,
.page-content {
  font-size: 16px;
  text-align: justify;
  font-weight: 400;
}

.post-card .post-content {
  background: #f3f2ef;
  padding: 14px 18px;
  box-sizing: border-box;
}

.post-content p:first-child {
  margin-top: 0;
}

.post-meta {
  margin-top: 6px;
  padding-top: 0;
  color: var(--leee-muted);
  font-size: 13px;
  text-align: right;
  clear: both;
}

.single-meta {
  margin: 34px 0 0;
  padding: 10px 0;
  border-top: 4px solid #ddd;
  border-bottom: 4px solid #ddd;
  color: var(--leee-muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.comments-area {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  margin-top: 34px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid #555;
  background: var(--leee-soft);
  padding: 8px 12px;
  margin: 0 0 12px;
  font: inherit;
}

.comment-form textarea {
  min-height: 160px;
}

.comment-form .submit {
  background: var(--leee-text);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list li {
  border-bottom: 2px solid #ddd;
  padding: 0 0 14px;
  margin-bottom: 14px;
}

.comment-author {
  font-weight: 900;
}

.authors-list {
  display: grid;
  gap: 10px;
}

.author-card {
  display: block;
  background: #d9d8d5;
  padding: 14px;
  box-sizing: border-box;
  text-align: right;
}

.author-top {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.author-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  background: var(--leee-cream);
  margin: 0;
  filter: grayscale(100%) contrast(110%);
}

.author-info {
  margin-top: 12px;
}

.author-name {
  margin: 0 0 8px;
  padding-bottom: 6px;
  font-size: 18px;
  font-weight: 900;
  border-bottom: 1px solid #fff;
}

.author-detail {
  direction: ltr;
  text-align: left;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.author-bio {
  position: relative;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 400;
  direction: rtl;
  text-align: right;
}

.author-bio::before {
  display: none;
}

.archive-choices {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  transform: translateX(30px);
}

.archive-choice {
  display: block;
  background: #d9d8d5;
  padding: 5px 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

.archive-panel {
  display: none;
  margin-top: 32px;
}

.archive-panel:target {
  display: block;
}

.archive-panel ul {
  columns: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-panel li {
  border-bottom: 2px solid #111;
  padding: 8px 0;
}

.empty-message {
  text-align: center;
  padding: 40px 0;
}

.about-layout .left-rail {
  transform: translateY(-65px);
}
.about-layout .current-date {
  margin-top: -10px;
}

.about-box {
  background: var(--leee-soft);
  padding: 20px 20px;
  margin: 0;
  width: 106.5%;
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
  transform: translateX(48px);
}


@media (max-width: 980px) {
  .site-shell {
    margin-top: 36px;
    width: min(100% - 28px, var(--leee-max));
  }

  .site-header,
  .layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-header .left-spacer {
    display: none;
  }

  .brand-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-title {
    font-size: 42px;
  }

  .layout {
    display: flex;
    flex-direction: column;
  }

  .main-content {
    order: 1;
  }

  .right-rail {
    order: 2;
  }

  .left-rail {
    order: 3;
  }

  .post-card.has-thumb .post-thumb {
    float: none;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 0 18px;
  }

  .comments-area,
  .archive-choices {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}