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

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: #1f2933;
  line-height: 1.6;
  background: #ffffff;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
}

.nav-link.is-active {
  color: #000;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("Images/hero-watercolor.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  padding: 6rem 0 5rem;
}

.hero-title {
  font-family: "Libre Baskerville", serif;
  font-size: 2.6rem;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.hero-hook {
  max-width: 600px;
  margin: 0 0 2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-ghost {
  border: 1px solid #000;
  color: #000;
  margin-left: 0.75rem;
}

.btn-outline {
  border: 1px solid #000;
  color: #000;
  margin-top: 0.75rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
}

.section-title {
  font-family: "Libre Baskerville", serif;
  font-size: 2rem;
  margin: 0 0 2rem;
}

/* ---------- Books ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.book-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-title {
  margin: 0.75rem 0 0.25rem;
}

.book-desc {
  font-size: 0.95rem;
  color: #4b5563;
}

/* ---------- Read Online (this will actually center) ---------- */
.read-online {
  padding: 4rem 0;
}

.read-online .container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.read-online .container p {
  margin: 0 0 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  text-align: center;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("Images/footer-wash.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.65;
}

.footer-inner {
  position: relative;
  padding: 2.5rem 0;
}

.footer-inner p {
  margin: 0;
}

/* ---------- Catalog Page Specific Updates ---------- */
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.catalog-item {
  display: grid;
  grid-template-columns: 150px 1fr; /* Image info column and Description column side-by-side */
  gap: 2rem;
  align-items: start;
}

.catalog-book-info {
  text-align: center;
}

.catalog-book-info img {
  width: 144px; /* Approx 1.5 inches */
  height: auto;
  margin: 0 auto 0.75rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.catalog-title {
  font-size: 1rem;
  margin: 0.5rem 0 0.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.catalog-subtitle {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.description-box {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 1rem;
  min-height: 150px;
  border-radius: 4px;
}

.catalog-item .btn-outline {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

/* Home Page Image Sizing */
.book-cover {
  width: 144px; /* Approx 1.5 inches */
  height: auto;
  margin-bottom: 1rem;
}

@media (max-width: 650px) {
  .catalog-item {
    grid-template-columns: 1fr;
  }
}
