/* ==========================================================================
   Fonts (self-hosted, latin subsets)
   ========================================================================== */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/roboto-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/roboto-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/roboto-latin-700-normal.woff2') format('woff2');
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
  margin: 0;
}

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

b,
strong {
  font-weight: bolder;
}

:root {
  color: #3E3E3E;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
}

body {
  font-size: calc(14px + (26 - 14) * ((100vw - 300px) / (1600 - 300)));
  line-height: 1.35em;
}

h1,
h2,
h3,
h4,
h5,
h6,
a,
button,
blockquote,
cite,
summary {
  font-family: 'Poppins', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1.5em 0 .75em;
}

.content {
  max-width: 67.5em;
  margin: 0 auto;
  padding: 0 2vw;
}

a {
  color: inherit;
  font-weight: 700;
  letter-spacing: .25px;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

a:focus {
  outline: none;
}

a:not([data-button])::after {
  background-color: #353122;
  bottom: .125rem;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
  transition: width .2s ease-out;
}

@media (pointer: fine) {
  a:not([data-button])::after {
    width: 0;
  }

  a:focus::after,
  a:hover::after {
    width: 100%;
  }
}

.visually-hidden { /* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility */
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

@media screen and (min-width: 25em) {
  body {
    line-height: 1.4em;
  }

  .content {
    padding: 0 3vw;
  }
}

@media screen and (min-width: 37.5em) {
  body {
    line-height: 1.45em;
  }
}

@media screen and (min-width: 48em) {
  body {
    line-height: 1.5em;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background-color: #C8AD55;
  display: flex;
  position: relative;
  align-items: center;
  padding: 0 2vw .25em;
  margin-bottom: 14vw;
  justify-content: space-around;
  max-height: 70vh;
}

.site-nav {
  flex: 0 1 auto;
  font-size: calc(.75em + 1vw);
  font-weight: 600;
  margin-right: 2vw;
  text-align: right;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  letter-spacing: .25px;
}

.site-nav li {
  margin: 1em 0;
}

.site-nav a {
  font-weight: 500;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

.piano {
  align-self: flex-start;
  flex: 0 1 80%;
  margin: 0 0 -4em .25em;
}

.piano path {
  transform: scale(.98);
}

@media screen and (min-width: 25em) {
  .site-header {
    padding: 0 3vw .25em;
  }
}

@media screen and (min-width: 37.5em) {
  .piano {
    flex: 0 1 60%;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin: 12vh 0 -1em 0;
}

/* ==========================================================================
   Quote (home)
   ========================================================================== */

.quote {
  font-weight: 500;
  margin-bottom: 10vw;
}

.quote blockquote {
  text-align: center;
  font-size: 2em;
  line-height: 1.25em;
}

.quote cite {
  display: block;
  width: 100%;
  text-align: right;
  font-size: 1.25em;
}

.quote cite::before {
  content: "—";
}

/* ==========================================================================
   Cards (home)
   ========================================================================== */

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 10vw;
}

.card {
  background-color: #C8AD55;
  border-radius: .25em;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  color: #353122;
  display: block;
  flex: 1 1 100%;
  font-weight: 500;
  margin-bottom: 2em;
  padding-bottom: .25em;
  text-align: center;
  text-decoration: none;
  transition: box-shadow .2s ease-out, transform .2s ease-out;
}

.card:hover,
.card:focus {
  box-shadow: 0 6px 9px rgba(0, 0, 0, 0.16), 0 6px 9px rgba(0, 0, 0, 0.23);
  outline: none;
  transform: translateY(-.125em);
}

.card img {
  border-radius: .25em .25em 0 0;
  display: block;
  margin-bottom: .25em;
  width: 100%;
}

@media screen and (min-width: 38.75em) {
  .card {
    flex: 0 1 30%;
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Prose pages (method, teacher, tuition)
   ========================================================================== */

.prose {
  margin: 0 auto;
  max-width: 35em;
}

.prose-img {
  border-radius: .25em;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  margin: 4vw auto;
  display: block;
  max-width: 14rem;
  width: 100%;
}

.callout {
  background-color: #F9F6EF;
  clear: both;
  font-style: italic;
  padding: 3vw 0;
  text-align: center;
}

@media screen and (min-width: 38.75em) {
  .prose {
    margin: 0 auto 0 12vw;
  }

  .prose-img {
    float: left;
    margin: 0 2vw 1.5em -10vw;
  }

  .prose h3 {
    clear: both;
  }
}

/* ==========================================================================
   "More on the Method" disclosure (method)
   ========================================================================== */

.supplementary summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: 500;
  padding: .75em 0;
  list-style: none;
}

.supplementary summary::-webkit-details-marker {
  display: none;
}

.supplementary summary:hover rect,
.supplementary summary:focus rect {
  fill: #C8AD55;
}

.supplementary .plus {
  width: 1em;
  height: 1em;
}

.supplementary .plus rect {
  transform-origin: center center;
  transition: fill .2s ease-out, transform .2s ease-out;
}

.supplementary[open] .plus .vertical {
  transform: rotate(90deg);
}

/* Animate open/close where the browser supports it; snaps elsewhere. */
.supplementary::details-content {
  opacity: 0;
  block-size: 0;
  overflow-y: clip;
  transition: content-visibility .3s allow-discrete, opacity .3s ease-out, block-size .3s ease-out;
}

.supplementary[open]::details-content {
  opacity: 1;
  block-size: auto;
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}

/* ==========================================================================
   Video (teacher)
   ========================================================================== */

.video-wrapper {
  margin: 3vw 0;
}

.video-wrapper video {
  aspect-ratio: 1080 / 608;
  border-radius: .25em;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  width: 100%;
}
