﻿/* Bayou House Publishing — Site Styles */

:root {
  --navy: #1a2035;
  --navy-mid: #232c42;
  --gold: #c9a45a;
  --gold-light: #e8d5a3;
  --cream: #f7f3ec;
  --cream-dark: #ede7da;
  --white: #ffffff;
  --text: #1e1e1e;
  --text-muted: #6b6570;
  --border: #d4cfc6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--cream); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* HEADER */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(201,164,90,0.2); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { font-family: Georgia,'Times New Roman',serif; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-decoration: none; font-weight: normal; white-space: nowrap; }
.site-nav { display: flex; }
.site-nav a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.07em; padding: 0 1.1rem; height: 60px; display: flex; align-items: center; transition: color 0.15s; }
.site-nav a:hover { color: var(--gold); }

/* HERO */
.hero { background: var(--navy); color: white; padding: 5rem 1.5rem 5.5rem; text-align: center; }
.hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.hero h1 { font-family: Georgia,'Times New Roman',serif; font-size: clamp(2rem,5vw,3.25rem); font-weight: normal; line-height: 1.2; margin-bottom: 1.25rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 500px; margin: 0 auto 2.25rem; }
.btn { display: inline-block; text-decoration: none; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; padding: 0.75rem 2rem; transition: background 0.15s,color 0.15s; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border: 1px solid rgba(255,255,255,0.35); color: white; margin-left: 0.75rem; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* SECTIONS */
.section { padding: 4rem 1.5rem; }
.section.alt { background: var(--cream-dark); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 2.5rem; }
.section-title { font-family: Georgia,'Times New Roman',serif; font-size: 1.4rem; font-weight: normal; margin-bottom: 0.6rem; }
.section-rule { width: 36px; height: 2px; background: var(--gold); }
.section-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* SERIES GRID */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 1.25rem; }
.series-card { background: var(--white); border: 1px solid var(--border); padding: 1.75rem 1.75rem 1.5rem; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color 0.15s,box-shadow 0.15s; }
.series-card:hover { border-color: var(--gold); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.series-card .genre-badge { font-size: 0.67rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.series-card h3 { font-family: Georgia,'Times New Roman',serif; font-size: 1.2rem; font-weight: normal; margin-bottom: 0.2rem; }
.series-card .pen-name { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1rem; }
.series-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; flex-grow: 1; margin-bottom: 1.25rem; }
.card-link-row { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.card-arrow { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.book-count { font-size: 0.72rem; color: var(--text-muted); }

/* BOOK GRID */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 1.75rem; }
.book-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.book-cover-placeholder { aspect-ratio: 2/3; background: var(--navy-mid); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem; text-align: center; margin-bottom: 0.875rem; transition: opacity 0.15s; }
.book-card:hover .book-cover-placeholder { opacity: 0.85; }
.cover-title { font-family: Georgia,serif; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: white; margin-bottom: 0.5rem; line-height: 1.3; }
.cover-pen-name { font-size: 0.65rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.book-card h4 { font-family: Georgia,serif; font-weight: normal; font-size: 0.95rem; margin-bottom: 0.2rem; }
.book-card .book-num { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.book-status { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.book-status.available { color: var(--gold); }
.book-status.coming-soon { color: var(--text-muted); }

/* SERIES PAGE HEADER */
.series-page-header { background: var(--navy); color: white; padding: 3.5rem 1.5rem; }
.series-page-header-inner { max-width: 1100px; margin: 0 auto; }
.series-page-header .genre-badge { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.series-page-header h1 { font-family: Georgia,serif; font-size: clamp(1.75rem,4vw,2.75rem); font-weight: normal; margin-bottom: 0.3rem; }
.series-page-header .pen-name-line { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 1.25rem; }
.series-page-header p { color: rgba(255,255,255,0.7); font-size: 0.95rem; max-width: 580px; line-height: 1.7; }

/* BREADCRUMB */
.breadcrumb { background: var(--cream-dark); border-bottom: 1px solid var(--border); padding: 0.6rem 1.5rem; font-size: 0.75rem; color: var(--text-muted); }
.breadcrumb-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb-sep { color: var(--border); }

/* BOOK PAGE */
.book-page-wrap { max-width: 960px; margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: 220px 1fr; gap: 3.5rem; align-items: start; }
.book-cover-full { width: 100%; aspect-ratio: 2/3; background: var(--navy-mid); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; color: white; }
.book-cover-full img { width: 100%; height: 100%; object-fit: cover; }
.cover-label { font-family: Georgia,serif; font-size: 1rem; text-transform: uppercase; color: white; margin-bottom: 0.5rem; line-height: 1.3; }
.cover-byline { font-size: 0.7rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.series-link-small { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.series-link-small:hover { color: var(--gold-light); }
.book-title { font-family: Georgia,'Times New Roman',serif; font-size: clamp(1.75rem,4vw,2.5rem); font-weight: normal; line-height: 1.15; margin: 0.5rem 0 0.3rem; }
.book-author-line { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.book-series-line { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.book-divider { width: 36px; height: 1px; background: var(--gold); margin-bottom: 1.5rem; }
.book-blurb { font-size: 1rem; line-height: 1.8; color: var(--text); margin-bottom: 2rem; }

/* AUDIO */
.audio-block { margin-bottom: 2rem; }
.block-label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.block-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.audio-row { display: flex; flex-direction: column; gap: 0.875rem; }
.audio-type { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text); margin-bottom: 0.3rem; }
.audio-desc { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.45rem; }
.audio-item audio { width: 100%; height: 36px; }
.audio-placeholder { background: var(--cream-dark); border: 1px solid var(--border); padding: 0.7rem 1rem; font-size: 0.78rem; color: var(--text-muted); font-style: italic; }

/* FORMAT BUTTONS */
.format-block { margin-bottom: 2rem; }
.format-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.format-btn { display: inline-flex; flex-direction: column; align-items: center; padding: 0.6rem 1.1rem; font-size: 0.78rem; letter-spacing: 0.05em; text-decoration: none; border: 1px solid var(--navy); color: var(--navy); background: white; transition: background 0.12s,color 0.12s; min-width: 90px; text-align: center; cursor: pointer; }
.format-btn:hover { background: var(--navy); color: white; }
.format-btn small { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.2rem; }
.format-btn:hover small { color: rgba(255,255,255,0.6); }
.format-btn.disabled { border-color: var(--border); color: var(--text-muted); background: var(--cream-dark); cursor: default; pointer-events: none; }

/* SERIES NAV */
.series-nav { display: flex; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.8rem; gap: 1rem; }
.series-nav a { color: var(--navy); text-decoration: none; display: flex; flex-direction: column; gap: 0.2rem; }
.series-nav a:hover { color: var(--gold); }
.nav-dir { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.series-nav .next-book { text-align: right; }

/* COMMUNITY */
.community-section { background: var(--navy-mid); color: white; padding: 4.5rem 1.5rem; text-align: center; }
.community-inner { max-width: 480px; margin: 0 auto; }
.community-section h2 { font-family: Georgia,serif; font-weight: normal; font-size: 1.75rem; margin-bottom: 0.875rem; }
.community-section p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.75rem; }
.email-form { display: flex; }
.email-form input[type=email] { flex: 1; padding: 0.7rem 1rem; border: 1px solid rgba(255,255,255,0.2); border-right: none; background: rgba(255,255,255,0.06); color: white; font-size: 0.875rem; outline: none; min-width: 0; }
.email-form input[type=email]::placeholder { color: rgba(255,255,255,0.35); }
.email-form input[type=email]:focus { border-color: var(--gold); }
.email-form button { background: var(--gold); color: var(--navy); border: none; padding: 0.7rem 1.25rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.email-form button:hover { background: var(--gold-light); }
.email-note { font-size: 0.7rem; color: rgba(255,255,255,0.35); margin-top: 0.875rem; }

/* FOOTER */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.45); padding: 2rem 1.5rem; text-align: center; font-size: 0.78rem; line-height: 1.8; }
.site-footer a { color: rgba(255,255,255,0.45); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }

/* RESPONSIVE */
@media (max-width: 700px) {
  .site-nav { display: none; }
  .hero { padding: 3.5rem 1.25rem 4rem; }
  .book-page-wrap { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.25rem; }
  .email-form { flex-direction: column; }
  .email-form input[type=email] { border-right: 1px solid rgba(255,255,255,0.2); border-bottom: none; }
  .series-page-header { padding: 2.5rem 1.25rem; }
  .book-grid { grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); }
}
