@import url("https://fonts.googleapis.com/css2?family=Rock+Salt&display=swap");

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f9f9f9 url("images/background.jpg") repeat;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #000;
  background: transparent url("images/background-corner.png") no-repeat right
    bottom;
  font-family: "Helvetica Neue", "Neue Helvetica", Helvetica, Arial, Verdana,
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.biography {
  width: 960px;
  margin: 0 auto;
  padding: 28px 0 48px;
}

.biography article {
  margin-bottom: 32px;
}

h1,
h2,
p,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 32px;
  font-family: "Rock Salt", cursive;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.portrait {
  width: 100%;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: solid #cdcdcd;
  border-width: 1px 2px 2px 1px;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.profile {
  padding-top: 20px;
}

.profile h2 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 400;
}

.profile p {
  margin-bottom: 14px;
}

.live-info {
  margin-top: 54px;
  padding-top: 32px;
  border-top: 1px solid #bdbdbd;
}

.live-info h2 {
  margin-bottom: 22px;
  font-size: 20px;
  font-weight: 600;
}

.schedule {
  margin: 0;
}

.schedule > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dotted #b7b7b7;
}

.schedule dt,
.schedule dd {
  margin: 0;
}

.schedule dt {
  font-weight: 600;
  white-space: nowrap;
}

.schedule dd small {
  display: inline;
  margin-left: 0.35em;
  font-size: inherit;
}

.schedule dd strong {
  display: inline-block;
  margin-left: 0.35em;
  color: #b02b20;
  font-weight: 600;
}

.schedule-year {
  margin: 28px 0 8px;
  font-family: "Rock Salt", cursive;
  font-size: 18px;
  font-weight: 400;
}

.ticket-link {
  margin: 22px 0 0;
}

.ticket-link a {
  color: #2e8200;
  overflow-wrap: anywhere;
}

.ticket-link a:hover,
.ticket-link a:focus-visible {
  color: #389e00;
  text-decoration: underline;
}

.language-switcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
}

.language-fab,
.language-option {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(0 0 0 / 14%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.language-fab {
  position: relative;
  z-index: 2;
  font-size: 25px;
}

.language-option {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 27px;
  opacity: 0;
  transform: translate(0, 0) scale(0.35) rotate(-20deg);
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 150ms ease,
    box-shadow 160ms ease;
}

.language-option:hover,
.language-option:focus-visible {
  box-shadow: 0 5px 18px rgb(0 0 0 / 28%);
}

.language-option span {
  transition: transform 160ms ease;
}

.language-option:hover span,
.language-option:focus-visible span {
  transform: scale(1.12);
}

.language-option[aria-current="page"] {
  outline: 3px solid #2e8200;
  outline-offset: 2px;
}

.language-menu {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52px;
  height: 52px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 220ms;
}

.language-switcher.is-open .language-menu {
  visibility: visible;
  pointer-events: auto;
}

.language-switcher.is-open .language-option {
  opacity: 1;
}

.language-switcher.is-open .language-option:nth-child(1) {
  transform: translate(-105px, 0) scale(1) rotate(0);
  transition-delay: 0ms;
}

.language-switcher.is-open .language-option:nth-child(2) {
  transform: translate(-91px, -52px) scale(1) rotate(0);
  transition-delay: 35ms;
}

.language-switcher.is-open .language-option:nth-child(3) {
  transform: translate(-52px, -91px) scale(1) rotate(0);
  transition-delay: 70ms;
}

.language-switcher.is-open .language-option:nth-child(4) {
  transform: translate(0, -105px) scale(1) rotate(0);
  transition-delay: 105ms;
}

.language-fab:focus-visible {
  outline: 3px solid #2e8200;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .biography {
    width: 94%;
  }
}

@media (max-width: 640px) {
  body {
    background: none;
  }

  .biography {
    padding-top: 24px;
  }

  h1 {
    font-size: 20px;
  }

  .portrait {
    margin-bottom: 16px;
    border-width: 0 1px 1px 0;
  }

  .profile {
    padding-top: 0;
  }

  .live-info {
    margin-top: 40px;
    padding-top: 26px;
  }

  .live-info h2 {
    font-size: 18px;
  }

  .schedule > div {
    display: block;
    padding: 11px 0;
  }

  .schedule dt {
    margin-bottom: 2px;
  }

  .schedule dd small,
  .schedule dd strong {
    display: block;
    margin-left: 0;
  }

  .language-switcher {
    right: 16px;
    bottom: 16px;
  }

  .language-fab,
  .language-option {
    width: 48px;
    height: 48px;
  }

  .language-menu {
    width: 48px;
    height: 48px;
  }

  .language-switcher.is-open .language-option:nth-child(1) {
    transform: translate(-94px, 0) scale(1) rotate(0);
  }

  .language-switcher.is-open .language-option:nth-child(2) {
    transform: translate(-81px, -47px) scale(1) rotate(0);
  }

  .language-switcher.is-open .language-option:nth-child(3) {
    transform: translate(-47px, -81px) scale(1) rotate(0);
  }

  .language-switcher.is-open .language-option:nth-child(4) {
    transform: translate(0, -94px) scale(1) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-menu,
  .language-option,
  .language-option span {
    transition: none;
  }
}
