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

body {
  margin: 0;
  background-color: #F4EFE9;
  color: #263238;
  line-height: 1.65;
  font-family: Georgia, "Times New Roman", serif;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 5vw, 3rem);
  background-color: #F4EFE9;
}

.site-name {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #263238;
  text-decoration: none;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-logo {
  display: block;
  width: clamp(2.375rem, 4vw, 3rem);
  height: clamp(2.375rem, 4vw, 3rem);
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
}

.site-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navigation a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background-color: #263238;
  color: #FFF8F0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 600;
  text-decoration: none;
}

.site-navigation a[aria-current="page"] {
  background-color: #B85C32;
}

.site-navigation a:hover,
.site-navigation a:focus {
  background-color: #D1733F;
  color: #FFF8F0;
  outline: 2px solid #FFF8F0;
  outline-offset: 2px;
}

.page-masthead {
  position: relative;
  display: grid;
  place-content: center;
  min-height: clamp(13rem, 22vw, 18rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
  overflow: hidden;
  text-align: center;
  background-color: #263238;
  border-bottom: 0.35rem solid #B85C32;
}

.page-masthead h1,
.page-masthead p {
  color: #FFF8F0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 3rem);
}

.books-introduction {
  margin: 0;
  text-align: center;
}

.books-introduction h1 {
  margin: 0 0 0.65rem;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.books-introduction p {
  max-width: 42rem;
  margin: 0 auto;
  font-size: clamp(1.05rem, 0.55vw + 0.95rem, 1.22rem);
  line-height: 1.65;
}

.books-list {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.sale-announcement {
  max-width: 52rem;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border-left: 3px solid #B85C32;
  border-radius: 8px;
  background-color: rgba(139, 146, 112, 0.18);
}

.sale-announcement h2 {
  margin: 0 0 0.55rem;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.35rem, 1vw + 1rem, 1.8rem);
  line-height: 1.2;
}

.sale-announcement p {
  margin: 0;
  font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.14rem);
  line-height: 1.6;
}

.sale-announcement-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
}

.sale-announcement-link {
  color: #263238;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sale-announcement-link:hover,
.sale-announcement-link:focus-visible {
  color: #B85C32;
}

.sale-announcement-link:focus-visible {
  outline: 2px solid #263238;
  outline-offset: 3px;
}

.series-summary {
  max-width: 52rem;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  font-size: clamp(1.05rem, 0.55vw + 0.95rem, 1.22rem);
  line-height: 1.65;
}

.from-desk-note {
  max-width: 52rem;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #B85C32;
  border-radius: 8px;
  background-color: rgba(139, 146, 112, 0.18);
}

.from-desk-note h3 {
  margin: 0 0 0.5rem;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 1.1rem;
}

.from-desk-note p {
  margin: 0 0 0.65rem;
}

.from-desk-note p:last-child {
  margin-bottom: 0;
}

.from-desk-note a {
  color: #263238;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.from-desk-note a:hover,
.from-desk-note a:focus-visible {
  color: #B85C32;
}

.book-entry {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 8px;
  background-color: #8b9270;
}

.book-entry-cover {
  width: 100%;
  max-width: 13rem;
  justify-self: center;
}

.book-entry-cover img,
.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
}

.book-entry-cover img {
  display: block;
  height: auto;
  object-fit: contain;
}

.book-cover-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid #808080;
  text-align: center;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

.book-entry-content h2 {
  margin: 0 0 0.35rem;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.65rem, 1.5vw + 1.15rem, 2.35rem);
  line-height: 1.15;
}

.book-entry-status {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}

.book-tagline {
  margin: 0.2rem 0 0;
  color: #263238;
  font-style: italic;
}

.book-entry-description {
  margin: 0.75rem 0 0;
  font-size: clamp(1.05rem, 0.55vw + 0.95rem, 1.22rem);
  line-height: 1.65;
}

.book-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.book-button {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  color: white;
  font-size: 0.85rem;
  line-height: 1.2;
  text-decoration: none;
}

.book-button-buy {
  background-color: #b65c38;
}

.book-button-buy:hover,
.book-button-buy:focus {
  background-color: #8a4127;
}

.book-button-coming-soon {
  background-color: #444;
}

.site-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 3rem);
  border-top: 1px solid #ccc;
  color: #333;
  text-align: center;
}

.footer-newsletter-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-newsletter-link:hover,
.footer-newsletter-link:focus-visible {
  color: #B85C32;
}

.footer-newsletter-link:focus-visible {
  outline: 2px solid #B85C32;
  outline-offset: 3px;
}

@media (max-width: 42rem) {
  .site-header {
    align-items: flex-start;
  }

  .site-navigation ul {
    justify-content: flex-start;
  }

  .book-entry {
    grid-template-columns: 1fr;
  }

  .book-entry-cover {
    max-width: 12rem;
  }

  .book-entry-content {
    text-align: center;
  }

  .book-entry-actions {
    justify-content: center;
  }
}
