body {
  background-color: #F7F7F7;
}

main {
  background-color: #FFF;
  padding-bottom: 100px;
  border-bottom: 1px solid #E9E9E9;
  padding-top: 2rem;
}

main > header,
main > article,
main > section,
footer section {
  max-width: 68rem;
  min-width: 28rem;
  padding: 2rem 2rem 0;
  margin-left: auto;
  margin-right: auto;
}

.libby-header-logo {
  margin-right: -6px;
}

footer section {
  display: flex;
  justify-content: space-between;
  padding: 2rem 2rem 8rem;
  color: #999;
}

.footer-legal {
  font-size: 1.4rem;
  max-width: 30rem;
}

.footer-b-corp {
  flex: 0 0 auto;
  margin: 0.5rem 0 0 2rem;
  width: 48px;
  height: 72px;
  color: inherit;
}

.footer-b-corp svg g {
  fill: currentColor;
}

.share-category {
  color: #1CB9AE;
}


/* -- Facts */

.share-title-facts .table-scroller-1d {
  flex: 1;
  margin: 0 auto;
}

.share-title-facts table {
  width: 100%;
}


/* -- Call to action */

.share-title-cta {
  padding: 0 2rem 8rem;
}

.share-title-cta aside {
  line-height: 1.5;
  background-image: linear-gradient(to bottom, #F3F3F3, #F9F9F9);
  padding: 2rem;
  border-radius: 6px;
}

.cta-speech {
  display: flex;
}

.cta-speech .libby-mascot,
.availability-library .libby-mascot {
  flex: 0 0 auto;
  margin-top: 1px;
  margin-right: 1.5rem;
  border: none;
  border-radius: 1.25rem;
  box-shadow: 1px 2px 2px #C3C6C9;
}

.cta-awards {
  list-style: none;
  display: flex;
  margin: 2rem 4rem 0 -1.5rem;
  padding: 0;
  justify-content: space-between;
  opacity: 0.333;
}

.cta-awards li {
  display: flex;
  white-space: nowrap;
  text-align: center;
  font-size: 10px;
  line-height: 12px;
  font-weight: 500;
  width: 25%;
}

.cta-awards li svg {
  width: 16px;
  height: 32px;
  margin: 0 4px;
  flex: 0 0 auto;
}

.cta-awards li svg:last-child {
  transform: scaleX(-1);
}

.cta-awards li svg g {
  fill: currentColor;
}

.cta-awards li a {
  text-decoration: none;
  color: inherit;
}

.cta-store-badges {
  display: flex;
  justify-content: flex-end;
}

.cta-store-badge {
  flex: 0 0 auto;
  border-radius: 10px;
  max-width: 200px;
  width: 48%;
}


/* -- Description */

.share-title-description {
  line-height: 1.75;
}

.share-title-description p:first-child:not(:last-child) {
  font-family: "MuseoSlabFree", "Rockwell", sans-serif;
  font-size: 1.65rem;
  line-height: 1.55;
}

.share-title-description p span.is-mostly-caps {
  font-family: "MuseoSlabFree", "Rockwell", sans-serif;
  text-transform: uppercase;
  font-size: 1.55rem;
  line-height: 1.55;
}

.share-title-description p:not(:first-child) q,
.share-title-description p:last-child q {
  font-style: italic;
}

.share-title-description p q:first-child:before {
  margin-left: -0.6rem;
}

.share-title-description p:not(:first-child) cite,
.share-title-description p:last-child cite {
  font-weight: 600;
  font-style: italic;
}


/* -- At Libraries Near You */

.share-title-libraries table {
  min-width: 100%;
}

.share-title-libraries p {
  font-size: 1.2rem;
}

.share-title-libraries a.not-in-catalog {
  color: #631A35;
  text-decoration: line-through;
}


/* -- At a particular library */

.availability-library {
  background-image: linear-gradient(to bottom, #F7F7F7, #FFF);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 0 #DDD;
  line-height: 1.5;
  margin-top: 1em;
  margin-bottom: 6em;
}

.availability-library-summary {
  min-height: 3em;
}

.availability-library p {
  margin: 2rem;
  font-size: inherit;
}

.availability-library p strong {
  font-weight: 600;
}

.availability-library a[href] {
  background-color: #FFF;
  border: none;
  border-top: 1px solid #F7F7F7;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 2rem;
  font-size: inherit;
  font-weight: 600;
  color: #631A35;
  text-decoration: none;
  margin: 0;
}

.availability-library a[href] figure {
  flex: 0 0 auto;
}

.availability-library a[href] span {
  flex: 1 2 auto;
  margin-right: 2em;
}

.availability-library a[href] .library-logo {
  flex: 0 1 auto;
  max-width: 100px;
  min-width: 0;
  width: 100%;
}


/* -- Dark color scheme */

@media (prefers-color-scheme: dark) {
  .availability-library,
  .share-title-cta aside {
    background: #191919;
  }

  main {
    background-color: #111;
    border-color: #222;
  }

  .library-logo {
    background-color: #EEE;
  }

  .availability-library {
    box-shadow: 0 3px 0 #333;
  }

  .availability-library a[href] {
    background-color: #222;
    border-top: 1px solid #111;
    color: #29CFC3;
  }

  .availability-library a[href] .library-logo {
    background-color: #DDD;
  }

  .cta-speech .libby-mascot,
  .availability-library .libby-mascot {
    box-shadow: 1px 2px 2px #030609;
  }
}


/* -- Wide screens */

@media (min-width: 60rem) {
  .share-title-facts {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
  }

  .share-title-facts figure {
    width: 176px;
    margin-top: 4.7rem;
    margin-left: 4rem;
  }

  .share-title-cta aside {
    display: flex;
    justify-content: space-between;
  }

  .cta-store-badges {
    flex-direction: column;
  }

  .cta-store-badge {
    width: 130px;
    padding: 0.75rem;
    margin-left: 2.5rem;
  }
}


/* -- Narrow screens */

@media (max-width: 60rem) {
  h1 {
    font-size: 2.8rem;
  }

  .share-title-facts .table-scroller-1d {
    margin-top: 4rem;
  }

  .share-title-cta aside {
    padding: 1.5rem;
  }

  .share-title-cta .libby-mascot {
    margin-right: 1.25rem;
  }

  .share-title-cta p {
    margin-bottom: 0.75em;
  }

  .cta-speech {
    font-size: 88%;
  }

  .cta-awards {
    display: none;
  }

  .cta-store-badges {
    margin-left: calc(4.7rem + 1.25rem);
    justify-content: space-between;
  }

  .availability-library {
    font-size: 1.7rem;
  }
}


@media (max-width: 360px) {
  .share-title-cta {
    font-size: 1.4rem;
  }
}
