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

:root {
  --navy-dark: #1a2332;
  --navy: #2c3e50;
  --navy-mid: #3d556e;
  --navy-light: #e8edf2;
  --accent: #c1694f;
  --accent-dark: #a8543c;
  --accent-light: #f5e8e4;
  --cream: #faf8f5;
  --white: #ffffff;
  --gray-100: #f5f3f0;
  --gray-200: #e5e0da;
  --gray-300: #c5bcb0;
  --gray-500: #8a7f72;
  --gray-700: #4a4038;
  --gray-900: #1a1613;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --max-width: 1200px;
  --max-width-narrow: 720px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--gray-900);
  line-height: 1.7;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: var(--max-width-narrow);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.link-arrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.link-arrow:hover {
  color: var(--navy-dark);
}

/* === Header === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo:hover {
  color: var(--gray-900);
}

.logo-icon {
  font-size: 1.5rem;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === Hero === */
.hero {
  padding: 6rem 0 5rem;
  background: var(--navy-light);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--gray-700);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* === Sections === */
.section {
  padding: 5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
}

.featured-section {
  background: var(--white);
}

.about-blurb {
  text-align: center;
}

.about-blurb h2 {
  margin-bottom: 1.5rem;
}

.about-blurb p {
  font-size: 1.15rem;
  color: var(--gray-700);
  line-height: 1.8;
}

.mission-section {
  background: var(--navy-dark);
  color: var(--white);
  text-align: center;
}

.mission-section h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.mission-section p {
  font-size: 1.2rem;
  color: var(--navy-light);
  line-height: 1.8;
}

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

.book-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.book-card a {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-cover {
  aspect-ratio: 6 / 9;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-cover svg {
  width: 100%;
  height: 100%;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  color: var(--gray-900);
}

.book-author {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.book-series {
  font-size: 0.75rem;
  color: var(--navy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

/* === Series Showcase (Cascading) === */
.series-showcase {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.showcase-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--gray-200);
}

.showcase-image {
  flex: 0 0 280px;
  padding: 2rem;
}

.showcase-image img {
  width: 100%;
  aspect-ratio: 6 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.showcase-content {
  flex: 1;
  padding: 2rem 2rem 2rem 0;
}

.showcase-card.reverse .showcase-content {
  padding: 2rem 0 2rem 2rem;
}

.showcase-card.reverse {
  flex-direction: row-reverse;
}

.showcase-count {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--series-color, var(--navy));
  margin-bottom: 0.75rem;
}

.showcase-content h3 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.showcase-content p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.btn-outline {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--btn-color, var(--navy));
  color: var(--btn-color, var(--navy));
  background: transparent;
  transition: all 0.2s;
  text-align: center;
}

.btn-outline:hover {
  background: var(--btn-color, var(--navy));
  color: var(--white) !important;
}

@media (max-width: 768px) {
  .showcase-card,
  .showcase-card.reverse {
    flex-direction: column;
    gap: 0;
  }

  .showcase-image {
    flex: none;
    width: 180px;
    padding: 1.5rem;
  }

  .showcase-content {
    padding: 0 1.5rem 1.5rem !important;
  }

  .showcase-content h3 {
    font-size: 1.5rem;
  }
}

/* === Series Grid === */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.series-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}

.series-card:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
}

.series-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.series-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin: 0;
}

/* === Page Header === */
.page-header {
  padding: 3rem 0 1rem;
  background: var(--navy-light);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--gray-700);
  font-size: 1.1rem;
}

/* === About Page === */
.about-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.about-content h2:first-of-type {
  margin-top: 0;
}

.about-content p {
  color: var(--gray-700);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* === Contact Page === */
.contact-content {
  text-align: center;
  padding: 2rem 0;
}

.contact-email {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-email a {
  font-family: var(--font-serif);
  color: var(--navy);
}

.contact-address {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.8;
}

/* === Footer === */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-700);
  margin-bottom: 1.5rem;
}

.footer-brand .logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
}

.footer-address {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--gray-300);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    gap: 1rem;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
