/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Dark Theme */
  --color-bg: #1a1a1a;
  --color-fg: #e8e6e0;
  --color-card: #242424;
  --color-muted: #666666;
  --color-accent: #d4a574;
  --color-border: #333333;
  
  /* Typography */
  --font-serif: 'Crimson Text', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.9;
  font-size: 1.25rem;
}

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

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.site-navigation {
  background-color: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}



.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 auto;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
  color: var(--color-accent);
}

/* Category Links */
a[rel="category tag"],
.cat-links a,
article p a[rel="category tag"] {
  color: #d4a574 !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

a[rel="category tag"]:hover,
.cat-links a:hover,
article p a[rel="category tag"]:hover {
  color: var(--color-fg) !important;
  text-decoration: underline;
}

/* Main Content Area */
.site-main {
  min-height: calc(100vh - 200px);
  padding: 0.5rem 0 1.5rem;
}

/* Homepage - Dictionary Entry */
.dictionary-entry {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem 2rem 2.5rem;
  text-align: left;
}

.word-title {
  font-size: 5rem;
  font-weight: 700;
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pronunciation {
  font-size: 1.75rem;
  color: var(--color-muted);
  text-align: center;
  font-style: italic;
  margin-bottom: 2.5rem;
}

.part-of-speech {
  font-size: 1.25rem;
  color: var(--color-accent);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.definition-list {
  margin-bottom: 3rem;
}

.definition-item {
  border-left: 2px solid var(--color-accent);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.definition-item.secondary {
  border-left-color: var(--color-muted);
  color: var(--color-muted);
}

.definition-item p {
  font-size: 1.25rem;
  line-height: 1.9;
}

.etymology {
  color: var(--color-muted);
  margin-bottom: 3rem;
}

.etymology-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.etymology-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
}

.etymology-text strong {
  font-weight: 600;
}

/* Widget Area */
.widget-area {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 3rem;
}

.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget li {
  margin-bottom: 1rem;
}

.widget a {
  color: var(--color-fg);
  text-decoration: none;
}

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

/* Footer */
.site-footer {
  background-color: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-menu a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: var(--color-accent);
}

.footer-info {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Content Pages */
.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.entry-header {
  text-align: center;
}



.page-content {
  font-size: 1.25rem;
  line-height: 1.9;
}

.page-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.page-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.page-content p {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.9;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  color: var(--color-fg);
  font-size: 1.25rem;
  line-height: 1.9;
}

}

/* Template Content Styling */
.template-content {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.template-content p {
  font-size: 1.25rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: var(--color-fg);
}

.template-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-fg);
}

.template-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.template-content ul,
.template-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.template-content li {
  margin-bottom: 0.5rem;
  color: var(--color-fg);
}

}

/* Homepage Content Styling */
.homepage-content {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.homepage-content p {
  font-size: 1.25rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: var(--color-fg);
}

.homepage-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-fg);
}

.homepage-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.homepage-content ul,
.homepage-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.homepage-content li {
  margin-bottom: 0.5rem;
  color: var(--color-fg);
}

}

/* Responsive Design */
@media (max-width: 768px) {
  
  .word-title {
    font-size: 3rem;
  }
  
  .pronunciation {
    font-size: 1.4rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .container,
  .container-narrow {
    padding: 0 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-menu {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }
  
  .word-title {
    font-size: 2.5rem;
  }
  
  .pronunciation {
    font-size: 1.2rem;
  }
  
  .definition-item p {
    font-size: 1.1rem;
  }
  
  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Contact Form Styling */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.extortionware-contact-form {
  margin-top: 2rem;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-fg);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.contact-submit {
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.contact-submit:hover {
  opacity: 0.85;
}

.form-success {
  background-color: rgba(212, 165, 116, 0.2);
  border-left: 3px solid var(--color-accent);
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-fg);
}

.form-error {
  background-color: rgba(200, 100, 100, 0.2);
  border-left: 3px solid #c86464;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-fg);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* ===================================
   DICTIONARY H1 STYLE
   =================================== */
.dictionary-h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.dictionary-h1 .dict-word {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: block;
}

/* ===================================
   GLOBAL HEADING STYLES (H1-H6)
   =================================== */
/* H1 - Matches dictionary word-title style */
h1, .entry-title, .page-title {
  font-size: 5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-fg);
}

/* H2 */
h2, .entry-content h2, .page-content h2, .template-content h2, .homepage-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--color-fg);
  line-height: 1.3;
}

h3, .entry-content h3, .page-content h3, .template-content h3, .homepage-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

h4, .entry-content h4, .page-content h4, .template-content h4, .homepage-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-fg);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

h5, .entry-content h5, .page-content h5, .template-content h5, .homepage-content h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

h6, .entry-content h6, .page-content h6, .template-content h6, .homepage-content h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================================
   UNIFIED LIST STYLES
   =================================== */
ul, ol, .entry-content ul, .entry-content ol, .page-content ul, .page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  line-height: 1.8;
}

li, .entry-content li, .page-content li {
  margin-bottom: 0.5rem;
  color: var(--color-fg);
  font-size: 1.25rem;
  line-height: 1.9;
}

/* ===================================
   MOBILE MENU SYSTEM
   =================================== */
.mobile-menu-toggle {
  display: none !important;
}



.site-navigation .container {
  position: relative;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 1rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--color-border);
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem;
  }
}

/* ===================================
   FEATURED IMAGE STYLES
   =================================== */
.post-thumbnail {
  margin: 0 auto 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  width: 100%;
}

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

.archive-thumbnail {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

.archive-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.archive-thumbnail a:hover img {
  transform: scale(1.05);
}

/* ===================================
   ARCHIVE & POST STYLES
   =================================== */
.archive-post {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.archive-post:last-child {
  border-bottom: none;
}

.archive-header {
  margin-bottom: 1rem;
  text-align: center;
}

.archive-title {
  margin-bottom: 0.5rem;
}

.archive-title a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.archive-title a:hover {
  color: var(--color-accent);
}

.archive-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.archive-excerpt {
  font-size: 1.25rem;
  line-height: 1.9;
}

.read-more {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

/* ===================================
   ENTRY META & FOOTER
   =================================== */
.entry-header {
  margin-bottom: 0;
  margin-top: 0;
  text-align: center;
}



.entry-meta {
  color: var(--color-muted);
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-style: italic;
  letter-spacing: 0.02em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

}

/* Global Link Color Styles */
a {
  color: #d4a574;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #af7231;
  text-decoration: none;
}

.entry-content {
  font-size: 1.25rem;
  line-height: 1.9;
  margin-bottom: 3rem;
}

/* Newspaper-style drop cap for single posts */
.single .entry-content p:first-of-type::first-letter {
  float: left;
  font-size: 5.5rem;
  line-height: 0.85;
  margin: 0.1rem 0.15rem 0 0;
  font-weight: 700;
  color: var(--color-accent);
}

/* Newspaper styling for single posts */
.single .entry-content {
  text-align: justify;
  hyphens: auto;
}

.single .entry-content p {
  margin-bottom: 1.5rem;
}

.single .post-thumbnail {
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.entry-footer {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.tags-links {
  color: var(--color-muted);
}

.tags-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-numbers a {
  padding: 0.5rem 1rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.page-numbers a:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.page-numbers a.current {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.page-numbers .dots {
  padding: 0.5rem;
  color: var(--color-muted);
}

.nav-previous a,
.nav-next a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.nav-previous a:hover,
.nav-next a:hover {
  text-decoration: underline;
}

/* ===================================
   POST NAVIGATION
   =================================== */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-navigation a {
  color: var(--color-fg);
  text-decoration: none;
  flex: 1;
}

.post-navigation a:hover .nav-title {
  color: var(--color-accent);
}

.nav-subtitle {
  display: block;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.nav-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* ===================================
   BREADCRUMBS
   =================================== */
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ===================================
   AUTHOR BOX
   =================================== */
.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-top: 1.5rem;
  border-top: 2px solid var(--color-accent);
}

.author-avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.author-name a {
  color: var(--color-fg);
  text-decoration: none;
}

.author-name a:hover {
  color: var(--color-accent);
}

.author-bio {
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

#back-to-top:hover {
  background-color: var(--color-fg);
  transform: translateY(-5px);
}

/* ===================================
   404 ERROR PAGE
   =================================== */
.error-404 {
  text-align: center;
  padding: 4rem 2rem;
}

.error-404 .page-title {
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0;
}

.error-subtitle {
  font-size: 2rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.error-actions {
  margin: 2rem 0;
}

.button-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.button-primary:hover {
  opacity: 0.85;
}

.search-form-wrapper {
  margin-top: 3rem;
}

.search-form-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ===================================
   SEARCH RESULTS
   =================================== */
.search-query {
  color: var(--color-accent);
  font-style: italic;
}

.no-results {
  text-align: center;
  padding: 3rem 2rem;
}

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

/* ===================================
   TABLES, QUOTES, CODE BLOCKS
   =================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

table th,
table td {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

table th {
  background-color: var(--color-card);
  font-weight: 600;
}

blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-muted);
}

code {
  background-color: var(--color-card);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--color-card);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 2rem;
}

pre code {
  background: none;
  padding: 0;
}

/* ===================================
   RESPONSIVE UPDATES
   =================================== */
@media (max-width: 768px) {
  .dictionary-h1 .dict-word {
    font-size: 3rem;
  }
  
  h1, .entry-title, .page-title {
    font-size: 3rem;
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .post-navigation {
    flex-direction: column;
  }
  
  .error-404 .page-title {
    font-size: 5rem;
  }
  
  #back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}
/* Global Link Color Styles */
a {
  color: #d4a574;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #af7231;
  text-decoration: none;
}


.dictionary-entry {
  padding-top: 0.0rem !important;
}

.word-title,
.page-title,
.entry-title {
  margin-top: 0.0rem !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .site-navigation {
    padding-bottom: 0.5rem !important;
  }
  .dictionary-entry {
    padding-top: 0.5em !important;
  }
}
/* Fix post-thumbnail bleeding outside container */
.post-thumbnail {
  display: block;
  max-width: 100%;
  width: 100%;
  margin: 0 auto 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

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

/* Optional: make sure parent container controls width */
.single .site-main,
.single .entry-content,
.single .container,
.single .container-narrow {
  overflow: hidden;
}
.post-thumbnail {
  max-width: 900px;
}
/* Balance spacing between breadcrumbs and title */
.breadcrumbs {
  margin-top: 2rem !important;   /* add top spacing */
  margin-bottom: 2rem !important; /* keep even with bottom */
  padding-bottom: 0.75rem;
  text-align: center;
}

/* Ensure title spacing looks consistent */
.word-title,
.entry-title,
.page-title {
  margin-top: 2rem !important;   /* equalize distance from breadcrumbs */
  margin-bottom: 2rem !important;
}

/* Responsive tweak for mobile */
@media (max-width: 768px) {
  .breadcrumbs {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .word-title,
  .entry-title,
  .page-title {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
}
/* ===================================
   ARCHIVE THUMBNAILS (FULL WIDTH & SHARP)
   =================================== */

.archive-thumbnail {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 2rem;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}

/* Ensure high-quality, non-compressed rendering */
.archive-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: none;
}

/* If the container has padding, visually extend edge-to-edge */
.archive-post .archive-thumbnail {
  margin-left: -2rem;
  margin-right: -2rem;
  width: calc(100% + 4rem);
  max-width: none;
}

/* Responsive correction for mobile */
@media (max-width: 768px) {
  .archive-post .archive-thumbnail {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border-radius: 6px;
  }
}
/* ===================================
   DROP CAP (NEWSPAPER-STYLE)
   =================================== */

.single .entry-content p:first-of-type::first-letter,
.archive-content p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 0.8;
  margin-right: 0.4rem;
  margin-top: 0.2rem;
  color: var(--color-accent);
  text-transform: uppercase;
}

/* Optional: subtle spacing adjustment on mobile */
@media (max-width: 768px) {
  .single .entry-content p:first-of-type::first-letter,
  .archive-content p:first-of-type::first-letter {
    font-size: 3.5rem;
    margin-right: 0.3rem;
  }
}

