/*
Theme Name: Adnan Risnawan Theme
Theme URI: https://adnanrisnawan.com
Author: Adnan Risnawan
Author URI: https://adnanrisnawan.com
Description: Tema WordPress puisi & quotes dengan desain gelap elegan, mode terang, hero slider, dan pemutar audio. Tempat berbagi rasa dan kata.
Version: 2.1.9
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adnanrisnawan
Tags: dark, light, blog, poetry, custom-menu, featured-images, translation-ready
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
*/

/* ==========================================================================
   1. DESIGN TOKENS
   Default = dark. Light mode = html[data-theme="light"].
   ========================================================================== */
:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #121214;
  --bg-elevated: #16161a;
  --surface: #18181c;
  --surface-2: #1f1f24;
  --surface-hover: #26262c;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f4f4f5;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --subtle: #71717a;

  /* Accent */
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --accent-ink: #1a1206;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --accent-border: rgba(245, 158, 11, 0.3);
  --rose: #f43f5e;
  --rose-soft: rgba(244, 63, 94, 0.12);

  /* Chrome */
  --header-bg: rgba(18, 18, 20, 0.82);
  --footer-bg: #0b0b0d;
  --chip-active-bg: #f4f4f5;
  --chip-active-text: #121214;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.65);

  /* Type */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body-serif: 'Lora', Georgia, serif;
  --font-script: 'Alex Brush', cursive;

  /* Layout */
  --container: 1480px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --header-h: 76px;
  --radius-sm: 0.625rem;
  --radius: 0.875rem;
  --radius-lg: 1.125rem;
  --radius-xl: 2rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme='light'] {
  color-scheme: light;

  --bg: #f7f5f1;
  --bg-elevated: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2efe9;
  --surface-hover: #ebe6de;
  --border: rgba(41, 37, 36, 0.09);
  --border-strong: rgba(41, 37, 36, 0.18);

  --text: #1c1917;
  --text-2: #44403c;
  --muted: #6b645e;
  --subtle: #a39c95;

  --accent: #b45309;
  --accent-2: #d97706;
  --accent-ink: #ffffff;
  --accent-soft: rgba(217, 119, 6, 0.1);
  --accent-border: rgba(217, 119, 6, 0.3);
  --rose: #e11d48;
  --rose-soft: rgba(225, 29, 72, 0.08);

  --header-bg: rgba(251, 250, 247, 0.85);
  --footer-bg: #ede8df;
  --chip-active-bg: #1c1917;
  --chip-active-text: #fafaf9;

  --shadow-sm: 0 1px 2px rgba(41, 37, 36, 0.06);
  --shadow-md: 0 10px 24px -10px rgba(41, 37, 36, 0.18);
  --shadow-lg: 0 24px 48px -18px rgba(41, 37, 36, 0.25);
}

/* Smooth theme switch (class added briefly by JS) */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, fill 0.35s ease !important;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(217, 119, 6, 0.3);
  color: var(--text);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-hover);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--subtle);
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Typography helpers */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-script { font-family: var(--font-script); }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container-main {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-main {
  display: block;
}

.section-feed {
  padding-top: 2.25rem;
  padding-bottom: 2rem;
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

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

@media (max-width: 600px) {
  .admin-bar .site-header--solid {
    top: 0;
  }
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  min-height: var(--header-h);
  padding: 0.875rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Overlay header (homepage, over hero) */
.site-header--overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: #ffffff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Solid header (inner pages) */
.site-header--solid {
  color: var(--text);
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.site-header--solid.is-scrolled {
  box-shadow: var(--shadow-md);
}

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  color: inherit;
}

.site-logo svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.8;
  transform: rotate(-12deg);
  transition: transform 0.5s var(--ease);
}

.site-logo:hover svg {
  transform: rotate(-24deg) translateY(-1px);
}

.site-logo .logo-text {
  font-family: var(--font-script);
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: 0.02em;
  transform: translateY(3px);
}

.site-logo .custom-logo {
  max-height: 44px;
  width: auto;
}

/* Main nav */
.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (min-width: 960px) {
  .main-nav {
    display: flex;
  }
}

.main-nav a {
  position: relative;
  padding-block: 0.375rem;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a.active {
  font-weight: 600;
}

.site-header--overlay .main-nav a {
  color: rgba(255, 255, 255, 0.72);
}

.site-header--overlay .main-nav a:hover,
.site-header--overlay .main-nav a.active {
  color: #ffffff;
}

.site-header--solid .main-nav a {
  color: var(--muted);
}

.site-header--solid .main-nav a:hover,
.site-header--solid .main-nav a.active {
  color: var(--text);
}

.site-header--solid .main-nav a.active::after {
  background: var(--accent-2);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-search {
  position: relative;
  display: none;
  width: 16rem;
}

@media (min-width: 640px) {
  .header-search {
    display: block;
  }
}

@media (min-width: 1200px) {
  .header-search {
    width: 20rem;
  }
}

.search-field-wrap {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}

.search-icon svg {
  width: 1rem;
  height: 1rem;
}

.search-input {
  width: 100%;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.search-input::placeholder {
  color: var(--subtle);
}

.search-input:hover {
  border-color: var(--border-strong);
}

.search-input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-input::-webkit-search-cancel-button {
  filter: grayscale(1);
  opacity: 0.6;
}

.site-header--overlay .search-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header--overlay .search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.site-header--overlay .search-input:hover {
  background: rgba(255, 255, 255, 0.15);
}

.site-header--overlay .search-input:focus {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

/* Icon buttons */
.icon-btn {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.icon-btn:active {
  transform: scale(0.92);
}

.icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-header--overlay .icon-btn {
  color: rgba(255, 255, 255, 0.85);
}

.site-header--overlay .icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.site-header--solid .icon-btn {
  color: var(--text-2);
}

.site-header--solid .icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* Theme toggle: icon depends purely on html[data-theme] */
.theme-toggle svg {
  animation: icon-in 0.5s var(--ease);
}

html[data-theme='dark'] .theme-toggle .icon-moon,
html:not([data-theme]) .theme-toggle .icon-moon,
html[data-theme='light'] .theme-toggle .icon-sun {
  display: none;
}

@keyframes icon-in {
  from {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: inline-flex;
}

@media (min-width: 960px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle .icon-close,
.mobile-menu-toggle[aria-expanded='true'] .icon-menu {
  display: none;
}

.mobile-menu-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0.5rem var(--gutter) 0;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.mobile-menu.is-open {
  display: block;
  animation: drop-in 0.35s var(--ease);
}

@media (min-width: 960px) {
  .mobile-menu,
  .mobile-menu.is-open {
    display: none;
  }
}

.mobile-menu .search-form {
  margin-bottom: 0.75rem;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-links a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.mobile-menu-links a.active {
  color: var(--accent-2);
  background: var(--accent-soft);
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   5. HERO SLIDER (always dark – sits on top of a photo)
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #ffffff;
  background: #0b0b0d;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  min-height: clamp(560px, 86vh, 780px);
  display: flex;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-bg.is-active {
  opacity: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.78) contrast(1.06) saturate(1.2);
  transform: scale(1.1);
  transition: transform 8s ease-out;
}

.hero-bg.is-active img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(9, 9, 11, 0.96) 0%, rgba(9, 9, 11, 0.35) 45%, rgba(9, 9, 11, 0.6) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.5) 100%),
    radial-gradient(ellipse at 25% 65%, rgba(180, 83, 9, 0.22), transparent 60%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + 3.5rem) var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    padding-inline: calc(var(--gutter) + 1.5rem);
    padding-bottom: 3rem;
  }
}

/* All slides share one grid cell -> container height = tallest slide.
   No absolute positioning, so long titles can never overlap the controls. */
.hero-slides {
  display: grid;
  align-items: center;
  flex: 1;
}

.hero-text {
  grid-area: 1 / 1;
  max-width: 46rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.8s var(--ease), visibility 0s linear 0.6s;
}

.hero-text.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.15s, transform 0.9s var(--ease) 0.15s, visibility 0s;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.2s ease;
}

.hero-kicker:hover {
  background: rgba(251, 191, 36, 0.15);
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.2;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 92%;
  transition: background-size 0.5s var(--ease);
}

.hero-title a:hover {
  background-size: 100% 1px;
}

.hero-subtitle {
  max-width: 36rem;
  font-size: clamp(0.9rem, 1.2vw, 1.0625rem);
  line-height: 1.7;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-meta img {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-meta .author-name {
  font-weight: 600;
  color: #ffffff;
}

.hero-meta .dot {
  color: rgba(255, 255, 255, 0.35);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1206;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.7);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.hero-cta svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s var(--ease);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(245, 158, 11, 0.85);
}

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

/* Hero bottom bar */
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .hero-bottom {
    flex-direction: row;
    align-items: center;
  }
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel-arrow {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.carousel-arrow:active {
  transform: scale(0.92);
}

.carousel-arrow svg {
  width: 1rem;
  height: 1rem;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.carousel-dot {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.2rem;
}

.carousel-dot-bar {
  position: relative;
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.45s var(--ease), background-color 0.3s ease;
}

.carousel-dot:hover .carousel-dot-bar {
  background: rgba(255, 255, 255, 0.65);
}

.carousel-dot.is-active .carousel-dot-bar {
  width: 2.25rem;
  background: rgba(255, 255, 255, 0.25);
}

.carousel-dot-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform-origin: left center;
  transform: scaleX(0);
}

.carousel-dot.is-active .carousel-dot-bar::after {
  transform: scaleX(var(--progress, 0));
}

.hero.no-autoplay .carousel-dot.is-active .carousel-dot-bar::after {
  transform: scaleX(1);
}

/* Audio player (glass) */
.audio-player {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
  .audio-player {
    width: auto;
  }
}

.audio-play-btn {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1a1206;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  box-shadow: 0 6px 18px -6px rgba(245, 158, 11, 0.7);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.audio-play-btn:hover {
  box-shadow: 0 8px 22px -6px rgba(245, 158, 11, 0.9);
}

.audio-play-btn:active {
  transform: scale(0.92);
}

.audio-play-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.audio-play-btn .icon-pause,
.audio-play-btn.is-playing .icon-play {
  display: none;
}

.audio-play-btn.is-playing .icon-pause {
  display: block;
}

.audio-play-btn.is-playing::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(251, 191, 36, 0.5);
  animation: pulse-ring 1.8s ease-out infinite;
}

@keyframes pulse-ring {
  from {
    transform: scale(0.9);
    opacity: 1;
  }
  to {
    transform: scale(1.35);
    opacity: 0;
  }
}

.audio-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.audio-info .track-name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-info .track-artist {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.audio-eq span {
  width: 3px;
  height: 30%;
  border-radius: 999px;
  background: #fbbf24;
  opacity: 0.5;
}

.is-playing .audio-eq span {
  opacity: 1;
  animation: eq 0.9s ease-in-out infinite alternate;
}

.is-playing .audio-eq span:nth-child(2) { animation-delay: 0.2s; }
.is-playing .audio-eq span:nth-child(3) { animation-delay: 0.4s; }
.is-playing .audio-eq span:nth-child(4) { animation-delay: 0.1s; }

@keyframes eq {
  from { height: 25%; }
  to { height: 100%; }
}

.audio-volume {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.875rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 400px) {
  .audio-volume {
    display: flex;
  }
}

.audio-volume svg {
  width: 1rem;
  height: 1rem;
  color: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}

.volume-range {
  -webkit-appearance: none;
  appearance: none;
  width: 4.5rem;
  height: 4px;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(to right, #fbbf24 0, #fbbf24 var(--val, 75%), rgba(255, 255, 255, 0.25) var(--val, 75%), rgba(255, 255, 255, 0.25) 100%);
  outline-offset: 6px;
}

.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35);
  transition: transform 0.15s ease;
}

.volume-range:hover::-webkit-slider-thumb {
  transform: scale(1.15);
}

.volume-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
}

.volume-range::-moz-range-track {
  background: transparent;
}

/* ==========================================================================
   6. PAGE HEADER (archive / search / blog w/o hero)
   ========================================================================== */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-header .page-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-header p {
  max-width: 36rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   7. FILTER BAR
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-chips-wrap {
  position: relative;
  min-width: 0;
  flex: 1;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.125rem 2.5rem 0.25rem 0.125rem;
  scroll-snap-type: x proximity;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.filter-chip:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.filter-chip svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--subtle);
  transition: color 0.2s ease;
}

.filter-chip:hover svg {
  color: var(--accent-2);
}

.filter-chip.is-active {
  background: var(--chip-active-bg);
  border-color: var(--chip-active-bg);
  color: var(--chip-active-text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.filter-chip.is-active svg {
  color: inherit;
}

.filter-chip .chip-count {
  font-size: 0.65rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

.filter-chip.is-active .chip-count {
  background: rgba(127, 127, 127, 0.25);
  color: inherit;
}

/* Sort dropdown */
.sort-dropdown {
  position: relative;
  align-self: flex-end;
  flex-shrink: 0;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sort-btn strong {
  color: var(--text);
  font-weight: 600;
}

.sort-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.sort-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.3s var(--ease);
}

.sort-dropdown.is-open .sort-btn svg {
  transform: rotate(180deg);
}

.sort-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 20;
  min-width: 11rem;
  padding: 0.375rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.sort-dropdown.is-open .sort-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s;
}

.sort-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-2);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sort-menu a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.sort-menu a.is-active {
  color: var(--accent-2);
  font-weight: 600;
}

.sort-menu a svg {
  width: 0.9rem;
  height: 0.9rem;
}

/* ==========================================================================
   8. CARDS GRID
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.125rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.3s ease, opacity 0.6s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

/* Reveal on scroll (only when JS is running) */
.js .card.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0ms);
}

.js .card.reveal.is-visible:hover {
  transform: translateY(-4px);
  transition-delay: 0ms;
}

/* Media: block-level + fixed aspect ratio -> every card is identical */
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--surface-2);
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s ease;
}

.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 45%);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card:hover .card-media::after {
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  max-width: calc(100% - 1.5rem);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.card-badge:hover {
  background: rgba(245, 158, 11, 0.9);
  color: #1a1206;
}

.card-body {
  flex: 1;
  padding: 1rem 1rem 0.875rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.card-title a {
  transition: color 0.2s ease;
}

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

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem 0.7rem 1rem;
  border-top: 1px solid var(--border);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.card-author img {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  border-radius: 999px;
  object-fit: cover;
  background: var(--surface-2);
}

.card-author-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.card-author-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-author-date {
  font-size: 0.64rem;
  color: var(--subtle);
  white-space: nowrap;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex-shrink: 0;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 1.9rem;
  height: 1.9rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--subtle);
  font-size: 0.7rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.card-action svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.card-action:hover {
  background: var(--surface-2);
  color: var(--text);
}

.card-like svg {
  color: var(--rose);
}

.card-like:hover {
  background: var(--rose-soft);
  color: var(--rose);
}

.bookmark-btn:hover {
  color: var(--accent-2);
  background: var(--accent-soft);
}

/* Shared states (cards + single) */
.like-btn.is-liked svg {
  fill: currentColor;
  color: var(--rose);
}

.like-btn.is-liked .like-count {
  color: var(--rose);
}

.bookmark-btn.is-saved {
  color: var(--accent-2);
}

.bookmark-btn.is-saved svg {
  fill: currentColor;
}

.pop {
  animation: pop 0.45s var(--ease);
}

@keyframes pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40vh;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-strong);
  background: var(--bg-elevated);
}

.empty-state h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--muted);
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   9. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #1a1206;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  box-shadow: 0 10px 24px -12px rgba(245, 158, 11, 0.8);
}

.btn-ghost,
.back-home {
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.btn-ghost:hover,
.back-home:hover {
  background: rgba(245, 158, 11, 0.2);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.back-home svg {
  width: 1rem;
  height: 1rem;
}

/* ==========================================================================
   10. PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination a.page-numbers:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

.pagination .page-numbers.current {
  background: var(--chip-active-bg);
  border-color: var(--chip-active-bg);
  color: var(--chip-active-text);
  font-weight: 700;
}

.pagination .page-numbers.dots {
  background: none;
  border: none;
  color: var(--subtle);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--bg), var(--footer-bg));
  color: var(--muted);
}

.footer-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.footer-divider-line-left,
.footer-divider-line-right {
  width: clamp(5rem, 15vw, 9rem);
  height: 1px;
}

.footer-divider-line-left {
  background: linear-gradient(to right, transparent, var(--accent-border));
}

.footer-divider-line-right {
  background: linear-gradient(to left, transparent, var(--accent-border));
}

.footer-divider-icon {
  margin: 0 0.75rem;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--accent-2);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 24px -4px var(--accent-soft);
}

.footer-divider-icon svg {
  width: 0.8rem;
  height: 0.8rem;
}

.footer-content {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-quote {
  max-width: 36rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-2);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.footer-logo svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-2);
  transform: rotate(-12deg);
}

.footer-logo span {
  font-family: var(--font-script);
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(3px);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.footer-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--accent-2);
}

.footer-nav .nav-dot {
  color: var(--subtle);
  opacity: 0.5;
}

.footer-copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.72rem;
  color: var(--subtle);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0s, background-color 0.2s ease;
}

.back-to-top:hover {
  background: var(--surface-hover);
  color: var(--accent-2);
}

.back-to-top svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 100;
  max-width: calc(100% - 2rem);
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--chip-active-text);
  background: var(--chip-active-bg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s;
}

/* ==========================================================================
   12. SINGLE POST
   ========================================================================== */
.single-main {
  position: relative;
  isolation: isolate;
  padding-bottom: 2rem;
}

.ambient-glow-top,
.ambient-glow-right {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(60px);
}

.ambient-glow-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 64rem;
  height: 22rem;
  background: var(--accent-soft);
}

.ambient-glow-right {
  top: 16rem;
  right: 2.5rem;
  width: 20rem;
  height: 20rem;
  background: rgba(234, 88, 12, 0.06);
}

.frosted-glass {
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.frosted-pill {
  background: var(--surface);
  border: 1px solid var(--border);
}

.glow-amber {
  box-shadow: 0 0 60px -15px rgba(245, 158, 11, 0.25);
}

.article-header {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.article-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.article-back-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s var(--ease);
}

.article-back-link:hover {
  color: var(--accent-2);
}

.article-back-link:hover svg {
  transform: translateX(-3px);
}

.article-header-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-pill {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.text-resizer {
  display: none;
}

@media (min-width: 640px) {
  .text-resizer {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.125rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
  }
}

.resize-btn {
  min-width: 2rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-family: var(--font-body-serif);
  font-size: 0.78rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.resize-btn[data-font-size='lg'] {
  font-size: 0.95rem;
  font-weight: 600;
}

.resize-btn:hover {
  color: var(--accent-2);
}

.resize-btn.is-active {
  background: var(--surface-2);
  color: var(--text);
}

.article-title-wrapper {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.article-kicker-line {
  width: 1.5rem;
  height: 1px;
  background: var(--accent-border);
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.article-excerpt {
  max-width: 36rem;
  margin: 0 auto;
  font-family: var(--font-body-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--muted);
}

.article-meta-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .article-meta-card {
    flex-direction: row;
    align-items: center;
  }
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.article-author-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--accent-border);
}

.author-name-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.author-name-badge .name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.author-name-badge .star {
  color: var(--accent-2);
  font-size: 0.75rem;
}

.author-meta-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.author-meta-details .reader-count {
  color: var(--accent-2);
}

.article-audio-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.audio-widget-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  padding-right: 0.25rem;
}

.audio-widget-info .title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.audio-widget-info .artist {
  font-size: 0.66rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-hero-figure {
  max-width: 64rem;
  margin: 0 auto 3.5rem;
  padding: 0 1.25rem;
}

.article-hero-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

@media (min-width: 640px) {
  .article-hero-img-wrapper {
    aspect-ratio: 21 / 9;
  }
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.article-hero-img-wrapper:hover .article-hero-img {
  transform: scale(1.03);
}

.article-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
}

/* Article body */
.article-content {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  font-family: var(--font-body-serif);
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--text-2);
  transition: font-size 0.25s ease;
}

.article-content.is-large {
  font-size: 1.3rem;
}

.article-content > * + * {
  margin-top: 1.5rem;
}

.article-content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4rem;
  line-height: 0.8;
  padding: 0.35rem 0.75rem 0 0;
  color: var(--accent-2);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-top: 2.5rem;
}

.article-content h2 { font-size: 1.85rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content h4 { font-size: 1.25rem; }

.article-content a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.article-content strong {
  color: var(--text);
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li + li {
  margin-top: 0.5rem;
}

.article-content li::marker {
  color: var(--accent-2);
}

.article-content blockquote {
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--accent-soft);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}

.article-content blockquote p {
  margin: 0;
}

.article-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: normal;
  color: var(--muted);
}

.article-content hr {
  width: 3rem;
  height: 1px;
  margin: 3rem auto;
  border: none;
  background: var(--accent-border);
}

.article-content img,
.article-content figure {
  border-radius: var(--radius);
  margin-block: 2rem;
}

.article-content figcaption,
.wp-caption-text {
  margin-top: 0.5rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--subtle);
}

.article-content pre {
  overflow-x: auto;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

.article-content code {
  font-size: 0.9em;
  color: var(--accent-2);
}

.article-content iframe,
.article-content video {
  width: 100%;
  border-radius: var(--radius);
}

/* Poem stanzas (custom HTML block) */
.poem-stanzas {
  position: relative;
  overflow: hidden;
  margin: 2.5rem 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--accent-border);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
}

.poem-stanzas p {
  margin: 0;
}

.poem-stanzas p + p {
  margin-top: 1.25rem;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.75rem;
}

.tags-label {
  color: var(--subtle);
  margin-right: 0.25rem;
}

.article-content .tag-pill {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.article-content .tag-pill:hover {
  color: var(--accent-2);
  border-color: var(--accent-border);
}

/* Reaction bar */
.reaction-bar {
  max-width: 44rem;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.reaction-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
}

.reaction-like {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rose);
  background: var(--rose-soft);
  border: 1px solid color-mix(in srgb, var(--rose) 30%, transparent);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.reaction-like:hover {
  background: color-mix(in srgb, var(--rose) 20%, transparent);
}

.reaction-like svg {
  width: 1.2rem;
  height: 1.2rem;
}

.reaction-like .like-label {
  font-weight: 500;
  opacity: 0.85;
}

.reaction-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-label {
  display: none;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .share-label {
    display: inline;
  }
}

.share-btn {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.share-btn svg {
  width: 1rem;
  height: 1rem;
}

.share-btn:hover {
  color: var(--accent-2);
  background: var(--surface-hover);
}

.share-btn:active {
  transform: scale(0.92);
}

/* Related */
.related-articles-section {
  max-width: 72rem;
  margin: 4rem auto 0;
  padding: 3rem 1.25rem 0;
  border-top: 1px solid var(--border);
}

.related-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.related-header h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
}

.related-header p {
  font-size: 0.8rem;
  color: var(--muted);
}

.explore-all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  transition: gap 0.2s var(--ease);
}

.explore-all svg {
  width: 1rem;
  height: 1rem;
}

.explore-all:hover {
  gap: 0.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

/* ==========================================================================
   13. COMMENTS
   ========================================================================== */
.comments-section {
  max-width: 44rem;
  margin: 4rem auto 0;
  padding: 0 1.25rem;
}

.comments-inner {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.comments-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.comments-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
}

.comments-count {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.comment-form-wrapper {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.comment-form-title,
.comment-reply-title {
  display: block;
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}

.comment-reply-title small a {
  margin-left: 0.5rem;
  color: var(--rose);
}

.comment-form p {
  margin-bottom: 0.75rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.comment-textarea,
.comment-form textarea,
.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-textarea {
  min-height: 7rem;
}

.comment-textarea:focus,
.comment-form textarea:focus,
.comment-form input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-form-cookies-consent label {
  margin: 0;
}

.comment-form-cookies-consent input {
  accent-color: var(--accent);
}

.comment-form-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.comment-note {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--subtle);
}

.submit-btn-poetic {
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1206;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.submit-btn-poetic:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(245, 158, 11, 0.8);
}

.comment-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-list-wrapper .children,
.comment-list-wrapper .comment-item .comment-item {
  margin-top: 1rem;
  margin-left: 1.25rem;
}

.comment-item {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
}

.comment-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.comment-avatar-wrapper img {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
}

.comment-author-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.comment-time {
  display: block;
  font-size: 0.66rem;
  color: var(--subtle);
}

.comment-reply-action a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.comment-reply-action a:hover {
  color: var(--accent-2);
}

.comment-item-body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-2);
}

.comment-item-body p + p {
  margin-top: 0.5rem;
}

/* ==========================================================================
   14. STATIC PAGE / 404 / WIDGETS
   ========================================================================== */
.page-content {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1rem;
}

.page-content .page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 2rem;
}

.page-content .article-content {
  padding: 0;
}

.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 3rem 1rem;
  text-align: center;
}

.error-404 .error-code {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 18vw, 10rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-2), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-404 h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.error-404 p {
  max-width: 28rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.error-404 .search-form {
  width: 100%;
  max-width: 24rem;
  margin-bottom: 1.25rem;
}

.widget {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.widget-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.widget li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  font-size: 0.85rem;
  color: var(--text-2);
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   15. WORDPRESS CORE
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  width: auto;
  left: 1rem;
  top: 1rem;
  z-index: 100000;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--chip-active-text);
  background: var(--chip-active-bg);
}

.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.alignwide {
  margin-inline: calc(-1 * min(6vw, 6rem));
  max-width: none;
}

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

.wp-caption {
  max-width: 100%;
}

.sticky,
.bypostauthor,
.gallery-caption {
  /* required WP classes */
}

/* ==========================================================================
   16. ANIMATIONS & MOTION PREFS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .card.reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   STITCH CARD LAYOUT & STYLES (NEW)
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stitch-card {
  position: relative;
  background-color: #17171b;
  border: 1px solid rgba(115, 115, 115, 0.2); /* neutral-800/80 equivalent */
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: left;
}

html[data-theme="light"] .stitch-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.stitch-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stitch-card-quote {
  position: absolute;
  right: -1rem;
  bottom: -1.5rem;
  font-family: var(--font-serif);
  font-size: 120px;
  color: rgba(255, 255, 255, 0.03);
  user-select: none;
  pointer-events: none;
  font-weight: 700;
  line-height: 1;
}

html[data-theme="light"] .stitch-card-quote {
  color: rgba(0, 0, 0, 0.03);
}

.stitch-card-content {
  position: relative;
  z-index: 10;
}

.stitch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stitch-card-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.025em;
  background-color: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

html[data-theme="light"] .stitch-card-badge {
  background-color: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.2);
}

.stitch-card-meta {
  font-size: 11px;
  color: #737373; /* neutral-500 */
  letter-spacing: 0.05em;
  font-weight: 300;
}

html[data-theme="light"] .stitch-card-meta {
  color: #a3a3a3;
}

.stitch-card-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1.25;
  color: #f5f5f5; /* neutral-100 */
  font-weight: 500;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

html[data-theme="light"] .stitch-card-title {
  color: #171717;
}

.stitch-card:hover .stitch-card-title {
  color: #fde68a; /* amber-200 */
}

html[data-theme="light"] .stitch-card:hover .stitch-card-title {
  color: #d97706;
}

.stitch-card-excerpt {
  color: #a3a3a3; /* neutral-400 */
  font-size: 0.875rem;
  line-height: 1.625;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

html[data-theme="light"] .stitch-card-excerpt {
  color: #525252;
}

.stitch-card-footer {
  position: relative;
  z-index: 10;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(64, 64, 64, 0.7); /* neutral-800/70 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

html[data-theme="light"] .stitch-card-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.stitch-card-author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.stitch-card-author img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .stitch-card-author img {
  border-color: rgba(0, 0, 0, 0.1);
}

.stitch-card-author-info {
  display: flex;
  flex-direction: column;
}

.stitch-card-author-info .author-name {
  font-size: 11.5px;
  color: #e5e5e5; /* neutral-200 */
  font-weight: 500;
  line-height: 1;
}

html[data-theme="light"] .stitch-card-author-info .author-name {
  color: #262626;
}

.stitch-card-author-info .author-date {
  font-size: 10px;
  color: #737373; /* neutral-500 */
  line-height: 1.25;
  margin-top: 0.25rem;
}

html[data-theme="light"] .stitch-card-author-info .author-date {
  color: #a3a3a3;
}

.stitch-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #a3a3a3; /* neutral-400 */
}

html[data-theme="light"] .stitch-card-actions {
  color: #525252;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.action-btn svg {
  width: 1rem;
  height: 1rem;
}

.action-like:hover, .action-like.is-active {
  color: #f43f5e; /* rose-500 */
}

.action-like svg {
  color: inherit;
}

.action-like .like-count {
  font-size: 11px;
  color: #d4d4d4; /* neutral-300 */
}

html[data-theme="light"] .action-like .like-count {
  color: #404040;
}

.action-like:hover .like-count {
  color: #f43f5e;
}

.action-bookmark:hover, .action-bookmark.is-active {
  color: #fbbf24; /* amber-400 */
}

.action-share:hover {
  color: #e5e5e5; /* neutral-200 */
}

html[data-theme="light"] .action-share:hover {
  color: #171717;
}

/* Pagination Amber styling */
.stitch-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #a3a3a3; /* neutral-400 */
  margin-top: 3rem;
  font-weight: 300;
}

html[data-theme="light"] .stitch-pagination {
  color: #737373;
}

.stitch-pagination .page-numbers {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  transition: all 0.2s;
  color: #d4d4d4; /* neutral-300 */
}

html[data-theme="light"] .stitch-pagination .page-numbers {
  color: #404040;
}

.stitch-pagination .page-numbers:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

html[data-theme="light"] .stitch-pagination .page-numbers:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #171717;
}

.stitch-pagination .page-numbers.current {
  background-color: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fcd34d;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .stitch-pagination .page-numbers.current {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
  color: #b45309;
}

.stitch-pagination .next svg,
.stitch-pagination .prev svg {
  width: 1rem;
  height: 1rem;
}

/* ==========================================================================
   STITCH ARTICLE (SINGLE) LAYOUT & STYLES (NEW)
   ========================================================================== */

/* Ambient & Typography Decor */
.drop-cap::first-letter {
  font-size: 3.75rem;
  float: left;
  line-height: 0.82;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 2px;
  color: #fbbf24;
  font-family: var(--font-serif);
  font-style: italic;
}
.poetic-line-height {
  line-height: 2.1;
}
.glow-amber {
  box-shadow: 0 0 45px -10px rgba(245, 158, 11, 0.18);
}
.frosted-glass {
  background: rgba(27, 20, 19, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.frosted-pill {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

/* Ambient glow backgrounds */
.stitch-ambient-glow-1 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 64rem;
  height: 24rem;
  background-color: rgba(245, 158, 11, 0.1);
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
  z-index: -10;
}
.stitch-ambient-glow-2 {
  position: absolute;
  top: 16rem;
  right: 2.5rem;
  width: 20rem;
  height: 20rem;
  background-color: rgba(234, 88, 12, 0.05);
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
  z-index: -10;
}

/* Base resets for the single main wrapper */
.stitch-single-main {
  position: relative;
  padding-bottom: 6rem;
  background-color: #0d0a09;
  color: #ece4de;
}

html[data-theme="light"] .stitch-single-main {
  background-color: #f8f6f0;
  color: #1a1a1a;
}

html[data-theme="light"] .frosted-glass {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .frosted-pill {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .glow-amber {
  box-shadow: 0 0 45px -10px rgba(245, 158, 11, 0.3);
}

.stitch-article-header {
  max-width: 56rem;
  margin-inline: auto;
  padding: 2rem 1.25rem 2.5rem;
}
@media (min-width: 640px) {
  .stitch-article-header {
    padding-top: 3.5rem;
  }
}

.stitch-article-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stitch-back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(253, 230, 138, 0.6);
  transition: color 0.2s;
  text-decoration: none;
}
.stitch-back-link svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  transition: transform 0.2s;
}
.stitch-back-link:hover {
  color: rgba(252, 211, 77, 1);
}
.stitch-back-link:hover svg {
  transform: translateX(-4px);
}
html[data-theme="light"] .stitch-back-link {
  color: rgba(180, 83, 9, 0.7);
}
html[data-theme="light"] .stitch-back-link:hover {
  color: rgba(180, 83, 9, 1);
}

.stitch-header-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stitch-badge-pill {
  padding: 0.25rem 0.875rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fcd34d;
  font-weight: 500;
  border-radius: 9999px;
}
html[data-theme="light"] .stitch-badge-pill {
  color: #b45309;
}

.stitch-text-resizer {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #a8a29e;
}
@media (min-width: 640px) {
  .stitch-text-resizer {
    display: flex;
  }
}
.stitch-text-resizer button {
  padding: 0.25rem 0.5rem;
  color: #d6d3d1;
  font-family: var(--font-serif);
  transition: color 0.2s;
  background: none;
  border: none;
}
.stitch-text-resizer button:hover {
  color: #fcd34d;
}
html[data-theme="light"] .stitch-text-resizer button {
  color: #57534e;
}
.stitch-text-resizer .separator {
  color: #57534e;
}

.stitch-title-wrapper {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.stitch-article-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(251, 191, 36, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.stitch-article-kicker .kicker-line {
  width: 1.5rem;
  height: 1px;
  background-color: rgba(251, 191, 36, 0.4);
}
html[data-theme="light"] .stitch-article-kicker {
  color: rgba(180, 83, 9, 0.8);
}
html[data-theme="light"] .stitch-article-kicker .kicker-line {
  background-color: rgba(180, 83, 9, 0.4);
}

.stitch-article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
html[data-theme="light"] .stitch-article-title {
  color: #1a1a1a;
}

.stitch-article-excerpt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(254, 243, 199, 0.7);
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .stitch-article-excerpt {
    font-size: 1.125rem;
  }
}
html[data-theme="light"] .stitch-article-excerpt {
  color: rgba(120, 53, 15, 0.8);
}

.stitch-article-meta {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 32rem;
  margin-inline: auto;
}
.stitch-article-meta img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4);
}

.stitch-meta-info {
  display: flex;
  flex-direction: column;
}
.stitch-meta-info .meta-author {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.stitch-meta-info .author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}
html[data-theme="light"] .stitch-meta-info .author-name {
  color: #1a1a1a;
}
.stitch-meta-info .author-star {
  color: #fbbf24;
  font-size: 0.75rem;
}

.stitch-meta-info .meta-details {
  font-size: 0.75rem;
  color: #a8a29e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.125rem;
}
.stitch-meta-info .meta-details .meta-readers {
  color: rgba(252, 211, 77, 0.8);
}

.stitch-hero-figure {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
  margin-bottom: 3rem;
}
.stitch-hero-img-wrapper {
  position: relative;
  height: 24rem;
  border-radius: 1rem;
  overflow: hidden;
}
.stitch-hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stitch-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0c0a0a, transparent, transparent);
}
html[data-theme="light"] .stitch-hero-gradient {
  background: linear-gradient(to top, #f8f6f0, transparent, transparent);
}

.stitch-article-body {
  max-width: 42rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
  font-family: Verdana, sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #e7e5e4;
}
.stitch-article-body p {
  white-space: pre-wrap;
  margin-bottom: 2rem;
}
.stitch-article-body > * + * {
  margin-top: 1.75rem;
}
html[data-theme="light"] .stitch-article-body {
  color: #292524;
}
.stitch-article-body h2,
.stitch-article-body h3 {
  color: #ffffff;
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
html[data-theme="light"] .stitch-article-body h2,
html[data-theme="light"] .stitch-article-body h3 {
  color: #1a1a1a;
}

.stitch-article-tags {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
}
.stitch-article-tags .tags-label {
  color: #a8a29e;
  margin-right: 0.25rem;
}
.stitch-article-tags a {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  color: #d6d3d1;
  transition: color 0.2s;
  text-decoration: none;
}
.stitch-article-tags a:hover {
  color: #fcd34d;
}
html[data-theme="light"] .stitch-article-tags a {
  color: #57534e;
}

.stitch-reaction-bar {
  max-width: 42rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.stitch-reaction-card {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reaction-left .like-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: rgba(244, 63, 94, 0.1);
  color: rgba(253, 164, 175, 1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  transition: all 0.2s;
  cursor: pointer;
}
.reaction-left .like-btn:hover {
  background-color: rgba(244, 63, 94, 0.2);
}
.reaction-left .like-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  color: rgba(251, 113, 133, 1);
}
.reaction-left .like-btn .like-count {
  font-size: 0.75rem;
  font-weight: 600;
}

.reaction-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.reaction-right .share-label {
  font-size: 0.75rem;
  color: #a8a29e;
  margin-right: 0.25rem;
  display: none;
}
@media (min-width: 640px) {
  .reaction-right .share-label {
    display: inline;
  }
}
.reaction-right .share-btn {
  padding: 0.5rem;
  border-radius: 9999px;
  color: #d6d3d1;
  transition: all 0.2s;
  cursor: pointer;
}
.reaction-right .share-btn:hover {
  color: #fcd34d;
  background-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="light"] .reaction-right .share-btn {
  color: #57534e;
}
.reaction-right .share-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.stitch-related-section {
  max-width: 72rem;
  margin-inline: auto;
  padding: 3rem 1.25rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
html[data-theme="light"] .stitch-related-section {
  border-top-color: rgba(0, 0, 0, 0.1);
}
.stitch-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.stitch-related-header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
html[data-theme="light"] .stitch-related-header h2 {
  color: #1a1a1a;
}
.stitch-related-header p {
  font-size: 0.75rem;
  color: #a8a29e;
}
.stitch-related-header .explore-all {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 500;
  text-decoration: none;
}
.stitch-related-header .explore-all:hover {
  color: #fcd34d;
}
.stitch-related-header .explore-all svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ==========================================================================
   STITCH COMMENTS LAYOUT & STYLES (NEW)
   ========================================================================== */
.comments-section {
  max-width: 42rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
  margin-top: 4rem;
}
.comments-inner {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.5rem;
}
html[data-theme="light"] .comments-inner {
  border-top-color: rgba(0, 0, 0, 0.1);
}
.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.comments-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #ffffff;
}
html[data-theme="light"] .comments-title {
  color: #1a1a1a;
}
.comments-count {
  font-size: 0.75rem;
  color: #fbbf24;
  background-color: rgba(245, 158, 11, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
html[data-theme="light"] .comments-count {
  color: #d97706;
}

.comment-form-wrapper {
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
html[data-theme="light"] .comment-form-wrapper {
  border-color: rgba(0, 0, 0, 0.1);
}
.comment-form-title {
  display: block;
  font-size: 0.75rem;
  color: #d6d3d1;
  margin-bottom: 0.5rem;
}
html[data-theme="light"] .comment-form-title {
  color: #57534e;
}
.comment-textarea {
  width: 100%;
  font-size: 0.875rem;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem;
  color: #e7e5e4;
  resize: none;
  transition: all 0.2s;
}
html[data-theme="light"] .comment-textarea {
  background-color: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}
.comment-textarea:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.5);
}

.comment-form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}
.comment-note {
  font-size: 11px;
  color: #a8a29e;
  font-style: italic;
}
.submit-btn-poetic {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background-color: #f59e0b;
  color: #0c0a0a;
  font-weight: 500;
  font-size: 0.75rem;
  border: none;
  transition: background-color 0.2s;
  cursor: pointer;
}
.submit-btn-poetic:hover {
  background-color: #fbbf24;
}

.comment-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.comment-item {
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .comment-item {
  border-color: rgba(0, 0, 0, 0.05);
}
.comment-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.comment-author-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.comment-avatar-wrapper img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.comment-author-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}
html[data-theme="light"] .comment-author-name {
  color: #1a1a1a;
}
.comment-time {
  font-size: 10px;
  color: #a8a29e;
  margin-left: 0.5rem;
}
.comment-reply-action a {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: #a8a29e;
  transition: color 0.2s;
  text-decoration: none;
}
.comment-reply-action a:hover {
  color: #fbbf24;
}
.comment-item-body {
  font-size: 0.875rem;
  color: #d6d3d1;
  font-family: var(--font-sans);
  line-height: 1.6;
}
html[data-theme="light"] .comment-item-body {
  color: #44403c;
}

/* ==========================================================================
   STITCH HEADER (NEW)
   ========================================================================== */
.stitch-header {
  position: relative;
  z-index: 30;
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 1024px) {
  .stitch-header {
    padding-inline: 3rem;
  }
}
html[data-theme="light"] .stitch-header {
  border-bottom-color: rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.5);
}

.stitch-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}
.stitch-logo svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #ffffff;
  transform: rotate(-12deg);
  stroke-width: 1.8;
}
html[data-theme="light"] .stitch-logo svg {
  color: #1a1a1a;
}
.stitch-logo-text {
  font-family: var(--font-script);
  font-size: 1.875rem;
  letter-spacing: 0.025em;
  color: #ffffff;
  transform: translateY(2px);
}
html[data-theme="light"] .stitch-logo-text {
  color: #1a1a1a;
}

.stitch-nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.90625rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}
@media (min-width: 768px) {
  .stitch-nav {
    display: flex;
  }
}
.stitch-nav a {
  color: #d4d4d8;
  transition: color 0.2s;
  text-decoration: none;
}
.stitch-nav a:hover {
  color: #ffffff;
}
html[data-theme="light"] .stitch-nav a {
  color: #52525b;
}
html[data-theme="light"] .stitch-nav a:hover {
  color: #18181b;
}
.stitch-nav a.current-menu-item {
  color: #ffffff;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.25rem;
}
html[data-theme="light"] .stitch-nav a.current-menu-item {
  color: #18181b;
}
.stitch-nav a.current-menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 9999px;
}
html[data-theme="light"] .stitch-nav a.current-menu-item::after {
  background-color: #18181b;
}

.stitch-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stitch-search-wrap {
  display: none;
  position: relative;
  width: 12rem;
}
@media (min-width: 640px) {
  .stitch-search-wrap { display: block; }
}
@media (min-width: 1024px) {
  .stitch-search-wrap { width: 14rem; }
}
.stitch-search-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}
.stitch-search-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
  font-size: 0.75rem;
  border-radius: 9999px;
  padding: 0.375rem 0.75rem 0.375rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.stitch-search-input::placeholder { color: #9ca3af; }
.stitch-search-input:hover { background-color: rgba(255, 255, 255, 0.15); }
.stitch-search-input:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.5);
  border-color: rgba(251, 191, 36, 0.7);
}
html[data-theme="light"] .stitch-search-input {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}
html[data-theme="light"] .stitch-search-input:hover {
  background-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .stitch-search-input:focus {
  background-color: #ffffff;
  border-color: rgba(180, 83, 9, 0.5);
}

.stitch-theme-toggle {
  padding: 0.5rem;
  color: #d4d4d8;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.stitch-theme-toggle:hover { color: #ffffff; }
html[data-theme="light"] .stitch-theme-toggle { color: #52525b; }
html[data-theme="light"] .stitch-theme-toggle:hover { color: #18181b; }

/* ==========================================================================
   STITCH HERO (NEW)
   ========================================================================== */
.stitch-hero-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.6);
}
.stitch-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.stitch-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  filter: brightness(0.72) contrast(1.08) saturate(1.25);
}
.stitch-hero-overlay-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #121214, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}
.stitch-hero-overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75));
}
.stitch-hero-overlay-3 {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(120, 53, 15, 0.1), transparent, transparent);
  pointer-events: none;
}
html[data-theme="light"] .stitch-hero-overlay-1 {
  background: linear-gradient(to top, #f7f5f1, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
}
html[data-theme="light"] .stitch-hero-overlay-2 {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.8));
}

.stitch-hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin-inline: auto;
  padding: 5rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 24rem;
}
@media (min-width: 1024px) {
  .stitch-hero-content { padding-inline: 3.5rem; }
}

.stitch-hero-text-wrap {
  max-width: 42rem;
  margin-top: 1rem;
}
.stitch-hero-title {
  font-family: Verdana, sans-serif !important;
  font-size: clamp(1.875rem, 5vw, 2.875rem);
  line-height: 1.25;
  color: #ffffff;
  font-weight: bold !important;
  margin-bottom: 1.25rem;
}
html[data-theme="light"] .stitch-hero-title {
  color: #1a1a1a;
}
.stitch-hero-title a {
  color: inherit;
  text-decoration: none;
}
.stitch-hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: #d4d4d8;
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.625;
  max-width: 36rem;
  font-weight: 300;
  margin-bottom: 1.75rem;
}
html[data-theme="light"] .stitch-hero-subtitle {
  color: #52525b;
}

.stitch-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: #d4d4d8;
}
html[data-theme="light"] .stitch-hero-meta {
  color: #52525b;
}
.stitch-hero-meta img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .stitch-hero-meta img {
  border-color: rgba(0, 0, 0, 0.1);
}
.stitch-hero-meta .author-name {
  font-weight: 500;
  color: #e5e5e5;
}
html[data-theme="light"] .stitch-hero-meta .author-name {
  color: #1a1a1a;
}

.stitch-hero-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .stitch-hero-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.stitch-carousel-arrows {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
}
html[data-theme="light"] .stitch-carousel-arrows {
  color: rgba(0, 0, 0, 0.5);
}
.stitch-carousel-arrows button {
  background: none;
  border: none;
  color: inherit;
  transition: color 0.2s;
  cursor: pointer;
}
.stitch-carousel-arrows button:hover {
  color: #ffffff;
}
html[data-theme="light"] .stitch-carousel-arrows button:hover {
  color: #1a1a1a;
}
.stitch-carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stitch-carousel-dots .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  padding: 0;
}
.stitch-carousel-dots .dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}
.stitch-carousel-dots .dot.is-active {
  width: 0.625rem;
  height: 0.625rem;
  background-color: #ffffff;
}
html[data-theme="light"] .stitch-carousel-dots .dot {
  background-color: rgba(0, 0, 0, 0.2);
}
html[data-theme="light"] .stitch-carousel-dots .dot:hover {
  background-color: rgba(0, 0, 0, 0.4);
}
html[data-theme="light"] .stitch-carousel-dots .dot.is-active {
  background-color: #1a1a1a;
}

.stitch-audio-player {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}
@media (min-width: 640px) {
  .stitch-audio-player {
    width: auto;
  }
}
html[data-theme="light"] .stitch-audio-player {
  background-color: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

.stitch-audio-play {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.1s, background-color 0.2s;
}
.stitch-audio-play:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.stitch-audio-play:active {
  transform: scale(0.95);
}
html[data-theme="light"] .stitch-audio-play {
  background-color: rgba(0, 0, 0, 0.05);
}
html[data-theme="light"] .stitch-audio-play:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.stitch-audio-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding-right: 0.5rem;
}
.stitch-audio-info .track {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.stitch-audio-info .artist {
  font-size: 0.625rem;
  color: #9ca3af;
}
html[data-theme="light"] .stitch-audio-info .artist {
  color: #52525b;
}

.stitch-audio-volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
html[data-theme="light"] .stitch-audio-volume {
  border-left-color: rgba(0, 0, 0, 0.1);
}
.stitch-audio-volume svg {
  width: 1rem;
  height: 1rem;
  color: #d4d4d8;
}
html[data-theme="light"] .stitch-audio-volume svg {
  color: #52525b;
}
.stitch-audio-bar {
  width: 4rem;
  height: 0.25rem;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: pointer;
}
html[data-theme="light"] .stitch-audio-bar {
  background-color: rgba(0, 0, 0, 0.1);
}
.stitch-audio-fill {
  width: 75%;
  height: 100%;
  background-color: #fbbf24;
  border-radius: 9999px;
}
html[data-theme="light"] .stitch-audio-fill {
  background-color: #d97706;
}

.stitch-audio-expand {
  color: #9ca3af;
  padding-left: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.stitch-audio-expand:hover {
  color: #ffffff;
}
html[data-theme="light"] .stitch-audio-expand {
  color: #52525b;
}
html[data-theme="light"] .stitch-audio-expand:hover {
  color: #1a1a1a;
}