@font-face {
  font-family: "Franklin Heading";
  font-style: normal;
  font-weight: 100;
  src: url(../fonts/franklin-gothic-condensed-ssi-condensed.ttf);
  unicode-range: U+0000-00FF;
}
@font-face {
  font-family: "Franklin Sub";
  font-style: normal;
  font-weight: 100;
  src: url(../fonts/franklin-gothic-medium-cond.ttf);
  unicode-range: U+0000-00FF;
}
@font-face {
  font-family: "Franklin Paragraph";
  font-style: normal;
  font-weight: 100;
  src: url(../fonts/franklin-gothic-book.ttf);
  unicode-range: U+0000-00FF;
}

/******************
*@MEDIA-STOPS******
***30em (480px)****
***45em (720px)****
***67.5em (1080px)*
******************/

:root {
  box-sizing: border-box;
  color: #27192E;
  font-family: "Franklin Paragraph", sans-serif;
  font-size: calc(.9em + .3vw);

  /* "scroll-behavior" doesn't work in all browsers, maybe write a Javascript version later */
  scroll-behavior: smooth;

  --main: #27192E;
  --foreground: #E77C00;
  --background-lesson: #2C242F;
  --background-light: #E6C189;
  --background-lighter: #FCF2DA;
  --background-dark: #433239;
  --heading: #5A355A;
  --badge-01: #D6A9AB;
  --badge-02: #BDA1C7;
  --badge-03: #E6C189;

  --carnelian: #B81D13;
}

:active {
  outline: none;
}

:focus-visible {
  outline: .25rem solid var(--foreground);
  outline-offset: .1rem;
  outline-style: dotted;
}

*,
::before,
::after {
  box-sizing: inherit;
}

::selection {
  background-color: transparent;
}
p::selection,
h1::selection,
h2::selection,
h3::selection,
.editable::selection,
[type=text]::selection,
[type=password]::selection {
  background-color: var(--foreground);
  color: var(--background-lighter);
}

body {
  background-attachment: fixed;
  background-color: var(--background-dark);
  background-image: url(../img/background.png);
  background-position: top;
  background-repeat: no-repeat;
  background-size: 100vw 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  margin: 0;
  padding: 0;
  overflow: auto;
  min-width: 280px;
  min-height: 100dvh;
}

.preload * {
  transition: none !important;
}

a {
  color: var(--background-light);
  display: inline-block;
  font-size: .95rem;
  text-decoration: none;
}
@media (min-width: 67.5em) {
  a:where(:hover) {
    color: var(--foreground);
    text-decoration: underline;
  }
}
a:focus-visible {
  color: var(--foreground);
}
a::after {
  background-color: unset;
  content: "";
  display: block;
  visibility: hidden;
  width: 0%;
  height: 1px;
}
label a {
  color: var(--foreground);
}

abbr {
  text-decoration: none;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-family: "Franklin Paragraph", sans-serif;
  font-size: .95rem;
  padding: 0;
}

details {
  color: var(--background-light);
  margin-bottom: 1em;
  padding: 1em;
}
#details--right {
  pointer-events: none;
}
.details--right {
  text-align: right;
}
details summary {
  cursor: pointer;
}

em {
  font-style: normal;
  color: var(--foreground);
}

figure {
  margin: 0;
}

fieldset {
  border: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
fieldset > * + * {
  margin-top: 1em;
}

form {
  background-color: var(--background-lighter);
  padding: 1em;
  text-align: left;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--foreground);
  font-family: "Franklin Heading", sans-serif;
  font-weight: normal;
}

h1 {
  display: none;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.5rem;
}

hr {
  border: none;
  margin: 0;
}

figure > img {
  display: block;
  width: 100%;
  height: auto;
}

input[type=text],
input[type=password] {
  border: 1px solid #E4CFA1;
  border-radius: .2em;
  font-size: .85rem;
  margin-top: .2em;
  padding: .5em;
  height: 2.5em;
}
input[type=text]:focus,
input[type=password]:focus {
  background-color: white;
  box-shadow: .1em .05em .4em 0 var(--foreground);
  outline: none;
}
input::placeholder {
  color: inherit;
  opacity: .7;
  visibility: visible;
  transition: all 100ms linear;
}
input::-moz-placeholder {
  color: inherit;
  opacity: .7;
  visibility: visible;
  transition: all 100ms linear;
}
input:focus::placeholder {
  opacity: 0;
  visibility: hidden;
}
input:focus::-moz-placeholder {
  opacity: 0;
  visibility: hidden;
}

input[type="checkbox"] {
  accent-color: var(--foreground);
  border: 3px solid black;
  height: initial;
}
[type="submit"],
.std-button {
  background-color: var(--foreground);
  border: none;
  border-radius: .35em;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: .02em;
  margin-top: 3em;
  padding: .5em;
  text-transform: uppercase;
  width: auto;
  height: initial;
}
[type="submit"]:hover,
.std-button:hover {
  background-color: var(--badge-02);
  color: var(--main);
  text-decoration: none;
}
[type="submit"]:focus-visible,
.std-button:focus-visible {
  background-color: var(--badge-02);
  box-shadow: unset;
  color: initial;
}

label {
  font-size: .9rem;
  transform: translateX(.3em);
}

fieldset legend {
  color: var(--heading);
  font-family: "Franklin Heading", sans-serif;
  font-size: 1.5rem;
  margin-bottom: .5em;
  padding: unset;
  text-transform: uppercase;
}

main {
  overflow: hidden;
}

p {
  hyphens: auto;
  line-height: 1.5;
}

pre {
  color: var(--background-light);
}

ul {
  list-style: none;
  padding-left: 0;
}

figure > video {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 67.5em) {
  .animated-link:hover::after {
    transition: all 350ms ease;
    visibility: visible;
    width: 100%;
  }
}

#fireworks {
  background-color: transparent;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
section:has(#fireworks) {
  padding-top: 1em;
  position: relative;
  width: 100%;
  height: 100%;
}

.dropdown-label {
  background-color: var(--background-light);
  color: initial;
  cursor: pointer;
  padding: .2em .5em;
  position: relative;
}
.dropdown-label::after {
  border-color: var(--main) transparent transparent;
  border-style: solid;
  border-width: 6px;
  content: "";
  position: absolute;
  top: 0;
  right: .5em;
  transform: rotate(0) translateY(.6em);
  transition: all 150ms ease-out;
}
.dropdown-label.is-open::after {
  transform: rotate(180deg) translateY(calc(.6em - .8em));
  transition: all 150ms ease-out;
}

.dropdown-list {
  background-color: #464349;
  border: 1px solid var(--background-light);
  cursor: pointer;
  list-style: none;
  margin: 0;
  overflow: hidden;
  padding: 0 .7em;
  position: absolute;
  right: 0;
  left: 0;
  transition: all 250ms ease-out;
  visibility: hidden;
  height: 0;
  z-index: 100;
}
.dropdown-list.is-open {
  visibility: visible;
}
.dropdown-list li {
  padding: .7em 0;
}
.dropdown-list li + li {
  border-top: 1px dotted var(--background-light);
  padding-top: .7em;
}

.grow {
  animation: come-up 250ms ease;
  display: inline-block;
}
@keyframes come-up {
  0% {
    transform: translateY(2em) scale(0);
  }
  75% {
    transform: translateY(-.1em) scale(.9);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.hidden {
  transform: rotateY(90deg);
}
.rendered {
  transform: rotateY(0);
  transition: transform 250ms linear;
}

.magnifying-glass {
  border-left: 1px solid var(--background-light);
  flex-basis: 8%;
  padding: .4em;
}
.magnifying-glass .glass-1 {
  fill: none;
  stroke: #E6C189;
  stroke-width: 12;
}
.magnifying-glass .glass-2 {
  fill: #E6C189;
}
.magnifying-glass:hover circle {
  stroke: var(--foreground);
}
.magnifying-glass:hover path {
  fill: var(--foreground);
}

.newsletter-subscription .validation-message {
  opacity: 0;
}
.newsletter-subscription .validation-message.fade-in {
  opacity: 1;
  transition: opacity 500ms ease-in;
}

.notification {
  align-items: center;
  display: flex;
  flex-direction: column;
}
.notification p {
  color: var(--foreground);
  font-size: 1.2rem;
}
.notification a {
  margin: 0;
}

.ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.rotated-frame::before,
.rotated-frame::after {
  border: 1px solid;
  border-color: var(--foreground);
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(4deg) translate(0, -.6em);
  transition: transform 350ms ease;
  width: 100%;
  height: 110%;
  z-index: 1;
}
.rotated-frame::after {
  border-color: var(--badge-02);
  transform: rotate(-5deg) translate(.2em, -.6em);
}
.rotated-frame--song::after {
  border-color: var(--background-light);
}
.rotated-frame--theory::before {
  border-color: #8C6DAA;
}
.rotated-frame--theory::after {
  border-color: #98839E;
}

.skeleton {
  overflow: hidden;
  position: relative;
}
.skeleton * {
  visibility: hidden;
}
.skeleton::before {
  animation: move-right 2s ease-out;
  animation-iteration-count: infinite;
  background-image: linear-gradient(
    to right,
    transparent 0%,
    var(--foreground) 25%,
    var(--foreground) 40%,
    transparent 100%
  );
  content: "";
  display: block;
  opacity: .1;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  width: 100%;
  height: 100%;
}

@keyframes move-right {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.skip-nav {
  background-color: var(--background-light);
  border: 5px solid var(--foreground);
  color: var(--heading);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0 .5rem;
  position: absolute;
  top: 0;
  left: 0;
  text-transform: uppercase;
  transform: translateY(-100%);
  transition: transform 250ms ease;
  width: auto;
  height: 3rem;
}
.skip-nav:focus-visible {
  outline: none;
  transform: translateY(0);
}

.spinner::after {
  animation: spin 2s ease-in-out;
  animation-iteration-count: infinite;
  border: 2px solid white;
  border-right: none;
  border-top: none;
  border-radius: 50%;
  content: "";
  display: inline-block;
  font-size: inherit;
  mix-blend-mode: hard-light;
  margin-inline: .5em;
  width: .75em;
  height: .75em;
}

.standard-check {
  align-items: center;
  display: flex;
}
.standard-check input {
  flex: 0 1;
}
.standard-check label {
  flex: 1 0;
}

@keyframes spin {
  from {
    transform: rotate(0);
  } to {
    transform: rotate(1080deg);
  }
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}
