@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-dark: #1a1108;
  --bg-dark-card: #23160c;
  --bg-blue: #15294a;
  --bg-yellow: #ecc866;
  --text-light: #e8e6e3;
  --text-muted: #a3a19e;
  --text-dark: #2c1f07;
  --text-dark-muted: #543f17;
  --gold: #d4af37;
  --gold-light: #ecc866;
  --gold-dark: #aa851e;
  --accent-hot: #ff5500;
  
  --font-title: 'Cinzel', serif;
  --font-body: 'Lora', serif;
  --font-ui: 'Inter', sans-serif;
  
  --transition-speed: 0.3s;
}

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

body {
  background-color: var(--bg-dark);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,0.008) 3px, rgba(255,255,255,0.008) 4px);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Common Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.05em;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--gold-light);
}

/* --- HEADER & NAVIGATION --- */
header {
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav a {
  font-family: var(--font-ui);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  padding: 8px 0;
  color: var(--gold-light);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-speed), color var(--transition-speed);
}

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

/* Dropdown Menu styling */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-dark-card);
  border: 1px solid var(--gold);
  list-style: none;
  min-width: 220px;
  padding: 10px 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 200;
  border-radius: 2px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  border: none;
  font-size: 11px;
}

.dropdown-menu li a:hover {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

/* --- HERO / ANNOUNCEMENT BANNER --- */
.hero-announcement {
  text-align: center;
  padding: 130px 20px;
  background-image: linear-gradient(rgba(26, 17, 8, 0.4), rgba(26, 17, 8, 0.85)), url("../assets/hero-horses.jpg");
  background-size: cover;
  background-position: center 5%;
  background-repeat: no-repeat;
  position: relative;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.hero-announcement h2 {
  font-size: 38px;
  color: var(--gold-light);
  margin-bottom: 15px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.85);
  font-weight: 700;
}

.hero-announcement p {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 20px;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* --- WESTERN DOUBLE BORDER FRAME --- */
.western-frame {
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: -6px;
  padding: 40px;
  position: relative;
  background-color: var(--bg-dark);
  margin: 30px 0 60px 0;
}

/* Decorative corners in the frame */
.western-frame::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid var(--gold);
  pointer-events: none;
  opacity: 0.5;
}

/* --- BOOK SHOWCASE GRID --- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

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

.book-meta {
  margin-top: 15px;
  font-family: var(--font-body);
  font-size: 14px;
}

.book-quote {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  margin: 15px 0;
  line-height: 1.5;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-quote-author {
  display: block;
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 5px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  padding: 12px 24px;
  border: 1px solid var(--gold);
  background-color: transparent;
  color: var(--gold-light);
  cursor: pointer;
  transition: all var(--transition-speed);
  position: relative;
}

.btn::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border: 1px solid transparent;
  transition: border-color var(--transition-speed);
}

.btn:hover {
  background-color: var(--gold);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn:hover::after {
  border-color: var(--bg-dark);
}

.btn-secondary {
  border-color: var(--text-light);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn-disabled,
.btn-disabled.btn-secondary {
  border-color: #555;
  color: #888;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-disabled:hover,
.btn-disabled.btn-secondary:hover {
  background-color: transparent;
  color: #888;
  box-shadow: none;
}

.btn-disabled:hover::after {
  border-color: transparent;
}

/* --- BOOK COVER IMAGES --- */
.book-cover {
  width: 190px;
  height: 285px;
  border-radius: 3px 6px 6px 3px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.6), 
              inset 3px 0 6px rgba(0, 0, 0, 0.3),
              -2px 0 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  cursor: pointer;
}

.book-cover:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 15px 20px 30px rgba(0, 0, 0, 0.8), 
              inset 3px 0 6px rgba(0, 0, 0, 0.3);
}

.book-cover img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Cover textures/spine simulation */
.book-cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

/* Banner tag on cover (Coming Soon) */
.cover-banner {
  position: absolute;
  top: 15px;
  right: -30px;
  background-color: #B5541E;
  color: #FDECE2;
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 30px;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 10;
}

.cover-banner-progress {
  background-color: var(--bg-blue);
  color: var(--text-light);
}

/* --- RANCH NOTICE BOARD FRAME (Rope Twist & Wood Backing) --- */
.barbed-frame {
  position: relative;
  background-color: #17110c !important; /* Rustic dark timber backing */
  border: 1px solid #4a3625 !important; /* Muted wood frame border */
  outline: 1px solid #4a3625 !important;
  outline-offset: -6px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.95), 0 10px 25px rgba(0, 0, 0, 0.5);
}
.barbed-frame::before,
.barbed-frame::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  height: 14px;
  /* A high-fidelity twisted hemp rope SVG pattern */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='14' viewBox='0 0 30 14'%3E%3Cpath d='M-5,10 C0,3 5,3 10,10 M5,10 C10,3 15,3 20,10 M15,10 C20,3 25,3 30,10 M25,10 C30,3 35,3 40,10' stroke='%238c7255' stroke-width='4.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M-5,10 C0,3 5,3 10,10 M5,10 C10,3 15,3 20,10 M15,10 C20,3 25,3 30,10 M25,10 C30,3 35,3 40,10' stroke='%23bca385' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.9'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 30px 14px;
  pointer-events: none;
  z-index: 10;
}
.barbed-frame::before {
  top: -7px;
}
.barbed-frame::after {
  bottom: -7px;
}

/* --- STAR SECTION DIVIDER --- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px 0;
  color: var(--gold);
  font-size: 20px;
}
.section-divider .line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--gold-dark);
  opacity: 0.5;
}

/* --- BARBED WIRE DIVIDER --- */
.rope-divider {
  border: none;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cline x1='0' y1='7' x2='40' y2='7' stroke='%23b0a090' stroke-width='1.5'/%3E%3Cpath d='M10,7 Q13,1 16,7 Q19,13 22,7 Q25,1 28,7' stroke='%23b0a090' stroke-width='1' fill='none'/%3E%3Ccircle cx='10' cy='7' r='2' fill='%23d4af37' opacity='0.5'/%3E%3Ccircle cx='22' cy='7' r='2' fill='%23d4af37' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 40px 14px;
  max-width: 280px;
  margin: 40px auto;
  opacity: 0.8;
}


/* --- WANTED POSTER SAMPLE STYLING --- */
.wanted-page {
  background: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.wanted-poster {
  background: #e8dcc8;
  color: #1a1108;
  max-width: 600px;
  width: 100%;
  padding: 50px 40px 40px;
  position: relative;
  box-shadow:
    0 0 0 1px #8b7a5a,
    0 0 0 6px #e8dcc8,
    0 0 0 8px #8b7a5a,
    0 20px 40px rgba(0,0,0,0.6);
  text-align: center;
  transform: rotate(-0.5deg);
}
.wanted-poster .wanted-badge {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #2c1f07;
  margin-bottom: 5px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}
.wanted-poster .wanted-sub {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #6b5a3a;
  margin-bottom: 25px;
  border-bottom: 1px dashed #b8a888;
  padding-bottom: 15px;
}
.wanted-poster .wanted-cover {
  width: 140px;
  height: 210px;
  margin: 0 auto 20px;
  background: radial-gradient(circle at 30% 30%, #28282b 0%, #0b0b0c 100%);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.wanted-poster .wanted-cover svg {
  width: 50px; height: 50px;
  opacity: 0.3;
  color: var(--gold);
}
.wanted-poster .wanted-title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1a1108;
  margin-bottom: 5px;
}
.wanted-poster .wanted-seen {
  font-size: 14px;
  font-style: italic;
  color: #6b5a3a;
  margin-bottom: 20px;
}
.wanted-poster .wanted-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #2c1f07;
  margin-bottom: 8px;
  text-align: left;
}
.wanted-poster .wanted-reward {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6b5a3a;
  margin: 20px 0 10px;
  border-top: 1px dashed #b8a888;
  padding-top: 15px;
}
.wanted-poster .wanted-contact {
  font-size: 13px;
  font-style: italic;
  color: #6b5a3a;
  margin-bottom: 25px;
}
.wanted-poster .btn {
  color: #1a1108;
  border-color: #1a1108;
}
.wanted-poster .btn:hover {
  background-color: #1a1108;
  color: #e8dcc8;
}
.wanted-poster .btn::after {
  border-color: transparent;
}

/* --- AUTHOR BIO SECTION (BLUE BACKGROUND) --- */
.author-section {
  background-color: var(--bg-blue);
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,0.06) 2px, rgba(255,255,255,0.06) 4px),
    repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255,255,255,0.04) 2px, rgba(255,255,255,0.04) 4px);
  padding: 80px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.author-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.bio-box {
  background-color: var(--bg-yellow);
  color: var(--text-dark);
  padding: 45px;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: -6px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.bio-box::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid var(--gold);
  pointer-events: none;
  opacity: 0.3;
}

.bio-box h3 {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.bio-box p {
  font-size: 15px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.bio-box p:last-child {
  margin-bottom: 0;
}

/* Portrait Image styling (Round) */
.author-portrait-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.author-portrait {
  width: 320px;
  height: 320px;
  border-radius: 50%; /* Round styling */
  border: 3px solid var(--gold);
  padding: 10px;
  background-color: rgba(212, 175, 55, 0.15);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.author-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Placeholder styling */
.placeholder-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
}

.portrait-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  text-align: center;
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
  color: var(--gold);
}

.portrait-placeholder-content span {
  font-family: var(--font-title);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* --- FOOTER & BRANDING IRON SOCIALS --- */
footer {
  background-color: var(--bg-dark);
  padding: 80px 0 45px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  text-align: left;
  margin-bottom: 50px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 50px;
}

.footer-col h4 {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}

.footer-col p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition-speed);
}

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

.footer-newsletter p {
  margin-bottom: 15px;
}

.footer-newsletter .btn {
  padding: 8px 18px;
  font-size: 10px;
}

.social-brands {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
}

/* Branding iron effect: looks like dark hand-drawn brand, glows orange-hot on hover */
.brand-link {
  color: var(--text-muted);
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(163, 161, 158, 0.3);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  background-color: rgba(0,0,0,0.2);
}

.brand-link svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.brand-link:hover {
  color: var(--accent-hot);
  border-color: var(--accent-hot);
  background-color: #0b0b0c;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.4), 
              inset 0 0 8px rgba(255, 85, 0, 0.2);
  filter: drop-shadow(0 0 4px rgba(255, 85, 0, 0.8));
}

.brand-link:hover svg {
  filter: drop-shadow(0 0 2px rgba(255, 85, 0, 0.8));
}

/* Subtle iron stem for brand look */
.brand-link::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 15px;
  background-color: rgba(163, 161, 158, 0.3);
  transition: background-color 0.4s;
}

.brand-link:hover::after {
  background-color: var(--accent-hot);
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--bg-dark-card);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed);
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.back-to-top:hover {
  background-color: var(--gold);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* --- PREMIUM ENTRY ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

footer p {
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 15px;
}

/* --- SUBPAGE TEMPLATE STYLING --- */
.subpage-hero {
  padding: 80px 0 40px;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.subpage-hero h1 {
  font-size: 42px;
  color: var(--gold);
  margin-bottom: 15px;
}

.subpage-hero p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
}

.page-content {
  padding: 60px 0 100px;
}

/* --- CONTACT PAGE --- */
.contact-container {
  max-width: 650px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-light);
  padding: 15px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
  border-radius: 2px;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

/* --- MAILING LIST PAGE --- */
.mailing-list-container {
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
}

.mailing-list-container p {
  margin-bottom: 30px;
  font-size: 17px;
  color: var(--text-muted);
}

/* --- PRAISE PAGE --- */
.praise-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.praise-item {
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding-bottom: 40px;
}

.praise-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.praise-quote {
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 15px;
}

.praise-source {
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

/* --- BOOKS DIRECTORY LIST --- */
.books-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 50px 30px;
}

.books-index-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.books-index-item h3 {
  font-size: 18px;
  color: var(--gold-light);
  margin: 15px 0 5px;
}

.books-index-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* --- SERIES SECTION GROUPING --- */
.series-section + .series-section {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.series-heading {
  text-align: center;
  margin-bottom: 40px;
}

.series-heading h2 {
  font-size: 28px;
  color: var(--gold);
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 5px;
}

.series-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-ui);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.series-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.series-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 10px;
  border-radius: 3px;
  margin-top: 5px;
}

a.series-badge {
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

a.series-badge:hover {
  background-color: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.6);
}

.book-meta .series-badge {
  margin-bottom: 10px;
}

/* --- SERIES LABEL ON INDIVIDUAL BOOK PAGES --- */
.book-series {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 15px;
}

/* --- INDIVIDUAL BOOK LANDING PAGE --- */
.book-detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.book-detail-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.book-detail-cover .book-cover {
  width: 260px;
  height: 390px;
}

.book-detail-info h2 {
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 5px;
}

.book-detail-tagline {
  font-family: var(--font-title);
  font-size: 18px;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 25px;
  letter-spacing: 0.05em;
}

.book-detail-synopsis {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 40px;
}

.book-detail-synopsis p {
  margin-bottom: 20px;
}

.purchase-options {
  margin-bottom: 45px;
}

.purchase-options h4 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}

.purchase-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.prequel-callout {
  background-color: rgba(212, 175, 55, 0.06);
  border-left: 3px solid var(--gold);
  padding: 20px 25px;
  margin-top: 30px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.prequel-callout a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prequel-callout a:hover {
  color: var(--gold);
}

.book-detail-teaser-box {
  background-color: var(--bg-dark-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 30px;
  margin-top: 40px;
  position: relative;
}

.book-detail-teaser-box h3 {
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.book-detail-teaser-text {
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-line;
}

/* --- BLOG SECTION --- */
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.blog-post-card {
  padding: 35px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #261e17; /* Warm dark kraft paper/wood board tint */
  border: 1px solid rgba(122, 158, 126, 0.15); /* Sage tint border */
  border-top: 4px solid var(--blog-sage, #7a9e7e); /* Sage theme top pin-board strip */
  box-shadow: 2px 8px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

/* Brass/bronze push pin at the top center of each card */
.blog-post-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #fce9bf 0%, #d4af37 40%, #8c6d1d 85%, #4a3606 100%);
  border-radius: 50%;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.6), inset -1px -1px 3px rgba(0,0,0,0.4);
  z-index: 5;
}

/* Organic rotations to look like papers pinned to a board */
.blog-post-card:nth-child(even) {
  transform: rotate(1.2deg);
}
.blog-post-card:nth-child(odd) {
  transform: rotate(-1deg);
}
.blog-post-card:nth-child(3n) {
  transform: rotate(-1.5deg);
}

.blog-post-card:hover {
  transform: translateY(-8px) scale(1.02) rotate(0deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.75);
  border-color: var(--blog-sage, #7a9e7e);
  z-index: 10;
}

.blog-post-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blog-sage, #7a9e7e);
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
  opacity: 0.85;
}

.blog-post-card h3 {
  font-size: 19px;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.4;
  font-family: var(--font-title);
  transition: color var(--transition-speed);
}

.blog-post-card:hover h3 {
  color: var(--gold-light);
}

.blog-post-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Home page latest updates widget */
.recent-blog-section {
  margin: 60px auto;
}

.recent-blog-section h2 {
  text-align: center;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 30px;
}

.recent-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Individual Post Detail styling */
.blog-post-container {
  max-width: 750px;
  margin: 0 auto;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 30px;
  position: static;
}

.blog-post-header h1 {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-post-header .meta-info {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.blog-post-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

.blog-post-body p {
  margin-bottom: 25px;
}

.blog-post-body blockquote {
  font-style: italic;
  font-size: 18px;
  color: var(--gold-light);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 35px 0 35px 10px;
  line-height: 1.6;
}

.blog-post-body h2, .blog-post-body h3 {
  color: var(--gold-light);
  margin: 45px 0 20px 0;
}

.blog-post-body img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--gold);
  margin: 30px 0;
  padding: 10px;
  background-color: var(--bg-dark-card);
}

.blog-back-btn {
  margin-top: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* --- BLOG SIDEBAR LAYOUT --- */
.blog-two-column-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background-color: var(--bg-dark-card);
  border: 1px solid rgba(212, 175, 55, 0.2);
  outline: 1px solid rgba(212, 175, 55, 0.2);
  outline-offset: -5px;
  padding: 25px;
  position: relative;
}

.sidebar-widget::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid rgba(212, 175, 55, 0.08);
  pointer-events: none;
}

.sidebar-widget h3 {
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 8px;
}

.sidebar-author-widget {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.sidebar-author-widget p {
  margin-bottom: 12px;
}

.sidebar-author-widget a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-author-widget a:hover {
  text-decoration: underline;
}

.sidebar-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-categories-list li {
  margin: 0;
}

.category-filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(212, 175, 55, 0.2);
  color: var(--text-light);
  padding: 8px 12px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-speed);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-filter-btn:hover, .category-filter-btn.active {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}

.category-count {
  font-size: 10px;
  background: rgba(212, 175, 55, 0.2);
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--gold-light);
  font-weight: 600;
}

.featured-book-widget {
  text-align: center;
}

.featured-book-widget .book-cover-mini {
  width: 140px;
  height: 210px;
  margin: 0 auto 15px auto;
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.featured-book-widget .book-cover-mini img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.featured-book-widget .book-title-mini {
  font-family: var(--font-title);
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 5px;
  font-weight: 600;
}

.featured-book-widget .book-author-mini {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.promo-ad-slot {
  border: 1px dashed rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.02);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* --- MASTODON COMMENTS --- */
.mastodon-comments {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.mastodon-comments h2 {
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.comments-loading {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
}

.comments-empty {
  font-size: 15px;
  line-height: 1.6;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comment {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 2px;
}

.comment-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-dark);
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-author {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.comment-name {
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
}

.comment-name:hover {
  text-decoration: underline;
}

.comment-username {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
}

.comment-date {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: auto;
  text-decoration: none;
}

.comment-date:hover {
  color: var(--gold);
}

.comment-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  word-wrap: break-word;
}

.comment-content p {
  margin-bottom: 8px;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-content a {
  color: var(--gold-light);
  text-decoration: underline;
}

.comment-content .invisible {
  display: none;
}

.comment-content .ellipsis {
  display: inline;
}

.comments-footer {
  margin-top: 30px;
  text-align: center;
}

.comments-footer .btn {
  padding: 10px 24px;
  font-size: 11px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .author-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .author-portrait-container {
    order: -1; /* image on top for mobile */
  }
  
  .book-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .book-detail-cover {
    justify-content: center;
  }

  .recent-blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-two-column-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}

@media (max-width: 500px) {
  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav a {
    font-size: 11px;
  }
  
  .western-frame {
    padding: 20px 10px;
  }
  
  .bio-box {
    padding: 25px;
  }
  
  .hero-announcement h2 {
    font-size: 24px;
  }
  
  .hero-announcement p {
    font-size: 15px;
  }
}
