/* Silver Chapter — Independent Publisher Theme */

/* ========== VARIABLES ========== */
:root {
  --navy: #0a0f1e;
  --navy-light: #0e1a38;
  --silver: #c4d0de;
  --silver-light: #d4dde8;
  --cream: #f5f0e6;
  --cream-dark: #e8e0d0;
  --text: #2d2d2d;
  --text-muted: #5a5a5a;
}

/* ========== BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Accessible focus outline for keyboard users */
:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip-to-content link for keyboard / screen-reader users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--silver);
  padding: 0.5rem 1rem;
  z-index: 1000;
  text-decoration: none;
  font-family: 'Palatino Linotype', serif;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0;
}

/* Allow <main> to be programmatically focused after skip-link activation */
main:focus {
  outline: none;
}

body {
  /* Ghost injects --gh-font-body when admin picks a custom body font in
     Design → Typography. Falls back to Georgia when no custom font is set. */
  font-family: var(--gh-font-body, 'Georgia', 'Times New Roman', serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--silver);
}

a:visited {
  color: var(--navy);
}

a:visited:hover {
  color: var(--silver);
}

/* Links on dark backgrounds — gold for both unvisited and visited so they
   don't disappear against emerald. Excludes .btn so button text (emerald on
   gold) isn't recolored into gold-on-gold. */
.hero a:not(.btn),
.hero a:not(.btn):visited,
.newsletter-section a:not(.btn),
.newsletter-section a:not(.btn):visited,
.site-footer a:not(.btn),
.site-footer a:not(.btn):visited,
.book-detail-hero a:not(.btn),
.book-detail-hero a:not(.btn):visited,
.article-hero a:not(.btn),
.article-hero a:not(.btn):visited {
  color: var(--silver);
}

.hero a:not(.btn):hover,
.hero a:not(.btn):visited:hover,
.newsletter-section a:not(.btn):hover,
.newsletter-section a:not(.btn):visited:hover,
.site-footer a:not(.btn):hover,
.site-footer a:not(.btn):visited:hover,
.book-detail-hero a:not(.btn):hover,
.book-detail-hero a:not(.btn):visited:hover,
.article-hero a:not(.btn):hover,
.article-hero a:not(.btn):visited:hover {
  color: var(--silver-light);
}

/* Header navigation - always cream colored.
   Exclude .nav-link from :hover so the nav-link hover rule below (gold+border)
   isn't swallowed by this higher-specificity selector. */
.site-header a,
.site-header a:visited {
  color: var(--cream);
}

.site-header a:hover:not(.nav-link),
.site-header a:visited:hover:not(.nav-link) {
  color: var(--cream);
}

/* Hero buttons — on dark navy background, flip to cream for visibility.
   Using a.btn-primary specificity to beat the dark-bg link colour rules. */
.hero a.btn-primary,
.hero a.btn-primary:visited,
.hero button.btn-primary {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.hero a.btn-secondary,
.hero a.btn-secondary:visited,
.hero button.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.hero a.btn-primary:hover,
.hero a.btn-primary:visited:hover,
.hero button.btn-primary:hover {
  background: var(--cream-dark);
  border-color: var(--cream-dark);
  color: var(--navy);
}

.hero a.btn-secondary:hover,
.hero a.btn-secondary:visited:hover,
.hero button.btn-secondary:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  /* Ghost injects --gh-font-heading when admin picks a custom heading font.
     Falls back to Palatino when no custom font is set. */
  font-family: var(--gh-font-heading, 'Palatino Linotype', 'Book Antiqua', serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 1rem;
}

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

p {
  margin-bottom: 1.5rem;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: 'Cormorant Garamond', 'Palatino Linotype', 'Book Antiqua', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--silver);
  letter-spacing: 2px;
}

.site-logo:hover {
  color: var(--silver-light);
}

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

.nav-link {
  font-family: 'Palatino Linotype', serif;
  font-size: 0.9rem;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.site-header .nav-link:hover {
  color: var(--silver);
  border-bottom-color: var(--silver);
}

/* ========== MOBILE MENU TOGGLE ========== */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.menu-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  background: var(--navy);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top left, rgba(196,208,222,0.1) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(196,208,222,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-family: 'Cormorant Garamond', 'Palatino Linotype', 'Book Antiqua', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--silver);
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--cream);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.hero-kicker {
  font-family: 'Palatino Linotype', serif;
  font-size: 0.85rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: 'Palatino Linotype', serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--cream);
  transform: translateY(-2px);
}

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

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

/* ========== PAGE INTRO (books / genre pages) ========== */
.page-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.page-intro p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  background: var(--navy-light);
  border-bottom: 1px solid rgba(196, 208, 222, 0.1);
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(196, 208, 222, 0.5);
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(196, 208, 222, 0.3);
}

.breadcrumbs a {
  color: rgba(196, 208, 222, 0.6);
}

.breadcrumbs a:hover {
  color: var(--silver);
}

.breadcrumbs [aria-current="page"] {
  color: var(--cream);
  font-weight: 600;
}

/* ========== ARTICLE (news post) ========== */
.article-hero {
  min-height: 40vh;
  padding: 3rem 1.5rem 2rem;
}

.article-title {
  font-family: 'Cormorant Garamond', 'Palatino Linotype', 'Book Antiqua', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.9rem;
  color: rgba(245, 240, 230, 0.75);
  margin: 0;
}

.article-feature-image {
  background: var(--cream);
  padding: 2rem 0;
}

.article-feature-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

.article-feature-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.article-container {
  max-width: 720px;
}

.article-container h2,
.article-container h3,
.article-container h4 {
  margin-top: 2rem;
}

.article-container p,
.article-container ul,
.article-container ol,
.article-container blockquote {
  margin-bottom: 1.5rem;
}

.article-container blockquote {
  padding: 1.25rem 1.5rem;
  background: var(--cream);
  border-left: 4px solid var(--silver);
  font-style: italic;
  color: var(--text-muted);
}

.article-container img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article-container a {
  text-decoration: underline;
  text-decoration-color: var(--silver);
  text-underline-offset: 3px;
}

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Cormorant Garamond', 'Palatino Linotype', 'Book Antiqua', serif;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: rgba(245, 240, 230, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* On cream-background sections, flip titles back to dark */
.section--cream .section-title {
  color: var(--navy);
}

.section--cream .section-subtitle {
  color: var(--text-muted);
}

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

.book-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid var(--silver);
  transition: all 0.3s;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.book-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--navy);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
}

.book-info {
  padding: 1.5rem;
}

.book-genre {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.book-genre.fantasy { background: rgba(74,26,74,0.1); color: #4a1a4a; }
.book-genre.mystery { background: rgba(107,26,26,0.1); color: #6b1a1a; }
.book-genre.romance { background: rgba(183,110,121,0.1); color: #b76e79; }

.book-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.book-series {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.book-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-coming-soon { color: var(--silver); }

/* ========== GENRE CARDS ========== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.genre-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  background: var(--navy-light);
  border: 1px solid rgba(196, 208, 222, 0.15);
}

.genre-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.genre-card.fantasy        { border-color: rgba(160, 130, 210, 0.3); }
.genre-card.fantasy:hover  { border-color: rgba(160, 130, 210, 0.7); background: rgba(160, 130, 210, 0.08); }
.genre-card.mystery        { border-color: rgba(190, 110, 110, 0.3); }
.genre-card.mystery:hover  { border-color: rgba(190, 110, 110, 0.7); background: rgba(190, 110, 110, 0.08); }
.genre-card.romance        { border-color: rgba(220, 140, 160, 0.3); }
.genre-card.romance:hover  { border-color: rgba(220, 140, 160, 0.7); background: rgba(220, 140, 160, 0.08); }

.genre-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.genre-card.fantasy .genre-icon { color: #b39ddb; }
.genre-card.mystery .genre-icon { color: #c99090; }
.genre-card.romance .genre-icon { color: #e8a5b8; }

.genre-title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.genre-card.fantasy .genre-title { color: #b39ddb; }
.genre-card.mystery .genre-title { color: #c99090; }
.genre-card.romance .genre-title { color: #e8a5b8; }

.genre-count {
  font-size: 0.9rem;
  color: rgba(196, 208, 222, 0.5);
}

/* ========== AUTHOR SPOTLIGHT ========== */
.author-section {
  background: white;
}

.author-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.author-portrait {
  text-align: center;
}

.author-portrait img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--silver);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.author-quote {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: var(--silver);
  margin-bottom: 1.5rem;
}

.author-bio {
  color: rgba(245, 240, 230, 0.85);
  margin-bottom: 1.5rem;
}

.influences {
  margin-bottom: 1.5rem;
}

.influences-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.influence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.influence-tag {
  background: var(--cream);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
  background: var(--navy);
  padding: 4rem 0;
  text-align: center;
}

.newsletter-title {
  color: var(--silver);
  margin-bottom: 1rem;
}

.newsletter-description {
  color: var(--cream);
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: 2px solid rgba(196,208,222,0.3);
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--cream);
}

.newsletter-input::placeholder {
  color: rgba(245,240,230,0.5);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--silver);
}

.newsletter-section--hero {
  padding: 5rem 0;
}

.newsletter-cta {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.newsletter-note {
  color: var(--cream);
  opacity: 0.5;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.no-posts {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy);
  padding: 3rem 0 2rem;
  color: var(--cream);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Palatino Linotype', serif;
  font-size: 1.5rem;
  color: var(--silver);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(245,240,230,0.7);
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--silver);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(245,240,230,0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--silver);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196,208,222,0.1);
  border: 1px solid rgba(196,208,222,0.3);
  border-radius: 50%;
  color: var(--silver);
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--silver);
  color: var(--navy);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(196,208,222,0.1);
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(245,240,230,0.5);
}

/* ========== BOOK DETAIL PAGE ========== */
.book-detail-hero {
  background: var(--navy);
  padding: 4rem 0;
}

.book-detail-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.book-detail-cover {
  max-width: 300px;
  margin: 0 auto;
}

.book-detail-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.book-detail-content {
  color: var(--cream);
}

.book-detail-genre {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(196,208,222,0.2);
  color: var(--silver);
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.book-detail-title {
  font-family: 'Cormorant Garamond', 'Palatino Linotype', 'Book Antiqua', serif;
  color: var(--silver);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.book-detail-series {
  color: rgba(245,240,230,0.7);
  margin-bottom: 1rem;
}

.book-detail-synopsis {
  color: rgba(245,240,230,0.9);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.purchase-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.purchase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(196,208,222,0.3);
  border-radius: 4px;
  color: var(--cream);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.purchase-btn:hover {
  background: var(--silver);
  color: var(--navy);
}

/* ========== BLOG CARDS ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.5rem;
  background: var(--cream);
  border-radius: 4px;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--silver);
}

.read-more:hover {
  color: var(--navy);
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination a, .pagination span {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid var(--cream-dark);
  border-radius: 4px;
  color: var(--navy);
  font-family: 'Palatino Linotype', serif;
}

.pagination a:hover {
  border-color: var(--silver);
  color: var(--silver);
}

/* ========== KOENIG EDITOR STYLES ========== */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-bookmark-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 2rem 0;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  flex: 1;
  padding: 1.5rem;
}

.kg-bookmark-title {
  font-family: 'Palatino Linotype', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.kg-bookmark-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }

  .site-nav.is-open {
    max-height: 400px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(196, 208, 222, 0.1);
  }

  .nav-menu li:last-child {
    border-bottom: 0;
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 0;
  }

  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .genre-grid {
    grid-template-columns: 1fr;
  }
  
  .author-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  
  .book-detail-inner {
    grid-template-columns: 1fr;
  }
  
  .book-detail-cover {
    max-width: 200px;
    margin: 0 auto;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* ========== UTILITIES ========== */

/* Visually hidden but available to assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== HERO VARIANTS ========== */

/* Shorter hero used on page-about / page-books / page-news / tag pages */
.hero.hero--short {
  min-height: 50vh;
}

/* ========== SECTION VARIANTS ========== */

.section.section--cream {
  background: var(--cream);
}

/* ========== ABOUT PAGE ========== */

.pull-quote {
  background: var(--navy-light);
  padding: 1.5rem;
  border-left: 4px solid var(--silver);
  margin: 2rem 0;
  font-style: italic;
  color: var(--cream);
  opacity: 0.9;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.bio-fact {
  background: var(--navy-light);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(196, 208, 222, 0.15);
}

.bio-fact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--silver);
  margin-bottom: 0.5rem;
}

.bio-fact-value {
  font-weight: 600;
  color: var(--cream);
  margin: 0;
}

/* ========== SERIES CARDS (page-books) ========== */

.series-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.series-card:last-child {
  margin-bottom: 0;
}

.series-card-heading {
  margin-bottom: 1rem;
}

.series-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.series-books {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.series-book-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: 8px;
}

.series-book-thumb {
  width: 50px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
}

.series-book-title {
  font-weight: 600;
  margin: 0;
}

.series-book-number {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== ERROR PAGE ========== */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page-inner {
  max-width: 600px;
}

.error-code {
  font-family: 'Palatino Linotype', 'Book Antiqua', serif;
  font-size: 6rem;
  color: var(--silver);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.error-title {
  margin-bottom: 1rem;
}

.error-message {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ========== CONTACT PAGE ========== */

.contact-body {
  max-width: 680px;
  margin: 0 auto;
}

/* Contact body content on dark background */
.contact-body,
.contact-body p,
.contact-body li {
  color: rgba(245, 240, 230, 0.85);
}

.contact-body h2,
.contact-body h3 {
  color: var(--cream);
}

.contact-body a {
  color: var(--silver);
  text-decoration: underline;
  text-decoration-color: rgba(196, 208, 222, 0.4);
  text-underline-offset: 3px;
}

.contact-body a:hover {
  color: var(--silver-light);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-block {
  padding: 2rem 0;
}

.contact-block p {
  margin-bottom: 0.5rem;
}

.contact-block-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--silver) !important;
  margin-bottom: 0.75rem !important;
}

.contact-email {
  display: inline-block;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.contact-divider {
  border: none;
  border-top: 1px solid rgba(196, 208, 222, 0.15);
  margin: 0;
}

.contact-social-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-social-platform {
  display: inline-block;
  width: 90px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(196, 208, 222, 0.5);
}
