:root { color-scheme: light; --ink: #110b27; --purple: #5812b5; --muted: #686575; --border: #e9e7ed; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Vazirmatn, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #a35ce8; outline-offset: 5px; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
/* The supplied artwork is reused as responsive image sprites; page text is live HTML. */
.magazine-shell { max-width: 1376px; margin: 33px auto 0; padding-bottom: 14px; }
.magazine-intro { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 816fr); gap: 40px; align-items: center; }
.intro-copy { padding: 0 18px 15px 0; }
h1 { font-size: 52px; line-height: 1.5; margin: 0 0 12px; letter-spacing: -1px; }
.intro-copy > p { margin: 0 0 38px; font-size: 20px; font-weight: 700; }
.magazine-search { display: flex; align-items: center; width: 328px; max-width: 100%; min-height: 45px; border: 1px solid var(--border); border-radius: 25px; padding: 0 12px; gap: 10px; box-shadow: 0 0 2px #170d2710; color: #aaa6b1; }
.magazine-search input { width: 100%; min-width: 0; background: transparent; border: 0; color: var(--ink); padding: 10px 0; font-size: 14px; }
.magazine-search input::placeholder { color: #a09ba7; }
.magazine-search button { display: grid; place-items: center; background: none; border: 0; color: #aaa6b1; padding: 0; }
.magazine-search button .icon { width: 18px; height: 18px; transform: rotate(180deg); }
.featured-article { position: relative; min-height: 258px; overflow: hidden; border-radius: 14px; background: #120724; isolation: isolate; }
.featured-art { position: absolute; inset: 0 0 0 auto; width: 54%; background: url('../images/mockups/magazine.webp') 41.7951% 17.4026% / 354.7344% auto no-repeat; z-index: -2; }
.featured-article::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, #110724 35%, #11072400 68%); z-index: -1; }
.featured-copy { width: 49%; margin-right: auto; padding: 29px 24px 28px 31px; color: white; }
.featured-label { font-size: 12px; background: #401081; border-radius: 13px; padding: 2px 7px; }
.featured-copy h2 { font-size: 23px; overflow-wrap: anywhere; margin: 14px 0; }
.featured-copy p { font-size: 14px; line-height: 2; margin: 0 0 16px; }
.featured-copy > a { display: flex; width: fit-content; align-items: center; gap: 5px; margin-right: auto; border-radius: 22px; background: #3e0b87; padding: 8px 17px; font-size: 13px; }
.featured-copy > a:hover { background: #6315bd; }
.category-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 12px 10px 32px; }
.category-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 8px 27px; border-radius: 25px; border: 1px solid var(--border); background: #fff; color: #271640; font-size: 15px; font-weight: 700; white-space: nowrap; }
.category-filters .icon { color: var(--purple); }
.category-filters button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: white; }
.category-filters button[aria-pressed="true"] .icon { color: white; }
.category-filters button:hover { box-shadow: 0 2px 12px #5812b518; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.article-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 3px #16082606; }
.card-art { display: block; aspect-ratio: 2.1; background-image: url('../images/mockups/magazine.webp'); background-size: 365.714286% auto; background-repeat: no-repeat; flex-shrink: 0; }
.bottle-art { background-position: 89.605735% 59.466019%; }
.grape-art { background-position: 47.491039% 59.466019%; }
.can-art { background-position: 7.168459% 59.466019%; }
/* Posts with a featured image use it instead of the mockup sprite. */
.card-art.has-image, .featured-art.has-image { background-size: cover; background-position: center; }
.card-content { display: flex; flex-direction: column; flex: 1; padding: 17px 23px 13px; }
.card-category { display: inline-flex; align-items: center; gap: 10px; color: #641eaa; font-size: 14px; }
.card-category .icon { width: 19px; height: 19px; }
.card-content h2 { font-size: 22px; line-height: 1.8; margin: 8px 0 12px; }
.article-card:last-child h2 { font-size: 18px; line-height: 2.2; }
.card-content h2 a:hover { color: var(--purple); }
.card-content > p { color: var(--muted); font-size: 16px; line-height: 1.9; margin: 0 0 20px; flex: 1; }
.card-meta { border-top: 1px solid var(--border); padding-top: 13px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #5e596b; }
.card-meta > span { display: flex; align-items: center; gap: 8px; }
.card-meta .icon { width: 18px; height: 18px; color: var(--purple); }
.read-more { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 17px; color: var(--purple); font-size: 15px; font-weight: 700; }
.read-more .icon { width: 19px; height: 19px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 11px; }
.pagination button { min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 21px; color: #332645; background: white; font-size: 13px; }
.pagination button[aria-current] { background: var(--purple); border-color: var(--purple); color: white; }
.empty-state { text-align: center; padding: 45px 20px; background: #f9f5fe; border-radius: 18px; }
.empty-state h2 { font-size: 22px; }
.empty-state p { color: var(--muted); }
.empty-state button { border: 0; border-radius: 22px; background: var(--purple); color: white; padding: 10px 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 1450px) {
    .magazine-shell { margin-inline: 5%; }
    .featured-copy h2 { font-size: 20px; }
    .category-filters { gap: 14px; }
    .category-filters button { padding-inline: 23px; }
    .card-content h2 { font-size: 20px; }
    .card-content { padding-inline: 19px; }
}
@media (max-width: 1100px) {
    .magazine-intro { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
    h1 { font-size: 42px; }
    .intro-copy { padding-right: 0; }
    .intro-copy > p { font-size: 16px; }
    .featured-copy { width: 60%; padding: 24px 18px; }
    .featured-copy h2 { white-space: normal; }
    .featured-article::after { background: linear-gradient(to right, #110724 35%, #11072422); }
    .category-filters { margin-inline: 0; gap: 10px; }
    .category-filters button { padding-inline: 17px; font-size: 13px; }
    .article-grid { gap: 18px; }
    .card-content h2, .article-card:last-child h2 { font-size: 18px; line-height: 1.8; }
    .card-content > p { font-size: 14px; }
}
@media (max-width: 800px) {
    .magazine-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .intro-copy { padding: 0; }
    .intro-copy > p { margin-bottom: 20px; }
    .magazine-search { width: 100%; }
    .featured-copy { width: 52%; padding: 26px; }
    .featured-copy h2 { font-size: 22px; }
    .featured-art { background-size: 354.7344% 403.1496%; }
    .category-filters { margin-top: 24px; margin-bottom: 24px; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pagination { margin-top: 24px; }
}
@media (max-width: 540px) {
    .magazine-shell { margin-top: 23px; }
    h1 { font-size: 38px; }
    .featured-copy { width: 65%; padding: 24px 18px; }
    .featured-copy h2 { font-size: 19px; }
    .featured-copy p { font-size: 13px; }
    .featured-art { width: 70%; }
    .featured-article::after { background: linear-gradient(to right, #110724 25%, #11072480 68%, #11072400); }
    .category-filters button { padding: 8px 14px; gap: 7px; font-size: 12px; min-height: 42px; }
    .category-filters .icon { width: 18px; height: 18px; }
    .article-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .card-content { padding: 18px 20px; }
    .card-content h2, .article-card:last-child h2 { font-size: 20px; }
    .card-content > p { font-size: 15px; }
    .pagination { gap: 8px; }
}
