*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: clamp(10px, 2vw, 24px);
  font-family: serif;
  font-size: 16px;
  padding-right: clamp(0px, 31vw, 460px);
  max-width: 100vw;
  overflow-x: hidden;
}

.heading {
  margin-bottom: 2rem;
  overflow-wrap: anywhere;
}

.big {
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: normal;
  text-decoration: underline;
}

.sub-heading-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5ch;
}

.sub-heading-line a {
  font-size: 18px;
  color: #000;
  text-decoration: none;
}

a {
  color: #0000EE;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.main-layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 40px);
  align-items: flex-start;
}

.sidebar {
  flex: 0 1 260px;
  min-width: 0;
  max-width: 100%;
}

.nav-container {
  max-width: 100%;
}

.nav-container a {
  display: block;
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

a:hover{
  text-decoration: underline;
}


footer {
  font-size: 13px;
  margin-top: 30px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-area {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 70ch;
}

.events article { margin-bottom: 25px; }

.events h3 {
  font-size: 16px;
  margin: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.events p {
  margin: 0;
  font-size: 15px;
}

.is-past {
  text-decoration: line-through;
  opacity: 0.5;
}

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

img,
video {
  height: auto;
}

/* Piano column */

#piano-column {
  position: fixed;
  top: 0;
  right: 0;
  width: clamp(280px, 30vw, 440px);
  height: 100dvh;
  border-left: 3px dashed #000;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
}

.word, .letter {
  position: absolute;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: bold;
  color: rgb(0, 0, 0);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

@media (max-width: 900px) {
  body {
    padding-right: 0;
  }

  .main-layout {
    flex-direction: column;
  }

  .sidebar,
  .content-area {
    width: 100%;
    max-width: 100%;
  }

  #piano-column {
    display: none;
  }
}
