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

* {
  margin: 0;
}

html, body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Styles */
html {
  font-size: 62.5%; /* https://snook.ca/archives/html_and_css/font-size-with-rem */
}

body {
  line-height: 1.4;
  font-family: "Libre Baskerville", Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
  font-size: 2rem;
}

a {
  text-decoration: underline;
  padding: 2px 1px 0;
  color: #000;
}

a:visited {
  color: grey;
}

a:focus, a:hover, a:active {
  background: #000;
  color: #fff;
}

.container {
  display: block;
  margin: 4rem auto;
  max-width: 100rem;
  padding: 0 2rem;
}

.site-logo {
  display: block;
  margin: 0 auto;
  width: 200px;
}

.site-presentation {
  text-align:center;
}

.books {
  list-style: none;
  padding: 0;
  margin: 4rem 0;
  border-top: 2px dashed #000;
  border-bottom: 2px dashed #000;
}

.book {
  padding: 2rem 0;
}

.book + .book {
  border-top: 2px dashed #000;
}

.book .cover {
  display: block;
  margin: 2rem auto;
  width: 300px;
}

.book .title {
  margin-top: 2rem;
}

.book .title, .book .subtitle {
  font-size: 2rem;
  font-weight: bold;
}

.book .metadata, .book .description {
  font-size: 1.6rem;
  margin-top: 1rem;
}

.book .description p {
  margin: 1.6rem 0;
}

@media (min-width: 768px) {
  .book {
    display: flex;
  }

  .book .cover-col {
    flex: 0 0 200px;
  }

  .book .info-col {
    flex: 1;
    margin-left: 10rem;
  }
}

.main-footer {
  margin-top: 4rem;
  padding-bottom: 4rem;
  font-size: 1.6rem;
  text-align: center;
}
