@font-face {
    font-family: 'JetBrains Mono';
    src: url('/assets/fonts/JetBrainsMono/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/assets/fonts/JetBrainsMono/JetBrainsMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    line-height: 1;
}

h2 {
    font-size: 1.52rem;
    margin-top: 1.5em;
}

h3 {
    font-size: 1.38rem;
    margin-top: 1.5em;
}

h4 {
    font-size: 1.31rem;
    margin-top: 1.5em;
}

h5 {
    font-size: 1.26rem;
    margin-top: 1.5em;
}

h6 {
    font-size: 1.23rem;
    margin-top: 1.5em;
}

ul li {
    line-height: 1.5em;
}

a {
    color: #0054d7;
    text-decoration: underline;
    transition: color 0.15s;
    outline: none;
}

a:hover,
a:focus-visible {
    color: #1976d2;
    text-decoration-thickness: 2px;
}

a:active {
    color: #003a95;
}

a:visited {
    color: #7c2ae8;
}

.chord {
    color: #0054d7;
    font-weight: 700;
}

#main,
.breadcrumb {
    max-width: 850px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

pre,
code {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
}

.text {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: pre;
}

.source-label,
.rating-label {
    font-weight: 700;
}

.header-bg,
.footer-bg {
    width: 100vw;
    background: #000;
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.logo-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 16px;
    background: none;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 30px;
    width: auto;
    display: block;
}

.header-emoji {
    font-size: 1.5em;
    user-select: none;
    pointer-events: none;
}

nav.alphabet {
    margin: 20px 0;
}

nav.alphabet ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0 0 4px 0;
    list-style: none;
    gap: 0;
}

nav.alphabet ul.rus {
    margin-bottom: 6px;
}

nav.alphabet ul.eng {
    margin-top: 0;
}

nav.alphabet ul li {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 400;
}

nav.alphabet ul li:not(:last-child)::after {
    content: ' • ';
    color: #aaa;
    font-size: 14px;
    vertical-align: middle;
    margin: 0 1px;
    user-select: none;
}

nav.alphabet ul li:last-child::after {
    content: '';
}

nav.alphabet a,
nav.alphabet .active {
    color: #1a1a1a;
    text-decoration: none;
    padding: 2px 3px;
    transition: color 0.1s;
    border-radius: 3px;
}

nav.alphabet a:hover {
    background: #f3f3f3;
    color: #1976d2;
}

.alphabet-bg {
    max-width: 850px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.alphabet-bg::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    margin-top: 1em;
    margin-bottom: 2em;
    background: #e0e0e0;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.08);
    border-radius: 0 0 6px 6px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 1.5em 0 0 0;
    gap: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #8a8a8a;
}

.breadcrumb li:not(:last-child)::after {
    content: "→";
    display: inline-block;
    margin: 0 8px;
    color: #bbb;
    font-size: 14px;
    font-weight: 400;
}

.breadcrumb [aria-current="page"] {
    color: #222;
    font-weight: 400;
}

ul.rus::before {
    content: "🇷🇺";
    font-size: 1.5em;
    margin-right: 0.6em;
    vertical-align: middle;
}

ul.eng::before {
    content: "🇺🇸";
    font-size: 1.5em;
    margin-right: 0.6em;
    vertical-align: middle;
}

.letter-heading {
    text-align: center;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
}

.skip-link:focus {
    position: absolute;
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    background: #000;
    color: #fff;
    padding: 13px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
}

.star-rating {
    display: inline-flex;
    gap: 2.5px;
    cursor: pointer;
    vertical-align: middle;
    user-select: none;
}

.star {
    width: 28px;
    height: 28px;
    fill: #e0e0e0;
    transition: fill 0.18s;
    padding: 0;
    margin: 0;
}

.star.active,
.star.hovered {
    fill: #FFD700;
}

#toc {
    position: relative;
    margin: 1.5em 0;
}

#toc::before {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: #e0e0e0;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.06);
    margin-top: 2em;
    margin-bottom: 2em;
}

#toc::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: #e0e0e0;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.06);
    margin-top: 2em;
    margin-bottom: 2em;
}

.toc-title {
    font-size: 1rem !important;
    font-weight: 700;
    margin-top: 1.5em;
}

#toc ol li {
    position: relative;
    padding-left: 0;
    margin-bottom: 0.25em;
    list-style: none;
}

#toc ol li:nth-child(1)::before {
    content: "🎸";
    position: absolute;
    left: -2em;
    font-size: 1.1em;
}

#toc ol li:nth-child(2)::before {
    content: "🎼";
    position: absolute;
    left: -2em;
    font-size: 1.1em;
}

#toc ol li:nth-child(3)::before {
    content: "🎙️";
    position: absolute;
    left: -2em;
    font-size: 1.1em;
}

.main-footer {
    max-width: 850px;
    margin: 4em auto 0;
    padding: 0 16px;
    color: #fff;
    background: none;
    text-align: left;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.main-footer p {
    margin: 0;
    color: #fff;
    text-align: left;
    letter-spacing: .05em;
}

@media (max-width: 900px) {
    .main-footer {
        max-width: 100%;
        padding-left: 1.5em;
        padding-right: 1.5em;
    }
}

.content-footer::before {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: #e0e0e0;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.06);
    margin-top: 2em;
    margin-bottom: 2em;
}

.content-footer::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: #e0e0e0;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.06);
    margin-top: 2em;
    margin-bottom: 2em;
}

a.all-songs {
    display: inline-block;
    background: #0054d7;
    color: #fff;
    font-weight: 500;
    margin-top: 6px;
    padding: 0.57em 1.25em;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.08em;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .04);
    transition: background 0.15s, box-shadow 0.12s;
    outline: none;
    border: none;
    cursor: pointer;
}

a.all-songs:hover,
a.all-songs:focus-visible {
    background: #1976d2;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .10);
    text-decoration: underline;
}

a.all-songs:active {
    background: #003a95;
}

a.all-songs:visited {
    color: #fff;
}

span.keyword,
span.pripev {
    display: block;
}

a:hover {
    text-decoration: none;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 4px solid #6366f1;
    outline-offset: 5px;
    box-shadow: 0 0 0 4px #6366f13a;
    border-radius: 2px;
    transition: box-shadow 0.5s;
}