:root {
    --green: #087047;
    --dark-green: #024430;
    --cream: #f7f4ec;
    --paper: #fffdf8;
    --brown: #b28a70;
    --caramel: #9c6548;
    --ink: #151515;
    --muted: #777;
    --orange: #d8752f;
    --navy: #101820;
    --line: rgba(21, 21, 21, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.public-body {
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, Vazirmatn, "Noto Sans Armenian", ui-sans-serif, system-ui, sans-serif;
    margin: 0;
    min-height: 100vh;
}

html[lang="fa"] body.public-body {
    font-family: Vazirmatn, Inter, sans-serif;
}

html[lang="hy"] body.public-body {
    font-family: "Noto Sans Armenian", Inter, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.skip-link {
    background: var(--navy);
    color: #fff;
    left: 12px;
    padding: 8px 12px;
    position: absolute;
    top: -40px;
    z-index: 80;
}

.skip-link:focus {
    top: 12px;
}

.masthead {
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
}

.masthead-inner {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1180px;
    min-height: 76px;
    padding: 8px 22px;
}

.brand {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
}

.brand-mark {
    display: block;
    height: 58px;
    width: 58px;
}

.brand-mark img {
    filter: drop-shadow(0 5px 7px rgba(40, 22, 10, 0.18));
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.primary-nav {
    display: flex;
    gap: 4px;
}

.primary-nav a {
    color: var(--dark-green);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
    padding: 10px 14px;
    text-transform: uppercase;
}

.primary-nav a.is-active,
.primary-nav a:hover {
    color: var(--orange);
}

.masthead-tools {
    align-items: center;
    display: flex;
    gap: 16px;
}

.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-switch a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.lang-switch a.is-active {
    color: var(--green);
}

.paper {
    margin: 0 auto;
    max-width: 1180px;
    padding: 28px 22px 80px;
}

.section-head {
    border-bottom: 1px solid var(--ink);
    margin-bottom: 28px;
    padding-bottom: 12px;
}

.eyebrow,
.kicker {
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.section-head h1 {
    font-family: Fraunces, "Noto Serif Armenian", serif;
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
    margin: 0;
}

.lead-story {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    padding-bottom: 32px;
}

.lead-copy h2,
.story-card h3,
.river-item h3,
.article-hero h1,
.related-card h3 {
    font-family: Fraunces, "Noto Serif Armenian", serif;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0 0 12px;
}

html[lang="fa"] .lead-copy h2,
html[lang="fa"] .story-card h3,
html[lang="fa"] .river-item h3,
html[lang="fa"] .article-hero h1,
html[lang="fa"] .section-head h1 {
    font-family: Vazirmatn, Fraunces, serif;
}

.lead-copy h2 {
    font-size: clamp(32px, 4.4vw, 54px);
}

.lead-copy h2 a:hover,
.story-card h3 a:hover,
.river-item h3 a:hover {
    color: var(--green);
}

.standfirst {
    color: #4e4e4e;
    font-size: 18px;
    line-height: 1.55;
    margin: 0 0 14px;
}

.lead-copy time,
.story-card time,
.river-item time,
.article-meta time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.lead-media,
.story-media,
.river-thumb {
    background: #efe8dc;
    display: block;
    overflow: hidden;
}

.lead-media {
    aspect-ratio: 5 / 4;
}

.lead-media img,
.story-media img,
.river-thumb img,
.related-card img,
.article-hero {
    object-fit: cover;
}

.lead-media img,
.story-media img,
.river-thumb img,
.related-card img {
    height: 100%;
    width: 100%;
}

.media-fallback {
    background:
        linear-gradient(135deg, rgba(8, 112, 71, 0.18), rgba(216, 117, 47, 0.22)),
        #efe8dc;
    display: block;
    height: 100%;
    min-height: 160px;
}

.secondary-grid {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 28px 0;
}

.story-card h3 {
    font-size: 22px;
}

.story-card .standfirst,
.river-item .standfirst {
    font-size: 15px;
}

.story-media {
    aspect-ratio: 16 / 10;
    margin-bottom: 12px;
}

.river {
    display: flex;
    flex-direction: column;
}

.river-item {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 220px;
    padding: 22px 0;
}

.river-item h3 {
    font-size: 28px;
}

.river-thumb {
    aspect-ratio: 16 / 10;
}

.empty-river {
    color: var(--muted);
    font-size: 18px;
}

.site-foot {
    border-top: 1px solid var(--line);
    color: rgba(21, 17, 13, 0.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 22px;
    text-align: center;
    text-transform: uppercase;
}

.article-hero {
    background-position: center;
    background-size: cover;
    min-height: min(72vh, 760px);
    position: relative;
}

.hero-shade {
    background:
        linear-gradient(180deg, rgba(16, 24, 32, 0.72) 0%, rgba(16, 24, 32, 0.28) 48%, rgba(16, 24, 32, 0.5) 100%);
    inset: 0;
    position: absolute;
}

.hero-copy {
    margin: 0 auto;
    max-width: 1180px;
    padding: 110px 22px 48px;
    position: relative;
    z-index: 1;
}

.kicker-on-dark {
    color: #ffbd7a;
}

.article-hero h1 {
    color: #fff;
    font-size: clamp(40px, 6vw, 84px);
    max-width: 18ch;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.article-layout {
    display: grid;
    gap: 28px;
    grid-template-columns: 200px minmax(0, 760px);
    justify-content: center;
    margin: 0 auto;
    max-width: 1180px;
    padding: 36px 22px 90px;
}

.myth-rail {
    align-self: start;
    position: sticky;
    top: 110px;
}

.myth-companion {
    margin: 0;
    text-align: center;
}

.myth-companion img {
    filter: sepia(0.34) saturate(1.28) hue-rotate(-9deg) drop-shadow(0 14px 18px rgba(74, 40, 16, 0.26));
    height: 360px;
    margin: 0 auto;
    object-fit: contain;
    width: auto;
}

.myth-companion figcaption {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-top: 10px;
    text-transform: uppercase;
}

.article-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 700;
    gap: 12px;
    margin-bottom: 18px;
}

.article-standfirst {
    color: #3f3f3f;
    font-size: 22px;
    line-height: 1.5;
    margin: 0 0 28px;
}

.article-body {
    font-size: 18px;
    line-height: 1.8;
}

.article-body p {
    margin: 0 0 1.1em;
}

.article-body h2,
.article-body h3 {
    font-family: Fraunces, serif;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.article-body img {
    margin: 1.4em 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
}

.tag-row li {
    background: #efe8dc;
    color: var(--dark-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 7px 10px;
}

.attach-block,
.related-block,
.comment-block {
    border-top: 1px solid var(--line);
    margin-top: 42px;
    padding-top: 28px;
}

.attach-block h2,
.related-block h2,
.comment-block h2 {
    font-family: Fraunces, serif;
    font-size: 28px;
    margin: 0 0 18px;
}

.attach-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.attach-block a {
    align-items: center;
    border: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 12px 14px;
}

.attach-block a:hover {
    border-color: var(--orange);
}

.attach-block em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.related-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-card {
    display: block;
}

.related-card img {
    aspect-ratio: 16 / 10;
    margin-bottom: 10px;
    object-fit: cover;
    width: 100%;
}

.related-card h3 {
    font-size: 20px;
}

.comment-note {
    color: var(--muted);
    margin-top: 0;
}

.comment-form fieldset {
    border: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding: 0;
}

.comment-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-form label.full,
.comment-form button {
    grid-column: 1 / -1;
}

.comment-form span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.comment-form input,
.comment-form textarea {
    background: #fff;
    border: 1px solid var(--line);
    font: inherit;
    padding: 12px;
}

.comment-form button {
    background: linear-gradient(145deg, #15110d, #050505);
    border: 1px solid rgba(216, 117, 47, 0.62);
    color: #e59654;
    font-size: 12px;
    font-weight: 900;
    justify-self: start;
    min-height: 42px;
    padding: 0 16px;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .myth-rail {
        justify-self: center;
        position: static;
    }

    .myth-companion img {
        height: 240px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .masthead-inner {
        flex-wrap: wrap;
        gap: 8px;
        min-height: 64px;
        padding: 10px 16px;
    }

    .brand-mark {
        height: 44px;
        width: 44px;
    }

    .primary-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    .primary-nav a {
        padding: 8px 6px;
    }

    .paper {
        padding: 18px 16px 64px;
    }

    .lead-story {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lead-media {
        order: -1;
        aspect-ratio: 16 / 10;
    }

    .lead-copy h2 {
        font-size: clamp(28px, 8vw, 38px);
    }

    .standfirst {
        font-size: 16px;
    }

    .secondary-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .story-card,
    .river-item {
        align-items: start;
        border-bottom: 1px solid var(--line);
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) 108px;
        padding: 16px 0;
    }

    .story-media,
    .river-thumb {
        aspect-ratio: 1;
        margin: 0;
        order: 2;
    }

    .story-copy {
        order: 1;
    }

    .story-card h3,
    .river-item h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .story-card .standfirst,
    .river-item .standfirst {
        display: none;
    }

    .hero-copy {
        padding: 92px 16px 32px;
    }

    .article-hero {
        min-height: 58vh;
    }

    .article-hero h1 {
        font-size: clamp(32px, 10vw, 48px);
        max-width: none;
    }

    .article-layout {
        padding: 24px 16px 64px;
    }

    .article-standfirst {
        font-size: 18px;
    }

    .comment-form fieldset {
        grid-template-columns: 1fr;
    }

    .myth-companion img {
        height: 180px;
    }
}

.coming-soon {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    min-height: calc(100vh - 180px);
    max-width: 760px;
    padding: 48px 22px 90px;
}

.coming-soon h1 {
    font-family: Fraunces, "Noto Serif Armenian", serif;
    font-size: clamp(48px, 9vw, 96px);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.9;
    margin: 0 0 18px;
}

.coming-soon p:not(.eyebrow) {
    color: #555;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 28px;
}

.ghost-btn {
    background: linear-gradient(145deg, #15110d, #050505);
    border: 1px solid rgba(216, 117, 47, 0.62);
    color: #e59654;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    min-height: 42px;
    padding: 12px 16px;
    text-transform: uppercase;
}

.ghost-btn:hover {
    color: #ffbd7a;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
