:root {
    color-scheme: dark;
}

html {
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    background: #000000;
    color: #999999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    line-height: 1.5;
}

a {
    color: inherit;
    margin: 0;
    outline: 0;
    width: fit-content;
}

a:focus {
    color: #cccccc;
}

a:hover {
    color: #cccccc;
}

a:active {
    color: #666666;
}

header:has(nav) {
    background: #000000;
    box-shadow: 0 1px #333333;
    position: sticky;
    top: 0;
}

nav {
    display: grid;
    grid-template-columns: 1.5rem 1fr 1.5rem auto 1.5rem;
    grid-template-rows: .75rem auto .75rem;
}

nav a {
    grid-column-start: 2;
    grid-row-start: 2;
    text-decoration: none;
}

nav form {
    grid-column-start: 2;
    grid-row-start: 2;
}

svg {
    height: 1.5rem;
    width: 1.5rem;
    fill: currentColor;
    display: block;
}

nav input[type=search] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    border: none;
    border-radius: 0;
    caret-color: #666666;
    color: #999999;
    font: inherit;
    outline: 0;
    padding: 0;
    width: -webkit-fill-available;
}

nav input[type=search]::placeholder {
    color: #666666;
}

nav input[type=search]::selection {
    background: #333;
    color: inherit;
}

nav input[type=search]::-webkit-search-cancel-button,
nav input[type=search]::-webkit-search-decoration,
nav input[type=search]::-webkit-search-results-button,
nav input[type=search]::-webkit-search-results-decoration {
    display: none;
}

nav button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: block;
    font: inherit;
    grid-column-start: 4;
    grid-row-start: 2;
    outline: 0;
    padding: 0;
    touch-action: manipulation;
}

nav button:focus {
    color: #cccccc;
}

nav button:hover {
    color: #cccccc;
}

nav button:active {
    color: #666666;
}

main {
    display: grid;
    grid-template-columns: 1.5rem 1fr 1.5rem;
    grid-template-rows: 3rem auto 3rem;
}

main > section {
    display: grid;
    gap: 3rem;
    grid-column-start: 2;
    grid-row-start: 2;
}

h1 {
    font: inherit;
    font-size: 1.5rem;
    margin: 0;
}

h2 {
    font: inherit;
    margin: 0;
}

ul {
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

p {
    margin: 0;
}

article {
    display: grid;
    gap: 3rem;
    grid-column-start: 2;
    grid-row-start: 2;
}

article span {
    display: inline-grid;
}

article span:before {
    content: "\00a0";
}

article span[data-chord]:before {
    content: attr(data-chord);
    margin: 0 .5rem 0 0;
    width: fit-content;
}

section div:not(:has([data-chord])) span:before {
    display: none;
}

@media screen and (min-width: 64.25rem) {

    nav {
        grid-template-columns: calc(50% - 30.5rem) 1fr 1.5rem auto calc(50% - 30.5rem);
    }

    main {
        grid-template-columns: calc(50% - 30.5rem) 1fr calc(50% - 30.5rem);
    }

}

[hidden] {
    display: none !important;
}