@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSansWeb.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSansWeb_Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSans";
  src: url("../fonts/IRANSansWeb_Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #0f172a;
  --text: #111827;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e5eaf1;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --green: #10b981;
  --green-2: #059669;
  --red: #ef4444;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius: 8px;
  --radius-lg: 10px;
  --shell: 1180px;
}

html.dark {
  color-scheme: dark;
  --bg: #0a0f1c;
  --bg-soft: #111827;
  --surface: #0f172a;
  --surface-strong: #020617;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --muted-2: #64748b;
  --border: #1f2937;
  --blue: #60a5fa;
  --blue-2: #3b82f6;
  --green: #34d399;
  --green-2: #10b981;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.24);
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IRANSans", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.9;
  direction: rtl;
  min-width: 320px;
}

html,
body {
  overflow-x: hidden;
}

body,
button,
input,
textarea,
select {
  font-family: "IRANSans", Tahoma, Arial, sans-serif;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--blue);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(37, 99, 235, 0.16);
}

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

.skip-link:focus {
  position: fixed;
  inset: 16px auto auto 16px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
}

.shell {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px);
}

.header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.brand-wrap,
.header-actions,
.brand,
.nav-list,
.mobile-nav-list {
  display: flex;
  align-items: center;
}

.brand-wrap {
  gap: 12px;
  min-width: 0;
}

.brand {
  gap: 10px;
  min-width: 0;
  color: var(--text);
}

.brand__logo {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.brand__mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 48px;
}

.brand__logo .brand__mark {
  position: absolute;
  inset: 0;
  flex: 0 0 auto;
}

.brand__mark--light {
  filter: brightness(0.72) contrast(1.32) saturate(1.08) drop-shadow(0 6px 10px rgba(15, 23, 42, 0.14));
}

.brand__mark--dark {
  display: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.brand__text {
  display: grid;
  gap: 0;
  line-height: 1.45;
}

.brand__text strong {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.brand__text small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.product-link:hover {
  color: #fff;
  background: var(--blue-2);
}

.product-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.primary-nav {
  justify-self: center;
  min-width: 0;
}

.nav-list,
.mobile-nav-list {
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  color: #334155;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--blue);
  background: #eff6ff;
}

.header-actions {
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #334155;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}

.icon-button:hover {
  color: var(--blue);
  background: var(--bg-soft);
}

.icon-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle {
  position: relative;
}

.theme-toggle svg {
  position: absolute;
  transition: opacity 160ms ease, transform 160ms ease;
}

.theme-toggle__sun {
  opacity: 0;
  transform: scale(0.82) rotate(-18deg);
}

html.dark .theme-toggle__moon {
  opacity: 0;
  transform: scale(0.82) rotate(18deg);
}

html.dark .theme-toggle__sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.menu-toggle {
  display: none;
}

.header-search {
  display: grid;
  grid-template-columns: minmax(170px, 220px) 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.header-search input,
.hero-search input,
.side-search input,
.mobile-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search input {
  padding: 0 12px;
  font-size: 12px;
}

.header-search button {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--blue);
  background: #eff6ff;
}

.header-search button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: #fff;
}

.mobile-menu__inner {
  padding-block: 12px 16px;
}

.mobile-nav-list {
  align-items: stretch;
  flex-direction: column;
}

.mobile-nav-list a {
  display: block;
  padding: 12px;
  border-radius: var(--radius);
  color: #334155;
  font-weight: 700;
}

.mobile-nav-list a:hover {
  background: var(--bg-soft);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.mobile-search input,
.side-search input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mobile-search button,
.side-search button,
.hero-search button,
.button-link {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.mobile-search button:hover,
.side-search button:hover,
.hero-search button:hover,
.button-link:hover {
  color: #fff;
  background: var(--blue-2);
}

.site-main {
  min-height: 55vh;
}

.blog-hero {
  padding: 46px 0 30px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-bottom: 1px solid #eef2f7;
}

.blog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
}

.hero-copy h1,
.archive-header h1,
.article-header h1,
.not-found h1 {
  margin: 0;
  color: #0f172a;
  font-size: 40px;
  line-height: 1.35;
  font-weight: 700;
}

.hero-copy p {
  max-width: 520px;
  margin: 16px 0 26px;
  color: var(--muted);
  font-size: 16px;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 560px);
  min-height: 54px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-search input {
  padding: 0 14px;
}

.featured-post,
.post-card,
.side-box,
.empty-state,
.comments-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.featured-post {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaf1fb;
}

.post-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.post-media:hover .post-media__img {
  transform: scale(1.025);
}

.post-media__fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(16, 185, 129, 0.16)),
    #f1f5f9;
}

.post-media__fallback span {
  width: 62px;
  height: 62px;
  border: 2px solid rgba(37, 99, 235, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(37, 99, 235, 0.28) 49%, rgba(37, 99, 235, 0.28) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(16, 185, 129, 0.34) 49%, rgba(16, 185, 129, 0.34) 51%, transparent 52%);
}

.featured-post__body,
.post-card__body {
  padding: 20px 22px 22px;
}

.post-card__body {
  display: grid;
  grid-template-rows: 34px minmax(58px, auto) minmax(76px, auto) auto;
  row-gap: 10px;
  align-content: start;
  height: 100%;
}

.featured-post__body h2,
.post-card h2 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.55;
}

.post-card h2 {
  font-size: 17px;
  min-height: 58px;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-align: right;
  text-align-last: right;
}

.featured-post__body p,
.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.post-card p {
  min-height: 76px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-align: right;
  text-align-last: right;
  line-height: 1.9;
}

.post-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
  padding: 2px 9px;
  color: var(--blue);
  background: #eff6ff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.post-card .post-chip {
  width: 100%;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-self: end;
  justify-content: flex-start;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 12px;
}

.post-meta span {
  position: relative;
}

.post-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 3px;
  height: 3px;
  background: #cbd5e1;
  border-radius: 50%;
}

.category-rail {
  padding: 18px 0;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}

.category-rail__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.category-rail__inner > span {
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.category-rail__links {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-rail__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
  color: #334155;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.category-rail__links a:hover {
  color: var(--blue);
  border-color: #bfdbfe;
}

.category-rail__links small {
  color: var(--muted-2);
  font-size: 11px;
}

.content-section {
  padding: 34px 0 60px;
  background: #fff;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2,
.side-box h2,
.site-footer h2,
.comments-area h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.5;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: #cfe0ff;
  box-shadow: var(--shadow-soft);
}

.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.side-box {
  padding: 18px;
}

.side-box h2 {
  margin-bottom: 14px;
  font-size: 16px;
}

.side-search {
  display: grid;
  gap: 8px;
}

.side-list,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list {
  display: grid;
  gap: 8px;
}

.side-list a,
.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
}

.side-list a {
  justify-content: flex-start;
  line-height: 1.7;
}

.side-list a span {
  min-width: 0;
}

.side-list a small {
  flex: 0 0 auto;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.side-list a::before,
.footer-links a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.side-list a:hover,
.footer-links a:hover {
  color: var(--blue);
}

.side-box--accent {
  color: #fff;
  background: var(--surface-strong);
  border-color: var(--surface-strong);
}

.side-box--accent h2,
.side-box--accent p,
.side-box--accent a {
  color: #fff;
}

.side-box--accent p {
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 13px;
}

.side-box--accent a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  background: var(--green);
  border-radius: var(--radius);
  font-weight: 700;
}

.archive-header {
  padding: 44px 0 28px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.archive-description {
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
}

.archive-search {
  margin-top: 18px;
}

.single-article {
  padding: 42px 0 64px;
  background: #fff;
}

.article-shell {
  width: min(100% - 32px, 1040px);
}

.article-header {
  width: min(100%, 900px);
  margin-inline: auto;
  text-align: center;
}

.article-header h1 {
  display: block;
  width: min(100%, 720px);
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  margin-top: 12px;
  font-size: clamp(26px, 2.25vw, 32px);
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

.article-meta {
  justify-content: center;
}

.article-publish-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
}

.article-publish-meta time,
.article-publish-meta strong {
  font: inherit;
}

.article-publish-meta > span {
  width: 1px;
  height: 18px;
  background: #cbd5e1;
}

.article-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 900px) 64px;
  gap: 20px;
  align-items: start;
  direction: ltr;
}

.article-reading-main,
.article-rail {
  direction: rtl;
}

.article-reading-main {
  min-width: 0;
  max-width: 100%;
}

.article-cover {
  aspect-ratio: 16 / 9;
  margin: 28px 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

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

.article-rail {
  --reading-progress: 0%;
  --article-rail-left: auto;
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  height: max-content;
  margin-top: 28px;
  padding: 8px 0;
  color: #334155;
  will-change: transform;
}

.article-rail.is-fixed {
  position: fixed;
  top: 96px;
  left: var(--article-rail-left);
  z-index: 15;
}

.article-rail__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  width: 46px;
  min-height: 46px;
  padding: 2px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.article-rail__action:hover,
.article-rail__action:focus-visible {
  color: var(--blue);
  background: #eff6ff;
  outline: 0;
  transform: translateY(-1px);
}

.article-rail__action svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-rail__comment-icon circle {
  fill: currentColor;
  stroke: none;
}

.article-rail__count {
  min-height: 17px;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
}

.article-rail__action.is-active {
  color: #d97706;
}

.article-rail__action.is-active svg {
  fill: currentColor;
}

.post-like--rail {
  min-height: 46px;
  padding: 2px;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.post-like--rail:hover {
  color: #e11d48;
  background: #fff1f2;
  border: 0;
  box-shadow: none;
}

.post-like--rail.is-liked {
  color: #e11d48;
  background: transparent;
  border: 0;
}

.post-like--rail .post-like__icon {
  width: 24px;
  height: 24px;
}

.post-like--rail .post-like__count,
.post-like--rail.is-liked .post-like__count {
  min-width: 0;
  height: 17px;
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: 11px;
  line-height: 17px;
}

.reading-progress {
  position: relative;
  width: 2px;
  height: 148px;
  margin-top: 4px;
  background: #d7dce3;
  border-radius: 999px;
}

.reading-progress__fill {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: var(--reading-progress);
  background: #f59e0b;
  border-radius: inherit;
  transition: height 80ms linear;
}

.reading-progress__dot {
  position: absolute;
  top: var(--reading-progress);
  left: 50%;
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border: 1px solid var(--surface);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: top 80ms linear;
}

.article-content {
  color: #243041;
  font-size: 16px;
  line-height: 2.15;
  overflow-wrap: anywhere;
  text-align: justify;
  text-align-last: right;
}

.article-content > * {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.article-content p,
.article-content li,
.article-content h2,
.article-content h3,
.article-content h4 {
  inline-size: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2em;
  color: #0f172a;
  line-height: 1.55;
}

.article-content h2 {
  font-size: 25px;
}

.article-content h3 {
  font-size: 21px;
}

.article-content p {
  margin-bottom: 1.15em;
}

.article-content img,
.article-content figure,
.article-content .wp-caption {
  max-width: 100%;
}

.article-content img {
  display: block;
  width: auto;
  height: auto;
  margin: 24px auto;
  border-radius: var(--radius);
}

.article-content figure,
.article-content .wp-caption {
  margin: 26px auto;
}

.article-content .aligncenter,
.article-content .alignnone {
  clear: both;
  float: none;
  margin-right: auto;
  margin-left: auto;
}

.article-content .alignleft,
.article-content .alignright {
  float: none;
  margin-right: auto;
  margin-left: auto;
}

.article-content figcaption,
.article-content .wp-caption-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.article-content a {
  color: var(--blue);
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  padding-right: 1.3rem;
}

.article-content blockquote {
  margin-inline: 0;
  padding: 16px 18px;
  color: #1e3a8a;
  background: #eff6ff;
  border-right: 4px solid var(--blue);
  border-radius: var(--radius);
}

.article-content .ps-alert {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 24px 0;
  padding: 16px 18px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid #dbeafe;
  border-right: 5px solid #2563eb;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  color: #1e3a8a;
  direction: rtl;
  line-height: 2;
  text-align: right;
  overflow-wrap: break-word;
}

.article-content .ps-alert__icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-top: 3px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1;
}

.article-content .ps-alert__content {
  min-width: 0;
}

.article-content .ps-alert__content,
.article-content .ps-alert__content p,
.article-content .ps-alert__content li {
  text-align: right;
  text-align-last: right;
}

.article-content .ps-alert__content > :first-child {
  margin-top: 0;
}

.article-content .ps-alert__content > :last-child {
  margin-bottom: 0;
}

.article-content .ps-alert--warning {
  border-color: #fde68a;
  border-right-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #fffaf0 100%);
  color: #78350f;
}

.article-content .ps-alert--important {
  border-color: #c7d2fe;
  border-right-color: #6366f1;
  background: linear-gradient(180deg, #eef2ff 0%, #f8f9ff 100%);
  color: #312e81;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-content th,
.article-content td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.article-content th {
  background: var(--bg-soft);
}

.article-footer {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.article-actions {
  display: flex;
  justify-content: center;
}

.post-like {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  color: #334155;
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.post-like:hover {
  color: #e11d48;
  border-color: #fecdd3;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(225, 29, 72, 0.1);
}

.post-like.is-liked {
  color: #fff;
  background: #e11d48;
  border-color: #e11d48;
}

.post-like.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

.post-like__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: fill 160ms ease, transform 160ms ease;
}

.post-like:hover .post-like__icon,
.post-like.is-liked .post-like__icon {
  fill: currentColor;
  transform: scale(1.08);
}

.post-like__text {
  font-size: 13px;
  font-weight: 700;
}

.post-like__count {
  display: inline-grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  padding: 0 8px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.post-like.is-liked .post-like__count {
  color: #e11d48;
  background: #fff;
}

.post-like--rail,
.post-like--rail.is-liked {
  width: 46px;
  min-height: 46px;
  padding: 2px;
  gap: 1px;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.post-like--rail:hover,
.post-like--rail.is-liked:hover {
  color: #e11d48;
  background: #fff1f2;
  border: 0;
  box-shadow: none;
}

.post-like--rail .post-like__icon,
.post-like--rail.is-liked .post-like__icon {
  width: 24px;
  height: 24px;
}

.post-like--rail .post-like__icon {
  fill: none;
}

.post-like--rail:hover .post-like__icon,
.post-like--rail.is-liked .post-like__icon {
  fill: currentColor;
}

.post-like--rail .post-like__count,
.post-like--rail.is-liked .post-like__count {
  min-width: 0;
  height: 17px;
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: 11px;
  line-height: 17px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tag-list a {
  padding: 4px 10px;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: 12px;
}

.comments-area {
  margin-top: 28px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.comments-kicker {
  display: inline-flex;
  margin-bottom: 3px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 700;
}

.comments-jump {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--blue);
  background: #eff6ff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.comments-empty {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.comment-list .children {
  display: grid;
  gap: 12px;
  margin: 12px 28px 0 0;
  padding: 0;
  list-style: none;
}

.comment-body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e6edf5;
  border-radius: var(--radius);
}

.comment-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.comment-content {
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-author {
  color: #0f172a;
  font-size: 14px;
}

.comment-meta time {
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
}

.comment-text {
  color: #334155;
  font-size: 13px;
  line-height: 1.9;
}

.comment-text p {
  margin: 0 0 0.7em;
}

.comment-text p:last-child {
  margin-bottom: 0;
}

.comment-awaiting {
  margin: 0 0 8px;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
}

.comment-actions {
  margin-top: 8px;
}

.comment-reply-link {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.comment-reply-title {
  margin: 18px 0 12px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.5;
}

.comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e6edf5;
  border-radius: var(--radius);
}

.comment-form p {
  margin: 0;
}

.comment-form-comment {
  grid-column: 1 / -1;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.comment-form .required {
  color: #e11d48;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.comment-form textarea {
  min-height: 116px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form .form-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.comment-submit {
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.comment-submit:hover {
  background: var(--blue-2);
}

.empty-state,
.not-found__inner {
  padding: 34px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p,
.not-found p {
  margin: 0 auto 18px;
  max-width: 560px;
  color: var(--muted);
}

.not-found {
  padding: 70px 0;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.not-found__inner {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.not-found__code {
  color: var(--blue);
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
}

.button-link {
  display: inline-flex;
  align-items: center;
}

.site-footer {
  color: #475569;
  background: #ffffff;
  border-top: 1px solid #e5eaf1;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.95fr;
  gap: 80px;
  align-items: start;
  padding: 58px 0 54px;
}

.brand--footer {
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  color: #0f172a;
}

.brand--footer .brand__logo {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
}

.brand--footer .brand__mark {
  width: 100%;
  height: 100%;
}

.brand--footer .brand__text strong {
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
}

.brand--footer .brand__text small {
  display: none;
}

.footer-brand p {
  max-width: 520px;
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 2.15;
}

.site-footer h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 24px;
  padding-bottom: 10px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.5;
}

.site-footer h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background: #3b82f6;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.5);
}

.footer-grid section:last-child h2::after {
  background: #4ade80;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.45);
}

.footer-links {
  display: grid;
  gap: 17px;
  font-size: 15px;
}

.footer-links a {
  color: #475569;
  justify-content: flex-start;
  transition: color 160ms ease;
}

.footer-links a::before {
  width: 7px;
  height: 7px;
  background: #3b82f6;
}

.footer-links a:hover {
  color: #93c5fd;
}

.footer-links--green a::before {
  background: #4ade80;
}

.footer-links--green a:hover {
  color: #86efac;
}

.footer-bottom {
  background: #f6f8fb;
  border-top: 1px solid #e5eaf1;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  color: #64748b;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.footer-credit {
  color: #64748b;
}

.footer-heart {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 8px;
  color: #ef3348;
  fill: currentColor;
  stroke: #ff7080;
  stroke-width: 0.8;
  vertical-align: -2px;
  filter: drop-shadow(0 0 6px rgba(239, 51, 72, 0.45));
  transform-origin: center;
  animation: footer-heartbeat 1.35s ease-in-out infinite;
}

.footer-heart__shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.4;
  stroke-linecap: round;
}

@keyframes footer-heartbeat {
  0%,
  42%,
  72%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 6px rgba(239, 51, 72, 0.42));
  }

  16% {
    transform: scale(1.22);
    filter: drop-shadow(0 0 12px rgba(239, 51, 72, 0.68));
  }

  28% {
    transform: scale(0.96);
  }

  54% {
    transform: scale(1.14);
    filter: drop-shadow(0 0 10px rgba(239, 51, 72, 0.58));
  }
}

.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  color: #334155;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.page-numbers.current,
.page-numbers:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

html.dark a:hover {
  color: var(--blue);
}

html.dark .site-header {
  background: rgba(10, 15, 28, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

html.dark .brand,
html.dark .brand__text strong,
html.dark .hero-copy h1,
html.dark .archive-header h1,
html.dark .article-header h1,
html.dark .not-found h1,
html.dark .featured-post__body h2,
html.dark .post-card h2,
html.dark .section-heading h2,
html.dark .side-box h2,
html.dark .site-footer h2,
html.dark .comments-area h2,
html.dark .article-content h2,
html.dark .article-content h3,
html.dark .article-content h4 {
  color: #f8fafc;
}

html.dark .brand__mark--light {
  display: none;
}

html.dark .brand__mark--dark {
  display: block;
}

html.dark .nav-list a,
html.dark .mobile-nav-list a,
html.dark .icon-button,
html.dark .side-list a,
html.dark .footer-links a {
  color: #cbd5e1;
}

html.dark .nav-list a:hover,
html.dark .nav-list .current-menu-item > a,
html.dark .nav-list .current_page_item > a,
html.dark .icon-button:hover {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.14);
}

html.dark .header-search,
html.dark .hero-search,
html.dark .mobile-search input,
html.dark .side-search input,
html.dark .comment-form input:not([type="submit"]),
html.dark .comment-form textarea {
  background: #0b1220;
  border-color: #243244;
}

html.dark .header-search button {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.16);
}

html.dark .mobile-menu,
html.dark .content-section,
html.dark .single-article {
  background: var(--bg);
}

html.dark .blog-hero,
html.dark .archive-header,
html.dark .not-found {
  background: linear-gradient(180deg, #0b1220 0%, #0a0f1c 100%);
  border-color: var(--border);
}

html.dark .category-rail {
  background: #0b1220;
  border-color: var(--border);
}

html.dark .category-rail__inner > span,
html.dark .article-content {
  color: #dbeafe;
}

html.dark .article-content .ps-alert {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(96, 165, 250, 0.28);
  border-right-color: #60a5fa;
}

html.dark .article-content .ps-alert--warning {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  border-right-color: #f59e0b;
}

html.dark .article-content .ps-alert--important {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.3);
  border-right-color: #818cf8;
}

html.dark .article-content .ps-alert__icon {
  background: rgba(15, 23, 42, 0.68);
}

html.dark .category-rail__links a,
html.dark .tag-list a {
  color: #d1d5db;
  background: #111827;
  border-color: #243244;
}

html.dark .category-rail__links a:hover,
html.dark .post-chip {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(96, 165, 250, 0.28);
}

html.dark .featured-post,
html.dark .post-card,
html.dark .side-box,
html.dark .empty-state,
html.dark .comments-area {
  background: var(--surface);
  border-color: var(--border);
}

html.dark .post-like {
  color: #e5e7eb;
  background: #0b1220;
  border-color: #243244;
  box-shadow: none;
}

html.dark .post-like:hover {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.4);
}

html.dark .post-like.is-liked {
  color: #fff;
  background: #e11d48;
  border-color: #fb7185;
}

html.dark .post-like__count {
  color: #cbd5e1;
  background: #111827;
}

html.dark .post-like.is-liked .post-like__count {
  color: #e11d48;
  background: #fff;
}

html.dark .article-publish-meta {
  color: #d1d5db;
}

html.dark .article-publish-meta > span {
  background: #374151;
}

html.dark .article-rail {
  color: #e5e7eb;
}

html.dark .article-rail__action:hover,
html.dark .article-rail__action:focus-visible {
  color: #f8fafc;
  background: #1f2937;
}

html.dark .article-rail__action.is-active {
  color: #fbbf24;
}

html.dark .post-like--rail,
html.dark .post-like--rail.is-liked {
  background: transparent;
  border: 0;
}

html.dark .post-like--rail:hover {
  color: #fb7185;
  background: rgba(225, 29, 72, 0.12);
  border: 0;
}

html.dark .post-like--rail .post-like__count,
html.dark .post-like--rail.is-liked .post-like__count {
  color: inherit;
  background: transparent;
}

html.dark .reading-progress {
  background: #374151;
}

html.dark .reading-progress__dot {
  border-color: var(--surface);
}

html.dark .comments-jump,
html.dark .comments-empty {
  background: #0b1220;
  border-color: #243244;
}

html.dark .comment-body,
html.dark .comment-form {
  background: #0b1220;
  border-color: #243244;
}

html.dark .comment-author,
html.dark .comment-reply-title {
  color: #f8fafc;
}

html.dark .comment-text,
html.dark .comment-form label {
  color: #cbd5e1;
}

html.dark .post-card:hover {
  border-color: rgba(96, 165, 250, 0.38);
}

html.dark .post-media {
  background: #101827;
}

html.dark .post-media__fallback {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(16, 185, 129, 0.16)),
    #0b1220;
}

html.dark .featured-post__body p,
html.dark .post-card p,
html.dark .section-heading p,
html.dark .hero-copy p,
html.dark .archive-description,
html.dark .empty-state p,
html.dark .not-found p,
html.dark .footer-brand p,
html.dark .footer-bottom__inner {
  color: #9ca3af;
}

html.dark .side-box--accent {
  background: #020617;
  border-color: #111827;
}

html.dark .article-cover {
  background: #111827;
}

html.dark .article-content a {
  color: #93c5fd;
}

html.dark .article-content blockquote {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.14);
  border-right-color: #60a5fa;
}

html.dark .article-content table,
html.dark .article-content th,
html.dark .article-content td,
html.dark .article-footer {
  border-color: var(--border);
}

html.dark .article-content th {
  background: #111827;
}

html.dark .page-numbers {
  color: #cbd5e1;
  border-color: var(--border);
  background: #0b1220;
}

html.dark .page-numbers.current,
html.dark .page-numbers:hover {
  color: #020617;
  background: #93c5fd;
  border-color: #93c5fd;
}

html.dark .site-footer {
  color: #d7deea;
  background: #171a20;
  border-top-color: #252b36;
  box-shadow: none;
}

html.dark .site-footer h2,
html.dark .brand--footer .brand__text strong {
  color: #f8fafc;
}

html.dark .footer-brand p {
  color: #b5bfd0;
}

html.dark .footer-links a {
  color: #d6deeb;
}

html.dark .footer-bottom {
  background: #070b12;
  border-top-color: #273142;
}

html.dark .footer-bottom__inner {
  color: #91a0b8;
}

html.dark .footer-credit {
  color: #65748b;
}

@media (max-width: 1040px) {
  .header-shell {
    grid-template-columns: auto auto;
  }

  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .blog-hero__grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-reading-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .article-reading-main {
    grid-row: 2;
  }

  .article-rail {
    position: sticky;
    top: 76px;
    z-index: 20;
    grid-row: 1;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 18px auto -8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
  }

  .reading-progress {
    width: 92px;
    height: 2px;
    margin: 0 6px 0 0;
  }

  .reading-progress__fill {
    width: var(--reading-progress);
    height: 100%;
  }

  .reading-progress__dot {
    top: 50%;
    left: var(--reading-progress);
  }

  html.dark .article-rail {
    background: rgba(15, 23, 42, 0.96);
    border-color: #243244;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, var(--shell));
  }

  .header-shell {
    min-height: 64px;
    gap: 10px;
  }

  .brand__text small,
  .product-link,
  .header-search {
    display: none;
  }

  .brand__logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand__logo .brand__mark {
    width: 100%;
    height: 100%;
  }

  .blog-hero {
    padding-top: 30px;
  }

  .hero-copy h1,
  .archive-header h1,
  .article-header h1,
  .not-found h1 {
    font-size: clamp(24px, 6.4vw, 30px);
    line-height: 1.45;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
  }

  .hero-search input {
    min-height: 44px;
  }

  .featured-post__body h2 {
    font-size: 19px;
  }

  .category-rail__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 4px;
  }

  .post-grid,
  .sidebar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 30px;
    padding: 38px 0;
  }

  .content-section {
    padding-bottom: 42px;
  }

  .single-article {
    padding-top: 30px;
  }

  .article-content {
    font-size: 15px;
    line-height: 2.05;
    text-align: right;
  }

  .article-header h1 {
    max-inline-size: 20ch;
    margin-right: auto;
    margin-left: auto;
  }

  .article-content h2 {
    font-size: 22px;
  }

  .article-content .ps-alert {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    margin: 20px 0;
    padding: 13px 12px;
  }

  .article-content .ps-alert__icon {
    width: 28px;
    height: 28px;
    margin-top: 3px;
    font-size: 16px;
  }

  .article-content img {
    width: auto;
    max-width: 100%;
    margin: 18px auto;
  }

  .article-publish-meta {
    flex-wrap: wrap;
    gap: 8px 10px;
    font-size: 12px;
  }

  .article-rail {
    top: 68px;
    width: 100%;
    justify-content: space-between;
  }

  .reading-progress {
    flex: 1 1 70px;
    width: auto;
    max-width: 120px;
  }

  .comments-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .comment-list .children {
    margin-right: 14px;
  }

  .footer-bottom__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }
}

@media (max-width: 420px) {
  .brand__text strong {
    font-size: 13px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .hero-copy h1,
  .archive-header h1,
  .article-header h1 {
    font-size: clamp(22px, 6.1vw, 26px);
  }

  .featured-post__body,
  .post-card__body,
  .side-box,
  .empty-state,
  .comments-area {
    padding: 14px;
  }

  .article-rail {
    gap: 3px;
    padding-inline: 6px;
  }

  .article-rail__action,
  .post-like--rail {
    width: 42px;
    min-height: 42px;
  }
}

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