html {
  font-family: "museo-sans", sans-serif;
  font-weight: 300;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  background-color: lightgrey;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Enable cross-document View Transitions for same-origin navigations */
@view-transition {
  navigation: auto;
}

/* View Transitions */
@keyframes slide-from-right {
  from {
    transform: translateX(10px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-to-left {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-10px);
    opacity: 0;
  }
}

::view-transition-old(main-content) {
  animation:
    150ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
    150ms cubic-bezier(0.4, 0, 1, 1) both slide-to-left;
}

::view-transition-new(main-content) {
  animation:
    250ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in,
    250ms cubic-bezier(0, 0, 0.2, 1) 90ms both slide-from-right;
}

.top-bar {
  view-transition-name: top-bar;
}

.modern-header {
  view-transition-name: modern-header;
}

main {
  view-transition-name: main-content;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}

/* --- Advanced Accordion Animations --- */
.accordion-block details {
  overflow: hidden;
}

.accordion-block details::details-content {
  transition: height 500ms ease-in-out;
  transition:
    height 500ms ease-in-out,
    content-visibility 500ms ease-in-out allow-discrete;
  overflow: hidden;
  height: 0;
}

.accordion-block details[open]::details-content {
  height: auto;
  height: calc-size(auto);
  height: calc-size(auto, size);
}

/* Accordion Arrow Rotation */
.accordion-block details[open] .accordion-arrow {
  transform: rotate(180deg);
}
