* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #182231;
  background: #ffffff;
}

.site-header {
  height: 108px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 90px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 55px;
  height: 55px;
  object-fit: cover;
}

.brand .brand-name {
  margin: 0;
  font-size: 22px;
  letter-spacing: 1px;
  font-weight: 700;
}

.brand .brand-name span {
  color: #c99a13;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: #293243;
  font-size: 13px;
}

.hero {
  text-align: center;
  padding: 68px 20px 70px;
}

.main-logo {
  width: 108px;
  height: 108px;
  object-fit: cover;
  margin-bottom: 35px;
}

.hero h2 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: 1px;
}

.hero h3 {
  color: #c99a13;
  letter-spacing: 2px;
  font-size: 18px;
  margin: 18px 0 30px;
}

.tagline {
  font-style: italic;
  font-size: 18px;
  color: #3c4655;
}

.gold-line {
  width: 82px;
  height: 1px;
  background: #c99a13;
  margin: 44px auto;
}

.intro-text {
  max-width: 590px;
  margin: 0 auto;
  text-align: left;
  font-size: 16px;
  line-height: 1.55;
}

.intro-text p {
  margin-bottom: 24px;
}

.featured {
  max-width: 720px;
  margin: 0 auto 200px;
  padding-top: 40px;
  border-top: 1px solid #eeeeee;
  text-align: center;
}

.featured h2 {
  font-family: Arial, sans-serif;
  font-weight: 400;
  color: #9aa3b1;
  font-size: 17px;
  letter-spacing: 1.5px;
  margin-bottom: 40px;
}

.book-card {
  position: relative;
  width: 326px;
  height: 490px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #1c1c1c;
  box-shadow: 0 28px 50px rgba(0,0,0,0.18);
}

.book-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(55%);
}

.book-overlay {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  padding: 20px;
}

.book-overlay h3 {
  font-style: italic;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 150px;
}

.book-overlay p {
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.book-overlay a {
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 22px;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}

.content-page {
  padding: 70px 20px 140px;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.page-content h2 {
  font-family: Arial, sans-serif;
  font-size: 52px;
  font-weight: 400;
  margin-bottom: 25px;
  color: #182231;
}

.left-line {
  margin: 0 auto 45px auto;
}

.page-content p {
  text-align: left;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 38px;
  color: #3a4454;
}

.page-content h3 {
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  margin: 34px 0 14px;
  color: #182231;
  text-align: left;
}

.page-content h3 + p {
  margin-top: 0;
}

.catalogue-page {
  max-width: 1280px;
  text-align: left;
}

.catalogue-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.filter-box {
  text-align: left;
  margin-top: 18px;
}

.filter-box p {
  font-size: 12px;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 12px;
}

.filter-links {
  display: flex;
  gap: 18px;
}

.filter-links a {
  text-decoration: none;
  color: #182231;
  font-size: 14px;
  border-bottom: 1px solid #182231;
  padding-bottom: 2px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 28px;
}

.catalogue-book h3 {
  font-size: 20px;
  margin: 14px 0 4px;
  line-height: 1.25;
}

.catalogue-book p {
  font-size: 14px;
  color: #4b5563;
}

.catalogue-image {
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.catalogue-image img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

.catalogue-image:hover img {
  transform: scale(1.06);
}

.overlay-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,0.65);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 18px;
}

.catalogue-image:hover .overlay-arrow {
  opacity: 1;
}

.catalogue-book a {
  text-decoration: none;
}

footer {
  background: #101827;
  color: #ffffff;
  height: 110px;
  text-align: center;
  padding-top: 40px;
  font-size: 13px;
  font-weight: bold;
}

.footer-line {
  width: 70px;
  height: 1px;
  background: #d4a017;
  margin: 16px auto 0;
}

@media (max-width: 1100px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .site-header {
    height: auto;
    padding: 25px;
    flex-direction: column;
    gap: 20px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .book-card {
    width: 290px;
    height: 435px;
  }
}

@media (max-width: 700px) {
  .catalogue-header {
    flex-direction: column;
    gap: 30px;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }
}
/* BRAND AND ACCESSIBILITY */
.brand {
  color: inherit;
  text-decoration: none;
}
.brand img, .main-logo {
  object-fit: contain;
}
a:focus-visible, select:focus-visible {
  outline: 2px solid #947008;
  outline-offset: 5px;
}
nav a[aria-current="page"] {
  border-bottom: 1px solid #947008;
  padding-bottom: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  padding: 15px;
  background: #182231;
  color: white;
  z-index: 10;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
}
/* FEATURE: artwork remains fully visible, with titles underneath */
.featured {
  margin-bottom: 100px;
  padding-inline: 20px;
}
.featured-cover {
  display: block;
  width: min(326px, 100%);
  margin: 0 auto;
}
.featured-cover img {
  width: 100%;
  height: 490px;
  object-fit: contain;
  filter: none;
}
.featured-title {
  font-size: 24px;
  line-height: 1.4;
  max-width: 590px;
  margin: 28px auto 14px;
}
.featured-author {
  font-size: 13px;
  letter-spacing: 2px;
}
.purchase-link {
  display: inline-block;
  color: #182231;
  border-bottom: 1px solid #947008;
  padding: 12px 0;
  margin-top: 8px;
  text-decoration: none;
}
/* WORKING AUTHOR FILTER */
.filter-box label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: #4b5563;
  margin-bottom: 12px;
}
.filter-box select {
  min-width: 210px;
  max-width: 100%;
  padding: 12px;
  border: 1px solid #b6bcc5;
  background: white;
  color: #182231;
  font: inherit;
}
.catalogue-page .catalogue-summary {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 32px;
}
.catalogue-header .left-line {
  margin-left: 0;
}
.catalogue-image {
  background: transparent;
}
.catalogue-image img {
  height: 360px;
  object-fit: contain;
  object-position: center bottom;
}
.catalogue-book h3 {
  overflow-wrap: break-word;
}
.catalogue-book .book-status {
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #785b12;
}
.catalogue-book a:focus-visible .overlay-arrow {
  opacity: 1;
}
@media (max-width: 1280px) and (min-width: 801px) {
  .site-header {
    padding-inline: 30px;
    gap: 25px;
    height: auto;
    min-height: 108px;
  }
  .brand .brand-name {
    font-size: 18px;
  }
  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
  }
}
@media (max-width: 700px) {
  .catalogue-image img {
    height: 420px;
  }
  .featured-cover img {
    height: 435px;
  }
  .brand .brand-name {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalogue-image img, .overlay-arrow {
    transition: none;
  }
}
