:root {
  --bg-color: #F8F7F4;
  --text-color: #333333;
  --accent-color: #8A9A5B;
  --subtle-gray: #aaa;
  --font-body: "Inter", sans-serif;
  --font-heading: "Lora", serif;
}

html[data-theme=dark] {
  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --accent-color: #a3b86c;
}
html[data-theme=dark] .item-card {
  border: 1px solid #333;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 18px;
}

.container {
  max-width: 750px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s ease;
}

a:hover {
  border-bottom: 1px solid var(--accent-color);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4rem;
}
.site-header .site-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-color);
  border: none;
}
.site-header .site-title-text {
  font-family: "Homemade Apple", cursive;
  font-size: 1.8rem;
  position: relative;
  top: 4px;
}
.site-header nav a {
  margin-left: 20px;
  color: var(--text-color);
}

.site-footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--subtle-gray);
}

/* --- Text Alignment Utility --- */
.text-center {
  text-align: center;
  margin: 0 4rem;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.post-meta, .item-meta {
  color: var(--subtle-gray);
  font-size: 0.9rem;
  margin-top: -1rem;
  margin-bottom: 1rem;
}

.post-list .post-item {
  margin-bottom: 3rem;
}
.post-list .post-item h2 a {
  color: var(--text-color);
}

.post-content {
  margin-top: 2rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 600px) {
  .item-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.item-card {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.homepage-art {
  margin-bottom: 4rem;
}
.homepage-art img {
  width: 100%;
  border-radius: 4px;
  height: auto;
}

/* --- Header Controls & Responsive Nav --- */
.site-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Theme Switcher */
.theme-switcher {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 32px;
  height: 32px;
}
.theme-switcher .moon, .theme-switcher .sun {
  display: none;
  stroke: var(--text-color);
}

html[data-theme=light] .moon {
  display: block;
}

html[data-theme=dark] .sun {
  display: block;
}

/* Hamburger Menu (Mobile Only) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  width: 2rem;
  height: 0.25rem;
  background: var(--text-color);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* --- Mobile View (< 768px) --- */
@media (max-width: 768px) {
  .site-header {
    align-items: center;
  }
  .hamburger {
    display: flex;
    z-index: 20;
  }
  nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    z-index: 10;
  }
  nav a {
    font-size: 2rem;
    padding: 2rem 0;
    color: var(--text-color);
  }
  nav.nav-open {
    transform: translateX(0);
  }
}
.item-card-link {
  display: block;
  text-decoration: none;
  color: var(--text-color);
}
.item-card-link:hover, .item-card-link:focus {
  color: var(--text-color);
  border: none;
}

.item-card {
  height: 100%;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  transform-style: preserve-3d;
}

.item-card-link:hover .item-card,
.item-card-link:focus .item-card {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.item-quote {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
  margin: 0 0 1rem 0;
}

:root {
  --bg-color-rgb: 248, 247, 244;
}

html[data-theme=dark] {
  --bg-color-rgb: 26, 26, 26;
}

html[data-theme=dark] .item-card-link:hover .item-card,
html[data-theme=dark] .item-card-link:focus .item-card {
  box-shadow: 0 0 20px -5px var(--accent-color);
}

.book-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.book-card h3 {
  margin-bottom: 0.25rem;
}
.book-card .item-meta {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.book-card .item-quote {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
  margin: 0;
}

/* --- Book Page Hero Layout --- */
.book-hero {
  position: relative;
  width: 100%;
  height: 300px; /* Fixed height for the hero section */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 3rem; /* Space between hero and article content */
  border-radius: 4px;
  overflow: hidden;
}

.book-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover; /* Cover the whole area */
  background-position: center center; /* Center the image */
  /* Add a subtle filter to desaturate and darken the image, so text is readable */
  filter: saturate(0.5) brightness(0.7);
}

.book-hero-overlay {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Sits on top of the image */
  z-index: 2;
  padding: 20px;
  color: #ffffff; /* White text for the quote */
}

.hero-quote {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 500;
  max-width: 80%;
  margin: 0 auto;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Drop shadow for readability */
  border: none; /* Remove any default blockquote borders */
}

/* On smaller screens, make the hero a bit smaller */
@media (max-width: 768px) {
  .book-hero {
    height: 250px;
  }
  .hero-quote {
    font-size: 1.5rem;
  }
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  font-size: 1.1rem;
}

.pagination a {
  color: var(--accent-color);
  text-decoration: underline;
  padding: 0.2em 0.7em;
  border-radius: 4px;
  transition: background 0.2s;
}

.pagination a:hover {
  background: var(--subtle-gray);
  color: #fff;
}

#search-input {
  font-size: 1rem;
  border: 1px solid var(--subtle-gray);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.site-logo {
  width: 32px;
  height: 32px;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.meditator-hero {
  background-color: #F8F7F4;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

html[data-theme=dark] .meditator-hero {
  border: 1px solid #333;
}

.meditator-image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: 250px;
}

.levitating-image {
  animation: levitate 4s ease-in-out infinite;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  z-index: 2;
}

.levitating-shadow {
  width: 70%;
  height: 10px;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 1;
  animation: shadow-pulse 4s ease-in-out infinite;
}

/* 
  The Keyframes for the Levitation Animation
*/
@keyframes levitate {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}
/*
  The Keyframes for the Shadow Animation
  It gets smaller and lighter when the image is up,
  and larger and darker when the image is down.
*/
@keyframes shadow-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.site-logo-container {
  position: relative;
  width: 32px;
  height: 32px;
}

.site-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease-in-out;
}

.logo-light {
  opacity: 0;
}

html[data-theme=dark] .logo-dark {
  opacity: 0;
}
html[data-theme=dark] .logo-light {
  opacity: 1;
}

.movie-card {
  position: relative; /* This is the positioning frame for all child elements */
  height: 350px; /* The fixed height of our "window" */
  padding: 0; /* Remove padding so the image and overlays can fill it */
  overflow: hidden; /* This is what "crops" the oversized image */
  display: flex; /* Use flexbox to easily position the text at the bottom */
  align-items: flex-end;
}

.movie-poster {
  display: block;
  width: 100%; /* Make the image take up the full width of the grid column */
  height: auto; /* Height adjusts automatically to maintain aspect ratio */
  transition: transform 0.4s ease;
}

/* On hover, slightly zoom the centered image */
.item-card-link:hover .movie-poster {
  transform: scale(1.05);
}

/* The gradient overlay that makes text readable */
.card-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Sits above the poster, below the text */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.85) 100%);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.item-card-link:hover .card-gradient-overlay {
  opacity: 1;
}

/* The text information block */
.movie-info {
  position: absolute;
  z-index: 2; /* Sits on top of everything else */
  width: 100%;
  padding: 1.25rem;
  color: #fff;
}
.movie-info h3, .movie-info p {
  margin: 0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8); /* Strong shadow for readability */
}
.movie-info h3 {
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Vigyan Bhairav Tantra Styles
   ========================================================================== */
/* --- Index Page Styling --- */
.vbt-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 2rem;
}

html[data-theme=dark] .vbt-header {
  border-bottom-color: #333;
}

.vbt-header .subtitle {
  font-size: 1.2rem;
  color: var(--subtle-gray);
  margin-top: -1rem;
}

.meditation-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meditation-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border: 1px solid #eee;
  border-radius: 4px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

html[data-theme=dark] .meditation-list-item {
  border-color: #333;
}

.meditation-list-item:hover {
  background-color: var(--bg-color); /* Use a subtle background on hover */
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.meditation-list-item .arrow {
  color: var(--subtle-gray);
  transition: transform 0.3s ease;
}

.meditation-list-item:hover .arrow {
  transform: translateX(5px);
  color: var(--accent-color);
}

/* --- Individual Meditation Page Typography Fix --- */
/* Target content specifically inside the .post-content container */
/* This increases specificity and solves the font size issue. */
.post-content h3 {
  font-size: 1.8rem; /* Ensure H3 is large */
  font-family: var(--font-heading);
  color: var(--accent-color);
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.post-content h5 {
  font-size: 1.2rem; /* Ensure H5 is smaller than H3 but larger than P */
  font-weight: 600; /* Bolder than normal text */
  text-transform: uppercase; /* A nice stylistic touch for subheadings */
  letter-spacing: 1px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

html[data-theme=dark] .post-content h5 {
  border-bottom-color: #333;
}

/* Ensure paragraph text is the default size */
.post-content p {
  font-size: 1.1rem; /* Or whatever your base font size is */
  line-height: 1.8;
}

.meditation-title-block {
  display: flex;
  flex-direction: column; /* Stack the number and method vertically */
  align-items: flex-start; /* Align them to the left */
}

/* Style for the "Meditation #" part */
.meditation-number {
  font-size: 0.8rem; /* Smaller font size */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--subtle-gray); /* Use the subtle gray color */
  margin-bottom: 0.25rem; /* A little space between the two lines */
}

/* Style forr the main method/title part */
.meditation-method {
  font-size: 1.1rem; /* The main font size for the title */
  font-weight: 500;
  color: var(--text-color); /* Use the main text color */
}

/* A nice touch: on hover, make the number match the accent color */
.meditation-list-item:hover .meditation-number {
  color: var(--accent-color);
}

.vbt-introduction {
  margin: 0 auto 3rem auto;
  padding: 2rem;
  max-width: 90%;
  text-align: center;
  line-height: 1.8;
  background-color: var(--bg-color);
  border: 1px solid #eee;
  border-radius: 8px;
}
.vbt-introduction p {
  margin-bottom: 1.5rem;
}
.vbt-introduction p:last-child {
  margin-bottom: 0;
}

html[data-theme=dark] .vbt-introduction {
  border-color: #333;
}

.vbt-introduction .source-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--subtle-gray);
  margin-top: 2rem;
}

/* ==========================================================================
   404 Page Not Found Styles - REVISED
   ========================================================================== */
.not-found-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 250px);
  justify-content: center;
  padding: 2rem 0;
}

.not-found-container .enso-container {
  margin-bottom: 3rem;
  opacity: 0.6;
}
.not-found-container .enso-container .site-logo-container {
  width: 150px;
  height: 150px;
}

.not-found-container h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.not-found-guidance {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 3rem;
}

.not-found-message {
  font-size: 1.1rem;
  max-width: 450px;
  line-height: 1.7;
  color: var(--subtle-gray);
  margin-bottom: 3rem;
}

.not-found-links {
  display: flex;
  gap: 1rem;
}

.not-found-links .button {
  border-color: var(--subtle-gray);
  color: var(--subtle-gray);
}
.not-found-links .button:hover {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  color: #fff;
}

html[data-theme=dark] .not-found-links .button:hover {
  color: #1a1a1a;
}

/* --- In-Content Image Styling --- */
.post-content img {
  display: block;
  margin: 3rem auto;
  max-width: 85%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

html[data-theme=dark] .post-content img {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.social-links a {
  color: var(--subtle-gray);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: var(--accent-color);
  border-bottom: 1px solid transparent;
}

/* ==========================================================================
   Scroll to Top Button Styles
   ========================================================================== */
.scroll-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 45px;
  height: 45px;
  background-color: var(--text-color);
  color: var(--bg-color);
  border: none;
  border-radius: 50%;
  text-align: center;
  font-size: 1.5rem;
  line-height: 45px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.scroll-to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
  border-bottom: none;
}

/* ==========================================================================
   Tags & Related Posts Styles
   ========================================================================== */
/* --- Tag Pills --- */
.tag-pill {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.3em 0.8em;
  background-color: var(--bg-color);
  border: 1px solid #ddd;
  border-radius: 999px; /* Pill shape */
  color: var(--subtle-gray);
  text-decoration: none;
  margin: 0.2rem;
  transition: all 0.2s ease;
}
.tag-pill span {
  color: var(--subtle-gray);
  margin-left: 0.3rem;
}
.tag-pill:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-1px);
}
.tag-pill:hover span {
  color: var(--accent-color);
}

html[data-theme=dark] .tag-pill {
  border-color: #444;
}

/* --- Tag Section on Post Page --- */
.post-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

html[data-theme=dark] .post-tags {
  border-top-color: #333;
}

/* --- Related Posts Section --- */
.related-posts {
  margin-top: 2rem;
}
.related-posts h3 {
  margin-bottom: 1.5rem;
}
.related-posts ul {
  list-style: none;
  padding: 0;
}
.related-posts li a {
  display: block;
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.related-posts li a:hover {
  border-color: #ddd;
  background: var(--bg-color);
}
.related-posts .related-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}
.related-posts .related-meta {
  display: block;
  font-size: 0.9rem;
  color: var(--subtle-gray);
  margin-top: 0.25rem;
}

html[data-theme=dark] .related-posts li a:hover {
  border-color: #444;
}

/* --- Tag Archive Page Header --- */
.tag-page-header {
  text-align: center;
  margin-bottom: 3rem;
}
.tag-page-header .tag-label {
  color: var(--subtle-gray);
}
.tag-page-header h1 {
  margin-top: 0;
}

/* --- Tag Cloud on /tags/ page --- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

/* ==========================================================================
   Featured Quote Block Style - REFINED & SUBTLE
   ========================================================================== */
/* This is the default style for any blockquote (>) in a post */
.post-content blockquote {
  margin: 2rem 0;
  color: var(--subtle-gray);
  font-style: italic;
}

/* 
  This is our special style for quotes marked with {:.featured-quote}.
  It overrides the default style above.
*/
.post-content .featured-quote {
  border-left: 3px solid var(--accent-color); /* Use the accent color for the border */
  background-color: var(--bg-color); /* A subtle background to lift it off the page */
  padding: 1.5rem 2rem; /* Give it some inner spacing */
  margin: 2.5rem 0; /* Vertical space to separate it from text */
  border-radius: 4px; /* Softly rounded corners */
  font-family: var(--font-body); /* Use the main body font for consistency */
  font-size: 1.1rem; /* Slightly larger than normal text, but not huge */
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-color);
  /* A very subtle box shadow for depth */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* In dark mode, the background should be slightly different from the page bg */
html[data-theme=dark] .post-content .featured-quote {
  background-color: #2a2a2a; /* A slightly lighter dark gray */
  box-shadow: none;
}

/* Ensure paragraph inside the quote doesn't have extra bottom margin */
.post-content .featured-quote p {
  margin-bottom: 0;
}

/*# sourceMappingURL=style.css.map */