/* 
  Sander Publishing House 
  Minimalistic & Premium Theme
*/

:root {
  /* Color Palette - HSL for easy adjustments */
  --color-bg: 0, 0%, 100%;
  /* Pure White */
  --color-text: 210, 10%, 23%;
  /* Soft Charcoal */
  --color-accent: 210, 20%, 96%;
  /* Very Light Grey for backgrounds */
  --color-primary: 210, 10%, 40%;
  /* Muted slate for links/buttons */

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
  /* For headings/elegant touches */

  /* Spacing */
  --spacing-unit: 1rem;
  --container-width: 1200px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: hsl(var(--color-bg));
  color: hsl(var(--color-text));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.section {
  padding: 4rem 0;
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid hsl(var(--color-accent));
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: hsl(var(--color-text));
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background-color: hsl(var(--color-accent));
}

/* Remove the pseudo-element background */
.hero::before {
  content: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-direction: column-reverse;
  /* Always Image top, Text bottom because HTML is Text then Image */
  text-align: center;
}

/* Remove desktop split layout - keep stacked */


.hero-text {
  flex: auto;
  /* Remove flex: 1 to avoid full width forcing weird alignment if not needed */
  max-width: 800px;
  /* Constrain width for readability */
}

.hero-image-wrapper {
  flex: auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-logo {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Adjust text alignment for desktop split */
/* Ensure center alignment on desktop too */
@media (min-width: 768px) {
  .hero-title {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: hsl(var(--color-text) / 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* Books Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.book-card {
  background: white;
  padding: 1rem;
  transition: transform 0.3s ease;
  display: block;
  /* For anchor tag */
  color: inherit;
  /* Inherit text color */
}

.book-card:hover {
  transform: translateY(-5px);
  opacity: 1;
  /* Override default link hover opacity */
}

/* Add specific hover effect for the card content instead */
.book-card:hover .book-title {
  color: hsl(var(--color-primary));
}

.book-image-container {
  aspect-ratio: 1/1;
  /* Square */
  overflow: hidden;
  border-radius: 0;
  /* Removed radius for sharper square look if desired, or keep small */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  background-color: transparent;
  /* No grey background needed if filling */
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Ensure no cropping */
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.book-author {
  font-size: 0.9rem;
  color: hsl(var(--color-text) / 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid hsl(var(--color-accent));
  font-size: 0.9rem;
  color: hsl(var(--color-text) / 0.6);
  margin-top: 4rem;
}