/* Temporary homepage preview stylesheet. */

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

body {
  margin: 0;
  line-height: 1.6;
  background-color: #F4EFE9;
}

.site-header {
  position: static;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 0;
  padding: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.hero-site-brand,
.hero-site-brand:visited {
  color: inherit;
  text-decoration: none;
}

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

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

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

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

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

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

main section:not(.hero) > h2 {
  font-size: clamp(1.65rem, 1.5vw + 1.15rem, 2.35rem);
  line-height: 1.15;
  margin: 0 0 0.65rem;
}

main section:not(.hero) > p {
  font-size: clamp(1.05rem, 0.55vw + 0.95rem, 1.22rem);
  line-height: 1.65;
  margin: 0;
}

.hero {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0 0 clamp(1rem, 2vw, 2rem);
}

.hero-media {
  position: relative;
  width: 100%;
}

.hero-image {
  display: block;
  width: 100%;
  height: clamp(20rem, 42vw, 34rem);
  object-fit: cover;
  object-position: center 78%;
}

.hero-top-rail {
  position: absolute;
  top: clamp(0.9rem, 2vw, 1.5rem);
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.hero-content {
  position: static;
  max-width: none;
  color: white;
  text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-tagline {
  align-self: center;
  justify-self: center;
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: white;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.sale-announcement {
  color: #263238;
}

.sale-announcement-home {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

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

.sale-announcement-label {
  margin: 0 0 0.4rem;
  color: #B85C32;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

.sale-announcement p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 0.45vw + 0.95rem, 1.18rem);
  line-height: 1.65;
}

.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;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.books-reading-order {
  width: 100%;
  max-width: none;
  padding-top: clamp(1.75rem, 2.5vw, 2.5rem);
  padding-bottom: clamp(1.75rem, 2.5vw, 2.5rem);
  background-color: #8b9270;
}

.books-reading-order > .book-grid {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.series-copy {
  width: min(100%, 52rem);
  margin: 0 auto;
  text-align: center;
  justify-self: center;
  grid-column: 1 / -1;
}

.series-copy h2 {
  font-size: clamp(1.65rem, 1.5vw + 1.15rem, 2.35rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-align: center;
}

.series-copy p {
  width: auto;
  max-width: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 0.55vw + 0.95rem, 1.22rem);
  line-height: 1.65;
  margin: 0;
  text-align: center;
}

.newsletter-invitation > p {
  font-family: Georgia, "Times New Roman", serif;
}

.newsletter-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background-color: #B85C32;
  color: #FFF8F0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.newsletter-button:hover,
.newsletter-button:focus-visible {
  background-color: #D1733F;
}

.newsletter-button:focus-visible {
  outline: 2px solid #263238;
  outline-offset: 3px;
}

.newsletter-invitation > .homepage-newsletter-note {
  margin: 0.75rem 0 0;
  color: #4f5a5f;
  font-size: 0.85rem;
  line-height: 1.5;
}

.book-card {
  text-align: center;
  width: 100%;
  max-width: 12rem;
  justify-self: center;
}

.book-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: contain;
}

.book-cover-placeholder {
  width: 100%;
  border: 1px solid #808080;
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
}

.book-cover-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.book-title-link {
  color: inherit;
  text-decoration: none;
}

.book-title-link:hover,
.book-title-link:focus-visible {
  text-decoration: underline;
}

.book-cover-link:focus-visible,
.book-title-link:focus-visible {
  outline: 2px solid #263238;
  outline-offset: 3px;
}

.book-card h3 {
  text-align: center;
  margin: 1rem 0 0;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.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-buy-link {
  flex-basis: 100%;
  color: #263238;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.book-buy-link:hover,
.book-buy-link:focus-visible {
  color: #B85C32;
}

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

.book-button-more {
  border: 1px solid #e5a960;
  background-color: #800000;
}

.book-button-more:hover,
.book-button-more:focus {
  background-color: #d48d3c;
}

.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 (min-width: 48rem) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-card {
    max-width: 14rem;
  }
}

@media (min-width: 72rem) {
  .book-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .book-card {
    max-width: 15rem;
  }
}

@media (max-width: 52rem) {
  .hero-top-rail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero-tagline {
    align-self: flex-start;
    text-align: left;
    white-space: normal;
  }

  .site-header {
    justify-self: auto;
  }

  .site-navigation ul {
    justify-content: flex-start;
    row-gap: 0.4rem;
  }
}

@media (max-width: 30rem) {
  .hero-content h1 {
    max-width: 12rem;
    line-height: 0.95;
    white-space: normal;
  }
}
