:root {
	color-scheme: light dark;
	--background: light-dark(#F5F5F5,#181818);
    --background-hover: light-dark(#18181805,#F5F5F505);
	--text: light-dark(#000000,#FFFFFF);
    --scroll-track-border: light-dark(#181818, #e7e7e7);
    --scroll-thumb: light-dark(#e7e7e7, #181818);
    --scroll-thumb-shadow-top: light-dark(white, black);
    --scroll-thumb-shadow-bottom: light-dark(#cdcdcd, #323232);
}

@media not (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: auto;
    }
    html {
        scroll-behavior: smooth;
    }
}

html {
    overflow: auto
}

body {
	color: var(--text);
	background-color: var(--background);
	/*font-family: 'Courier New', Courier, monospace;*/
    font-family: Courier, monospace;
	font-kerning: normal;
	font-size: 100%;
	/* font-variant-ligatures: common-ligatures; */
	font-weight: 400;
	line-height: 1.444;
	margin: 1rem auto 1rem;
    padding: 0 1rem;
	text-align: left;
	text-size-adjust: 100%;
}
/*
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: url(../images/track-pattern-2-grey.svg) repeat;
    border: 1px solid var(--scroll-track-border);
}

::-webkit-scrollbar-thumb {
    background: url(../images/handle-adaptable.svg) center center no-repeat var(--scroll-thumb);
    border: 1px solid var(--scroll-track-border);
    box-shadow: inset 1px 1px var(--scroll-thumb-shadow-top), inset -1px -1px var(--scroll-thumb-shadow-bottom);
}
::-webkit-scrollbar-thumb:active {
    box-shadow: none;
}
*/

a, a:visited {
	color: var(--text);
}
a:hover {
	color: var(--text);
	text-decoration: none;
}

header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

header svg path {
    background: var(--text);
    fill:  var(--text);
}

footer {
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 3rem auto 0;
}

sup {
    line-height: 0;
}

.menu {
    margin-top: 0.8125rem;
}

.menu a {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
    margin-right: 1rem;
    text-decoration: none;
}
.menu a:last-child {
    margin-right: 0;
}

.menu ul {
    font-size: 1.25rem;
    font-weight: bold;
    list-style: none;
    margin: 0.875rem 0 0 0;
}
.menu a {
    text-decoration: none;
}
.menu li {
    line-height: 1;
}

.records {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-column-gap: 4rem;
    grid-row-gap: 4rem;
    justify-content: space-around;
    list-style: none;
}

.home {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}

.home .records div.record:first-child {
    grid-column-start: 1;
    grid-column-end: -1;
    display: block;
    gap: 64px;
    margin: 0 auto;
    max-width: 1080px;
}
.home .records div.record:first-child .cover {
    /* max-width: 636px; */
    max-width: 876px;
}
.home .records div.record:first-child .recordTitle,  .home .records div.record:first-child .recordArtist {
    font-size: 3rem;
}

.home .records div.record:first-child p.intro,  .home .records div.record:first-child p.link {
    font-size: 1.25rem;
}

.cover img {
    border-radius: 2px;
    width: 100%;
}
.published {
    font-weight: bold;
}

.meta {
    display: flex;
    font-size: 0.875rem;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.record a:hover {
    img {
        filter: saturate(150%);
    }
}

.record p {
    margin: 0.5rem 0 0 0;
}
.record .meta p {
    margin: 0;
}
.recordTitle {
    font-size: 2rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}
.record p.recordArtist {
    font-size: 2rem;
    line-height: 1;
    margin: 0;
}

figure.video {
    margin: 0;
}

figure.video iframe {
    aspect-ratio: 2/1;
    border: none;
    width: 100%;
}

.notes {
    a {
        text-decoration: none;
    }
    a:hover .note {
        background: var(--background-hover);
    }
    h2 {
        font-size: 1.17rem;
        font-weight: bold;
    }

    h3 {
        font-size: 2rem;
        font-weight: normal;
        line-height: 1;
        margin: 0;
    }
    p {
        margin-block: 0.5rem 0;
    }
    .note {
        margin-inline: -0.75rem;
        padding: 0.75rem;
    }
}
/* 1.17rem */


@media (min-width: 35rem) {
    body {
        margin: 2rem auto 2rem;
        padding: 0 2rem;
    }
}

@media (min-width: 45rem) {
    .records {
        grid-template-columns: repeat(2, 1fr);
    }
    .home .records div.record:first-child {
        display: flex;
    }
}

@media (min-width: 60rem) {
    body {
        max-width: 90%;
    }
    .records {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 80rem) {
    .records {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 120rem) {
    .records {
        grid-template-columns: repeat(5, 1fr);
    }
}



@media print {
    body {
        color: black;
        background-color: white;
    }

    .footnotereverse {
        display: none;
    }

    a:not(
        [href^="#"],
        [href^="/"],
        [href*="localhost"],
        [href*="diyrecord.club"]
    )::after{
        content: " (" attr(href) ") ";
    }
}
