html {
    font-size: 135%;
}

@font-face {
    font-family: 'ArialNovaLight';
    src: url('font/ArialNovaLight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ArialNovaLight';
    src: url('font/ArialNovaLightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Vereyamod';
    src: url('font/Vereyamod-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vereyamod';
    src: url('font/Vereyamod-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --background-light: #f2f1ee;
    --background-dark: #1c1e22;
    --text-light: #000000;
    --text-dark: #ffffff;
    --breadcrumb-color-light: #1c1e22;
    --breadcrumb-color-dark: #ffffff;
    --link-color: #0021F5;
    --visited-link-color: #551A8B;
    --visual-width: 46vw;
    --footer-item-gap: 1em;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'ArialNovaLight', sans-serif;
    font-weight: 300;
    background-color: var(--background-light);
    color: var(--text-light);
}

body.dark-theme {
    --link-color: #6B8CFF;
    --visited-link-color: #9A7BFF;
    background-color: var(--background-dark);
    color: var(--text-dark);
}

body.light-theme {
    background-color: var(--background-light);
    color: var(--text-light);
}

@media (prefers-color-scheme: dark) {
    body:not(.light-theme) {
        --link-color: #6B8CFF;
        --visited-link-color: #9A7BFF;
        background-color: var(--background-dark);
        color: var(--text-dark);
    }

    body:not(.light-theme) .subheading {
        color: #aaa;
    }
}

body.dark-theme .right img,
body.dark-theme .divider-img {
    mix-blend-mode: screen;
}

body.dark-theme address .logo-img {
    mix-blend-mode: screen;
}

.heading-vereia,
.text-vereia {
    font-family: 'Vereyamod', sans-serif;
}

.is-bold {
    font-weight: bold;
}

h1 {
    margin-bottom: 0.2em;
    line-height: 1;
}

p,
li {
    font-style: normal;
}

i {
    font-style: italic;
}

.subheading {
    margin-top: 0;
    font-size: 1.2em;
    font-weight: normal;
    font-style: italic;
    color: #555;
}

body.dark-theme .subheading {
    color: #aaa;
}

a,
a:link {
    color: var(--link-color);
}

a:visited {
    color: var(--visited-link-color);
}

a:hover {
    opacity: 0.8;
}

.breadcrumb,
.breadcrumb li {
    font-size: 0.875rem;
    font-style: italic;
}

nav ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

nav ol li {
    display: inline;
}

nav ol li:last-child {
    color: inherit;
}

nav ol li:not(:last-child)::after {
    content: " / ";
    padding: 0 5px;
    color: var(--breadcrumb-color-light);
}

body.dark-theme nav ol li:not(:last-child)::after,
body.dark-theme nav ol li:last-child {
    color: var(--breadcrumb-color-dark);
}

body:not(.dark-theme) nav ol li:not(:last-child)::after,
body:not(.dark-theme) nav ol li:last-child {
    color: var(--breadcrumb-color-light);
}

.container {
    display: flex;
    width: 100%;
    overflow-x: hidden;
}

.left,
.right {
    width: 50%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.right img {
    position: static;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin-right: 10px;
    mix-blend-mode: multiply;
}

.two-column-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.two-column-section > div {
    width: 48%;
}

.two-column-section p {
    margin: 0 0 1em 0;
}

.limited-img {
    width: 600px;
    height: auto;
}

section img {
    max-width: 100%;
    height: auto;
}

.image-with-credit {
    max-width: 100%;
}

.divider-section {
    max-width: var(--visual-width);
    margin: 0 auto;
}

.divider-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

footer {
    margin-top: 2em;
    margin-bottom: var(--footer-item-gap);
}

footer p {
    margin: 0;
}

address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--footer-item-gap);
}

address p {
    margin: 0;
}

address .logo-img {
    display: block;
    width: 196px;
    max-width: 100%;
    height: auto;
    border: 0;
    background: transparent;
    mix-blend-mode: multiply;
}

.logo-link {
    display: inline-block;
    border: 0;
    line-height: 0;
    outline: 0;
    text-decoration: none;
    box-shadow: none;
}

.logo-link:hover,
.logo-link:focus,
.logo-link:active {
    border: 0;
    outline: 0;
    text-decoration: none;
    box-shadow: none;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-wrapper {
    display: inline-flex;
    align-items: flex-start;
}

body.dark-theme #index-cover {
    content: url("https://cdn-ec-static.garagemca.org/storage/document/4/5/4554/file-633de9d4-c327-424d-b2d8-a2ad8d99bbd9.gif");
}

body.dark-theme #golubinye-pastbisha-zemli-cover {
    content: url("https://cdn-ec-static.garagemca.org/storage/document/4/5/4558/file-dd87174d-340b-4fe4-9fc6-e789ae5cab0b.gif");
}

body.dark-theme #narrativnye-strategii-hudozhestvennoj-literatury-cover {
    content: url("https://cdn-ec-static.garagemca.org/storage/document/4/5/4562/file-40ddb308-ab18-4b59-8407-eed3fabeec84.gif");
}

body.dark-theme #moj-sosed-strizh-cover {
    content: url("https://cdn-ec-static.garagemca.org/storage/document/4/5/4566/file-c90ae766-6b3f-4078-84c7-d1a6d8770893.gif");
}

body.dark-theme #na-drugom-meste-cover {
    content: url("https://cdn-ec-static.garagemca.org/storage/document/4/5/4570/file-2d3b6af3-6a04-4cc5-b49f-ca11f0b1fe0c.gif");
}

body.dark-theme #gde-spit-rybka-cover {
    content: url("https://cdn-ec-static.garagemca.org/storage/document/4/5/4574/file-e81141ec-a77b-4ea4-9850-cf6848216089.gif");
}

body.dark-theme #smozhet-li-kino-razglyadet-zhivotnyh-cover {
    content: url("https://cdn-ec-static.garagemca.org/storage/document/4/5/4578/file-3e3e570b-6c31-4649-a2d3-6554a5971454.gif");
}

body.dark-theme #vosstanovlenie-podavlennogo-mira-cover {
    content: url("https://cdn-ec-static.garagemca.org/storage/document/4/5/4582/file-b89bb349-a8a6-49cc-bfbe-6be29e49eb11.gif");
}

body.dark-theme .divider-1 .divider-img {
    content: url('https://cdn-ec-static.garagemca.org/storage/document/4/5/4556/file-b31851d0-b80e-4725-8a46-d6598d12a4ab.gif');
}

body.dark-theme .divider-2 .divider-img {
    content: url('https://cdn-ec-static.garagemca.org/storage/document/4/5/4560/file-a98e1faf-7379-424a-ad70-0ddb7bf88dee.gif');
}

body.dark-theme .divider-3 .divider-img {
    content: url('https://cdn-ec-static.garagemca.org/storage/document/4/5/4564/file-f246b219-5ab7-428a-b077-d9f94ba6cc5a.gif');
}

body.dark-theme .divider-4 .divider-img {
    content: url('https://cdn-ec-static.garagemca.org/storage/document/4/5/4568/file-ec95ffb4-2ea6-4c60-b916-e9a98fba2bab.gif');
}

body.dark-theme .divider-5 .divider-img {
    content: url('https://cdn-ec-static.garagemca.org/storage/document/4/5/4572/file-29d4edb2-0b09-4800-b035-819431f5cb39.gif');
}

body.dark-theme .divider-6 .divider-img {
    content: url('https://cdn-ec-static.garagemca.org/storage/document/4/5/4576/file-7d96dd4a-dc0a-445f-85e0-a79926995efd.gif');
}

body.dark-theme .divider-7 .divider-img {
    content: url('https://cdn-ec-static.garagemca.org/storage/document/4/5/4580/file-689622a7-6f1e-4991-98ed-0a26feddb8a6.gif');
}

body.dark-theme .divider-8 .divider-img {
    content: url('https://cdn-ec-static.garagemca.org/storage/document/4/5/4584/file-4f03f9df-9c4d-4602-9a2f-838ae0fffb44.gif');
}

@media (min-width: 769px) {
    .right img {
        position: fixed;
        top: 0;
        right: 0;
        width: auto;
        max-width: 46vw;
        height: auto;
        object-fit: contain;
        display: block;
        mix-blend-mode: multiply;
        background-color: var(--background-light);
        z-index: 10;
    }
}

@media (max-width: 768px) {
    :root {
        --visual-width: 100%;
    }

    .container {
        flex-direction: column-reverse;
    }

    .left,
    .right {
        width: 100%;
    }

    .right img {
        position: static;
        max-width: 100%;
        height: auto;
        mix-blend-mode: multiply;
    }

    .limited-img {
        width: 70%;
        height: auto;
        align-items: flex-start;
        mix-blend-mode: multiply;
        background-color: var(--background-light);
    }

    section {
        width: 100%;
        max-width: none;
    }

    section img {
        width: 100%;
        height: auto;
    }

    address {
        flex-direction: column;
        align-items: flex-start;
    }

    address img {
        max-width: 100%;
        margin-top: 20px;
    }
}
