@font-face {
    font-family: "Vazir";
    src: url("../fonts/Vazir.woff") format("woff");
    font-display: swap;
}

:root {
    --ink: #283618;
    --muted: #5a6242;
    --paper: #faf8f2;
    --line: rgba(40, 54, 24, 0.12);
    --accent: #5a6242;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: Vazir, Tahoma, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.75;
    direction: rtl;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

.read-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 248, 242, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.read-header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0.7rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.read-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.read-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.read-nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.read-nav a.cta {
    background: var(--ink);
    color: #fefae0;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
}

.read-nav a.cta:hover { color: #fff; background: #3d4f24; }

.read-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.25rem 1.1rem 3rem;
}

.read-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.1rem;
}

.read-kicker {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.read-main h1 {
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    line-height: 1.4;
    margin: 0 0 1rem;
}

.read-lead {
    color: var(--muted);
    margin: 0 0 1.35rem;
}

.read-crumbs {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.read-crumbs a { color: var(--muted); }
.read-crumbs a:hover { color: var(--ink); }

.read-byline {
    font-size: 0.82rem;
    color: var(--muted);
    margin: -0.35rem 0 1.1rem;
}

.read-body {
    font-size: 1.05rem;
    color: var(--muted);
}

.read-body p { margin: 0 0 1rem; }

.read-body h2, .read-body h3 {
    color: var(--ink);
    margin: 1.5rem 0 0.6rem;
    font-size: 1.15rem;
}

.read-body ul, .read-body ol {
    margin: 0 0 1rem;
    padding-right: 1.2rem;
}

.read-body img,
.read-body video,
.read-photo {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 1.15rem 0;
    background: #efe8d4;
    box-shadow: 0 10px 28px rgba(40, 54, 24, 0.08);
}

.read-cards {
    display: grid;
    gap: 1rem;
}

.read-card {
    display: block;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: inherit;
}

.read-card:hover {
    color: inherit;
    border-color: rgba(40, 54, 24, 0.22);
    box-shadow: 0 10px 24px rgba(40, 54, 24, 0.07);
}

.read-card-media {
    aspect-ratio: 16 / 10;
    background: #efe8d4;
    overflow: hidden;
}

.read-card-media.is-empty {
    min-height: 0;
    aspect-ratio: auto;
    height: 0;
}

.read-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.read-card-body {
    padding: 0.95rem 1rem 1.1rem;
}

.read-card-body h2 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
    line-height: 1.5;
}

.read-card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-cta {
    margin-top: 2.25rem;
    padding: 1.35rem 1.2rem 1.4rem;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(40, 54, 24, 0.96), #3d4a28 58%, #5a6242);
    color: #f7f1e1;
}

.read-cta-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0.72;
    margin-bottom: 0.4rem;
}

.read-cta h2 {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.55;
    margin: 0 0 0.55rem;
}

.read-cta p {
    margin: 0 0 1.05rem;
    color: rgba(247, 241, 225, 0.84);
    font-size: 0.92rem;
    line-height: 1.7;
}

.read-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: #f7f1e1;
    color: #283618;
    font-weight: 700;
}

.read-cta-btn:hover {
    color: #283618;
    background: #fff;
}

.read-empty {
    color: var(--muted);
    padding: 2rem 0;
}

.read-block { margin: 1.5rem 0; }

.read-block h2 {
    font-size: 1.12rem;
    margin: 0 0 0.65rem;
}

.read-player {
    width: 100%;
    display: block;
}

.read-video {
    max-height: 70vh;
    background: #111;
    border-radius: 12px;
}

.read-hero-video {
    position: relative;
    margin: 0 0 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    background: #1b2410;
    aspect-ratio: 16 / 9;
    box-shadow: 0 14px 34px rgba(40, 54, 24, 0.16);
}

.read-hero-video::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: read-spin 0.9s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.read-hero-video.is-ready:not(.is-buffering)::before { display: none; }

.read-video-hero {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.read-hero-video figcaption {
    position: absolute;
    inset: 0 0 auto 0;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent);
    pointer-events: none;
    z-index: 1;
}

.read-hero-video.is-playing figcaption { opacity: 0; transition: opacity 0.3s; }

.read-video-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.25rem;
    border: 0;
    margin: 0;
    width: 100%;
    font: inherit;
    color: #fefae0;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(221, 161, 94, 0.28), transparent 42%),
        radial-gradient(circle at 10% 90%, rgba(254, 250, 224, 0.12), transparent 45%),
        repeating-linear-gradient(135deg, rgba(254, 250, 224, 0.035) 0 2px, transparent 2px 14px),
        linear-gradient(150deg, #283618 0%, #3a4a24 55%, #606c38 100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.read-hero-video.cover-gone .read-video-cover {
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
}

.read-hero-video:has(.read-video-cover)::before { display: none; }
.read-hero-video.cover-gone.is-buffering::before { display: block; }

.cover-glow {
    position: absolute;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 250, 224, 0.12), transparent 65%);
    pointer-events: none;
}

.cover-tooth {
    width: clamp(34px, 8vw, 48px);
    height: auto;
    color: #dda15e;
    margin-bottom: 0.15rem;
    position: relative;
}

.cover-kicker {
    position: relative;
    font-size: clamp(0.68rem, 2.2vw, 0.8rem);
    letter-spacing: 0.04em;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(254, 250, 224, 0.12);
    border: 1px solid rgba(254, 250, 224, 0.2);
}

.cover-title {
    position: relative;
    font-size: clamp(1.35rem, 5.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.cover-sub {
    position: relative;
    max-width: 30rem;
    font-size: clamp(0.78rem, 2.6vw, 0.95rem);
    color: rgba(254, 250, 224, 0.82);
    line-height: 1.7;
}

.cover-play {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(54px, 13vw, 72px);
    height: clamp(54px, 13vw, 72px);
    margin-top: 0.6rem;
    border-radius: 50%;
    background: #fefae0;
    color: #283618;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease;
}

.cover-play::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(254, 250, 224, 0.45);
    animation: cover-pulse 2s ease-out infinite;
}

.cover-play svg {
    width: 42%;
    height: 42%;
    margin-left: 8%;
}

.read-video-cover:hover .cover-play,
.read-video-cover:focus-visible .cover-play { transform: scale(1.08); }

.read-video-cover:focus-visible { outline: 3px solid #dda15e; outline-offset: -3px; }

.cover-duration {
    position: absolute;
    bottom: 0.75rem;
    left: 0.85rem;
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

@keyframes cover-pulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cover-play::after { animation: none; }
}

@keyframes read-spin { to { transform: rotate(360deg); } }

.read-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.25rem 1.1rem 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.read-footer a { color: var(--muted); }

@media (max-width: 520px) {
    .read-brand span { display: none; }
}
