* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Jost', sans-serif;
}

.navbar {
  position: sticky;
  top: 0;
  height: 50px;
  width: 100%;
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
}

.navbar .brand {
  font-size: 33px;
  line-height: 1;
  text-transform: lowercase;
}

.subnav {
  position: sticky;
  top: 50px;
  height: 50px;
  width: 100%;
  background-color: #EEEEEE;
  display: flex;
  z-index: 99;
}

.subnav-item {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.subnav-label {
  font-size: 33px;
  line-height: 1;
  color: #000;
  cursor: pointer;
  text-transform: lowercase;
  text-decoration: none;
}

.subnav-item:hover .subnav-label {
  color: #FF4445;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #FF4445;
  padding: 16px 20px 20px;
  z-index: 10;
}

.subnav-item:hover .dropdown {
  display: block;
}

.dropdown ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown li {
  font-size: 33px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  text-transform: lowercase;
}

.books-menu-all {
  margin-top: 16px;
}

.dropdown li:hover {
  color: #000;
}

.dropdown a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page h1 {
  display: inline-block;
  font-size: 33px;
  text-transform: lowercase;
  font-weight: 500;
  margin-bottom: 24px;
  border-bottom: 4px solid #FF4445;
  padding-bottom: 8px;
}

.charter-list {
  padding-left: 20px;
}

.charter-list li {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* shared "fact" label/value pairing used on the book page and rating system page */

.fact-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 4px solid #000;
  padding-top: 32px;
}

.fact-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 6px;
}

.fact-value {
  font-size: 20px;
  text-transform: lowercase;
}

.fact-value--accent {
  color: #FF4445;
  font-weight: 600;
}

.fact-value--rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 3px solid #FF4445;
  border-radius: 50%;
  font-size: 20px;
}

/* homepage */

.home {
  padding-top: 40px;
}

.home-label {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FF4445;
  margin-bottom: 20px;
}

.home-book {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 4px solid #000;
  padding-top: 40px;
}

.home-cover {
  width: 160px;
  height: auto;
  flex-shrink: 0;
}

.home-author {
  font-size: 16px;
  text-transform: lowercase;
  color: #555;
  margin: 4px 0 20px;
}

.home-link {
  font-size: 15px;
  color: #000;
}

/* books list page */

.book-list {
  list-style: none;
  margin-top: 20px;
}

.book-list-item {
  display: grid;
  grid-template-columns: 16px 1fr 200px 60px;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid #000;
}

.book-list-item:last-child {
  border-bottom: 1px solid #000;
}

.book-list-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #FF4445;
}

.book-list-status--read {
  background-color: #000;
}

.book-list-title {
  font-size: 20px;
  text-transform: lowercase;
  color: #000;
  text-decoration: none;
}

.book-list-title:hover {
  color: #FF4445;
}

.book-list-author {
  font-size: 15px;
  text-transform: lowercase;
  color: #555;
}

.book-list-rating {
  font-weight: 600;
  text-align: right;
}

/* book detail page */

.book-meta {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  padding: 60px 40px;
  border-bottom: 4px solid #000;
  align-items: start;
}

@media (max-width: 720px) {
  .book-meta {
    grid-template-columns: 1fr;
  }
}

.book-cover-flat {
  width: 100%;
  height: auto;
  display: block;
}

.book-meta-text h1 {
  font-size: 48px;
  line-height: 1;
  text-transform: lowercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.book-author {
  font-size: 18px;
  text-transform: lowercase;
  color: #555;
  margin-bottom: 32px;
}

.book-reviews {
  padding-top: 60px;
  padding-bottom: 60px;
}

.book-reviews h2 {
  font-size: 26px;
  text-transform: lowercase;
  margin-bottom: 32px;
}

.review-list {
  list-style: none;
}

.review-item {
  display: grid;
  grid-template-columns: 40px 100px 60px 1fr;
  align-items: start;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid #000;
}

.review-item:last-child {
  border-bottom: 1px solid #000;
}

.review-number {
  font-weight: 600;
  color: #FF4445;
}

.review-name {
  text-transform: lowercase;
  font-weight: 500;
}

.review-rating {
  font-weight: 600;
}

.review-text {
  color: #555;
  font-size: 15px;
}

/* rating system placeholder page */

.placeholder-note {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 560px;
}
