/*
Theme Name: MiscGyan Editorial
Theme URI: https://miscgyan.com
Author: MiscGyan Holdings LLC
Author URI: https://miscgyan.com
Description: Editorial blog theme matching the MiscGyan design system — warm cream backgrounds, Fraunces serif headlines, DM Sans body, gold accents.
Version: 1.0.0
License: Private
Text Domain: miscgyan-editorial
*/

/* ======================================================================
   0. Reset & Base
   ====================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(ellipse at top, #fdf6ea 0%, #f8edd5 55%, #f2e2bf 100%);
  background-attachment: fixed;
  color: rgba(42, 30, 16, 0.75);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #966919;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

::selection {
  background: rgba(150, 105, 25, 0.2);
  color: #1a1208;
}

/* ======================================================================
   1. Typography
   ====================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  color: #1a1208;
  line-height: 1.1;
  font-weight: 900;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.125rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.85;
  color: rgba(42, 30, 16, 0.75);
  margin-bottom: 1.5rem;
}

blockquote {
  border-left: 3px solid #966919;
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #1a1208;
}

blockquote p {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

ul li, ol li {
  margin-bottom: 0.5rem;
  line-height: 1.85;
  font-size: 1.125rem;
}

ul li::marker {
  color: #966919;
}

ol li::marker {
  color: #966919;
  font-weight: 600;
}

code {
  background: rgba(253, 246, 234, 0.9);
  border: 1px solid rgba(150, 105, 25, 0.2);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
}

pre {
  background: #1a1208;
  color: #fdf6ea;
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #966919, #DF9A57);
  margin: 3rem 0;
  border-radius: 1px;
}

figure {
  margin: 2rem 0;
}

figcaption {
  font-size: 0.875rem;
  color: rgba(42, 30, 16, 0.55);
  margin-top: 0.75rem;
  text-align: center;
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(150, 105, 25, 0.15);
}

th {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #966919;
}

/* ======================================================================
   2. Header / Navigation
   ====================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(253, 246, 234, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(253, 246, 234, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(150, 105, 25, 0.15);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}

.site-header .logo {
  height: 3.5rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #1a1208;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #966919;
  text-decoration: none;
}

.cta-button {
  display: none;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1.5rem;
  background: linear-gradient(to right, #966919, #DF9A57);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(150, 105, 25, 0.4);
  transition: all 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(150, 105, 25, 0.5);
  color: #fff;
  text-decoration: none;
}

.cta-button svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s ease;
}

.cta-button:hover svg {
  transform: translateX(2px);
}

/* Mobile hamburger */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  border-radius: 50%;
  color: #1a1208;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(150, 105, 25, 0.1);
}

.mobile-menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  background: rgba(253, 246, 234, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(150, 105, 25, 0.15);
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  padding: 1rem 1.5rem;
  margin: 0;
}

.mobile-drawer li {
  margin: 0;
}

.mobile-drawer a {
  display: block;
  padding: 1rem 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #1a1208;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-drawer a:hover {
  background: rgba(150, 105, 25, 0.1);
  color: #966919;
  text-decoration: none;
}

.mobile-drawer .mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 3rem;
  margin-top: 0.75rem;
  background: linear-gradient(to right, #966919, #DF9A57);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px -4px rgba(150, 105, 25, 0.4);
}

.mobile-drawer .mobile-cta:hover {
  color: #fff;
  text-decoration: none;
}

/* ======================================================================
   3. Footer
   ====================================================================== */

.site-footer {
  position: relative;
  margin-top: 5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #283618 0%, #1f2a11 100%);
}

.site-footer .grain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.footer-inner {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Logo column */
.footer-brand {
  /* stays 1 column on mobile */
}

.footer-logo-img {
  height: 2.5rem;
  width: auto;
}

.footer-tagline {
  margin-top: 1.5rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: 'opsz' 14, 'SOFT' 100;
  font-size: 0.875rem;
  color: rgba(253, 246, 234, 0.7);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  color: rgba(253, 246, 234, 0.6);
  transition: color 0.2s ease;
  display: flex;
}

.footer-social a:hover {
  color: #DF9A57;
  text-decoration: none;
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Nav columns */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.footer-column-header {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #DF9A57;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.footer-column a {
  font-family: 'DM Sans', sans-serif;
  color: rgba(253, 246, 234, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.875rem;
}

.footer-column a:hover {
  color: #DF9A57;
  text-decoration: none;
}

/* Divider */
.footer-divider {
  margin-top: 4rem;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(223, 154, 87, 0.45) 50%, transparent 100%);
}

/* Signature */
.footer-signature {
  margin-top: 3rem;
  text-align: center;
}

.footer-signature-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: 1.25rem;
  color: rgba(253, 246, 234, 0.85);
}

.footer-copyright {
  margin-top: 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(253, 246, 234, 0.5);
  text-align: center;
}

/* ======================================================================
   4. Blog Listing (index/archive)
   ====================================================================== */

.grain-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.blog-hero {
  position: relative;
  z-index: 1;
  padding: 8rem 1.5rem 3rem;
  max-width: 80rem;
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.eyebrow-line {
  height: 1px;
  width: 4rem;
  background: linear-gradient(to right, #966919, #DF9A57);
  position: relative;
  overflow: hidden;
}

.eyebrow-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
  animation: shimmer 2.8s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.eyebrow-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #966919;
}

.blog-headline {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #1a1208;
  margin-top: 1.5rem;
}

.blog-headline .gold-italic {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  background: linear-gradient(to right, #966919, #DF9A57);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-intro {
  margin-top: 1.5rem;
  max-width: 600px;
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(42, 30, 16, 0.7);
}

/* Posts grid */
.posts-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(150, 105, 25, 0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 30px 60px -30px rgba(150,105,25,0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 30px 60px -20px rgba(150,105,25,0.25);
  text-decoration: none;
  color: inherit;
}

.post-card a {
  text-decoration: none;
  color: inherit;
}

.post-card a:hover {
  text-decoration: none;
  color: inherit;
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.post-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-thumbnail-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f8edd5 0%, #f2e2bf 100%);
  border-bottom: 1px solid rgba(150, 105, 25, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.post-thumbnail-fallback span {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 14, 'SOFT' 50;
  font-size: 1rem;
  color: rgba(42, 30, 16, 0.4);
  text-align: center;
}

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-date {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: 'opsz' 14, 'SOFT' 100;
  font-size: 0.8125rem;
  color: #966919;
}

.post-card .post-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 14, 'SOFT' 30;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1208 !important;
  line-height: 1.3;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none !important;
}

/* Issue 5: Ensure post card title links have no black underline */
.post-card .post-title a,
.post-card-link .post-title {
  color: #1a1208 !important;
  text-decoration: none !important;
  font-family: 'Fraunces', serif !important;
  transition: color 0.2s ease;
}

.post-card:hover .post-title,
.post-card .post-title a:hover,
.post-card-link:hover .post-title {
  color: #966919 !important;
  text-decoration: none !important;
}

.post-card .post-excerpt {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(42, 30, 16, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* ======================================================================
   5. Single Post
   ====================================================================== */

.single-post-header {
  position: relative;
  z-index: 1;
  padding: 8rem 1.5rem 2rem;
  max-width: 768px;
  margin: 0 auto;
}

.single-post-category {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.single-post-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #1a1208;
}

.single-post-meta {
  margin-top: 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  color: rgba(42, 30, 16, 0.55);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.single-post-meta .author {
  font-weight: 600;
  color: rgba(42, 30, 16, 0.75);
}

.single-post-meta .separator {
  color: rgba(150, 105, 25, 0.4);
}

.single-post-thumbnail {
  position: relative;
  z-index: 1;
  max-width: 768px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  line-height: 0; /* Remove any gap below inline image */
}

.single-post-thumbnail img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  border-radius: 12px;
  border: 1px solid rgba(150, 105, 25, 0.15);
  display: block;
  object-fit: cover;
}

/* Post content */
.single-post-content {
  position: relative;
  z-index: 1;
  max-width: 768px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  font-family: 'DM Sans', sans-serif;
}

.single-post-content h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #1a1208;
}

.single-post-content h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1a1208;
}

.single-post-content h4 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 14, 'SOFT' 30;
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1a1208;
}

.single-post-content p {
  font-size: 1.125rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  color: rgba(42, 30, 16, 0.75);
}

.single-post-content a {
  color: #966919;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-post-content a:hover {
  color: #DF9A57;
}

.single-post-content img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(150, 105, 25, 0.15);
  margin: 1.5rem 0;
}

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

.single-post-content li {
  font-size: 1.125rem;
  line-height: 1.85;
  margin-bottom: 0.5rem;
}

.single-post-content blockquote {
  border-left: 3px solid #966919;
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: 1.25rem;
  color: #1a1208;
}

/* CTA card after content */
.post-cta-card {
  position: relative;
  z-index: 1;
  max-width: 768px;
  margin: 4rem auto 0;
  padding: 0 1.5rem;
}

.post-cta-card-inner {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(150, 105, 25, 0.18);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 30px 60px -30px rgba(150,105,25,0.15);
}

.post-cta-card-inner .eyebrow {
  justify-content: center;
  margin-bottom: 1rem;
}

.post-cta-card-inner h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1208;
  margin-bottom: 0.75rem;
}

.post-cta-card-inner p {
  font-size: 1rem;
  color: rgba(42, 30, 16, 0.65);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Post navigation */
.post-navigation {
  position: relative;
  z-index: 1;
  max-width: 768px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.post-navigation a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #966919;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.post-navigation a:hover {
  color: #DF9A57;
  text-decoration: none;
}

.post-navigation .nav-next {
  margin-left: auto;
}

/* Newsletter */
.post-newsletter {
  position: relative;
  z-index: 1;
  max-width: 768px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.post-newsletter a {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: 1.125rem;
  color: #966919;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-newsletter a:hover {
  color: #DF9A57;
}

/* ======================================================================
   6. Pagination
   ====================================================================== */

.pagination {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem 4rem;
  max-width: 80rem;
  margin: 0 auto;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(150, 105, 25, 0.25);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #966919;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: linear-gradient(to right, #966919, #DF9A57);
  color: #fff;
  border-color: transparent;
  text-decoration: none;
}

.pagination .current {
  background: linear-gradient(to right, #966919, #DF9A57);
  color: #fff;
  border-color: transparent;
}

.pagination .dots {
  border: none;
  color: rgba(42, 30, 16, 0.4);
}

/* ======================================================================
   7. Cookie Consent Banner
   ====================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #283618;
  border-top: 1px solid #966919;
  font-family: 'DM Sans', sans-serif;
  transform: translateY(100%);
  transition: transform 0.35s ease-out;
}

.cookie-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.consent-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #fdf6ea;
  margin: 0;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.accept-btn {
  height: 2.25rem;
  padding: 0 1.25rem;
  background: linear-gradient(to right, #966919, #DF9A57);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(150, 105, 25, 0.4);
  transition: all 0.2s ease;
}

.accept-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(150, 105, 25, 0.5);
}

.reject-btn {
  background: none;
  border: none;
  color: #fdf6ea;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.reject-btn:hover {
  opacity: 0.8;
}

/* Issue 7: Manage preferences link */
.manage-btn {
  background: none;
  border: none;
  color: rgba(253, 246, 234, 0.6);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.manage-btn:hover {
  opacity: 0.8;
  color: rgba(253, 246, 234, 0.85);
}

/* Cookie preferences panel */
.cookie-prefs {
  display: none;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(253, 246, 234, 0.15);
  margin-top: 0.5rem;
}

.cookie-pref-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fdf6ea;
  font-size: 0.875rem;
  cursor: pointer;
}

.cookie-pref-item input[type="checkbox"] {
  accent-color: #966919;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.cookie-pref-item .pref-note {
  font-size: 0.75rem;
  color: rgba(253, 246, 234, 0.45);
  font-style: italic;
}

.cookie-save-btn {
  align-self: flex-start;
  margin-top: 0.25rem;
  height: 2rem;
  padding: 0 1rem;
  font-size: 0.8125rem;
}

/* Issue 6: Author avatar in single post meta */
.single-post-meta .author-avatar,
.author-avatar,
img.author-avatar {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  background: rgba(150, 105, 25, 0.1);
  padding: 2px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* ======================================================================
   8. Utility Classes
   ====================================================================== */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal;
}

.screen-reader-text:focus {
  background-color: #fdf6ea;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(150, 105, 25, 0.6);
  clip: auto;
  color: #1a1208;
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.gold-gradient-text {
  background: linear-gradient(to right, #966919, #DF9A57);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 2rem;
  background: linear-gradient(to right, #966919, #DF9A57);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px -4px rgba(150, 105, 25, 0.45);
  transition: all 0.2s ease;
}

.gold-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(150, 105, 25, 0.55);
  color: #fff;
  text-decoration: none;
}

.gold-cta svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.gold-cta:hover svg {
  transform: translateX(3px);
}

/* ======================================================================
   9. Elementor Compatibility & Legacy Cleanup
   ====================================================================== */

/* Let Elementor-styled posts retain their own styles */
.elementor-page .single-post-content {
  max-width: none;
  padding: 0;
}

/* ─── Hide legacy Elementor global widgets (Issues 1/2/3) ─── */

/* Hide Elementor footer sections */
.elementor-location-footer,
footer.elementor-location-footer,
div[data-elementor-type="footer"],
div[data-elementor-type="wp-footer"] {
  display: none !important;
}

/* Hide Elementor sidebar widgets */
.elementor-widget-sidebar,
aside.widget-area,
.sidebar,
#secondary,
div[data-elementor-type="sidebar"] {
  display: none !important;
}

/* Hide old Elementor newsletter / form widgets */
.elementor-widget-form[data-widget_type="form.default"] {
  display: none !important;
}

/* Hide any Elementor visual content that appears after our theme footer */
.site-footer ~ .elementor,
.site-footer ~ .elementor-element,
.site-footer ~ section.elementor-section,
.site-footer ~ div.elementor-widget-wrap,
.site-footer ~ div[data-elementor-type] {
  display: none !important;
}

/* Hide Elementor content rendered BEFORE our footer (within body flow) */
body:not(.elementor-editor-active) .elementor-location-footer,
body:not(.elementor-editor-active) .elementor-widget-container .elementor-widget-form {
  display: none !important;
}

/* ======================================================================
   10. WordPress Core Overrides
   ====================================================================== */

/* WordPress image alignment */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  max-width: calc(768px + 4rem);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  width: 100vw;
}

/* WordPress galleries */
.wp-block-gallery {
  margin: 2rem 0;
}

.wp-block-image img {
  border-radius: 12px;
}

/* WordPress captions */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: rgba(42, 30, 16, 0.55);
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

/* ======================================================================
   11. Responsive
   ====================================================================== */

@media (min-width: 640px) {
  .nav-inner {
    padding: 1.25rem 2.5rem;
  }

  .site-header .logo {
    height: 4rem;
  }

  .blog-hero {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .blog-headline {
    font-size: 3rem;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .single-post-header {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .single-post-title {
    font-size: 3rem;
  }

  .single-post-thumbnail {
    padding: 0 2.5rem;
  }

  .single-post-content {
    padding: 0 2.5rem;
  }

  .post-cta-card {
    padding: 0 2.5rem;
  }

  .post-navigation {
    padding: 0 2.5rem;
  }

  .post-newsletter {
    padding: 0 2.5rem;
  }

  .pagination {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .footer-inner {
    padding: 5rem 2.5rem;
  }

  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-signature-text {
    font-size: 1.5rem;
  }

  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
  }
}

@media (min-width: 768px) {
  .posts-grid {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .nav-inner {
    padding: 1.25rem 3rem;
  }

  .nav-links {
    display: flex;
  }

  .cta-button {
    display: inline-flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .mobile-drawer {
    display: none !important;
  }

  .blog-hero {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .blog-headline {
    font-size: 3.5rem;
  }

  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .single-post-title {
    font-size: 3.5rem;
  }

  .single-post-content h2 {
    font-size: 2.25rem;
  }

  .single-post-content h3 {
    font-size: 1.5rem;
  }

  .footer-inner {
    padding: 5rem 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 4fr;
  }

  .pagination {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
