@font-face {
  font-family: "Calibri";
  src: local("Calibri"), url("/calibri.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-sans: "Calibri", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-mono: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  --color-text: #404040;
  --color-muted: #787878;
  --color-subtle: #888;
  --color-border: #ddd;
  --color-link: #007998;
  --color-surface: #fff;
  --line-height-body: 1.75;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
  display: block;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 1.55rem + 0.15vw, 1.8rem);
  font-weight: 400;
  line-height: var(--line-height-body);
  text-align: start;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
  direction: rtl;
}

[dir="ltr"] body {
  direction: ltr;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}

figure {
  margin: 0;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  max-width: 100%;
}

img,
svg,
video,
canvas {
  height: auto;
}

table {
  width: 100%;
  margin: 0 0 1.5em;
  border-spacing: 0;
  border-collapse: collapse;
}

th {
  font-weight: 700;
}

th,
td {
  padding: 0.65em 0.75em;
  text-align: start;
  vertical-align: top;
}

code,
kbd,
tt,
var,
samp,
pre {
  font-family: var(--font-mono);
}

code,
kbd,
tt,
var,
samp {
  font-size: 0.875em;
}

abbr[title],
acronym[title] {
  border-bottom: 1px dotted #666;
  cursor: help;
  text-decoration: none;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

sup,
sub {
  position: relative;
  height: 0;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  bottom: 1ex;
}

sub {
  top: 0.5ex;
}

small {
  font-size: 80%;
}

big {
  font-size: 125%;
}

button,
input,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: normal;
  vertical-align: baseline;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  padding: 0.8em 1.25em;
  border: 1px solid #ccc;
  border-color: #ccc #ccc #bbb;
  border-radius: 0.4rem;
  background: #e6e6e6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 15px 17px rgba(255, 255, 255, 0.5),
    inset 0 -5px 12px rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  -webkit-appearance: button;
  appearance: button;
  font-size: 1.4rem;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 15px 17px rgba(255, 255, 255, 0.8),
    inset 0 -5px 12px rgba(0, 0, 0, 0.02);
}

button:active,
html input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
  border-color: #aaa #bbb #bbb;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.5),
    inset 0 2px 5px rgba(0, 0, 0, 0.15);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="search"] {
  box-sizing: border-box;
  -webkit-appearance: textfield;
  appearance: textfield;
}

input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65em 0.75em;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-muted);
  line-height: 1.5;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-link);
  color: #101010;
}

textarea {
  min-height: 12rem;
  overflow: auto;
  resize: vertical;
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  margin: 0 0 0.65em;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(3.2rem, 2.65rem + 1.7vw, 4.8rem);
}

h2 {
  font-size: clamp(2.8rem, 2.4rem + 1.25vw, 4rem);
}

h3 {
  font-size: clamp(2.4rem, 2.15rem + 0.8vw, 3.2rem);
}

h4 {
  font-size: clamp(2rem, 1.85rem + 0.45vw, 2.6rem);
}

h5 {
  font-size: clamp(1.8rem, 1.7rem + 0.25vw, 2.2rem);
}

h6 {
  font-size: clamp(1.6rem, 1.55rem + 0.15vw, 1.8rem);
}

hr {
  height: 1px;
  margin: 0 0 1.5em;
  border: 0;
  background-color: #ccc;
}

p {
  margin: 0 0 1.5em;
  font-size: inherit;
}

ul,
ol {
  margin: 0 0 1.5em;
  padding-inline-start: 2.5em;
  color: var(--color-muted);
  line-height: 1.8;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-bottom: 0;
  padding-inline-start: 1.5em;
}

li {
  font-size: inherit;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
  margin-inline-start: 1.5em;
}

b,
strong {
  font-weight: 700;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 0 1.5em;
  padding-inline-start: 1.25em;
  border-inline-start: 0.3rem solid var(--color-border);
  color: var(--color-muted);
}

address {
  margin: 0 0 1.5em;
}

pre {
  max-width: 100%;
  margin: 0 0 1.6em;
  padding: 1.6em;
  overflow: auto;
  background: #eee;
  font-size: 1.5rem;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.25s ease-in-out;
}

a:hover,
a:focus,
a:active {
  color: rgba(0, 121, 152, 0.65);
}

.alignleft {
  display: inline;
  float: left;
  margin-inline-end: 1.5em;
}

.alignright {
  display: inline;
  float: right;
  margin-inline-start: 1.5em;
}

.aligncenter {
  display: block;
  clear: both;
  margin: 0 auto;
}

header {
  margin: 2rem auto;
  padding: 2rem 0;
  background: transparent;
}

header .gravatar {
  float: right;
  float: inline-end;
  width: 10rem;
  height: 10rem;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
}

header #brand {
  float: left;
  float: inline-start;
  width: 80%;
  margin-top: 2.2rem;
}

header #brand h1 {
  margin: 0;
  padding: 0;
  color: #565656;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.48;
  text-transform: uppercase;
}

header #brand h1 a {
  color: #565656;
  font-weight: 700;
  text-decoration: none;
}

header #brand h1 span {
  color: var(--color-subtle);
  font-weight: 400;
  text-transform: lowercase;
}

header nav {
  float: left;
  float: inline-start;
}

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

header nav ul li {
  float: left;
  float: inline-start;
  margin: 0.2rem 0 0;
  margin-inline-end: 1rem;
}

header nav ul li a {
  color: var(--color-subtle);
  font-size: 1.4rem;
}

.container {
  position: relative;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: clamp(1.6rem, 1rem + 2vw, 2.4rem);
}

article {
  margin-bottom: clamp(4.8rem, 4rem + 2.5vw, 8rem);
  padding: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
}

article .title {
  color: var(--color-text);
  font-size: clamp(2.2rem, 2rem + 0.65vw, 2.8rem);
  font-weight: 700;
  line-height: 1.4;
}

article .title a {
  color: var(--color-text);
  text-decoration: none;
}

article .title a:hover {
  color: var(--color-link);
}

article .post-meta {
  margin-bottom: clamp(2.4rem, 2rem + 1.25vw, 4rem);
  font-size: 1.4rem;
  line-height: 1.6;
}

article .post-meta a {
  color: var(--color-subtle);
  text-decoration: none;
}

article .post-meta a:hover {
  color: rgba(136, 136, 136, 0.65);
}

article .the-content a {
  font-weight: 400;
  text-decoration: none;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

article .the-content p {
  color: var(--color-muted);
  line-height: 1.8;
}

article .the-content img,
.the-content img,
.the-content div {
  max-width: 100%;
}

article .the-content img,
.the-content img {
  height: auto;
}

article .meta {
  font-size: 1rem;
  line-height: 1.48;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

[dir="rtl"] article .meta {
  letter-spacing: 0;
  text-transform: none;
}

article .meta div {
  float: left;
  float: inline-start;
}

article .meta .post-categories,
article .meta .post-back {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

article .meta .post-back {
  padding-top: 1rem;
}

article .meta .post-categories li,
article .meta .post-back li {
  display: inline-block;
  margin-inline-end: 1rem;
}

.post-categories a,
.meta a {
  font-size: 1rem !important;
}

.post-back,
.post-back a {
  font-size: 1.2rem;
}

article .meta .tags {
  color: var(--color-muted);
}

.post-categories::before {
  content: "Category:";
  margin-inline-end: 0.5rem;
}

[dir="rtl"] .post-categories::before {
  content: "دسته‌بندی:";
}

.page article {
  border-bottom: 0;
}

.page article .title {
  margin-bottom: clamp(2.4rem, 2rem + 1.25vw, 4rem);
}

#pagination {
  width: 100%;
  margin-bottom: 4rem;
}

#pagination .past-page {
  float: right;
  float: inline-end;
}

#pagination .next-page {
  float: left;
  float: inline-start;
}

h3#comments {
  margin-bottom: clamp(4rem, 3.2rem + 2.5vw, 8rem);
  font-size: 1.8rem;
}

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

.commentlist .comment {
  position: relative;
  margin: 0 5rem 4rem 0;
  margin-inline-start: 5rem;
  margin-inline-end: 0;
  padding: 2rem;
  list-style: none;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.commentlist .comment .children {
  margin-top: 4rem;
}

.commentlist .comment-author {
  float: left;
  float: inline-start;
  margin-inline-end: 1rem;
}

.commentlist .comment-author img {
  position: absolute;
  top: 0.5rem;
  left: -5rem;
  inset-inline-start: -5rem;
}

.commentlist .comment-author .says {
  display: none;
}

.comment-meta {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.comment-subscription-form {
  margin-bottom: 0;
  font-size: 1.4rem;
}

#respond {
  margin-bottom: clamp(4rem, 3.2rem + 2.5vw, 8rem);
}

#respond > h3 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

#respond form label {
  color: var(--color-subtle);
}

footer {
  padding-bottom: 4rem;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: center;
}

.gallery .gallery-item {
  margin-top: 0 !important;
}

.gallery img {
  border: 0 !important;
}

.wp-caption-text {
  color: #888;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
}

.hide-text {
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}

[dir="rtl"] .hide-text {
  text-indent: -100%;
}

.clear {
  clear: both;
}

.clearfix::after {
  display: table;
  clear: both;
  content: "";
}

.clearfix {
  display: flow-root;
}

@media (max-width: 767px) {
  header {
    margin-top: 1rem;
    padding: 0;
  }

  header .gravatar,
  header #brand,
  header nav {
    float: none;
  }

  header .gravatar {
    width: 8rem;
    height: 8rem;
  }

  header #brand,
  header hgroup {
    width: 100%;
  }

  header #brand {
    margin-top: 1.6rem;
  }

  header nav ul li {
    margin-top: 0.8rem;
  }

  .commentlist .comment {
    margin-inline-start: 0;
  }

  .commentlist .comment-author img {
    position: static;
    width: 4rem;
    height: 4rem;
    margin-inline-end: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
