/* ===================================================
   NIVANI BHIMSAN — Minimalist Personal Blog
   Palette: Warm White · Dusty Rose · Warm Dark · Gold
   =================================================== */

/* --- TOKENS --- */
:root {
  --cream:      #FAF8F5;
  --white:      #FFFFFF;
  --rose:       #B8939E;
  --rose-light: #E8D8DC;
  --rose-pale:  #F5EEF0;
  --dark:       #2A2426;
  --mid:        #6B5D60;
  --light:      #9C8C8F;
  --gold:       #C8A96E;
  --gold-light: #EDD9A3;
  --border:     #E8E0E2;

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;

  --max-w:      720px;
  --max-w-wide: 1100px;
  --radius:     2px;
  --transition: 0.25s ease;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.5em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

/* --- CONTAINERS --- */
.container {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===================================================
   HEADER / NAV
   =================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(42,36,38,0.08);
}

.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img,
.nav-logo svg {
  height: 44px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.nav-logo-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark);
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.9rem 2rem;
    font-size: 0.85rem;
    width: 100%;
  }
  .nav-links a::after { display: none; }
}

/* Page offset for fixed header */
main { padding-top: 72px; }

/* ===================================================
   HERO
   =================================================== */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(184,147,158,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--rose);
  margin: 2rem auto;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--dark);
  color: var(--dark);
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 400;
}

.btn:hover {
  background: var(--dark);
  color: var(--white);
}

.btn--rose {
  border-color: var(--rose);
  color: var(--rose);
}

.btn--rose:hover {
  background: var(--rose);
  color: var(--white);
}

.btn--filled {
  background: var(--dark);
  color: var(--white);
}

.btn--filled:hover {
  background: var(--rose);
  border-color: var(--rose);
}

.btn--gold {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold);
  color: var(--white);
}

/* ===================================================
   SECTION SCAFFOLDING
   =================================================== */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--white);
}

.section--rose {
  background: var(--rose-pale);
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--mid);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================
   POSTS GRID
   =================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.post-card {
  background: var(--white);
  transition: background var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-card:hover {
  background: var(--rose-pale);
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.04);
}

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

.post-card-meta {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-card-meta span { color: var(--border); }

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--dark);
  transition: color var(--transition);
}

.post-card:hover .post-card-title { color: var(--rose); }

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.5rem;
}

.post-card-link {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition);
}

.post-card-link::after { content: '→'; }
.post-card:hover .post-card-link { gap: 0.75rem; color: var(--rose); }

/* Category pills */
.pill {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--rose-light);
  color: var(--rose);
  border-radius: 20px;
  margin: 0 0.25rem 0.25rem 0;
}

/* ===================================================
   BLOG LISTING PAGE
   =================================================== */
.blog-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.posts-list {
  display: grid;
  gap: 0;
}

.post-list-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: start;
  transition: padding-left var(--transition);
}

.post-list-item:hover { padding-left: 0.5rem; }

.post-list-date {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
  padding-top: 0.3rem;
  line-height: 1.6;
}

.post-list-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.post-list-item:hover .post-list-title { color: var(--rose); }

.post-list-excerpt {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.post-list-cats { margin-top: 0.25rem; }

@media (max-width: 600px) {
  .post-list-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  border-radius: 20px;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--rose);
  color: var(--rose);
  background: var(--rose-pale);
}

/* ===================================================
   SINGLE POST
   =================================================== */
.post-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.post-hero-image {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  margin-bottom: 4rem;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.post-header-meta {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.post-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--dark);
  max-width: var(--max-w);
  margin: 0 auto;
}

.post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 2.5rem 0 1rem;
  color: var(--dark);
}

.post-body h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 2rem 0 0.75rem;
}

.post-body p {
  margin-bottom: 1.75em;
}

.post-body ul, .post-body ol {
  margin: 0 0 1.75em 1.5em;
  list-style: disc;
}

.post-body ol { list-style: decimal; }

.post-body li { margin-bottom: 0.5em; }

.post-body blockquote {
  border-left: 2px solid var(--rose);
  padding: 1rem 0 1rem 2rem;
  margin: 2rem 0;
  color: var(--mid);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
}

.post-body a {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding-top: 3rem;
}

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

.post-nav-prev, .post-nav-next {
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}

.post-nav-next { text-align: right; }

.post-nav-prev:hover, .post-nav-next:hover {
  border-color: var(--rose);
  background: var(--rose-pale);
}

.post-nav-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  display: block;
  margin-bottom: 0.5rem;
}

.post-nav-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.3;
}

@media (max-width: 600px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
}

/* ===================================================
   ABOUT / INTRO SECTION
   =================================================== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: -1.5rem;
  bottom: -1.5rem;
  border: 1px solid var(--rose-light);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text .section-intro { margin-bottom: 2rem; }

.about-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--rose-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

.about-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--rose-light);
}

@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image::after { display: none; }
}

/* ===================================================
   BOOK SECTION
   =================================================== */
.book-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: center;
}

.book-cover {
  position: relative;
}

.book-cover img {
  width: 100%;
  box-shadow: 20px 20px 60px rgba(42,36,38,0.15);
  border-radius: var(--radius);
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--rose) 0%, var(--mid) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 2rem;
  box-shadow: 20px 20px 60px rgba(42,36,38,0.15);
}

.book-cover-placeholder h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.book-cover-placeholder p {
  font-size: 0.85rem;
  opacity: 0.8;
  color: var(--white);
}

.book-meta { margin: 1.5rem 0; }

.book-meta p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.8;
}

.book-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .book-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .book-cover { max-width: 280px; margin: 0 auto; }
}

/* ===================================================
   PODCAST SECTION
   =================================================== */
.episodes-list { display: grid; gap: 1px; }

.episode-card {
  background: var(--white);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--border);
  border-bottom: none;
  transition: background var(--transition);
}

.episode-card:last-child { border-bottom: 1px solid var(--border); }
.episode-card:hover { background: var(--rose-pale); }

.episode-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--rose-light);
  min-width: 2rem;
  text-align: center;
}

.episode-info { flex: 1; }

.episode-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  color: var(--dark);
}

.episode-date {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
}

.episode-duration {
  font-size: 0.75rem;
  color: var(--light);
  white-space: nowrap;
}

.episode-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rose);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--rose);
  transition: all var(--transition);
  flex-shrink: 0;
}

.episode-play-btn:hover {
  background: var(--rose);
  color: var(--white);
}

.podcast-platforms {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.platform-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.platform-link:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.podcast-loading {
  text-align: center;
  padding: 3rem;
  color: var(--light);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .episode-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .episode-num { display: none; }
}

/* ===================================================
   QUOTE / PULL QUOTE
   =================================================== */
.pull-quote {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--dark);
  color: var(--white);
}

.pull-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  color: var(--white);
}

.pull-quote cite {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-light);
}

/* ===================================================
   NEWSLETTER / CTA
   =================================================== */
.newsletter {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--rose-pale);
  border-top: 1px solid var(--rose-light);
  border-bottom: 1px solid var(--rose-light);
}

.newsletter h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.newsletter p {
  color: var(--mid);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--border);
  border-right: none;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--dark);
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--rose);
}

.newsletter-form button {
  padding: 0.9rem 1.5rem;
  background: var(--dark);
  color: var(--white);
  border: 1px solid var(--dark);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--rose);
  border-color: var(--rose);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input[type="email"] {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 4rem 0 2rem;
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-brand .nav-logo-name {
  color: var(--white);
  font-size: 1.4rem;
}

.footer-brand .nav-logo-tagline { color: var(--rose-light); }

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}

.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--rose-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-nav { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===================================================
   PAGE HERO (inner pages)
   =================================================== */
.page-hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-hero .section-label { margin-bottom: 0.5rem; }

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--mid);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.8;
}

/* ===================================================
   ADMIN
   =================================================== */
.admin-wrap {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.admin-form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
  outline: none;
  transition: border-color var(--transition);
  border-radius: var(--radius);
}

.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--rose);
}

.admin-form textarea {
  min-height: 400px;
  resize: vertical;
  line-height: 1.6;
}

.admin-posts-list { margin-top: 2rem; }

.admin-post-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.admin-post-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.admin-post-date {
  font-size: 0.75rem;
  color: var(--light);
}

.admin-actions { display: flex; gap: 0.5rem; }

.admin-btn {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  cursor: pointer;
  background: transparent;
  font-family: var(--font-sans);
  transition: all var(--transition);
  color: var(--mid);
  border-radius: var(--radius);
}

.admin-btn:hover { border-color: var(--dark); color: var(--dark); }
.admin-btn--danger:hover { border-color: #c0392b; color: #c0392b; }
.admin-btn--primary { background: var(--dark); color: var(--white); border-color: var(--dark); }
.admin-btn--primary:hover { background: var(--rose); border-color: var(--rose); }

.alert {
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  border-radius: var(--radius);
}

.alert--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert--error { background: #fce4ec; color: #c62828; border: 1px solid #f8bbd0; }

/* ===================================================
   UTILITY
   =================================================== */
.text-center { text-align: center; }
.text-rose { color: var(--rose); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.divider {
  width: 48px;
  height: 1px;
  background: var(--rose);
  margin: 2rem 0;
}

.divider--center { margin: 2rem auto; }

/* Fade in animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* Loading spinner */
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--rose-light);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  transition: all var(--transition);
  color: var(--mid);
}

.pagination a:hover { border-color: var(--rose); color: var(--rose); }
.pagination .current { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 2rem;
  transition: color var(--transition), gap var(--transition);
}

.back-link::before { content: '←'; }
.back-link:hover { color: var(--rose); gap: 0.75rem; }

/* ===================================================
   V2 IMPROVEMENTS — appended 2026
   Mobile polish · accessibility · podcast v2
   =================================================== */

/* --- Skip link for keyboard users --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--dark);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

/* --- Visible focus for keyboard users everywhere --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Mobile body readability: stop the 300-weight thinness --- */
@media (max-width: 768px) {
  body { font-weight: 400; line-height: 1.7; }
  .post-body p, .post-body li { font-size: 1.05rem; line-height: 1.8; }
  .section-intro { font-weight: 400; }
}

/* --- Touch targets: min 44px on mobile --- */
@media (max-width: 768px) {
  .nav-links a { padding: 1rem 2rem; min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 44px; padding: 0.85rem 1.75rem; display: inline-flex; align-items: center; }
  .filter-btn { min-height: 40px; padding: 0.6rem 1rem; }
  .nav-toggle { width: 44px; height: 44px; justify-content: center; }
  .platform-link { min-height: 44px; }
  .episode-play-btn { min-width: 44px; min-height: 44px; }
  .pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* --- Contrast bump: mid-tone body text was ~4.2:1, bump to 4.8+:1 --- */
:root {
  --mid: #5A4D50;   /* was #6B5D60 */
  --light: #857578; /* was #9C8C8F */
}

/* --- Placeholder styling for posts without images --- */
.post-card:not(:has(img)) .post-card-body { padding-top: 2rem; }
.post-hero-placeholder {
  background: linear-gradient(135deg, var(--rose-pale) 0%, var(--cream) 50%, var(--rose-light) 100%);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.post-hero-placeholder::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border: 1px solid rgba(184,147,158,0.35);
  border-radius: 50%;
}
.post-hero-placeholder::before {
  content: 'N·B';
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--rose);
  letter-spacing: 0.1em;
}

/* --- Image loading: subtle fade-in, no layout shift --- */
img[loading="lazy"] {
  background: var(--rose-pale);
}

/* --- Podcast v2: inline audio player --- */
.episode-card-v2 {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}
.episode-card-v2:hover { border-color: var(--rose-light); }
.episode-card-v2-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.episode-card-v2-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--rose);
  font-size: 1.2rem;
  flex-shrink: 0;
  min-width: 2.5rem;
}
.episode-card-v2-body { flex: 1; min-width: 0; }
.episode-card-v2-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.episode-card-v2-meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
}
.episode-card-v2-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.episode-card-v2 audio {
  width: 100%;
  height: 40px;
  border-radius: var(--radius);
  outline: none;
}
.episode-card-v2-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.episode-card-v2-links a {
  color: var(--rose);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
  padding: 0.25rem 0;
}
.episode-card-v2-links a:hover { border-bottom-color: var(--rose); }

@media (max-width: 600px) {
  .episode-card-v2 { padding: 1.25rem 1rem; }
  .episode-card-v2-header { flex-direction: column; gap: 0.5rem; }
  .episode-card-v2-num { font-size: 1rem; }
}

/* --- Podcast error/empty state polish --- */
.podcast-error {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--mid);
  background: var(--rose-pale);
  border-radius: var(--radius);
}
.podcast-error a { color: var(--rose); text-decoration: underline; }

/* --- Prefer-reduced-motion users: kill all transitions --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* --- Prevent iOS font zoom on input focus --- */
input, select, textarea { font-size: 16px; }

/* --- Better mobile hero spacing --- */
@media (max-width: 600px) {
  .hero { padding: 3rem 0 3rem; }
  .section { padding: 3rem 0; }
  .page-hero { padding: 4rem 0 2rem; }
}

/* Blog list thumbnails - object-fit override for responsive_image() output */
.blog-thumb,
.blog-thumb img,
picture .blog-thumb { width:100%; height:100%; object-fit:cover; display:block; }
.post-card-image picture,
.post-card-image img,
.post-hero-image picture,
.post-hero-image img,
.about-image picture,
.about-image img,
.book-cover picture,
.book-cover img { width:100%; height:100%; display:block; }
.post-card-image picture img,
.post-hero-image picture img { object-fit:cover; }
.about-image picture img { object-fit:cover; }
.book-cover picture img { object-fit:contain; }
