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

html {
  background-color: #F8EAB8;
}

body {
  margin: 0;
  color: #3A2A14;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

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

h1 {
  margin-bottom: 3.5rem;
  font-family: "Rye", Georgia, serif;
  font-size: clamp(1.3rem, 2.5vw, 2.3rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: center;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0.75rem;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.4;
}

h2.song {
  margin-top: 4.5rem;
  margin-bottom: 0.45rem;
  font-size: 1.55rem;
  font-weight: 400;
  font-style: italic;
}

h2.kicker {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: normal;
}

p {
  margin-bottom: 1.1rem;
}

a {
  color: #5C3412;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #2A1C0C;
}

a:focus-visible {
  outline: 2px solid #3A2A14;
  outline-offset: 3px;
}

.lyrics-band {
  display: grid;
  grid-template-columns: minmax(22rem, 52vw) minmax(0, 1fr);
  align-items: start;
}

.portrait {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;

}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background-color: #EBC97A;
}

.portrait-credit {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.45rem 0.75rem 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  background-color: #EBC97A;
}

.portrait-credit a {
  color: #5C3412;
}

.portrait-credit a:hover {
  color: #2A1C0C;
}

#image-credit {
  margin-top: 1.75rem;
  margin-bottom: 0;
  font-size: 1rem;
}

.intro {
  padding: 2.4rem 2.5rem 3.25rem;
  max-width: 48rem;
}

.subtitle {
  margin-bottom: 1.35rem;
  font-size: 1.1rem;
}

.tribute {
  margin-bottom: 1.35rem;
  font-style: italic;
}

.lyrics-label {
  margin-bottom: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

.lyrics-label--center {
  margin-top: 3.75rem;
  text-align: center;
  /* letter-spacing leaves empty space after the last letter */
  text-indent: 0.16em;
}

.prelude {
  margin-bottom: 0.85rem;
}

.lyrics {
  margin-top: 1.5rem;
  font-size: 1.32rem;
  font-style: italic;
}

.lyrics p {
  margin-bottom: 1.35rem;
}

.lyrics p:last-child {
  margin-bottom: 0;
}

.closing hr {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(58, 42, 20, 0.4);
}

.closing-inner {
  padding: 2.5rem 2.5rem 6rem;
}

.closing .song {
  margin-top: 1.25rem;
}

.signoff {
  margin-bottom: 0;
}

.holiday-note--red {
  color: #E31C3D;
}

.holiday-note--green {
  color: #009B3A;
}

@media (max-width: 800px) {
  body {
    font-size: 1.125rem;
  }

  h1 {
    margin-top: 0.85rem;
    margin-bottom: 2.5rem;
    font-size: clamp(1.25rem, 5.4vw, 1.9rem);
    line-height: 1.5;
  }

  .lyrics-band {
    display: block;
  }

  .portrait {
    position: static;
    height: auto;
  }

  .portrait img {
    width: 100%;
    object-position: center;
  }

  .intro {
    padding: 1.75rem 1.35rem 2.25rem;
    max-width: none;
  }

  h2.song {
    font-size: 1.38rem;
  }

  .closing-inner {
    padding: 1.4rem 1.15rem 3rem;
    max-width: none;
  }
}
