@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f8f5ef;
  --paper-deep: #f0ece4;
  --surface: #fffdfa;
  --ink: #26342e;
  --ink-soft: #4d5a52;
  --muted: #718077;
  --line: #d7ddd3;
  --accent: #bc704a;
  --forest: #223b31;
  --font: Vazirmatn, Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::selection { background: #e5bb99; color: var(--forest); }
.shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; right: 20px; z-index: 100; padding: 8px 15px; background: var(--forest); color: white; }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3.1vw, 45px); }
.site-nav a { color: var(--ink-soft); font-size: 14px; font-weight: 600; position: relative; padding-block: 9px; transition: color .2s ease; }
.site-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .22s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--forest); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.hero { display: grid; grid-template-columns: 1fr .74fr; gap: clamp(40px, 5vw, 80px); align-items: center; padding-block: 84px 92px; }
.hero-copy { padding-block: 10px; }
.eyebrow, .kicker { margin: 0; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .005em; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-line { width: 30px; height: 1px; background: var(--accent); }
.hero h1 { margin: 26px 0 24px; font-size: clamp(58px, 6.4vw, 98px); font-weight: 800; line-height: 1.35; letter-spacing: -.085em; }
.hero h1 em { color: var(--forest); font-style: normal; }
.title-period, .accent { color: var(--accent); }
.hero-lead { margin: 0 0 16px; font-size: clamp(20px, 2vw, 27px); font-weight: 700; line-height: 1.6; }
.hero-description { max-width: 540px; margin: 0; color: var(--ink-soft); line-height: 2.15; font-size: 15.5px; }
.hero-actions, .about-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 15px; min-height: 50px; padding: 6px; padding-inline-start: 20px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover { background: #315745; }
.button-quiet { color: var(--forest); border-color: #cbd4c8; }
.button-quiet:hover { background: #eeeee7; border-color: #aebfb0; }
.link-arrow { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; color: inherit; }
.link-arrow svg { display: block; width: 100%; height: 100%; transition: transform .18s ease; }
a:hover .link-arrow svg { transform: translate(-2px, -2px); }
a:hover .link-arrow-back svg { transform: translate(2px, -2px); }
.button .link-arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--forest); }
.button .link-arrow svg { width: 17px; height: 17px; }
.button-quiet .link-arrow { background: #e5ebe3; }
.hero-visual { min-width: 0; }
.hero-image-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 150px 12px 12px 12px; background: #d7d7d0; }
.hero-image-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px #ffffff2e; pointer-events: none; }
.hero-image-frame picture, .hero-image-frame img { width: 100%; height: 100%; }
.hero-image-frame img { object-fit: cover; object-position: 54% center; }
.image-caption { display: flex; align-items: center; justify-content: flex-end; gap: 13px; margin-top: 17px; color: var(--muted); font-size: 12px; }
.caption-rule { width: 27px; height: 1px; background: #9ca99d; }

.intro-section { background: var(--paper-deep); padding-block: 86px 84px; }
.intro-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: end; }
.section-heading h2, .about-teaser h2 { margin: 13px 0 0; font-size: clamp(36px, 3.6vw, 54px); line-height: 1.52; letter-spacing: -.055em; font-weight: 800; }
.intro-text { margin: 0 0 6px; max-width: 455px; color: var(--ink-soft); line-height: 2.15; font-size: 15px; }
.pathways { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 58px; }
.pathway { display: flex; flex-direction: column; min-height: 231px; padding: 27px 31px 30px; background: var(--surface); border: 1px solid #e5e4dd; border-radius: 10px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pathway:hover { transform: translateY(-3px); border-color: #c9d4c8; box-shadow: 0 12px 28px #223b310d; }
.pathway-number { color: var(--accent); font-size: 13px; font-weight: 700; }
.pathway-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 12px; color: var(--forest); font-size: clamp(21px, 2vw, 28px); line-height: 1.65; font-weight: 800; }
.pathway-title .link-arrow { width: 22px; height: 22px; color: var(--accent); }
.pathway:hover .link-arrow { color: var(--forest); }
.pathway-description { max-width: 450px; margin-top: 8px; color: var(--ink-soft); font-size: 14px; line-height: 2.05; }

.latest-wrap { padding-block: 88px 88px; }
.latest-section + .latest-section { margin-top: 86px; }
.latest-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.latest-heading h2 { margin: 1px 0 0; font-size: clamp(32px, 3vw, 42px); line-height: 1.5; letter-spacing: -.045em; }
.all-link, .text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); font-size: 14px; font-weight: 800; transition: color .2s ease; }
.all-link:hover, .text-link:hover { color: #a65b39; }
.all-link .link-arrow, .text-link .link-arrow { width: 17px; height: 17px; }
.empty-state { display: flex; align-items: center; gap: 21px; min-height: 128px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.empty-state p { margin: 0; font-size: 15px; }
.empty-symbol { color: var(--accent); font-size: 33px; line-height: 1; }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.entry-card { display: flex; flex-direction: column; min-height: 246px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.entry-card:hover, .entry-card:focus-within { transform: translateY(-2px); border-color: #bfcec0; box-shadow: 0 10px 24px #223b310a; }
.entry-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; color: var(--muted); font-size: 12px; }
.entry-meta time, .article-meta time { unicode-bidi: isolate; }
.entry-meta span { color: var(--accent); font-weight: 700; }
.entry-date { flex: none; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.7; white-space: nowrap; }
.entry-card h3 { margin: 17px 0 8px; font-size: 22px; line-height: 1.6; }
.entry-card h3 a { transition: color .2s ease; }
.entry-card h3 a:hover { color: #a65b39; }
.entry-card p { margin: 0 0 22px; color: var(--ink-soft); font-size: 13.5px; line-height: 2; text-align: justify; text-align-last: start; text-justify: inter-word; }
.entry-card .text-link { align-self: flex-start; margin-top: auto; }

.about-teaser { display: grid; grid-template-columns: 160px 1fr; gap: 42px; padding: 56px 74px 60px; margin-bottom: 100px; border-radius: 12px; background: var(--forest); color: #f6f5ef; }
.about-teaser-mark { color: #c38964; font-family: Georgia, serif; font-size: 200px; line-height: 1; opacity: .75; text-align: center; }
.about-teaser .kicker { color: #dfac88; }
.about-teaser h2 { margin-top: 9px; max-width: 740px; font-size: clamp(30px, 3.2vw, 45px); }
.about-teaser p:not(.kicker) { max-width: 720px; color: #dae0d7; font-size: 14.5px; line-height: 2.2; }
.about-teaser .text-link { color: #f3d1ad; margin-top: 8px; }
.about-teaser .text-link:hover { color: #fff0dc; }

.page-wrap { padding-block: 80px 118px; min-height: 65vh; }
.page-header { max-width: 750px; margin-bottom: 60px; }
.page-header h1 { margin: 12px 0 13px; font-size: clamp(49px, 5vw, 74px); line-height: 1.4; letter-spacing: -.07em; }
.page-header > p:last-child { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 2; text-align: justify; text-align-last: start; text-justify: inter-word; }
.archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive-empty { min-height: 260px; padding: 50px 0; border-top: 1px solid var(--line); }
.archive-empty h2 { margin: 15px 0 7px; font-size: 27px; }
.archive-empty p { margin: 0 0 20px; color: var(--ink-soft); }
.about-page .page-header { margin-bottom: 42px; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: clamp(40px, 6vw, 90px); align-items: start; }
.about-copy { padding-top: 14px; max-width: 625px; }
.about-copy p { color: var(--ink-soft); font-size: 16px; line-height: 2.25; margin: 0 0 20px; }
.about-copy .about-lead { color: var(--ink); font-size: 21px; font-weight: 700; line-height: 2; }
.about-figure { width: 100%; max-width: 320px; margin: 0; justify-self: center; }
.about-figure picture, .about-figure img { display: block; width: 100%; }
.about-figure img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 54% center; border-radius: 90px 9px 9px 9px; }
.about-figure figcaption { color: var(--muted); font-size: 12px; padding-top: 11px; }

.article-wrap { max-width: 850px; padding-block: 50px 120px; }
.article-back { margin-bottom: 65px; color: var(--ink-soft); font-size: 13px; }
.article-back a { display: inline-flex; align-items: center; gap: 9px; transition: color .2s ease; }
.article-back a:hover { color: #a65b39; }
.article-back .link-arrow { width: 16px; height: 16px; }
.article-header { padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.article-meta { display: flex; gap: 12px; color: var(--muted); font-size: 13px; }
.article-meta span:first-child { color: var(--accent); font-weight: 700; }
.article-header h1 { margin: 16px 0 12px; font-size: clamp(39px, 4.3vw, 62px); line-height: 1.5; letter-spacing: -.06em; }
.article-header p { margin: 0; color: var(--ink-soft); font-size: 17px; text-align: justify; text-align-last: start; text-justify: inter-word; }
.prose { padding-block: 28px 45px; color: #34443a; font-size: 17px; line-height: 2.3; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.5em; }
.prose ul, .prose ol { padding-inline-start: 1.5em; }
.prose p, .prose li, .prose blockquote { text-align: justify; text-align-last: start; text-justify: inter-word; }
.prose li { padding-inline-start: .25em; margin-bottom: .45em; }
.prose h2 { margin: 1.8em 0 .65em; font-size: 30px; line-height: 1.6; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 23px; line-height: 1.6; }
.prose a { color: #a65b39; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
.prose a:hover { color: var(--forest); text-decoration-color: var(--accent); }
.prose blockquote { padding: 4px 22px 4px 0; border-right: 3px solid var(--accent); color: var(--ink-soft); }
.prose img { border-radius: 7px; }
.prose code { font-family: Consolas, monospace; font-size: .9em; direction: ltr; unicode-bidi: isolate; }
.prose pre { overflow: auto; direction: ltr; text-align: left; padding: 20px; background: #e9ede8; border-radius: 6px; line-height: 1.7; }
.prose pre code { white-space: pre; }
.series-nav { margin: 5px 0 39px; padding: 30px 32px 26px; border-radius: 10px; background: var(--paper-deep); }
.series-nav h2 { margin: 1px 0 19px; font-size: 27px; line-height: 1.6; }
.series-nav ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid #d8ddd3; }
.series-nav li { border-bottom: 1px solid #d8ddd3; }
.series-nav a { display: grid; grid-template-columns: 90px 1fr 20px; align-items: center; gap: 14px; padding: 12px 2px; color: var(--ink-soft); font-size: 13px; transition: color .2s ease; }
.series-nav a strong { color: var(--ink); font-size: 14px; font-weight: 700; }
.doc-download { display: grid; grid-template-columns: 168px 1fr; align-items: center; gap: 30px; margin: 10px 0 34px; padding: 26px; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 10px; }
.doc-cover { display: block; transform: rotate(-2deg); transition: transform .25s ease; }
.doc-cover img { width: 100%; height: auto; border: 1px solid #e2e0d8; border-radius: 4px; box-shadow: 0 1px 2px #223b3114, 0 12px 26px #223b311f; }
.prose .doc-cover img { border-radius: 4px; }
.doc-download:hover .doc-cover { transform: rotate(0) translateY(-3px); }
.doc-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.doc-kind { color: var(--accent); font-size: 12px; font-weight: 800; }
.doc-title { color: var(--ink); font-size: 20px; line-height: 1.7; }
.doc-details { color: var(--muted); font-size: 13px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.prose .doc-download a { color: inherit; text-decoration: none; }
.prose .doc-download .button-primary { color: #fff; }
.prose .doc-download .button-quiet { color: var(--forest); }
.doc-save:hover .link-arrow svg { transform: translateY(2px); }
.series-nav a[aria-current="page"] { color: var(--forest); }
.series-nav a[aria-current="page"] strong, .series-nav a:hover strong { color: #a65b39; }
.series-nav a[aria-current="page"] .series-arrow { visibility: hidden; }
.series-arrow { color: var(--accent); }
.article-footer { padding-top: 27px; border-top: 1px solid var(--line); }

.site-footer { background: #e9e9df; border-top: 1px solid #d9dfd4; }
.footer-inner { min-height: 195px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-title { margin: 0 0 5px; font-size: 21px; font-weight: 800; }
.footer-title span { color: var(--accent); }
.footer-description { margin: 0; color: var(--ink-soft); font-size: 13px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 13px; color: var(--ink-soft); font-size: 12px; }
.footer-meta a { display: inline-flex; align-items: center; gap: 7px; }
.footer-meta a:hover { color: var(--accent); }
.footer-meta .link-arrow { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .shell { width: min(100% - 48px, 1200px); }
  .hero { gap: 36px; }
  .hero h1 { font-size: clamp(52px, 7vw, 72px); }
  .hero-image-frame { aspect-ratio: 4 / 5; }
  .hero-description { font-size: 14px; }
  .intro-inner { gap: 30px; }
  .about-teaser { grid-template-columns: 90px 1fr; padding-inline: 44px; }
  .about-teaser-mark { font-size: 150px; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 36px, 1200px); }
  .doc-download { grid-template-columns: 96px 1fr; gap: 18px; padding: 18px; }
  .doc-title { font-size: 16px; }
  .doc-actions { grid-column: 1 / -1; }
  .header-inner { min-height: 76px; flex-wrap: wrap; align-content: center; gap: 0; padding-block: 15px 11px; }
  .brand { width: 100%; margin-bottom: 9px; }
  .brand-name { font-size: 15px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 7px; }
  .site-nav a { font-size: 12px; padding: 4px 0; }
  .site-nav a::after { bottom: 0; }
  .hero { grid-template-columns: 1fr; padding-block: 53px 58px; gap: 36px; }
  .hero h1 { font-size: clamp(58px, 12vw, 80px); margin-block: 16px 18px; line-height: 1.35; }
  .hero-lead { font-size: 21px; }
  .hero-description { font-size: 14.5px; }
  .hero-actions { margin-top: 25px; }
  .hero-image-frame { aspect-ratio: 4 / 5; border-top-left-radius: 100px; }
  .hero-image-frame img { object-position: 54% center; }
  .intro-section { padding-block: 60px; }
  .intro-inner, .pathways, .about-layout { grid-template-columns: 1fr; }
  .intro-inner { gap: 15px; }
  .section-heading h2 { font-size: 37px; }
  .pathways { margin-top: 32px; gap: 13px; }
  .pathway { min-height: auto; padding: 22px; }
  .pathway-title { font-size: 23px; }
  .latest-wrap { padding-block: 65px; }
  .latest-section + .latest-section { margin-top: 65px; }
  .latest-heading { align-items: center; }
  .latest-heading h2 { font-size: 32px; }
  .all-link { font-size: 12px; white-space: nowrap; }
  .entry-grid, .archive-grid { grid-template-columns: 1fr; }
  .entry-card { min-height: 190px; }
  .about-teaser { grid-template-columns: 1fr; gap: 0; padding: 33px 29px 37px; margin-bottom: 65px; }
  .about-teaser-mark { display: none; }
  .about-teaser h2 { font-size: 30px; }
  .page-wrap { padding-block: 58px 80px; }
  .page-header { margin-bottom: 37px; }
  .page-header h1 { font-size: 49px; }
  .page-header > p:last-child { font-size: 15px; }
  .about-layout { gap: 30px; }
  .about-copy { padding-top: 0; }
  .about-copy .about-lead { font-size: 18px; }
  .about-copy p { font-size: 14.5px; }
  .about-figure { max-width: min(300px, 100%); }
  .article-wrap { padding-block: 35px 80px; }
  .article-back { margin-bottom: 38px; }
  .prose { font-size: 16px; }
  .series-nav { padding: 23px 19px; }
  .series-nav a { grid-template-columns: 55px 1fr 20px; gap: 9px; font-size: 11px; }
  .series-nav a strong { font-size: 12px; line-height: 1.7; }
  .footer-inner { min-height: 190px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 23px; }
  .footer-meta { align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
