/* CSS Custom Properties for Color Variables */
:root {
  /* Light mode colors */
  --text-color: #000;
  --text-secondary: #333;
  --text-muted: #666;
  --text-light: #999;
  --bg-color: #fff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #f0f0f0;
  --bg-hover: #f1f1f1;
  --border-color: #ddd;
  --border-light: #eee;
  /* --accent-color: #aa0099; */
  --accent-color: hsl(27, 100%, 35%);
  --link-color: #007acc;
  --shadow-light: rgba(255, 255, 255, 0.6);
  --shadow-dark: rgba(0, 0, 0, 0.8);
  --overlay-light: rgba(255, 255, 255, 0.2);
  --overlay-dark: rgba(0, 0, 0, 0.2);
  --overlay-strong: rgba(0, 0, 0, 0.4);
  --caption-text: rgba(255, 255, 255, 1);
  --caption-shadow: rgba(0, 0, 0, 0.6);
  /* Text overlay colors for maximum legibility over images */
  --overlay-text: #ffffff;
  --overlay-text-shadow: rgba(0, 0, 0, 0.9);
}

/* Dark mode colors - system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text-color: #e0e0e0;
    --text-secondary: #ccc;
    --text-muted: #aaa;
    --text-light: #888;
    --bg-color: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #333;
    --bg-hover: #444;
    --border-color: #444;
    --border-light: #333;
    /* --accent-color: #ff66cc; */
    --accent-color: hsl(27, 100%, 60%);
    --link-color: #66b3ff;
    --shadow-light: rgba(0, 0, 0, 0.6);
    --shadow-dark: rgba(255, 255, 255, 0.8);
    --overlay-light: rgba(0, 0, 0, 0.2);
    --overlay-dark: rgba(255, 255, 255, 0.2);
    --overlay-strong: rgba(255, 255, 255, 0.4);
    --caption-text: rgba(220, 220, 220, 1);
    --caption-shadow: rgba(0, 0, 0, 0.8);
    /* Text overlay colors for maximum legibility over images */
    --overlay-text: #1a1a1a;
    --overlay-text-shadow: rgba(255, 255, 255, 0.9);
  }
}

/* Force dark mode when data-theme="dark" */
[data-theme="dark"] {
  --text-color: #e0e0e0;
  --text-secondary: #ccc;
  --text-muted: #aaa;
  --text-light: #888;
  --bg-color: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-tertiary: #333;
  --bg-hover: #444;
  --border-color: #444;
  --border-light: #333;
  /* --accent-color: #ff66cc; */
  --accent-color: hsl(27, 100%, 60%);
  --link-color: #66b3ff;
  --shadow-light: rgba(0, 0, 0, 0.6);
  --shadow-dark: rgba(255, 255, 255, 0.8);
  --overlay-light: rgba(0, 0, 0, 0.2);
  --overlay-dark: rgba(255, 255, 255, 0.2);
  --overlay-strong: rgba(255, 255, 255, 0.4);
  --caption-text: rgba(180, 180, 180, 1);
  --caption-shadow: rgba(0, 0, 0, 0.8);
  /* Text overlay colors for maximum legibility over images */
  --overlay-text: #1a1a1a;
  --overlay-text-shadow: rgba(255, 255, 255, 0.9);
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  font-size: 1.2rem;
  vertical-align: middle;
}

.theme-toggle:hover {
  background-color: var(--bg-hover);
}

/* Navigation theme toggle - specific styling */
.nav-theme-toggle {
  margin-left: 1rem;
  border-bottom: 3px solid transparent;
  padding: 0.25rem;
}

.nav-theme-toggle:hover {
  /* font-weight: bold; */
  background-color: var(--bg-hover);
  color: var(--text-color);
}

.theme-toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Animate icon on theme change */
[data-theme="dark"] .theme-toggle-icon {
  transform: rotate(180deg);
}

/* Update body background */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Banner layout - ensure vertical stacking, not columns */
.banner-layout {
  display: block !important;
  flex-direction: column !important;
}

.banner-layout .post-content,
.banner-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
}

/* Two-column featured image layout */

html {
  font-family: "Special Elite", monospace;
}

/* Site logo styling */
.site-logo,
.site-logo-light,
.site-logo-dark {
  height: 2.5rem;
  width: auto;
  max-width: 200px;
  vertical-align: middle;
  display: inline-block;
  border: none;
  transition: transform 0.2s ease;
}

/* Logo bounce animation on hover */
.site-logo:hover,
.site-logo-light:hover,
.site-logo-dark:hover {
  animation: realistic-bounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes realistic-bounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
  50% { transform: translateY(-5px); }
  70% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* Logo theme switching */
.site-logo-dark {
  display: none;
}

[data-theme="dark"] .site-logo-light {
  display: none;
}

[data-theme="dark"] .site-logo-dark {
  display: inline-block;
}

/* Also handle system dark mode preference when no manual theme is set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-logo-light {
    display: none;
  }
  
  :root:not([data-theme="light"]) .site-logo-dark {
    display: inline-block;
  }
}

/* Ensure logo link has proper spacing */
header .main {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  justify-content: space-between;
  width: 100%;
}

/* Logo link - just the site title */
header .main > a {
  display: inline-block;
  vertical-align: baseline;
}

/* Theme toggle positioned right next to logo */
.logo-theme-toggle {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 0;
}

/* Logo theme toggle - positioned directly next to logo */
.logo-theme-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  padding: 0.25rem;
  border-radius: 4px;
  border-bottom: none;
  vertical-align: baseline;
}

.logo-theme-toggle:hover {
  background-color: var(--bg-hover);
  color: var(--text-color);
  animation: menu-bounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Remove hover background from logo link */
header .main a:hover {
  background-color: transparent !important;
  color: inherit !important;
}

.post-featured-columns {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
}
.featured-image-col {
  flex: 1 1 50%;
  position: relative;
}
.featured-text-col {
  flex: 1 1 50%;
}

/* Ensure post footer is outside columns and full width */
.columns-layout .post-footer {
  width: 100%;
  display: block;
  clear: both;
}

/* Ensure only image and text columns are flexed */
.post-featured-columns > * {
  flex: 1 1 50%;
}

/* Override any flex on tags container */
.post-footer .post-tags {
  display: block !important;
  width: 100% !important;
  flex: none !important;
}

/* Ensure the columns layout container doesn't flex its direct children incorrectly */
.columns-layout {
  display: block;
}

.columns-layout > .title,
.columns-layout > .post-footer {
  display: block;
  width: 100%;
  flex: none;
}
body,
.post-content,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  text-shadow: 1px 1px 2px var(--shadow-light);
}

.post-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--background-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--image-opacity, 1);
  filter: blur(var(--image-blur, 2px));
  z-index: -1;
  display: block;
}

/* Content positioning */
.post-container .post-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  display: block;
  padding: 1rem 2rem 2rem 2rem;
  box-sizing: border-box;
}

/* Universal Image Overlay Text Styling - ONLY for banner/hero layouts */
/* Where text is actually displayed over background images */

/* Banner titles over images */
.post-banner .title h1,
.post-hero .title h1 {
  color: var(--overlay-text) !important;
  text-shadow: 
    -2px -2px 0 var(--overlay-text-shadow),
    2px -2px 0 var(--overlay-text-shadow),
    -2px 2px 0 var(--overlay-text-shadow),
    2px 2px 0 var(--overlay-text-shadow),
    0 0 8px var(--overlay-text-shadow) !important;
}

/* Banner meta (author, date) over images */
.post-banner .title .meta,
.post-hero .title .meta,
.post-banner .title .author,
.post-hero .title .author,
.post-banner .author,
.post-hero .author,
.post-banner .meta .author,
.post-hero .meta .author {
  color: var(--overlay-text) !important;
  text-shadow: 
    -1px -1px 0 var(--overlay-text-shadow),
    1px -1px 0 var(--overlay-text-shadow),
    -1px 1px 0 var(--overlay-text-shadow),
    1px 1px 0 var(--overlay-text-shadow),
    0 0 4px var(--overlay-text-shadow) !important;
}

/* Header prefixes ONLY for banner/hero layouts */
.post-banner h1::before,
.post-banner h2::before,
.post-banner h3::before,
.post-hero h1::before,
.post-hero h2::before,
.post-hero h3::before {
  color: var(--accent-color) !important;
  text-shadow: 
    -1px -1px 0 var(--overlay-text-shadow),
    1px -1px 0 var(--overlay-text-shadow),
    -1px 1px 0 var(--overlay-text-shadow),
    1px 1px 0 var(--overlay-text-shadow) !important;
}

/* Horizontal rules ONLY for banner/hero layouts */
.post-banner hr,
.post-hero hr {
  border-top: 3px dotted var(--overlay-text) !important;
  filter: drop-shadow(0 0 2px var(--overlay-text-shadow));
}

/* Background Image Styling */
.post-background {
  background-size: cover;
  background-position: center;
  width: 100%;
}

/* Banner Image Styling */
.post-banner {
  position: relative;
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.post-hero,
.post-featured {
  position: relative;
}

.post-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* set soft-edge variable to 1rem */

.soft-edge {
  /*fade out edges effect */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, black 2rem black calc(100% - 2rem), transparent 100%),
    linear-gradient(to bottom, transparent 0, black 2rem black calc(100% - 2rem), transparent 100%);
  -webkit-mask-composite: intersect;
  mask-image:
    linear-gradient(to right, transparent 0, black 2rem black calc(100% - 2rem), transparent 100%),
    linear-gradient(to bottom, transparent 0, black 2rem black calc(100% - 2rem), transparent 100%);
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.post-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-dark);
  z-index: 2;
}

.post-banner .title {
  position: relative;
  z-index: 3;
  text-align: center;
  line-height: 1;
  padding: 2rem;
}

.post-banner .title h1 {
  font-size: 3rem;
  margin: 0;
}

.post-banner .title .meta {
  margin-top: 1rem;
}

/* Hero Image Styling */
.post-hero {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  max-height: 25rem;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Featured Image Styling */
.post-featured {
  position: relative;
  display: inline-block;
  margin: 20px auto;
  max-width: 100%;
  overflow: hidden;
}

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

/* Image Caption Styling */
.image-caption {
  /* font-size: 2rem; */
  color: var(--caption-text);
  background: var(--overlay-strong);
  text-align: center;
  margin-top: 8px;
  font-style: normal;
  font-family: "Fira Sans", sans-serif;
}

/* Banner image caption - positioned in bottom-right corner */
.post-banner .image-caption,
.post-hero .image-caption,
.post-featured .image-caption,
.featured-image-col .image-caption {
  position: absolute;
  bottom: 0.15rem;
  right: 0.15rem;
  z-index: 4;
  color: var(--caption-text);
  text-shadow: 1px 1px 2px var(--caption-shadow);
  background: var(--overlay-strong);
  padding: 0.01rem 0.35rem;
  border-radius: 4px;
  font-size: 0.6rem;
  text-align: right;
  font-style: normal;
  max-width: calc(100% - 1.5rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

/* Collections Page Styles */
.collections-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.list-author,
.list-date {
  font-family: "Special Elite", monospace;
  font-size: 0.8rem;
  font-style: italic;
}

.author-collection {
  margin-bottom: 4rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 2rem;
}

.author-collection:last-child {
  border-bottom: none;
}

.author-name {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  text-align: center;
}

.author-name a {
  text-decoration: none;
  color: inherit;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.author-name a:hover {
  border-bottom-color: var(--link-color);
}

.poems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.poem-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--bg-color);
}

.poem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.poem-image {
  height: 200px;
  overflow: hidden;
}

.poem-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poem-content {
  padding: 1.5rem;
}

.poem-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.poem-title a {
  text-decoration: none;
  color: var(--text-secondary);
}

.poem-title a:hover {
  color: var(--link-color);
}

.poem-year {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.poem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.poem-tags .tag {
  background: var(--bg-tertiary);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.poem-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Preserve line breaks in verse blocks - more specific targeting */
.verse,
div.verse,
.org-verse,
pre.verse {
  white-space: pre-line !important;
  font-family: "EB Garamond", serif;
  background: none;
  border: none;
  padding: 0;
  margin: 1.5rem 0;
  line-height: 1.6;
  display: block;
}

/* Also target any div that contains verse content */
.post-content .verse {
  white-space: pre-line !important;
}

/* Fallback for all divs with verse class */
div[class*="verse"] {
  white-space: pre-line !important;
}

/* List view items with background images */
.poem-item,
.post-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  overflow: hidden;
}

/* Remove top margin from first heading in list items */
.poem-item h2:first-child,
.post-item h2:first-child,
.poem-content-preview h2:first-child,
.post-content-preview h2:first-child {
  margin-top: 0;
}

/* Read more button styling */
.read-more-container {
  margin-top: 1rem;
  text-align: right;
}

.read-more-btn {
  display: inline-block;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  font-family: "Special Elite", monospace;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 3px solid var(--maincolor);
}

.read-more-btn:hover {
  color: var(--text-color) !important;
  background-color: transparent !important;
  border-bottom-color: var(--maincolor) !important;
  animation: menu-bounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Background image pseudo-element for list items */
.poem-item::before,
.post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--background-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--image-opacity, 0.1);
  filter: blur(var(--image-blur, 0px));
  z-index: 0;
  pointer-events: none;
}

/* Ensure content is above background */
.poem-content-preview,
.post-content-preview {
  position: relative;
  z-index: 1;
}

/* Hide the separate image preview divs */
.poem-image-preview,
.post-image-preview {
  display: none;
}

/* Hover effects for list items */
.poem-item:hover,
.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Navigation dropdown styles */
nav {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 0.9rem;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  margin-right: 0;
}

nav > a,
.nav-dropdown-btn {
   background: none;
   border: none;
   color: inherit;
   font-family: "Special Elite", monospace;
   cursor: pointer;
   padding: 0.1rem 0.2rem;
   margin: 0;
   border-bottom: 3px solid var(--maincolor);
   text-decoration: none;
   display: inline-block;
   vertical-align: baseline;
   line-height: normal;
}
 
nav > a:hover,
.nav-dropdown-btn:hover {
  /* font-weight: bold; */
  background-color: var(--bg-hover);
  color: var(--text-color);
  animation: menu-bounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Menu bounce animation - shorter and lower than logo bounce */
@keyframes menu-bounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
  50% { transform: translateY(-2.5px); }
  70% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* Universal header interactive element styling */
.header-interactive {
  border-bottom: 3px solid var(--maincolor) !important;
  transition: all 0.3s ease;
}

.header-interactive:hover {
  background-color: var(--bg-hover) !important;
  color: var(--text-color) !important;
  animation: menu-bounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* Specific styling for article title links inside h2 tags */
h2 .header-interactive,
h2 a.header-interactive {
  display: inline-block !important;
  border-bottom: 3px solid var(--maincolor) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

h2 .header-interactive:hover,
h2 a.header-interactive:hover {
  background-color: var(--bg-hover) !important;
  color: var(--text-color) !important;
  animation: menu-bounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.dropdown-arrow {
  font-size: 0.8em;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Initial hidden state for dropdown menu */
.nav-dropdown-menu {
  display: block;
  white-space: nowrap;
  min-width: max-content;
  opacity: 0.7;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
   background-color: var(--bg-color);
   list-style: none;
   padding: 0.2rem 0 0.5rem 2rem;
   /* padding-left: 1.5rem; */
   margin: 0;
   z-index: 1000;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Also show arrow rotation on hover */
.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
  display: block;
  line-height: normal;
}

.nav-dropdown-menu a {
  display: inline-block;
  vertical-align: middle;
  padding: 0.25rem 0.75rem;
  line-height: normal;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-size: 0.9em;
  line-height: 1.2;
  white-space: nowrap;
  border-bottom: none !important;
}

.nav-dropdown-menu a:hover {
  background-color: var(--bg-hover);
}

/* Responsive positioning */
@media screen and (max-width: 600px) {
  .nav-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 140px;
  }
}

/* Position dropdowns near the right edge */
.nav-dropdown:nth-last-child(-n+2) .nav-dropdown-menu {
  right: 0;
  left: auto;
}

/* Add proper spacing between all nav items */
nav a, nav .nav-dropdown {
  margin-right: 1rem;
}

/* Dark mode styles - now handled by CSS variables above */
@media (prefers-color-scheme: dark) {
  .nav-dropdown-menu {
    background-color: var(--bg-secondary);
  }
  
  .nav-dropdown-menu a {
    color: var(--text-color);
  }
  
  .nav-dropdown-menu a:hover {
    background-color: var(--bg-hover);
  }
}

.site-logo-text {
  font-family: "Special Elite", monospace;
  font-size: 1.5rem;
  text-decoration: none;
  vertical-align: middle;
}

/* Orange period in site title */
.site-logo-text .orange-period {
  color: var(--maincolor);
}

.site-logo-text:hover {
  animation: menu-bounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Responsive Navigation / Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  margin-left: auto;
}

/* Ensure header main has proper flex layout */
header .main {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.burger-line {
  width: 2rem;
  height: 0.25rem;
  background: var(--text-color);
  border-radius: 0.125rem;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.burger-menu.open .burger-line:first-child {
  transform: rotate(45deg);
}

.burger-menu.open .burger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.burger-menu.open .burger-line:last-child {
  transform: rotate(-45deg);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .burger-menu {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.2rem;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  nav.open {
    transform: translateX(0);
  }
  
  nav > a,
  .nav-dropdown-btn {
    padding: 1rem 2rem;
    margin: 0;
    text-align: center;
    width: 80%;
    justify-content: center;
    border-bottom: 3px solid var(--maincolor);
  }
  
  .nav-dropdown {
    width: 80%;
    text-align: center;
  }
  
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--bg-secondary);
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .nav-dropdown-menu li {
    margin: 0.5rem 0;
  }
  
  .nav-dropdown-menu a {
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
    display: block;
  }
  
  /* Ensure dropdown is always visible on mobile when parent is clicked */
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  
  /* Header adjustments for mobile */
  header .main {
    justify-content: space-between;
    align-items: center;
  }
  
  /* Hide original nav items spacing on mobile */
  nav a,
  nav .nav-dropdown {
    margin-right: 0;
  }
}

/* Font Family Overrides */
/* Override theme's monospace fonts with Special Elite */
html {
  font-family: 'Special Elite', monospace !important;
}

.callout p {
  font-family: 'Special Elite', monospace !important;
}

/* Override theme's non-monospace fonts with EB Garamond */
p {
  font-family: 'Fira Sans', serif !important;
}

/* Meta/Author/Date Color Overrides */
/* The theme has hardcoded #999 for .meta, override with our color variables */
.meta,
.author,
.list-author,
.list-date {
  color: var(--text-muted) !important;
}

/* Draft labels */
.draft-label {
  color: var(--accent-color) !important;
}

/* Ensure hero images have proper borders on all sides */
.post-hero img,
.post-banner img,
.post-featured img,
.featured-image-col img {
  border: 3px solid var(--border-color) !important;
  box-sizing: border-box !important;
  display: block !important;
}

code {
  background-color: var(--overlay-dark);
}
