#spritesheet { display: none; }
html, body {
    height: 100vh;
    width: 100vw;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: rgb(0 0 0 / 60%);
    background-color: grey;
    background-image: url(./images/piano-3.webp);
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    font: 1rem / 1.4 Roboto, sans-serif;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4rem;
    position: fixed;
    inset: 0 0 auto 0;
    background-color: #182432;
    font-size: 1rem;
    z-index: 10;
    box-shadow:
        0 1px 30px 0 rgb(0 0 0 / 50%),
        0 1px 5px 0 rgb(0 0 0 / 10%);
}
nav a {
    display: inline-block;
    padding: .5rem 1.5rem;
    color: #f5f0ea;
    text-decoration: none;
    text-transform: uppercase;
    transition: .2s;
}
nav a:hover {
    color: #B0AAA9;
}
.icon-button {
    padding: 1rem;
    color: #f5f0ea;
    background: #182432;
    border: none;
    cursor: pointer;
}
.icon-button svg {
    display: block;
    width: 2.5rem;    
}
#open-menu {
    display: none;
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 9;
}
#close-menu {
    display: none;
    position: absolute;
    inset: 0 0 auto auto;
    z-index: 1;
}
@media (max-width: 900px){
    nav {
        padding: 2rem 1rem;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        transform: translateY(-30px) translateY(-100%);
        transition: .3s;
        box-shadow:
            0 1px 30px 0 rgb(0 0 0 / 50%),
            0 1px 5px 0 rgb(0 0 0 / 10%),
            0 0 0 calc(100vmax + 2rem) rgb(43 40 33 / 0%);
    }
    nav.open {
        transform: none;
        box-shadow:
            0 1px 30px 0 rgb(0 0 0 / 50%),
            0 1px 5px 0 rgb(0 0 0 / 10%),
            0 0 0 calc(100vmax + 2rem) rgb(11 10 5 / 30%);
    }
    nav a {
        padding: 1rem 2rem;
        margin-right: 4rem;
    }
    #close-menu, #open-menu {
        display: block;
    }
}
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 8rem);
    padding: 10rem 1rem 3rem;
    text-align: center;
    color: #f5f0ea;
    background-color: rgb(0 0 0 / 16%);
}
header img {
    width: 128px;
    height: auto;
}
header h1 {
    margin: 1rem auto 0;
    font-size: 3rem;
    line-height: 1.2;
}
header p {
    margin: 0;
    font-size: 1.25rem;
    font-family: Quicksand, Roboto, sans-serif;
    text-align: center;
    letter-spacing: .25ch;
}
header p svg {
    width: 1.2em;
    height: 1.2em;
    vertical-align: -.25em;
}
p {
    margin: 1rem 0 0 0;
    max-width: 800px;
}
h2 {
    margin: 0 auto;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
}
h2::after {
    content: "";
    display: block;
    width: 3ch;
    height: 3px;
    margin: 1.5rem auto;
    background-color: currentcolor;
    border-radius: 10px;
}
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem 4rem;
}
ul.tableish {
    width: 85%;
}
ul.tableish li {
    display: flex;
}
ul.tableish li span {
    flex: 1 1 auto;
    text-align: left;
}
ul.tableish li span:last-child {
    width: 6rem;
    text-align: right;
}
#tagline {
    margin-top: 25vh;
    font-size: 1.75rem;
}
a {
    color: #9da687;
}
#lessons .section-card {
    color: rgb(0 0 0 / 60%);
    margin-bottom: 4rem;
}
#lessons {
    color: #f5f0ea;
    background-color: #182432;
}
#lessons .section-card h3 { 
    margin-top: 0;
}
#lessons > p {
    margin-bottom: 6rem;
}
#lessons p {
    width: 100%;
}
#lessons h2 {
    margin-bottom: 4rem;
}
#lessons > ul {
    display: flex;
    gap: 8vw;
}
@media (max-width: 900px){
    #lessons > ul {
        flex-direction: column;
    }
}
#lessons svg {
    display: inline-block;
    height: 75px;
    margin-bottom: .5rem;
}
#lessons > ul > li {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
}
#lessons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
li#the-conditions li {
    list-style: disc;
    margin: .5rem;
}
#the-conditions svg {
    margin-top: 15px;
    height: 60px;
}
#about {
    margin-top: 2rem;
    background-color: #fffcf8;
}
#videos {
    list-style: none;
    display: flex;
    gap: 1rem;
    width: min(100%, 1200px);
    padding: 0;
    margin-top: 4rem;
}
#videos li {
    aspect-ratio: 16 / 9;
    flex: 1 1 auto;
}
#videos iframe {
    width: 100%;
    height: 100%;
}
@media (max-width: 1000px){
    #videos {
        flex-direction: column;
        width: min(100%, 500px);
    }
}
#events {
    margin-top: 2rem;
    background-color: #9da687;    
}
#events img {
    width: min(100%, 500px);
    height: auto;
    margin: 2rem auto;
}
#events ul {
    list-style: none;
    width: 100%;
    padding: 0;
    margin: 0;
}
#events ul li {
    display: flex;
    flex-wrap: wrap;
    padding: .5rem 1rem;
    border-top: 1px solid #c8c8c8;
    text-align: center;
}
#events ul li:last-child {
    border-bottom: 1px solid #c8c8c8;
}
#events ul li a {
    margin-left: auto;
}
.section-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(90%, 700px);
    padding: 3rem;
    box-sizing: border-box;
    background-color: #fffcf8;
}
#contact {
    margin-top: 2rem;
    background-color: #d1cac9;
}
#contact img {
    width: min(320px, 90% - 4rem);
    height: auto;
    margin-bottom: -2rem;
    z-index: 1;
}
#contact .section-card {
    padding-top: 4rem;
}
#contact p {
    width: 100%;
}
#contact a {
    color: inherit;
}
#contact address {
    margin: 2rem 0 1rem 0;
    font-style: normal;
    text-align: center;
}
address strong {
    font-weight: 900;
    color: black;
}
#events, #contact, #lessons {
    background-image: url(./images/stripes.png);
    background-size: 128px 128px;
}
footer {
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    color: #f5f0ea;
    background-color: #182432;
}
footer p {
    margin: 0 auto 0 0;
    padding: 1rem 2rem;
}
footer a {
    display: block;
    padding: 1rem 2rem;
}

@media (max-width: 800px){
    footer { flex-direction: column; }
    footer p { margin: 0; }
}

@media (max-width: 900px){
    header p { letter-spacing: .2ch; }
    header h1 + p { font-size: 1rem; }
    #tagline {
        font-size: 1.25rem;
        width: min(90%, 420px);
    }
    h2 { font-size: 1.75rem; }
    .section-card { padding: 2rem; }
}

@media (max-width: 450px){
    header h1 { font-size: 2.3rem; }
    h2 { font-size: 1.5rem; }
    .section-card { width: 100%; }
}
