:root { color-scheme: light; --ink: #1b1039; --purple: #880ce5; --muted: #626174; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Vazirmatn, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #b657f4; outline-offset: 5px; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
/* Reuse the supplied mockup's editorial photo as an image sprite.
   All navigation, article text, cards and controls are live HTML. */
.page-shell { max-width: 1320px; margin: auto; padding-bottom: 32px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; color: #662a8b; font-size: 14px; min-height: 49px; padding-top: 6px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 944fr) minmax(280px, 342fr); gap: 34px; align-items: start; }
.category { display: inline-block; color: #fff; background: var(--purple); border-radius: 20px; padding: 3px 14px; font-size: 13px; }
h1 { font-size: clamp(25px, 2.15vw, 34px); line-height: 1.6; margin: 3px 0 5px; font-weight: 700; letter-spacing: -.6px; }
.post-meta { display: flex; align-items: center; gap: 16px; font-size: 14px; color: #413955; flex-wrap: wrap; margin-bottom: 23px; }
.post-meta > span { display: inline-flex; gap: 9px; align-items: center; }
.post-meta > span + span::before { content: ''; width: 1px; height: 16px; background: #b2adb9; margin-left: 5px; }
.post-meta .icon { width: 18px; height: 18px; color: var(--ink); }
.post-image { width: 100%; aspect-ratio: 944 / 324; border-radius: 12px; background: url('../images/mockups/post.webp') 81.7568% 37.8571% / 162.7119% auto no-repeat; }
/* A post's featured image replaces the mockup photo. */
.post-image-photo { display: block; height: auto; object-fit: cover; background: none; }
.post-body { font-size: 16px; line-height: 1.65; color: var(--muted); }
.post-body p { margin: 18px 0 20px; }
.post-body h2 { display: flex; gap: 11px; align-items: baseline; font-size: 21px; color: var(--ink); margin: 18px 0 6px; line-height: 1.7; }
.post-body h2::before { content: ''; flex-shrink: 0; width: 21px; height: 7px; border-radius: 2px; background: var(--purple); }
.post-body h2 + p { margin-top: 6px; }
.sidebar { display: grid; gap: 27px; }
.contents-card { border: 1px solid #dbd9e3; border-radius: 12px; padding: 30px 19px 26px; }
.sidebar h2 { font-size: 20px; margin: 0; }
.contents-card h2 { display: flex; align-items: center; gap: 16px; }
.list-icon { display: grid; place-items: center; width: 27px; height: 29px; border-radius: 8px; background: var(--purple); color: #fff; }
.list-icon .icon { width: 20px; height: 20px; }
.contents-card ol { list-style: none; counter-reset: contents; padding: 0; margin: 25px 0 0; display: grid; gap: 23px; }
.contents-card li { counter-increment: contents; display: flex; align-items: baseline; gap: 15px; color: #3d3650; font-size: 14px; line-height: 2; }
.contents-card li::before { content: counter(contents, persian); background: #f0e8fa; border-radius: 50%; width: 25px; height: 25px; text-align: center; line-height: 25px; flex-shrink: 0; font-weight: 700; color: #665381; }
.contents-card a:hover { color: var(--purple); }
.newsletter { background: #f5effd; border-radius: 12px; padding: 38px 19px 46px; }
.newsletter h2 { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.newsletter h2 .icon { width: 32px; height: 32px; color: var(--purple); stroke-width: 2.5; }
.newsletter > p { font-size: 15px; line-height: 1.85; color: var(--muted); margin: 19px 0 21px; }
.email-field { position: relative; }
.email-field input { width: 100%; height: 45px; border: 1px solid #e6dff0; border-radius: 15px; background: #fff; color: var(--ink); padding: 10px 13px 10px 40px; font-size: 14px; }
.email-field input::placeholder { color: #97929f; }
.email-field > .icon { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; pointer-events: none; }
.newsletter button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 47px; margin-top: 15px; border: 0; border-radius: 22px; color: #fff; background: var(--purple); font-weight: 700; font-size: 14px; }
.newsletter button:hover { background: #7404cc; }
.newsletter .form-status { font-size: 13px; line-height: 1.8; margin: 14px 0 0; }
.magazine-card { min-height: 123px; border-radius: 11px; padding: 20px; display: flex; gap: 12px; align-items: center; color: #fff; background: linear-gradient(to left, #190b32 35%, #190b3240), url('../images/background.webp') center 65% / cover; font-weight: 700; font-size: 14px; }
.round-arrow { width: 33px; height: 33px; border-radius: 50%; background: var(--purple); display: grid; place-items: center; flex-shrink: 0; }
.book-icon { width: 32px; height: 32px; margin-right: auto; }
.search-match { background: #f5e1ff; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 1400px) {
    .page-shell { margin-inline: 5%; }
}
@media (max-width: 1000px) {
    .page-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
    .post-meta { gap: 8px; font-size: 12px; }
    .post-meta > span + span::before { display: none; }
    .post-body h2 { font-size: 19px; }
    .sidebar h2 { font-size: 18px; }
}
@media (max-width: 760px) {
    .breadcrumbs { font-size: 12px; padding-block: 14px; }
    .page-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    h1 { font-size: 26px; line-height: 1.65; margin: 10px 0; }
    .post-meta { margin-bottom: 18px; gap: 10px 15px; }
    .post-body { font-size: 15px; line-height: 1.95; }
    .post-image { border-radius: 9px; }
    .sidebar { gap: 20px; }
    .contents-card { padding: 24px; }
    .newsletter { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
