@font-face {
    font-family: "Yekan Bakh";
    src: url("../fonts/YekanBakh-Thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-ExtraBlack.woff2") format("woff2"); font-weight: 950; font-style: normal; font-display: swap; }

:root {
    --bg: #070b10;
    --surface: #101722;
    --surface-2: #151e2a;
    --paper: #f1f2ec;
    --paper-muted: #626a70;
    --text: #f1f2ec;
    --muted: #b2b9c3;
    --dim: #85909f;
    --line: rgba(241, 242, 236, 0.16);
    --lime: #c7ff3d;
    --lime-soft: #dcff84;
    --ink: #11170a;
    --radius: 18px;
    --content: 1256px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 8%, rgba(15, 39, 70, .27), transparent 31rem),
        var(--bg);
    color: var(--text);
    font-family: "Yekan Bakh", Tahoma, "Segoe UI", Arial, sans-serif;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.skip-link {
    position: fixed;
    z-index: 100;
    inset: 12px auto auto 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--ink);
    background: var(--lime);
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    z-index: 50;
    inset-block-start: 0;
    height: 78px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 11, 16, .9);
    backdrop-filter: blur(16px);
}
.header-inner {
    width: min(var(--content), calc(100% - 48px));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nextry-wordmark {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1;
}
.nextry-wordmark b {
    position: relative;
    color: var(--lime);
    font-size: 1.08em;
    font-weight: 900;
    letter-spacing: .05em;
    filter: drop-shadow(0 0 10px rgba(199, 255, 61, .22));
}
.header-instagram {
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--muted);
    background: rgba(16, 23, 34, .6);
    font-size: 12px;
    font-weight: 700;
    transition: border-color .2s, color .2s, transform .2s;
}
.header-instagram:hover { color: var(--text); border-color: rgba(199, 255, 61, .45); transform: translateY(-1px); }
.header-instagram svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.header-instagram .fill { fill: currentColor; stroke: none; }

.hero-shell {
    width: min(1312px, calc(100% - 56px));
    min-height: 650px;
    margin-inline: auto;
    padding-block: 56px 62px;
    display: grid;
    grid-template-columns: minmax(340px, 5fr) minmax(480px, 7fr);
    align-items: center;
    gap: 58px;
}
.hero-intro { max-width: 535px; }
.eyebrow, .section-kicker {
    margin: 0 0 16px;
    color: var(--lime);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.01em;
}
.hero-intro h1, .empty-home h1 {
    margin: 0;
    font-size: clamp(42px, 4.4vw, 64px);
    line-height: 1.4;
    letter-spacing: -2.5px;
    font-weight: 950;
}
.hero-description {
    max-width: 510px;
    margin: 22px 0 7px;
    color: var(--text);
    font-size: 19px;
    font-weight: 600;
    line-height: 2;
}
.hero-weekly {
    max-width: 510px;
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 15px;
    line-height: 2;
}
.hero-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.primary-button, .text-link {
    min-height: 56px;
    border-radius: 12px;
    padding-inline: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 850;
    transition: transform .2s, background .2s, border-color .2s;
}
.primary-button { color: var(--ink); background: var(--lime); }
.primary-button:hover { transform: translateY(-2px); background: var(--lime-soft); }
.text-link { color: var(--muted); border-color: var(--line); background: transparent; }
.text-link:hover { color: var(--text); border-color: rgba(199, 255, 61, .42); }

.weekly-card {
    position: relative;
    overflow: hidden;
    min-height: 522px;
    padding: 27px;
    border: 1px solid rgba(241, 242, 236, .2);
    border-radius: 22px;
    background:
        radial-gradient(circle at 76% 25%, rgba(30, 56, 84, .34), transparent 23rem),
        linear-gradient(145deg, #121b28, #090e15);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .035);
}
.weekly-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 48%, rgba(199, 255, 61, .028));
}
.weekly-card-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weekly-card-top time { direction: ltr; color: var(--dim); font-size: 10px; }
.weekly-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(199, 255, 61, .43);
    border-radius: 99px;
    color: var(--lime);
    background: rgba(199, 255, 61, .045);
    font-size: 10px;
    font-weight: 750;
}
.weekly-cover {
    position: relative;
    z-index: 2;
    height: 258px;
    margin-top: 19px;
    overflow: hidden;
    border: 1px solid rgba(241, 242, 236, .11);
    border-radius: 16px;
    background: #0a1018 center / cover no-repeat;
    box-shadow: inset 0 0 0 999px rgba(2, 8, 15, .07);
}
.weekly-copy { position: relative; z-index: 2; padding: 21px 3px 0; }
.category-label { color: var(--lime); font-size: 10px; font-weight: 750; }
.weekly-copy h2 { margin: 7px 0 6px; font-size: clamp(23px, 2.25vw, 32px); line-height: 1.65; letter-spacing: -.6px; }
.weekly-copy p { margin: 0; color: var(--dim); font-size: 12px; line-height: 1.9; }
.topic-view-count { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 600; white-space: nowrap; }
.weekly-copy > .topic-view-count { margin-top: 11px; color: var(--text); }

.default-visual {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 53% 54%, rgba(199, 255, 61, .16), transparent 32%),
        linear-gradient(145deg, #111b29, #080d14);
}
.default-visual::before, .default-visual::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(199, 255, 61, .12);
    border-radius: 50%;
}
.default-visual::before { width: 240px; height: 240px; inset: 15px auto auto -65px; }
.default-visual::after { width: 150px; height: 150px; inset: 50px auto auto -20px; border-style: dashed; }
.focus-x {
    position: absolute;
    z-index: 3;
    inset: 41% auto auto 45%;
    color: var(--lime);
    font: 900 62px/1 Arial;
    text-shadow: 0 0 31px rgba(199, 255, 61, .42);
}
.default-visual i { position: absolute; z-index: 2; width: 8px; height: 8px; border-radius: 50%; background: #728096; }
.default-visual i:nth-of-type(1) { right: 12%; top: 26%; }
.default-visual i:nth-of-type(2) { right: 20%; top: 55%; }
.default-visual i:nth-of-type(3) { right: 8%; top: 78%; }
.default-visual svg { position: absolute; z-index: 2; width: 54%; height: 60%; inset: 20% 3% auto auto; }
.default-visual polyline { fill: none; stroke: var(--lime); stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px rgba(199, 255, 61, .45)); }

.content-stack { width: 100%; }
.topic-panel { width: 100%; }
.topic-context-bar {
    width: min(var(--content), calc(100% - 56px));
    min-height: 58px;
    margin: 0 auto 24px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(199, 255, 61, .2);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(199, 255, 61, .035);
    font-size: 11px;
}
.topic-context-bar button { border: 0; color: var(--lime); background: transparent; font-weight: 750; }
.topic-context-bar > span { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topic-context-bar .topic-view-count { color: var(--text); }

.audio-section {
    width: min(var(--content), calc(100% - 56px));
    margin-inline: auto;
    padding: 76px 0 90px;
    border-top: 1px solid var(--line);
}
.section-heading, .reading-head, .archive-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}
.section-heading h2, .reading-head h2, .archive-heading h2 { margin: 0; font-size: clamp(27px, 3vw, 38px); line-height: 1.65; letter-spacing: -.7px; }
.headphone-note { color: var(--dim); font-size: 11px; }
.audio-player {
    direction: ltr;
    min-height: 156px;
    padding: 25px 28px;
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 26px;
    border: 1px solid rgba(241, 242, 236, .18);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(19, 29, 42, .96), rgba(10, 15, 23, .96));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .025);
}
.audio-player audio { display: none; }
.play-button {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: var(--lime);
    box-shadow: 0 0 0 10px rgba(199, 255, 61, .06), 0 10px 32px rgba(0, 0, 0, .24);
    transition: transform .2s, background .2s;
}
.play-button:hover { transform: scale(1.04); background: var(--lime-soft); }
.play-button svg { width: 30px; height: 30px; fill: currentColor; }
.play-button .pause-icon { display: none; }
.audio-player.is-playing .play-icon { display: none; }
.audio-player.is-playing .pause-icon { display: block; }
.player-main { min-width: 0; }
.player-time { margin-bottom: 9px; display: flex; justify-content: space-between; color: var(--dim); font: 11px Arial, sans-serif; }
.seek {
    --progress: 0%;
    width: 100%;
    height: 5px;
    margin: 0;
    appearance: none;
    border-radius: 99px;
    outline: 0;
    background: linear-gradient(to right, var(--lime) var(--progress), #344052 var(--progress));
}
.seek::-webkit-slider-thumb { width: 16px; height: 16px; appearance: none; border: 4px solid var(--surface); border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(199, 255, 61, .55); }
.seek::-moz-range-thumb { width: 10px; height: 10px; border: 4px solid var(--surface); border-radius: 50%; background: var(--lime); }
.player-tools { margin-top: 17px; display: flex; align-items: center; gap: 9px; color: var(--dim); }
.player-tools button, .player-tools label {
    direction: rtl;
    min-height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(7, 11, 16, .45);
    font-size: 10px;
}
.player-tools button:hover { color: var(--text); border-color: rgba(199, 255, 61, .35); }
.player-tools label { margin-left: 0; margin-right: auto; }
.player-tools select { border: 0; outline: 0; color: var(--text); background: transparent; font-size: 10px; cursor: pointer; }
.player-tools option { color: #111; }

.reading-section {
    width: 100%;
    padding: 84px max(28px, calc((100% - 960px) / 2)) 110px;
    color: #14191b;
    background: var(--paper);
    box-shadow: inset 0 1px rgba(255, 255, 255, .7);
}
.reading-head { max-width: 960px; margin-inline: auto; padding-bottom: 25px; border-bottom: 1px solid rgba(20, 25, 27, .16); }
.reading-head .section-kicker { color: #5f7b12; }
.reading-head > span { flex: 0 0 auto; padding: 7px 11px; border: 1px solid rgba(20, 25, 27, .16); border-radius: 99px; color: var(--paper-muted); font-size: 10px; }
.reading-body {
    max-width: 820px;
    margin: 42px auto 0;
    color: #272d30;
    font-size: clamp(17px, 1.4vw, 19px);
    font-weight: 440;
    line-height: 2.25;
}
.reading-body > *:first-child { margin-top: 0; }
.reading-body p, .reading-body div { margin: 0 0 1.45em; }
.reading-body h2 { margin: 2.2em 0 .75em; color: #101416; font-size: 1.62em; line-height: 1.75; }
.reading-body h3 { margin: 2em 0 .65em; color: #101416; font-size: 1.28em; line-height: 1.75; }
.reading-body h4 { margin: 1.8em 0 .55em; font-size: 1.08em; }
.reading-body strong, .reading-body b { color: #11170a; font-weight: 850; }
.reading-body ul, .reading-body ol { margin: 1.1em 0 1.7em; padding-right: 1.35em; }
.reading-body li { margin-bottom: .6em; padding-right: .35em; }
.reading-body blockquote { margin: 2em 0; padding: 20px 23px; border-right: 4px solid #8cb41f; border-radius: 0 12px 12px 0; color: #3f474b; background: rgba(140, 180, 31, .08); }
.reading-body a { color: #4f6f00; text-decoration: underline; text-underline-offset: 4px; }
.reading-body hr { height: 1px; margin: 2.5em 0; border: 0; background: rgba(20, 25, 27, .15); }
.reading-empty { min-height: 280px; max-width: 820px; margin: 30px auto 0; display: grid; place-content: center; justify-items: center; color: var(--paper-muted); text-align: center; }
.reading-empty span { color: #668700; font-size: 28px; }
.pdf-shell { width: min(1180px, calc(100vw - 48px)); height: 85vh; min-height: 620px; margin: 34px 50% 0 0; transform: translateX(50%); overflow: hidden; border: 1px solid rgba(20, 25, 27, .15); border-radius: 14px; background: #fff; }
.pdf-shell iframe { width: 100%; height: 100%; border: 0; }

.archive-section { width: min(var(--content), calc(100% - 56px)); margin-inline: auto; padding: 86px 0 110px; }
.archive-heading { align-items: center; }
.archive-heading > span { color: var(--dim); font-size: 11px; }
.topic-list { display: grid; gap: 9px; }
.topic-row {
    width: 100%;
    min-height: 86px;
    padding: 13px 17px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto 94px;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--text);
    text-align: right;
    background: rgba(16, 23, 34, .58);
    transition: transform .2s, border-color .2s, background .2s;
}
.topic-row:hover { transform: translateY(-2px); border-color: rgba(199, 255, 61, .33); background: var(--surface-2); }
.topic-arrow { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--lime); background: #121b28; font-size: 20px; }
.topic-row-copy { display: flex; flex-direction: column; gap: 5px; }
.topic-row-copy small { color: var(--lime); font-size: 9px; }
.topic-row-copy strong { font-size: 15px; line-height: 1.7; }
.topic-formats { display: flex; gap: 6px; flex-wrap: wrap; }
.topic-formats i { padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--dim); font-size: 9px; font-style: normal; }
.topic-formats .topic-view-count { padding: 5px 8px; border: 1px solid rgba(199, 255, 61, .2); border-radius: 99px; color: var(--muted); font-size: 9px; }
.row-open { color: var(--muted); font-size: 10px; }

.empty-home { width: min(1160px, calc(100% - 48px)); min-height: calc(100vh - 78px); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.empty-home-visual { height: 390px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; }

.site-footer {
    min-height: 158px;
    padding: 42px max(28px, calc((100% - var(--content)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid var(--line);
    color: var(--dim);
}
.footer-wordmark { font-size: 22px; }
.site-footer p { margin: 11px 0 0; font-size: 10px; }
.footer-instagram { direction: ltr; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-instagram span { color: var(--dim); font-size: 9px; }
.footer-instagram strong { color: var(--text); font-size: 15px; letter-spacing: .04em; }
.footer-instagram:hover strong { color: var(--lime); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

@media (max-width: 1000px) {
    .hero-shell { grid-template-columns: 1fr; gap: 36px; padding-block: 52px; }
    .hero-intro { max-width: 780px; }
    .weekly-card { min-height: auto; }
    .weekly-cover { height: clamp(230px, 45vw, 380px); }
}

@media (max-width: 700px) {
    .site-header { height: 68px; }
    .header-inner { width: calc(100% - 30px); }
    .nextry-wordmark { font-size: 23px; }
    .header-instagram { min-height: 38px; padding-inline: 11px; }
    .header-instagram span { display: none; }
    .hero-shell { width: calc(100% - 28px); padding-block: 38px 42px; }
    .hero-intro h1, .empty-home h1 { font-size: 38px; line-height: 1.38; letter-spacing: -1.5px; }
    .hero-description { margin-block: 17px 5px; font-size: 16px; line-height: 1.95; }
    .hero-weekly { margin-block: 0 24px; font-size: 14px; line-height: 1.9; }
    .hero-links { align-items: stretch; flex-direction: column; }
    .primary-button, .text-link { width: 100%; min-height: 52px; }
    .weekly-card { padding: 16px 14px 20px; border-radius: 17px; }
    .weekly-card-top { align-items: flex-start; }
    .weekly-cover { height: 190px; border-radius: 13px; }
    .focus-x { font-size: 48px; }
    .weekly-copy { padding-top: 17px; }
    .weekly-copy h2 { font-size: 21px; }
    .topic-context-bar { width: calc(100% - 28px); align-items: flex-start; flex-direction: column; }
    .audio-section { width: calc(100% - 28px); padding-block: 52px 62px; }
    .section-heading, .reading-head, .archive-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .section-heading h2, .reading-head h2, .archive-heading h2 { font-size: 25px; }
    .headphone-note { display: none; }
    .audio-player { padding: 19px 14px; grid-template-columns: 58px 1fr; gap: 14px; }
    .play-button { width: 56px; height: 56px; box-shadow: 0 0 0 7px rgba(199, 255, 61, .06); }
    .play-button svg { width: 24px; }
    .player-tools { flex-wrap: wrap; }
    .player-tools label { margin-right: 0; }
    .reading-section { padding: 58px 21px 76px; }
    .reading-head { margin-bottom: 0; }
    .reading-body { margin-top: 30px; font-size: 16.5px; line-height: 2.18; }
    .reading-body h2 { font-size: 1.42em; }
    .pdf-shell { width: calc(100vw - 24px); min-height: 520px; height: 74vh; }
    .archive-section { width: calc(100% - 28px); padding-block: 58px 78px; }
    .topic-row { min-height: 96px; padding: 12px 10px; grid-template-columns: 42px 1fr auto; gap: 11px; }
    .topic-arrow { width: 38px; height: 38px; }
    .topic-formats { grid-column: 2; }
    .row-open { grid-column: 3; grid-row: 1 / span 2; font-size: 0; }
    .row-open::after { content: "←"; font-size: 18px; }
    .empty-home { min-height: calc(100vh - 68px); padding-block: 45px; grid-template-columns: 1fr; gap: 30px; }
    .empty-home-visual { height: 250px; grid-row: 1; }
    .site-footer { padding: 37px 20px; align-items: flex-start; flex-direction: column; }
    .footer-instagram { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
    .site-header, .hero-shell, .audio-section, .archive-section, .site-footer, .topic-context-bar { display: none !important; }
    .topic-panel[hidden] { display: none !important; }
    .reading-section { padding: 0; color: #000; background: #fff; }
}
