/* ============================================================
   THE SECRET SOCIAL WORKER
   A 2015/2016-era WordPress blog — now a novel

   Typography: Merriweather (body) + Montserrat (headings)
   Palette: #2c3e50 (header navy), #2980b9 (WordPress blue),
            #333 (body text), #f1f1f1 (page bg)
   ============================================================ */

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

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

body {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  color: #333;
  background: #eceae6;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(0,0,0,0.02) 49px, rgba(0,0,0,0.02) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(0,0,0,0.02) 49px, rgba(0,0,0,0.02) 50px);
  line-height: 1.8;
}

a {
  color: #2980b9;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #1a5276;
  text-decoration: underline;
}

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

.hidden {
  display: none !important;
}


/* ============================================================
   BOOK ANNOUNCEMENT BANNER (modern — sits above the blog)
   ============================================================ */
.book-banner {
  background: #1a1a2e;
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 100;
}

.book-banner a {
  color: #e94560;
  font-weight: 700;
  text-decoration: underline;
}

.book-banner a:hover {
  color: #ff6b81;
}

.book-banner .sep {
  margin: 0 8px;
  opacity: 0.4;
}


/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 60px 20px 50px;
  border-bottom: 4px solid #1a252f;
}

.site-header h1 {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.site-header h1 a {
  color: #ecf0f1;
}

.site-header h1 a:hover {
  color: #fff;
  text-decoration: none;
}

.site-header .tagline {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1rem;
  font-weight: 300;
  color: #bdc3c7;
  max-width: 480px;
  margin: 0 auto;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: linear-gradient(180deg, #3d566e 0%, #34495e 100%);
  border-bottom: 1px solid #2c3e50;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav li a {
  display: block;
  padding: 14px 22px;
  color: #ecf0f1;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}

.site-nav li a:hover,
.site-nav li a.active {
  background: #2c3e50;
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ecf0f1;
  font-size: 1.5rem;
  padding: 12px 20px;
  cursor: pointer;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}


/* ============================================================
   LAYOUT
   ============================================================ */
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* Full-width page layout (no sidebar) */
.page-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 20px;
}


/* ============================================================
   BLOG POSTS
   ============================================================ */
.post {
  background: #fff;
  margin-bottom: 30px;
  border: 1px solid #ddd;
  border-left: 4px solid #2980b9;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.post-header {
  padding: 30px 35px 0;
}

.post-title {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-title a {
  color: #222;
}

.post-title a:hover {
  color: #2980b9;
  text-decoration: none;
}

.post-meta {
  font-size: 0.8rem;
  color: #999;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}

.post-meta a {
  color: #999;
}

.post-meta a:hover {
  color: #2980b9;
}

.post-body {
  padding: 20px 35px 25px;
  font-size: 0.95rem;
}

.post-body p {
  margin-bottom: 1.4em;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-body ul, .post-body ol {
  margin: 0 0 1.4em 1.8em;
}

.post-body li {
  margin-bottom: 0.4em;
}

.post-body em {
  font-style: italic;
}

.post-body strong {
  font-weight: 700;
}

.post-body blockquote {
  border-left: 3px solid #2980b9;
  margin: 1.4em 0;
  padding: 0.6em 1.2em;
  color: #555;
  font-style: italic;
  background: #f9f9f9;
}

.post-footer {
  padding: 15px 35px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.78rem;
  color: #999;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.post-footer a {
  color: #999;
}

.post-footer a:hover {
  color: #2980b9;
}

.post-signature {
  font-style: italic;
  color: #777;
  margin-top: 0.8em;
}

.post-signature .sig-note {
  font-size: 0.85em;
  display: block;
  margin-top: 0.3em;
}


/* ============================================================
   PINNED POST
   ============================================================ */
.post.pinned {
  border: 2px solid #2980b9;
  border-left: 4px solid #e74c3c;
  position: relative;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 30%);
}

.pinned-label {
  position: absolute;
  top: -1px;
  left: 30px;
  background: #2980b9;
  color: #fff;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 0 0 3px 3px;
}


/* ============================================================
   BOOK COVER (CSS-only)
   ============================================================ */
.book-preview {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  margin: 20px 0;
  flex-wrap: wrap;
}

.book-cover {
  width: 160px;
  min-width: 160px;
  height: 240px;
  background: linear-gradient(145deg, #1a252f 0%, #2c3e50 30%, #34495e 60%, #2c3e50 100%);
  border-radius: 2px 8px 8px 2px;
  box-shadow: 6px 6px 18px rgba(0,0,0,0.35), 2px 2px 6px rgba(0,0,0,0.2), inset -2px 0 4px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 15px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.book-cover:hover {
  transform: rotate(-2deg) scale(1.03);
  box-shadow: 8px 8px 24px rgba(0,0,0,0.4);
}

.book-cover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,0.3), rgba(0,0,0,0.05));
}

.book-cover .cover-title {
  color: #ecf0f1;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.book-cover .cover-author {
  color: #bdc3c7;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.65rem;
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

.book-info {
  flex: 1;
  min-width: 200px;
}

/* Large book cover for the book page */
.book-cover-lg {
  width: 220px;
  min-width: 220px;
  height: 330px;
  font-size: 1.1rem;
}

.book-cover-lg .cover-title {
  font-size: 1rem;
}

.book-cover-lg .cover-author {
  font-size: 0.75rem;
  margin-top: 16px;
}


/* ============================================================
   BUY LINKS
   ============================================================ */
.buy-links {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buy-btn {
  display: inline-block;
  padding: 8px 18px;
  background: #2980b9;
  color: #fff;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 3px;
  transition: background 0.2s;
}

.buy-btn:hover {
  background: #1a5276;
  color: #fff;
  text-decoration: none;
}

.buy-btn.amazon { background: #ff9900; }
.buy-btn.amazon:hover { background: #e68a00; }
.buy-btn.waterstones { background: #00573f; }
.buy-btn.waterstones:hover { background: #003d2b; }


/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
  padding: 20px 35px 25px;
  border-top: 1px solid #f0f0f0;
}

.comments-heading {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 15px;
}

.comment {
  border-left: 3px solid #e0e0e0;
  padding: 10px 15px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

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

.comment-author {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: #2980b9;
}

.comment-date {
  font-size: 0.72rem;
  color: #bbb;
  margin-left: 8px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}

.comment-body {
  margin-top: 5px;
  color: #555;
}


/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: 300px;
  flex-shrink: 0;
}

.widget {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  margin-bottom: 20px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.widget-title {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: -20px -20px 15px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border-radius: 3px 3px 0 0;
  border-bottom: none;
}

.widget p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
}

.widget p + p {
  margin-top: 10px;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 1px solid #f5f5f5;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: #555;
}

.widget ul li a:hover {
  color: #2980b9;
}

/* Search */
.search-form {
  display: flex;
}

.search-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 2px 0 0 2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.8rem;
  outline: none;
}

.search-input:focus {
  border-color: #2980b9;
}

.search-btn {
  padding: 8px 14px;
  background: #2980b9;
  color: #fff;
  border: 1px solid #2980b9;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
}

.search-btn:hover {
  background: #1a5276;
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud a {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, #f8f8f8, #eee);
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.7rem;
  color: #555;
  transition: all 0.2s;
}

.tag-cloud a:hover {
  background: #2980b9;
  color: #fff;
  border-color: #2980b9;
  text-decoration: none;
}

/* Subscribe */
.subscribe-form {
  margin-top: 10px;
}

.subscribe-input,
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.8rem;
  margin-bottom: 8px;
  outline: none;
}

.subscribe-input:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #2980b9;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  appearance: auto;
}

.subscribe-btn,
.form-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #2980b9, #3498db);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(41,128,185,0.3);
}

.subscribe-btn:hover,
.form-btn:hover {
  background: linear-gradient(135deg, #1a5276, #2980b9);
  box-shadow: 0 3px 8px rgba(41,128,185,0.4);
  transform: translateY(-1px);
}

/* Social links */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ecf0f1;
  color: #666;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.social-link:hover { text-decoration: none; }
.social-link.twitter:hover { background: #1da1f2; color: #fff; }
.social-link.tumblr:hover { background: #35465c; color: #fff; }
.social-link.rss:hover { background: #ff9800; color: #fff; }
.social-link.email:hover { background: #2980b9; color: #fff; }

/* Visitor counter */
.visitor-counter {
  text-align: center;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.72rem;
  color: #999;
  margin-top: 5px;
}

.counter-num {
  font-family: 'Courier New', monospace;
  background: #111;
  color: #33ff33;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  border: 1px solid #333;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.5), 0 0 6px rgba(51,255,51,0.1);
  display: inline-block;
}


/* ============================================================
   PAGE CONTENT (Book page, Contact page)
   ============================================================ */
.page-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 35px;
  margin-bottom: 30px;
}

.page-card h2 {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

.page-card h3 {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  margin-top: 25px;
}

.page-card h3:first-child {
  margin-top: 0;
}

.page-card p {
  margin-bottom: 1.2em;
  font-size: 0.95rem;
}

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

/* Book hero */
.book-hero {
  display: flex;
  gap: 35px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.book-hero-text {
  flex: 1;
  min-width: 280px;
}

.book-hero-text h2 {
  margin-bottom: 4px;
}

.book-hero-text .book-author-name {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

.book-hero-text .book-tagline {
  font-size: 1.05rem;
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Author section */
.author-bio {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.author-photo {
  width: 120px;
  min-width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #ecf0f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  overflow: hidden;
}

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

.author-text {
  flex: 1;
  min-width: 200px;
}

/* Praise/reviews */
.praise-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.praise-quote {
  border-left: 3px solid #2980b9;
  padding: 12px 18px;
  font-style: italic;
  color: #555;
}

.praise-attribution {
  display: block;
  font-style: normal;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.8rem;
  color: #999;
  margin-top: 8px;
}

.coming-soon {
  font-style: italic;
  color: #999;
}

/* Three voices section */
.voice-cards {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.voice-card {
  flex: 1;
  min-width: 180px;
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  padding: 18px;
}

.voice-card h4 {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.voice-card p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0;
}

/* Newsletter section on book page */
.newsletter-box {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  padding: 25px;
  text-align: center;
  margin-top: 15px;
}

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

.newsletter-inline {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-inline input {
  flex: 1;
  margin-bottom: 0;
}

.newsletter-inline button {
  width: auto;
  padding: 8px 20px;
}

/* Form layout (contact page) */
.form-row {
  display: flex;
  gap: 12px;
}

.form-row > * {
  flex: 1;
}

.form-label {
  display: block;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.form-note {
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
  margin-top: 10px;
}

/* Contact info box */
.contact-info-box {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  padding: 18px;
  margin-top: 15px;
}

.contact-info-box p {
  font-size: 0.85rem;
  color: #666;
}

.email-link {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-weight: 600;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #243342, #1a252f);
  color: #95a5a6;
  text-align: center;
  padding: 35px 20px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.75rem;
  border-top: 3px solid #e74c3c;
}

.site-footer a {
  color: #bdc3c7;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  margin: 0 10px;
}


/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #333;
  color: #fff;
  padding: 14px 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  z-index: 200;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}

.cookie-consent.hidden {
  display: none;
}

.cookie-btn {
  padding: 6px 18px;
  background: #2980b9;
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: #1a5276;
}


/* ============================================================
   SHARE BUTTONS (2015 style)
   ============================================================ */
.share-buttons {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 2px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.85;
  color: #fff;
  text-decoration: none;
}

.share-btn.twitter-share { background: #1da1f2; }
.share-btn.facebook-share { background: #3b5998; }
.share-btn.tumblr-share { background: #35465c; }


/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  text-align: center;
  padding: 20px 0;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.85rem;
}

.pagination .current {
  padding: 8px 14px;
  background: #2980b9;
  color: #fff;
  border-radius: 2px;
}


/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #2980b9, #e94560);
  z-index: 999;
  transition: width 0.05s linear;
}


/* ============================================================
   ENHANCED HEADER
   ============================================================ */
.site-header {
  background:
    linear-gradient(135deg, #0f1923 0%, #1a2f3f 25%, #2c3e50 50%, #1e3a4f 75%, #162a3a 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #e74c3c;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 15% 85%, rgba(41,128,185,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(231,76,60,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.site-header h1, .site-header .tagline {
  position: relative;
  z-index: 1;
}

.site-header h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.site-header .tagline {
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}


/* ============================================================
   POST FEATURED IMAGES (CSS gradients)
   ============================================================ */
.post-featured {
  height: 200px;
  position: relative;
  overflow: hidden;
}

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

.post-featured.theme-dusk    { background: linear-gradient(135deg, #2c3e50 0%, #4a69bd 40%, #e77f67 100%); }
.post-featured.theme-overcast { background: linear-gradient(135deg, #636e72 0%, #b2bec3 60%, #dfe6e9 100%); }
.post-featured.theme-winter  { background: linear-gradient(135deg, #1a1a2e 0%, #6c3a3a 50%, #c0392b 100%); }
.post-featured.theme-spring  { background: linear-gradient(135deg, #2c3e50 0%, #2980b9 50%, #6dd5c4 100%); }
.post-featured.theme-slate   { background: linear-gradient(135deg, #636e72 0%, #2d3436 50%, #636e72 100%); }
.post-featured.theme-warm    { background: linear-gradient(135deg, #6d4c41 0%, #a1887f 50%, #d7ccc8 100%); }
.post-featured.theme-night   { background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); }
.post-featured.theme-announce { background: linear-gradient(135deg, #2980b9 0%, #6dd5c4 50%, #f9ca24 100%); }

.post-featured::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, #fff);
}


/* ============================================================
   POST ENHANCEMENTS
   ============================================================ */

/* Drop cap */
.drop-cap::first-letter {
  float: left;
  font-size: 3.8em;
  line-height: 0.78;
  margin: 0.02em 0.12em 0 0;
  color: #2c3e50;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(41,128,185,0.2);
}

/* Read time */
.read-time {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.72rem;
  color: #bbb;
  margin-left: 6px;
}

/* Post hover */
.post {
  transition: box-shadow 0.25s, transform 0.25s;
}

.post:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.post.pinned:hover {
  box-shadow: 0 4px 20px rgba(41,128,185,0.15);
}

/* Date badge */
.date-badge {
  float: left;
  width: 54px;
  text-align: center;
  margin-right: 15px;
  margin-top: 2px;
  background: linear-gradient(180deg, #2c3e50, #1a252f);
  color: #fff;
  border-radius: 4px;
  overflow: hidden;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.date-badge .date-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 7px 0 3px;
}

.date-badge .date-month {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 0 5px;
  background: linear-gradient(180deg, #e74c3c, #c0392b);
}

/* Share counts */
.share-count {
  background: rgba(255,255,255,0.25);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 0.62rem;
  margin-left: 2px;
}

/* Post footer enhanced */
.post-share-row {
  padding: 12px 35px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}


/* ============================================================
   COMMENT EXPANSION
   ============================================================ */
.comment-hidden {
  display: none;
}

.comments-toggle {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 6px 14px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2980b9;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.comments-toggle:hover {
  background: #f5f5f5;
}


/* ============================================================
   BANNER ADS (period-authentic 2015/2016 UK)
   ============================================================ */
.ad-label {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.6rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 4px;
}

/* Leaderboard (between posts) */
.ad-leaderboard {
  max-width: 728px;
  margin: 10px auto 30px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ad-leaderboard:hover {
  opacity: 0.92;
}

.ad-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  min-height: 80px;
  gap: 15px;
}

.ad-text h4 {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 3px;
}

.ad-text p {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.78rem;
  opacity: 0.85;
}

.ad-cta {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 3px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Leaderboard with image --- */
.ad-leaderboard-img {
  display: flex;
  overflow: hidden;
  border-radius: 3px;
  max-width: 728px;
  margin: 10px auto 30px;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ad-leaderboard-img:hover {
  opacity: 0.95;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  text-decoration: none;
}

.ad-leaderboard-img .ad-img {
  width: 45%;
  flex-shrink: 0;
  overflow: hidden;
}

.ad-leaderboard-img .ad-img img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
}

.ad-leaderboard-img .ad-content {
  flex: 1;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.ad-leaderboard-img .ad-content h4 {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.ad-leaderboard-img .ad-content p {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.78rem;
  margin: 0;
  opacity: 0.85;
}

.ad-leaderboard-img .ad-content .ad-cta {
  align-self: flex-start;
  margin-top: 4px;
}

/* --- Sidebar ad with image --- */
.ad-sidebar-img {
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  margin-bottom: 20px;
  display: block;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ad-sidebar-img:hover {
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}

.ad-sidebar-img .ad-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
}

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

.ad-sidebar-img .ad-content {
  padding: 14px 16px;
  text-align: center;
}

.ad-sidebar-img .ad-content h4 {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.ad-sidebar-img .ad-content p {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.75rem;
  margin: 0 0 8px;
  opacity: 0.85;
}

.ad-sidebar-img .ad-content .ad-cta {
  display: inline-block;
}

.ad-sidebar-img .ad-content .ad-code {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  margin-top: 6px;
  opacity: 0.6;
}

/* Deliveroo */
.ad-deliveroo { background: #00CCBC; color: #fff; }
.ad-deliveroo .ad-img { background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; }
.ad-deliveroo .ad-img img { object-fit: contain; height: auto; max-height: 100px; }
.ad-deliveroo .ad-cta { background: #fff; color: #00CCBC; }

/* Adele 25 */
.ad-adele { background: #111; color: #fff; }
.ad-adele .ad-content { text-align: center; align-items: center; }
.ad-adele .ad-content p { font-style: italic; opacity: 0.6; }

/* Just Eat */
.ad-justeat { background: #FF8000; color: #fff; }
.ad-justeat .ad-img { background: #fff; display: flex; align-items: center; justify-content: center; padding: 12px; }
.ad-justeat .ad-img img { object-fit: contain; height: auto; max-height: 80px; }
.ad-justeat .ad-cta { background: #fff; color: #FF8000; }

/* Sidebar ads (300x250) */
.ad-sidebar {
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 20px;
}

.ad-sidebar:hover { opacity: 0.92; }

.ad-sidebar-inner {
  padding: 22px 18px;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ad-sidebar-inner h4 {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-weight: 700;
}

.ad-sidebar-inner p {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.78rem;
}

.ad-sidebar-inner .ad-cta {
  display: inline-block;
  margin-top: 5px;
  padding: 8px 20px;
}

.ad-sidebar-inner .ad-code {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  opacity: 0.7;
}

/* Graze */
.ad-graze { background: #f5e6d3; color: #5d4e37; }
.ad-graze h4 { color: #3d7c3f; }
.ad-graze .ad-cta { background: #7ab55c; color: #fff; border-radius: 20px; }

/* Spotify */
.ad-spotify { background: #191414; color: #fff; }
.ad-spotify .ad-img { background: #191414; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ad-spotify .ad-img img { object-fit: contain; height: auto; max-height: 80px; }
.ad-spotify h4 { color: #1DB954; }
.ad-spotify .ad-price { font-size: 1.6rem; font-weight: 700; font-family: 'Trebuchet MS', Arial, sans-serif; color: #fff; }
.ad-spotify .ad-cta { background: #1DB954; color: #fff; border-radius: 20px; }

/* Kindle */
.ad-kindle { background: #232f3e; color: #fff; }
.ad-kindle h4 { color: #ff9900; }
.ad-kindle .ad-price { font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 0.85rem; color: #ff9900; font-weight: 700; }
.ad-kindle .ad-cta { background: #ff9900; color: #131921; border-radius: 3px; }


/* ============================================================
   BLOG AWARD BADGE
   ============================================================ */
.award-badge {
  text-align: center;
  padding: 15px;
  border: 2px solid #e8d5bc;
  border-radius: 4px;
  background: linear-gradient(135deg, #fdf6ee 0%, #f9f1e6 100%);
}

.award-badge .award-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px;
}

.award-badge .award-title {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8b6914;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.award-badge .award-year {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.65rem;
  color: #b8960c;
  margin-top: 3px;
}


/* ============================================================
   NEWSLETTER POPUP (the classic 2015 annoyance)
   ============================================================ */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.popup-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.popup-modal {
  background: #fff;
  border-radius: 4px;
  padding: 40px 35px;
  max-width: 440px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.35s;
}

.popup-overlay.visible .popup-modal {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.popup-close:hover { color: #333; }

.popup-modal h3 {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.popup-modal > p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 18px;
  line-height: 1.6;
}

.popup-modal input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.85rem;
  margin-bottom: 10px;
  outline: none;
}

.popup-modal input[type="email"]:focus {
  border-color: #2980b9;
}

.popup-modal button[type="submit"] {
  width: 100%;
  padding: 11px;
  background: #2980b9;
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.popup-modal button[type="submit"]:hover {
  background: #1a5276;
}

.popup-dismiss {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.75rem;
  color: #bbb;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  cursor: pointer;
  transition: color 0.2s;
}

.popup-dismiss:hover {
  color: #999;
  text-decoration: none;
}


/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #2c3e50, #e74c3c);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s;
  z-index: 150;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.back-to-top:hover {
  background: #2980b9;
}


/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .site-header h1 {
    font-size: 2rem;
  }

  .site-header {
    padding: 40px 20px 35px;
  }

  .post-header {
    padding: 25px 20px 0;
  }

  .post-body {
    padding: 15px 20px 20px;
  }

  .post-footer {
    padding: 12px 20px;
  }

  .comments-section {
    padding: 15px 20px 20px;
  }

  .page-card {
    padding: 25px 20px;
  }

  .book-hero {
    flex-direction: column;
    align-items: center;
  }

  .voice-cards {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .site-nav ul {
    display: none;
    flex-direction: column;
  }

  .site-nav ul.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    width: 100%;
    text-align: left;
  }

  .site-header h1 {
    font-size: 1.6rem;
  }

  .site-header .tagline {
    font-size: 0.85rem;
  }

  .post-title {
    font-size: 1.3rem;
  }

  .book-preview {
    flex-direction: column;
    align-items: center;
  }

  .book-banner {
    font-size: 0.8rem;
    padding: 12px 15px;
  }

  .share-buttons {
    flex-wrap: wrap;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .newsletter-inline {
    flex-direction: column;
  }

  .newsletter-inline button {
    width: 100%;
  }

  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .post-featured { height: 90px; }

  .date-badge { display: none; }

  .ad-leaderboard .ad-inner {
    flex-direction: column;
    text-align: center;
    padding: 12px 16px;
  }

  .ad-leaderboard-img {
    flex-direction: column;
  }

  .ad-leaderboard-img .ad-img {
    width: 100%;
  }

  .ad-leaderboard-img .ad-img img {
    min-height: 160px;
  }

  .ad-leaderboard-img .ad-content {
    text-align: center;
    align-items: center;
  }

  .ad-leaderboard-img .ad-content .ad-cta {
    align-self: center;
  }

  .popup-modal { padding: 30px 20px; }

  .post-share-row { padding: 12px 20px; }
}


/* ============================================================
   BOOK COVER AS AN IMAGE, LAUNCH STATE, FICTION NOTE
   ============================================================ */
.book-cover.has-image {
  display: block;
  height: auto;
  padding: 0;
  background: #f6be2c;
}
.book-cover.has-image::before { z-index: 1; }
.book-cover.has-image img {
  display: block;
  width: 100%;
  height: auto;
}
.buy-btn.soon {
  background: #7f8c8d;
  cursor: default;
}
.buy-btn.soon:hover { background: #7f8c8d; }
.fiction-note {
  margin-top: 10px;
  font-size: 0.72rem;
  line-height: 1.5;
  opacity: 0.85;
}


/* ============================================================
   SAMPLE ENTRY, DISCUSSION GUIDE, PRESS PAGE
   ============================================================ */
.sample-kicker {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8372d;
  margin-bottom: 6px !important;
}
.diary-entry h2 { margin-bottom: 12px; }
.diary-entry p { font-size: 1rem; line-height: 1.8; }
.diary-stats {
  list-style: none;
  margin: 0 0 1.6em;
  padding: 12px 0 12px 16px;
  border-left: 3px solid #f6be2c;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #555;
}
.scene-break {
  text-align: center;
  letter-spacing: 0.4em;
  color: #999;
  margin: 1.8em 0 !important;
}
.page-card ul:not(.diary-stats),
.page-card ol {
  margin: 0 0 1.2em 1.3em;
  font-size: 0.95rem;
}
.page-card li { margin-bottom: 0.7em; }
.guide-read {
  padding: 10px 14px;
  border-left: 3px solid #f6be2c;
  background: #fdf8e8;
  font-size: 0.88rem !important;
}
.guide-supervision {
  font-size: 0.88rem !important;
  color: #555;
}
.press-facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.press-facts th,
.press-facts td {
  text-align: left;
  vertical-align: top;
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid #eee;
}
.press-facts th {
  width: 8.5em;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.78rem;
  color: #2c3e50;
}
.more-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.more-links a {
  flex: 1;
  min-width: 180px;
  display: block;
  padding: 18px;
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-left: 3px solid #f6be2c;
  color: #2c3e50;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.more-links a span {
  display: block;
  margin-top: 6px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #666;
}
.more-links a:hover { background: #fdf8e8; }


/* ============================================================
   ARCHIVE STRIP (added 2026: this blog now lives at /archive/)
   ============================================================ */
.archive-strip {
  background: #f6be2c;
  color: #16130f;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
  padding: 10px 16px;
}
.archive-strip a {
  color: #16130f;
  font-weight: 700;
  margin-left: 8px;
  white-space: nowrap;
}
