/* Fonts, tokens, and shared controls */
/* Bokonique by Renderforest. */
@font-face {
    font-family: Bokonique;
    src: url("../assets/fonts/Bokonique-Regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Bokonique;
    src: url("../assets/fonts/Bokonique-Bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #0b1533;
    --muted: #4f5879;
    --surface: #f3f5fb;
    --surface-hover: #e7ebf7;
    --paper: #fff;
    --brand: #0033a0;
    --action: #d90012;
    --action-hover: #9c0d24;
    --gold: #f2a800;
    --cover-blue: #d9e2f7;
    --cover-pink: #f6d9dd;
    --cover-gold: #fbe9c2;
    --cover-gray: #d5d9e5;
    --gutter: 1.25rem;
    --section-space: 3.5rem;
    --container-width: 80rem;
    --panel-radius: 1.25rem;
    --control-radius: .75rem;
    --ease-enter: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Bokonique, "Noto Sans Armenian", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

h1, h2, h3, p {
    margin: 0;
}

fieldset {
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -.005em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

h1 {
    font-size: clamp(2rem, 9vw, 2.625rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

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

button, input, select {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}

.container {
    inline-size: 100%;
    max-inline-size: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-space);
}

.visually-hidden,
.visually-hidden-until-focus:not(:focus) {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 3.125rem;
    padding: .25rem 1rem;
    border: 2px solid var(--ink);
    border-radius: var(--control-radius);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color .15s, color .15s, border-color .15s, translate .15s, scale .15s;
}

.button:hover {
    background: var(--ink);
    color: var(--paper);
    translate: 0 -1px;
}

.button:active {
    scale: .98;
}

.button--primary {
    border-color: var(--action);
    background: var(--action);
    color: var(--paper);
}

.button--primary:hover {
    border-color: var(--action-hover);
    background: var(--action-hover);
}

.button--quiet {
    border-color: transparent;
    background: transparent;
}

.button--quiet:hover {
    border-color: transparent;
    background: var(--surface-hover);
    color: var(--ink);
}

.field, .select {
    min-inline-size: 0;
    min-block-size: 3.125rem;
    padding-inline: .75rem;
    border: 2px solid var(--surface-hover);
    border-radius: var(--control-radius);
    background: var(--paper);
    color: var(--ink);
    font-size: 1rem;
}

.field::placeholder {
    color: var(--muted);
}

.field:focus {
    border-color: var(--brand);
}

.select {
    min-block-size: 2.75rem;
    padding-inline: .625rem;
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 700;
}

.tag {
    display: inline-block;
    padding: .125rem .875rem;
    border-radius: 999px;
    background: var(--paper);
    font-size: .9375rem;
    font-weight: 700;
}

.cover {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: .875rem;
}

.avatar {
    position: relative;
    display: grid;
    place-items: center;
    inline-size: 3.5rem;
    block-size: 3.5rem;
    border: 4px solid var(--surface);
    border-radius: 50%;
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 700;
}

.detail-row {
    margin-block-end: .5rem;
    padding: .875rem 1.125rem;
    border-radius: .875rem;
    background: var(--surface);
}

@media (min-width: 40rem) {
    :root {
        --gutter: 1.75rem;
        --section-space: 5rem;
    }

    .button {
        padding-inline: 1.5rem;
    }
}

@media (min-width: 48rem) {
    body {
        font-size: 1.125rem;
    }

    h1 {
        font-size: clamp(2.125rem, 5vw, 4rem);
    }
}

@media (min-width: 1320px) {
    :root {
        --container-width: min(100rem, 100% - 2rem);
    }
}

/* Site navigation */
html {
    scroll-padding-block-start: 5rem;
}

.skip-link {
    position: fixed;
    z-index: 30;
    inset-block-start: .5rem;
    inset-inline-start: .5rem;
    padding: .75rem;
    border-radius: .5rem;
    background: var(--paper);
    font-weight: 700;
}

.site-stripe {
    block-size: 6px;
    background: linear-gradient(
        to right,
        var(--action) 0 33.333%,
        var(--brand) 33.333% 66.667%,
        var(--gold) 66.667% 100%
    );
}

.site-header {
    position: sticky;
    z-index: 20;
    inset-block-start: 0;
    background: var(--paper);
}

.site-header .site-header__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem .75rem;
    min-block-size: 4rem;
    padding-inline-end: calc(var(--gutter, 1.25rem) + 3.5rem);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    flex: none;
    min-block-size: 2.75rem;
}

.wordmark img {
    display: block;
    inline-size: 6.25rem;
    block-size: auto;
}

.desktop-nav,
.site-header__actions .desktop-action {
    display: none;
}

.site-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.site-header__actions > .button {
    min-block-size: 44px;
    padding-inline: .75rem;
}

.site-language {
    border-radius: .625rem;
}

.mobile-menu__toggle {
    position: absolute;
    inset-block-start: .5rem;
    inset-inline-end: var(--gutter, 1.25rem);
    display: grid;
    place-items: center;
    inline-size: 48px;
    block-size: 48px;
    border-radius: var(--control-radius);
    background: var(--surface);
    list-style: none;
    cursor: pointer;
}

.mobile-menu__toggle::-webkit-details-marker {
    display: none;
}

.mobile-menu__icon {
    position: relative;
    inline-size: 1.25rem;
    block-size: 1rem;
}

.mobile-menu__icon::before,
.mobile-menu__icon::after {
    position: absolute;
    inset-inline: 0;
    block-size: 2px;
    border-radius: 2px;
    background: var(--ink);
    content: "";
}

.mobile-menu__icon::before { inset-block-start: .25rem; }
.mobile-menu__icon::after { inset-block-end: .25rem; }

.mobile-menu[open] .mobile-menu__icon::before {
    inset-block-start: calc(50% - 1px);
    rotate: 45deg;
}

.mobile-menu[open] .mobile-menu__icon::after {
    inset-block-end: calc(50% - 1px);
    rotate: -45deg;
}

.mobile-menu__panel {
    padding-block-end: 1.5rem;
    border-block-start: 1px solid var(--surface-hover);
    background: var(--paper);
    box-shadow: 0 16px 32px rgb(11 21 51 / 12%);
    font-size: 1rem;
    font-weight: 700;
}

.mobile-menu__links,
.desktop-nav__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu__links,
.mobile-menu__actions {
    display: grid;
    gap: .5rem;
}

.mobile-menu__links a,
.desktop-nav__links a {
    display: flex;
    align-items: center;
    min-block-size: 44px;
}

.mobile-menu__links a {
    padding-block: .5rem;
    border-block-end: 1px solid var(--surface-hover);
}

.mobile-menu__actions {
    gap: .75rem;
    margin-block-start: 1.25rem;
}

.mobile-menu__actions .site-language {
    min-block-size: 48px;
}

.mobile-menu__links a:hover,
.desktop-nav__links a:hover {
    color: var(--brand);
}

@media (min-width: 40rem) {
    .site-header__actions { gap: .75rem; }
    .site-header__actions > .button { padding-inline: 1rem; }
}

@media (min-width: 64rem) {
    html { scroll-padding-block-start: 11rem; }

    .site-header .site-header__content {
        gap: .5rem 1.5rem;
        padding-block: 18px;
        padding-inline-end: var(--gutter, 1.75rem);
    }

    .wordmark img { inline-size: 8rem; }

    .mobile-menu { display: none; }
    .desktop-nav,
    .site-header__actions .desktop-action { display: block; }
    .site-header__actions .button.desktop-action { display: inline-flex; }

    .desktop-nav__links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .5rem clamp(1rem, 6vw - 2.75rem, 5.875rem);
        font-size: 1rem;
        font-weight: 700;
    }

    .desktop-nav__links > li > a { min-block-size: 2.75rem; }
}

@media (min-width: 80rem) {
    html { scroll-padding-block-start: 6rem; }
    .desktop-nav__links { font-size: 1.125rem; }
}

@media (max-height: 35.999rem) {
    html { scroll-padding-block-start: 1rem; }
    .site-header { position: relative; }
}

@media (width < 64rem) and (height >= 36rem) {
    html:has(.mobile-menu[open]) { scroll-padding-block-start: 24rem; }

    /* Native anchor focus leaves the expanded disclosure in the document flow. */
    html:has(main :target):has(.mobile-menu[open]:not(:focus-within)) {
        scroll-padding-block-start: 1rem;
    }

    html:has(main :target) .site-header:has(.mobile-menu[open]:not(:focus-within)) {
        position: relative;
    }

    .mobile-menu__panel {
        max-block-size: 19rem;
        overflow-y: auto;
    }
}

/* Shared site navigation */
.site-menu__items,
.mobile-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu > summary,
.mobile-links > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .625rem;
    min-block-size: 2.75rem;
    list-style: none;
    cursor: pointer;
}

.site-menu > summary::-webkit-details-marker,
.mobile-links > summary::-webkit-details-marker {
    display: none;
}

.site-menu > summary::after,
.mobile-links > summary::after {
    flex: none;
    inline-size: .5rem;
    block-size: .5rem;
    margin-block-start: -.25rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    rotate: 45deg;
    content: "";
}

.site-menu[open] > summary::after,
.mobile-links[open] > summary::after {
    margin-block-start: .25rem;
    rotate: 225deg;
}

.site-menu > summary:hover,
.site-menu[open] > summary,
.mobile-links > summary:hover,
.site-header a[aria-current="page"]:not(.button--primary) {
    color: var(--brand);
}

.site-header a[aria-current="page"]:not(.button) {
    text-decoration: underline;
    text-underline-offset: .25em;
}

.site-menu__items.container {
    position: absolute;
    z-index: 1;
    inset: 100% 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-inline-size: min(75rem, 100%);
    max-block-size: min(25rem, 55dvh);
    margin-inline: auto;
    overflow: auto;
    padding: 1.5rem var(--gutter);
    border: 1px solid var(--surface-hover);
    border-radius: 0 0 var(--panel-radius) var(--panel-radius);
    background: var(--paper);
    box-shadow: 0 16px 32px rgb(11 21 51 / 12%);
}

.desktop-nav__links .site-menu__item {
    display: grid;
    align-content: start;
    align-items: start;
    gap: .375rem;
    block-size: 100%;
    padding: 1rem;
    border-radius: var(--control-radius);
}

.site-menu__item:hover,
.site-menu__item:focus-visible {
    background: var(--surface);
}

.site-menu__item strong {
    overflow-wrap: anywhere;
}

.site-menu__item span {
    color: var(--muted);
    font-size: .875rem;
    font-weight: 400;
}

.mobile-links > summary {
    padding-block: .5rem;
    border-block-end: 1px solid var(--surface-hover);
}

.mobile-links ul {
    padding-inline-start: .875rem;
}

.mobile-links li a {
    font-weight: 400;
}

@media (min-width: 64rem) {
    html:has(main :target):has(.site-menu[open]:not(:focus-within)) {
        scroll-padding-block-start: 1rem;
    }

    html:has(main :target) .site-header:has(.site-menu[open]:not(:focus-within)) {
        position: relative;
    }
}

@media (min-width: 90rem) {
    .desktop-nav__links { column-gap: 94px; }
}

@media (prefers-reduced-motion: no-preference) {
    .site-menu > summary::after,
    .mobile-links > summary::after {
        transition: rotate .2s;
    }

    .site-menu[open] > .site-menu__items {
        animation: mobile-menu-enter .2s var(--ease-enter) both;
    }
}

@keyframes mobile-menu-enter {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

@keyframes header-shadow {
    from { box-shadow: 0 0 0 transparent; }
    to { box-shadow: 0 8px 24px rgb(11 21 51 / 8%); }
}

@media (prefers-reduced-motion: no-preference) {
    .mobile-menu__icon::before { transition: inset-block-start .25s, rotate .25s; }
    .mobile-menu__icon::after { transition: inset-block-end .25s, rotate .25s; }
    .mobile-menu[open] .mobile-menu__panel {
        animation: mobile-menu-enter .25s var(--ease-enter) both;
    }

    @supports (animation-timeline: scroll(root)) {
        .site-header {
            animation: header-shadow linear both;
            animation-timeline: scroll(root);
            animation-range: 0 80px;
        }
    }
}

/* Shared footer and preview dialog */
.site-footer {
    display: grid;
    gap: 1rem;
    padding-block: 2rem 2.5rem;
    color: var(--muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .25rem 1rem;
}

.footer-links a,
.footer-links button {
    display: inline-flex;
    align-items: center;
    min-block-size: 2.75rem;
    padding: .25rem 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow-wrap: anywhere;
    text-align: start;
}

.footer-links :is(a, button):hover {
    color: var(--brand);
    text-decoration: underline;
}

.copyright {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.copyright img {
    display: block;
    inline-size: 4.5rem;
    block-size: auto;
}

.preview {
    position: fixed;
    inset: 0;
    inline-size: min(24rem, 100% - 2rem);
    max-block-size: calc(100dvh - 2rem);
    margin: auto;
    overflow: auto;
    padding: 1.5rem;
    border: 0;
    border-radius: var(--panel-radius);
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 16px 32px rgb(11 21 51 / 18%);
}

.preview::backdrop {
    background: rgb(11 21 51 / 50%);
}

.preview h2 {
    margin-block-end: .75rem;
    font-size: 1.5rem;
}

.preview p {
    margin-block-end: 1.25rem;
    color: var(--muted);
}

@media (min-width: 48rem) {
    .site-footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding-block: 2.5rem;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem 1.5rem;
    }

    .copyright { order: -1; }
}

/* Shared topic filters and editorial treatments */
.topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-block-start: 1.5rem;
}

.topic-filter {
    position: relative;
}

.topic-filter span {
    display: grid;
    place-items: center;
    min-block-size: 2.75rem;
    padding: .25rem clamp(.75rem, 3.5vw, 1rem);
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--paper);
    font-size: .9375rem;
    font-weight: 700;
    cursor: pointer;
}

.topic-filter input:checked + span {
    background: var(--ink);
    color: var(--paper);
}

.topic-filter input:focus-visible + span {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

@supports not selector(:has(*)) {
    .topic-filters { display: none; }
}

@media (hover: hover) {
    .topic-filter:hover span { background: var(--surface-hover); }
}

@media (forced-colors: active) {
    .topic-filter input:checked + span {
        border-color: Highlight;
        text-decoration: underline;
    }
}

.content-link {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: .18em;
}

.pattern-cover {
    background-image: repeating-radial-gradient(
        ellipse at 82% 116%, transparent 0 18px, rgb(11 21 51 / 9%) 19px 20px, transparent 21px 37px
    );
}

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

    .button:hover, .button:active {
        translate: none;
        scale: none;
    }
}

@media (forced-colors: active) {
    .mobile-menu__icon::before,
    .mobile-menu__icon::after {
        border-block-start: 2px solid ButtonText;
    }
}
