/*
Theme Name: Avyaktaha
Theme URI: https://avyaktaha.com
Author: Avyaktaha
Author URI: https://avyaktaha.com
Description: A quiet space for inward reflection. Rooted in silence, held with care. Custom WordPress theme for Avyaktaha — supporting blogs, YouTube embeds, podcasts, text-to-speech narration, and English/Kannada language switching.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: Private
Text Domain: avyaktaha
Tags: blog, minimalist, spiritual, serif, custom-menu, featured-images, one-column, two-columns, translation-ready
*/

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --clr-bg:       #ffffff;
  --clr-bg-alt:   #f7f6f3;
  --clr-bg-dark:  #1a1a18;
  --clr-ink:      #1a1a18;
  --clr-stone:    #555452;
  --clr-ash:      #999896;
  --clr-border:   #e4e2dd;
  --clr-accent:   #1a1a18;
  --ff-body:      'Figtree', -apple-system, sans-serif;
  --ff-mono:      'IBM Plex Mono', monospace;
  --ff-serif:     Georgia, 'Times New Roman', serif;
  --transition:   0.35s ease;
  --radius:       4px;
  --max-w:        1200px;
  --pad-x:        40px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--clr-ink);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--ff-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--clr-ink);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }
blockquote {
  border-left: 3px solid var(--clr-border);
  padding: 4px 0 4px 20px;
  font-style: italic;
  color: var(--clr-stone);
  margin: 1.5em 0;
}

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: 72px 0; }
.section--alt { background: var(--clr-bg-alt); padding: 72px 0; }
.section--dark { background: var(--clr-bg-dark); color: #fff; padding: 72px 0; }

/* ============================================================
   TOP BAR
============================================================ */
.top-bar {
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  padding: 8px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar__social { display: flex; gap: 14px; align-items: center; }
.top-bar__social a {
  display: flex;
  align-items: center;
  color: var(--clr-stone);
  transition: color var(--transition);
}
.top-bar__social a:hover { color: var(--clr-ink); opacity: 1; }
.top-bar__social svg { width: 16px; height: 16px; fill: currentColor; }
.top-bar__email {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--clr-stone);
  letter-spacing: 0.02em;
}
.top-bar__email a { color: inherit; }
.top-bar__email a:hover { color: var(--clr-ink); opacity: 1; }

/* ============================================================
   SITE HEADER
============================================================ */
.site-header {
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }

/* Logo row */
.header-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 18px 0 12px;
  border-bottom: 1px solid var(--clr-border);
  text-align: center;
}
.site-logo img { max-height: 56px; width: auto; }
.site-logo-text {
  font-family: var(--ff-body);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--clr-ink);
}
.site-tagline {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--clr-ash);
  letter-spacing: 0.06em;
  margin-top: 3px;
}

/* Nav row */
.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.main-navigation ul {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.main-navigation li { position: relative; }
.main-navigation li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  text-align: center;
  border-right: 1px solid var(--clr-border);
  transition: background var(--transition);
  min-height: 56px;
}
.main-navigation li:first-child a { border-left: 1px solid var(--clr-border); }
.main-navigation li a:hover { background: var(--clr-bg-alt); opacity: 1; }
.main-navigation li.current-menu-item a { background: var(--clr-bg-alt); }
.nav-link-title {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-ink);
  line-height: 1.2;
  display: block;
}
.nav-link-sub {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  color: var(--clr-ash);
  letter-spacing: 0.03em;
  display: block;
  margin-top: 2px;
  line-height: 1.2;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  padding: 12px var(--pad-x);
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-stone);
}

/* ============================================================
   HERO SLIDER
============================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  background: var(--clr-bg-dark);
}
.hero-swiper { width: 100%; height: 100%; }
.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}
/* Slide background image */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(60%) brightness(0.65);
  transform: scale(1.05);
  transition: transform 8s ease;
}
.swiper-slide-active .slide-bg { transform: scale(1); }
/* Placeholder slide bg */
.slide-bg--placeholder {
  background: linear-gradient(160deg, #2a2825 0%, #1a1816 60%, #0d0d0b 100%);
  filter: none;
}
.slide-bg--placeholder-2 {
  background: linear-gradient(160deg, #1e1e1c 0%, #2a2825 50%, #141412 100%);
  filter: none;
}
.slide-bg--placeholder-3 {
  background: linear-gradient(160deg, #141412 0%, #1e1c1a 50%, #2a2825 100%);
  filter: none;
}
/* Slide overlay gradient */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.05) 100%);
}
/* Slide content */
.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x);
  max-width: 800px;
}
.slide-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
  display: block;
}
.slide-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.slide-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: 580px;
}
.slide-desc span { font-size: 0.82em; display: block; margin-top: 4px; }
.slide-read-more {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.slide-read-more:hover { color: #fff; border-color: rgba(255,255,255,0.8); opacity: 1; }
/* Swiper pagination */
.hero-slider .swiper-pagination {
  bottom: 28px;
  right: var(--pad-x);
  left: auto;
  width: auto;
  display: flex;
  gap: 6px;
}
.hero-slider .swiper-pagination-bullet {
  width: 28px;
  height: 2px;
  border-radius: 0;
  background: rgba(255,255,255,0.35);
  opacity: 1;
}
.hero-slider .swiper-pagination-bullet-active { background: #fff; }
/* Slide counter */
.slide-counter {
  position: absolute;
  bottom: 28px;
  left: var(--pad-x);
  z-index: 10;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
}

/* ============================================================
   ABOUT SECTIONS
============================================================ */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-row--reverse { direction: rtl; }
.about-row--reverse > * { direction: ltr; }
.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--clr-stone); font-size: 0.97rem; line-height: 1.8; }
.about-text blockquote { margin: 1.4em 0; font-size: 0.97rem; }
.about-img { position: relative; }
.about-img img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(30%);
  transition: filter 0.5s ease;
}
.about-img img:hover { filter: grayscale(0%); }
/* Circular image style */
.about-img--circle img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  max-width: 440px;
  margin: 0 auto;
}

/* ============================================================
   REFLECTIONS / POSTS SECTION
============================================================ */
.section-heading { text-align: center; margin-bottom: 52px; }
.section-heading h2 { margin-bottom: 6px; }
.section-heading .sub {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--clr-ash);
  text-transform: uppercase;
}

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
/* Post card */
.post-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }
.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.post-card:hover .post-card__thumb img { filter: grayscale(0%); transform: scale(1.03); }
/* Placeholder thumb */
.post-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-border);
}
.post-card__thumb--placeholder svg { width: 40px; height: 40px; }
.post-card__body { padding: 20px 22px 24px; }
.post-card__cat {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-ash);
  margin-bottom: 10px;
  display: block;
}
.post-card__title {
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--clr-ink);
  margin-bottom: 12px;
  display: block;
}
.post-card__title:hover { opacity: 0.7; }
.post-card__meta {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  color: var(--clr-ash);
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-stone);
  margin-top: 16px;
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.post-card__read-more:hover { color: var(--clr-ink); border-color: var(--clr-ink); opacity: 1; }

/* View all link */
.view-all {
  text-align: center;
  margin-top: 44px;
}
.btn-outline {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-ink);
  border: 1px solid var(--clr-border);
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
}
.btn-outline:hover { background: var(--clr-bg-alt); border-color: var(--clr-ink); opacity: 1; }

/* ============================================================
   ARCHIVE — 2/3 + 1/3 LAYOUT
============================================================ */
.archive-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 52px;
  align-items: start;
}
.archive-main {}
.archive-sidebar {}

/* Category group */
.category-group { margin-bottom: 52px; }
.category-group__label {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-ash);
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
/* List post style for archive */
.post-list-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--clr-border);
  align-items: flex-start;
}
.post-list-item__thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.post-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
}
.post-list-item__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--clr-ink);
  margin-bottom: 6px;
  display: block;
}
.post-list-item__meta {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  color: var(--clr-ash);
}

/* Bio sidebar */
.bio-sidebar { text-align: center; }
.bio-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--clr-border);
}
.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
}
.bio-photo--placeholder {
  background: var(--clr-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-border);
}
.bio-photo--placeholder svg { width: 48px; height: 48px; }
.bio-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}
.bio-role {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--clr-ash);
  margin-bottom: 14px;
}
.bio-text { font-size: 0.88rem; line-height: 1.75; color: var(--clr-stone); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--clr-stone);
  transition: background var(--transition), border-color var(--transition);
}
.pagination a:hover { background: var(--clr-bg-alt); border-color: var(--clr-ink); opacity: 1; }
.pagination .current { background: var(--clr-ink); color: #fff; border-color: var(--clr-ink); }

/* ============================================================
   SINGLE POST
============================================================ */
.single-post { max-width: 740px; margin: 0 auto; padding: 60px var(--pad-x); }
.avyk-article__header { margin-bottom: 36px; }
.single-post__cat {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-ash);
  display: block;
  margin-bottom: 14px;
}
.single-post__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 18px; line-height: 1.25; }
.single-post__meta {
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--clr-ash);
  flex-wrap: wrap;
}
/* TTS button */
.tts-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  margin: 28px 0;
}
.tts-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-stone);
  padding: 8px 16px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-bg);
  transition: all var(--transition);
}
.tts-btn:hover { border-color: var(--clr-ink); color: var(--clr-ink); }
.tts-btn.playing { background: var(--clr-ink); color: #fff; border-color: var(--clr-ink); }
.tts-btn svg { width: 14px; height: 14px; fill: currentColor; }
.tts-label {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  color: var(--clr-ash);
  letter-spacing: 0.08em;
}
/* Featured image */
.single-post__thumb {
  width: 100%;
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
}
.single-post__thumb img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  filter: grayscale(30%);
}
/* Post content */
.entry-content { font-size: 1.02rem; line-height: 1.85; color: var(--clr-stone); }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--clr-ink);
  margin-top: 2em;
  margin-bottom: 0.6em;
}
.entry-content p:first-of-type::first-letter {
  font-size: 3.2rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin: 5px 8px 0 0;
  color: var(--clr-ink);
}
.entry-content img {
  border-radius: var(--radius);
  filter: grayscale(25%);
  margin: 1.5em 0;
}
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li { margin-bottom: 0.5em; }
/* YouTube / podcast embed */
.entry-content iframe, .entry-content .wp-block-embed__wrapper iframe {
  width: 100%;
  border-radius: var(--radius);
}
.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 2em 0; border-radius: var(--radius); }
.embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/* Audio player */
.entry-content audio { width: 100%; margin: 1.5em 0; }

/* ============================================================
   YOUTUBE / PODCAST SECTION
============================================================ */
.media-tabs { border-bottom: 1px solid var(--clr-border); margin-bottom: 36px; display: flex; gap: 0; }
.media-tab {
  padding: 10px 24px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-ash);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.media-tab.active { color: var(--clr-ink); border-bottom-color: var(--clr-ink); }
.media-panel { display: none; }
.media-panel.active { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

/* ============================================================
   LANGUAGE SWITCHER
============================================================ */
.lang-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 8px 4px 4px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.lang-switcher__current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  cursor: pointer;
  color: var(--clr-stone);
}
.lang-switcher__current img { width: 18px; height: 14px; border-radius: 2px; }
.lang-switcher__dropdown { padding: 4px; }
.lang-switcher__dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--clr-stone);
  border-radius: 4px;
  transition: background var(--transition);
}
.lang-switcher__dropdown a:hover { background: var(--clr-bg-alt); opacity: 1; }
.lang-switcher__dropdown img { width: 18px; height: 14px; border-radius: 2px; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--clr-bg); border-top: 1px solid var(--clr-border); }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding: 56px var(--pad-x);
}
/* Footer col 1 */
.footer-brand img { max-height: 48px; margin-bottom: 14px; }
.footer-brand-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.footer-brand-desc { font-size: 0.85rem; color: var(--clr-stone); line-height: 1.7; margin-bottom: 16px; }
.footer-legal { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-legal a {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--clr-ash);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover { color: var(--clr-ink); opacity: 1; }
.footer-img-credit {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  color: var(--clr-border);
  margin-top: 12px;
}
/* Footer nav cols */
.footer-nav-col h4 {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-ash);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-nav-col li a {
  font-size: 0.88rem;
  color: var(--clr-stone);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.footer-nav-col li a strong { color: var(--clr-ink); font-weight: 500; font-size: 0.88rem; }
.footer-nav-col li a span {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  color: var(--clr-ash);
  letter-spacing: 0.04em;
}
/* Subscribe col */
.footer-subscribe h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-ink);
  margin-bottom: 6px;
}
.footer-subscribe p {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--clr-ash);
  line-height: 1.6;
  margin-bottom: 18px;
}
.subscribe-form { display: flex; flex-direction: column; gap: 10px; }
.subscribe-form input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--clr-ink);
  background: var(--clr-bg);
  outline: none;
  transition: border-color var(--transition);
}
.subscribe-form input[type="email"]:focus { border-color: var(--clr-ash); }
.subscribe-form button {
  padding: 10px 20px;
  background: var(--clr-ink);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity var(--transition);
}
.subscribe-form button:hover { opacity: 0.75; }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom__copy {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--clr-ash);
  letter-spacing: 0.06em;
}
.footer-bottom__right { display: flex; align-items: center; gap: 18px; }
.footer-social { display: flex; gap: 14px; align-items: center; }
.footer-social a { color: var(--clr-ash); display: flex; transition: color var(--transition); }
.footer-social a:hover { color: var(--clr-ink); opacity: 1; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-ash);
  transition: all var(--transition);
  cursor: pointer;
}
.back-to-top:hover { border-color: var(--clr-ink); color: var(--clr-ink); }
.back-to-top svg { width: 14px; height: 14px; fill: currentColor; }

/* ============================================================
   UTILITY
============================================================ */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--clr-ash);
  text-align: center;
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  :root { --pad-x: 28px; }
  .post-grid { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .archive-layout { grid-template-columns: 1fr; }
  .about-row { grid-template-columns: 1fr; gap: 36px; }
  .about-row--reverse { direction: ltr; }
}

@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  .top-bar { padding: 8px 20px; }
  .main-navigation ul { display: none; flex-direction: column; width: 100%; }
  .main-navigation ul.open { display: flex; }
  .main-navigation li a { border-right: none; border-bottom: 1px solid var(--clr-border); border-left: none; justify-content: flex-start; padding: 12px 20px; min-height: auto; }
  .main-navigation li:first-child a { border-left: none; }
  .menu-toggle { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: space-between; border-top: 1px solid var(--clr-border); }
  .post-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-slider { max-height: 600px; min-height: 480px; }
  .media-panel.active { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   LOGO — WordPress custom_logo output fix
============================================================ */
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo-link img,
img.custom-logo {
  max-height: 64px !important;
  width: auto !important;
  height: auto !important;
  display: block;
}

/* ============================================================
   NAV SUBTITLES — ensure two-line display
============================================================ */
.main-navigation ul li a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
.nav-link-title {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-ink);
  line-height: 1.2;
  display: block !important;
}
.nav-link-sub {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  color: var(--clr-ash);
  letter-spacing: 0.03em;
  display: block !important;
  margin-top: 3px;
  line-height: 1.2;
}

/* ============================================================
   HEADER LOGO ROW — spacing and alignment
============================================================ */
.header-logo-row {
  padding: 14px 0 10px;
}
.header-logo-row .custom-logo-link {
  margin: 0 auto;
}

/* ============================================================
   SITE TAGLINE — below logo
============================================================ */
.site-tagline {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--clr-ash);
  letter-spacing: 0.06em;
  margin-top: 4px;
  text-align: center;
}

/* ============================================================
   SINGLE POST — FULL WIDTH FIX
============================================================ */

/* Remove narrow constraint from single post wrapper */
.single-post {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Post header — centered, comfortable width */
.avyk-article > header,
.avyk-article__header {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 40px 32px;
  text-align: center;
}

/* Featured image — full width, no padding */
.single-post__thumb {
  width: 100%;
  max-width: 100% !important;
  margin: 0 0 48px 0;
  border-radius: 0 !important;
}

.single-post__thumb img {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
  filter: grayscale(20%);
  border-radius: 0 !important;
}

/* TTS bar — centered with content */
.tts-bar {
  max-width: 860px;
  margin: 0 auto 36px;
  padding-left: 40px;
  padding-right: 40px;
}

/* Entry content — comfortable reading width */
.entry-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px 60px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--clr-stone);
}

/* Tags row */
.single-post .entry-content + div {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Post navigation */
.single-post ~ nav {
  max-width: 860px !important;
  margin: 0 auto !important;
}

/* Breadcrumb full width */
.single-post ~ * .container,
article.avyk-article + * {
  max-width: 100%;
}

/* In-content images full width */
.entry-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 2em 0;
}

/* YouTube / video embeds full width */
.entry-content iframe,
.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper {
  width: 100%;
  max-width: 100%;
}

.entry-content .wp-block-embed__wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
}

/* First paragraph drop cap */
.entry-content > p:first-of-type::first-letter {
  font-size: 3.8rem;
  font-weight: 700;
  float: left;
  line-height: 0.78;
  margin: 8px 10px 0 0;
  color: var(--clr-ink);
  font-family: var(--ff-body);
}

@media (max-width: 768px) {
  .avyk-article__header { padding: 36px 20px 24px; }
  .tts-bar { padding-left: 20px; padding-right: 20px; }
  .entry-content { padding: 0 20px 48px; }
}

/* ============================================================
   HEADER FULL WIDTH FIX
============================================================ */
.site-header {
  width: 100%;
  left: 0;
  right: 0;
}

/* Nav items stretch to fill full header width */
.main-navigation {
  width: 100%;
}
.main-navigation > div,
.main-navigation > ul {
  width: 100%;
}
.main-navigation ul {
  width: 100%;
  justify-content: stretch;
}
.main-navigation ul > li {
  flex: 1;
  display: flex;
}
.main-navigation ul > li > a {
  width: 100%;
  justify-content: center;
}

/* Admin bar offset when logged in */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Header logo row full width */
.header-logo-row {
  width: 100%;
  background: var(--clr-bg);
}

/* Header nav row full width */
.header-nav-row {
  width: 100%;
  background: var(--clr-bg);
}

/* Ensure white background covers full width on scroll */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-bg);
  z-index: -1;
  width: 100%;
}

/* ============================================================
   NUCLEAR HEADER FIX — guaranteed full viewport width
============================================================ */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.top-bar {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Fixed header — always 100% viewport width */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  z-index: 9999 !important;
  background: #ffffff !important;
}

.admin-bar .site-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px !important; }
}

/* Spacer — pushes content below fixed header */
.site-header + #page {
  padding-top: 145px;
}
.admin-bar .site-header + #page {
  padding-top: 177px;
}

/* Nav stretches full width — equal columns */
.header-nav-row {
  width: 100% !important;
  box-sizing: border-box;
}
.main-navigation {
  width: 100% !important;
}
.main-navigation > div {
  width: 100% !important;
}
#primary-menu {
  width: 100% !important;
  display: flex !important;
}
#primary-menu > li {
  flex: 1 !important;
  display: flex !important;
  min-width: 0 !important;
}
#primary-menu > li > a {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 10px 12px !important;
  border-right: 1px solid var(--clr-border) !important;
  border-left: none !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
}
#primary-menu > li:first-child > a {
  border-left: 1px solid var(--clr-border) !important;
}

/* Featured image breakout — true 100vw */
.single-post .featured-img-full {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw !important;
  max-width: 100vw !important;
  max-height: 580px;
  overflow: hidden;
  margin-bottom: 48px;
}
.single-post .featured-img-full img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   FIX — WordPress adds .menu-primary-menu-container wrapper
   Must target this explicitly for full-width nav
============================================================ */
.menu-primary-menu-container {
  width: 100% !important;
  display: flex !important;
}

.menu-primary-menu-container > ul {
  width: 100% !important;
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.menu-primary-menu-container > ul > li {
  flex: 1 !important;
  display: flex !important;
  min-width: 0 !important;
}

.menu-primary-menu-container > ul > li > a {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 10px 8px !important;
  border-right: 1px solid var(--clr-border) !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  transition: background 0.3s ease !important;
}

.menu-primary-menu-container > ul > li:first-child > a {
  border-left: 1px solid var(--clr-border) !important;
}

.menu-primary-menu-container > ul > li > a:hover,
.menu-primary-menu-container > ul > li.current-menu-item > a,
.menu-primary-menu-container > ul > li.current_page_item > a,
.menu-primary-menu-container > ul > li.current_page_parent > a {
  background: var(--clr-bg-alt) !important;
}

/* Nav title and subtitle within the new wrapper */
.menu-primary-menu-container .nav-link-title {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-ink);
  line-height: 1.2;
  display: block !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.menu-primary-menu-container .nav-link-sub {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  color: var(--clr-ash);
  letter-spacing: 0.02em;
  display: block !important;
  margin-top: 3px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Spacer for fixed header — dynamic via JS, fallback here */
#page {
  padding-top: 148px;
}
.admin-bar #page {
  padding-top: 180px;
}

@media (max-width: 768px) {
  #page { padding-top: 100px; }
  .admin-bar #page { padding-top: 146px; }
}

/* ============================================================
   REMOVE WHITE SPACE AROUND NAV ITEMS
============================================================ */
.header-nav-row {
  padding: 0 !important;
  margin: 0 !important;
  border-top: 1px solid var(--clr-border);
}

nav.main-navigation {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.menu-primary-menu-container {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.menu-primary-menu-container > ul {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  list-style: none !important;
}

.menu-primary-menu-container > ul > li {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
}

.menu-primary-menu-container > ul > li > a {
  flex: 1 !important;
  margin: 0 !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* Remove top/bottom white space in nav row */
.header-nav-row,
.header-nav-row * {
  vertical-align: top;
}

/* Mobile — hide nav, show toggle */
@media (max-width: 768px) {
  .menu-primary-menu-container {
    display: none !important;
  }
  .menu-primary-menu-container.open {
    display: block !important;
  }
  .menu-primary-menu-container > ul {
    flex-direction: column !important;
  }
  .menu-primary-menu-container > ul > li > a {
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--clr-border) !important;
    justify-content: flex-start !important;
    padding: 12px 20px !important;
  }
  .menu-toggle { display: flex !important; }
}

/* ============================================================
   DEFINITIVE NAV FIX — block layout, no flex centering
============================================================ */

/* Make nav row a simple block — no flex centering */
.header-nav-row {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border-top: 1px solid var(--clr-border) !important;
  box-sizing: border-box !important;
}

/* Hide mobile toggle on desktop */
.header-nav-row .menu-toggle {
  display: none !important;
}

/* Nav fills full width as block */
nav#main-navigation,
nav.main-navigation {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Container div — block, full width */
div.menu-primary-menu-container {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* UL — flex row, full width, reset browser defaults */
ul#primary-menu.menu,
ul#primary-menu {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

/* LI — equal columns */
ul#primary-menu > li {
  flex: 1 1 0 !important;
  display: flex !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

/* A — full width, centered content */
ul#primary-menu > li > a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 56px !important;
  padding: 10px 6px !important;
  margin: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  border-right: 1px solid var(--clr-border) !important;
  box-sizing: border-box !important;
  transition: background 0.25s ease !important;
}

ul#primary-menu > li:first-child > a {
  border-left: 0 !important;
}

ul#primary-menu > li:last-child > a {
  border-right: 0 !important;
}

ul#primary-menu > li > a:hover,
ul#primary-menu > li.current-menu-item > a,
ul#primary-menu > li.current_page_item > a,
ul#primary-menu > li.current_page_parent > a {
  background: var(--clr-bg-alt) !important;
  opacity: 1 !important;
}

/* Nav text spans */
ul#primary-menu .nav-link-title {
  display: block !important;
  font-family: var(--ff-body) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--clr-ink) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

ul#primary-menu .nav-link-sub {
  display: block !important;
  font-family: var(--ff-mono) !important;
  font-size: 0.6rem !important;
  color: var(--clr-ash) !important;
  margin-top: 3px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

/* Mobile override */
@media (max-width: 768px) {
  .header-nav-row .menu-toggle { display: flex !important; }
  div.menu-primary-menu-container { display: none !important; }
  div.menu-primary-menu-container.open { display: block !important; }
  ul#primary-menu { flex-direction: column !important; }
  ul#primary-menu > li > a {
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid var(--clr-border) !important;
    justify-content: flex-start !important;
    padding: 12px 20px !important;
    text-align: left !important;
  }
}

/* ============================================================
   FIX — remove margin:0 auto from single post header
   This was causing white space on sides of post page
============================================================ */
.avyk-article > header,
.avyk-article__header,
.single-post > div[style*="margin: 0 auto"],
.single-post > div[style*="margin:0 auto"] {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Post title area — full width, centered text */
.avyk-article > header {
  padding: 48px 40px 32px !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* ============================================================
   CRITICAL FIX — WordPress adds 'single-post' to body class.
   Ensure site-header is NEVER affected by .single-post rules.
============================================================ */
body.single-post > header.site-header,
body.single > header.site-header,
header#site-header {
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Ensure header logo row has its correct padding (not zeroed) */
header#site-header .header-logo-row {
  padding: 14px 0 10px !important;
}

/* ============================================================
   TOP BAR FIX — switch header back to sticky so top bar shows
============================================================ */

/* Top bar — always visible, scrolls naturally */
.top-bar {
  position: relative !important;
  top: auto !important;
  width: 100% !important;
  z-index: auto !important;
}

/* Header — sticky (not fixed), sticks after top bar scrolls away */
header#site-header,
.site-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 9999 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

/* Admin bar offset for sticky header */
.admin-bar .site-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px !important; }
}

/* Remove the padding-top spacer — not needed with sticky */
#page {
  padding-top: 0 !important;
}

.admin-bar #page {
  padding-top: 0 !important;
}

/* ============================================================
   POST CARD EXCERPT — 4 lines then cut off
============================================================ */
.post-card__excerpt {
  font-family: var(--ff-body);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--clr-stone);
  margin: 10px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Language switcher — hidden until multilingual is ready */
.lang-switcher { display: none !important; }
