:root {
    --athena-mark-color: #522b14;
}

:root:is([data-zerkalo-theme="dark"], [data-public-theme="dark"], [data-theme="dark"]) {
    --athena-mark-color: #f1dab3;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-zerkalo-theme], [data-public-theme], [data-theme]) {
        --athena-mark-color: #f1dab3;
    }
}

.athena-brand-mark {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: none;
    vertical-align: -.14em;
    background-color: var(--athena-mark-color);
    -webkit-mask: url("mark.png") center / contain no-repeat;
    mask: url("mark.png") center / contain no-repeat;
    pointer-events: none;
}

/* These controls have their own surfaces in both cabinet themes. */
.athena-assistant-icon .athena-brand-mark,
.athena-brand-home .athena-brand-mark,
button .athena-brand-mark {
    background-color: currentColor;
}

.athena-brand-home {
    gap: .4em;
}

@media (forced-colors: active) {
    .athena-brand-mark {
        background-color: currentColor;
        forced-color-adjust: none;
    }
}

.header-logo .header-brand-mark,
.landing-header .brand .athena-brand-mark,
.auth-brand .athena-brand-mark {
    inline-size: clamp(36px, 6vw, 48px);
    block-size: clamp(36px, 6vw, 48px);
}

.athena-assistant-icon .athena-brand-mark {
    inline-size: 28px;
    block-size: 28px;
}

body.zerkalo-mode .app-header:has(.header-brand-mark) {
    box-shadow: none !important;
}

body.zerkalo-mode .app-header .header-logo {
    text-shadow: none;
}

@media (max-width: 360px) {
    body.zerkalo-mode .app-header .header-logo {
        font-size: .8rem !important;
        letter-spacing: .35px !important;
    }

    .header-logo .header-brand-mark {
        inline-size: 30px;
        block-size: 30px;
    }
}

.athena-brand-mark[data-athena-wordmark],
.landing-header .athena-brand-mark[data-athena-wordmark] {
    color: inherit;
    background-color: currentColor;
}
