/* ===========================================
   BLD VENTURES — PREMIUM DESIGN SYSTEM v2
   Fonts: Cormorant Garamond + DM Sans
   Design: Luxury Independent Publisher
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Core Palette */
  --cream:        #F8F4EC;
  --warm-white:   #FDFAF5;
  --parchment:    #EDE5D0;
  --brown-deep:   #2C1A0E;
  --brown-mid:    #5C3317;
  --brown-light:  #8B5A3A;
  --green-deep:   #1E4035;
  --green-mid:    #2A5741;
  --green-light:  #3D7A5C;
  --gold:         #C8953A;
  --gold-light:   #E8B96A;
  --gold-pale:    #F5E6C8;

  /* Shadows — warm, deep */
  --shadow-xs:  0 1px 4px rgba(44,26,14,.08);
  --shadow-sm:  0 2px 8px rgba(44,26,14,.10), 0 1px 3px rgba(44,26,14,.06);
  --shadow-md:  0 6px 24px rgba(44,26,14,.13), 0 2px 8px rgba(44,26,14,.07);
  --shadow-lg:  0 16px 48px rgba(44,26,14,.16), 0 4px 16px rgba(44,26,14,.08);
  --shadow-xl:  0 32px 80px rgba(44,26,14,.20), 0 8px 32px rgba(44,26,14,.10);
  --shadow-glow: 0 0 40px rgba(42,87,65,.22), 0 0 80px rgba(42,87,65,.10);
  --shadow-gold: 0 0 30px rgba(200,149,58,.25);

  /* Gradients */
  --grad-hero:     linear-gradient(135deg, #F8F4EC 0%, #EDE5D0 55%, #DDD0B5 100%);
  --grad-green:    linear-gradient(135deg, #1E4035 0%, #2A5741 50%, #3D7A5C 100%);
  --grad-gold:     linear-gradient(135deg, #C8953A 0%, #E8B96A 100%);
  --grad-dark:     linear-gradient(160deg, #1A0E06 0%, #2C1A0E 100%);
  --grad-card:     linear-gradient(180deg, rgba(253,250,245,0) 60%, rgba(44,26,14,.7) 100%);
  --grad-shimmer:  linear-gradient(90deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-family: var(--font-body) !important;
  background-color: var(--warm-white);
  color: var(--brown-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  letter-spacing: .01em;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--brown-deep);
}

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

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}
@keyframes floatAlt {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%       { transform: translateY(-8px) rotate(-6deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50%       { box-shadow: 0 0 60px rgba(42,87,65,.35), 0 0 100px rgba(42,87,65,.15); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
}
.hero-blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,149,58,.18) 0%, transparent 70%);
  top: -200px; right: -200px;
}
.hero-blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,87,65,.14) 0%, transparent 70%);
  bottom: -150px; left: -150px;
}
.hero-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(237,229,208,.6) 0%, transparent 70%);
  top: 30%; left: 35%;
}

/* Decorative text pattern */
.hero-section::before {
  content: 'BLD';
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(180px, 25vw, 320px);
  font-weight: 700;
  color: rgba(44,26,14,.035);
  letter-spacing: -.05em;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(200,149,58,.12);
  border: 1px solid rgba(200,149,58,.3);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: fadeUp .7s var(--ease-out) both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--brown-deep);
  animation: fadeUp .8s .1s var(--ease-out) both;
}
.hero-title em {
  font-style: italic;
  color: var(--green-mid);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brown-light);
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  animation: fadeUp .8s .2s var(--ease-out) both;
  line-height: 1.6;
}

/* Hero CTA buttons */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  background: var(--grad-green);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(42,87,65,0);
  transition: transform .35s var(--ease-spring),
              box-shadow .35s var(--ease-out);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.btn-hero-primary:active { transform: translateY(-1px); }

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--green-deep);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--green-mid);
  cursor: pointer;
  transition: all .3s var(--ease-out);
}
.btn-hero-outline:hover {
  background: var(--green-deep);
  color: var(--warm-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeUp .8s .35s var(--ease-out) both;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-mid);
  line-height: 1;
}
.stat-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  background: rgba(44,26,14,.15);
  align-self: stretch;
}

/* Hero book stack */
.hero-books-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  margin: 0 auto;
  animation: fadeIn .9s .3s var(--ease-out) both;
}
.book-card-hero {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.book-card-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.book-card-hero.primary {
  width: 68%;
  aspect-ratio: 2/3;
  right: 0; top: 0;
  z-index: 3;
  animation: float 5s ease-in-out infinite;
}
.book-card-hero.secondary {
  width: 55%;
  aspect-ratio: 2/3;
  left: 0; bottom: 4%;
  z-index: 2;
  animation: floatAlt 6s 1s ease-in-out infinite;
  filter: brightness(.85);
}
.book-card-hero.tertiary {
  width: 42%;
  aspect-ratio: 2/3;
  left: 16%; top: 5%;
  z-index: 1;
  animation: float 7s 2s ease-in-out infinite;
  filter: brightness(.7) blur(1px);
}

/* No-cover placeholder */
.no-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--parchment);
  color: var(--brown-light);
  font-family: var(--font-display);
  font-size: 1.1rem;
  gap: 8px;
}

/* ============================================
   SECTION LAYOUT HELPERS
   ============================================ */
.bld-section {
  padding: 88px 0;
}
.bld-section-dark {
  padding: 88px 0;
  background: var(--grad-dark);
  color: var(--warm-white);
}
.bld-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .bld-container { padding: 0 40px; } }

.section-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title-light { color: var(--warm-white); }
.section-subtitle {
  font-size: 1rem;
  color: var(--brown-light);
  line-height: 1.7;
  max-width: 560px;
}
.section-subtitle-light { color: rgba(253,250,245,.7); }

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid rgba(44,26,14,.1);
  padding-bottom: 20px;
  margin-bottom: 48px;
  gap: 16px;
  flex-wrap: wrap;
}
.link-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-mid);
  text-decoration: none;
  transition: gap .25s, color .25s;
  white-space: nowrap;
}
.link-view-all:hover { color: var(--gold); gap: 10px; }
.link-view-all svg { width: 14px; height: 14px; transition: transform .25s; }
.link-view-all:hover svg { transform: translateX(4px); }

/* ============================================
   BOOK CARDS — PREMIUM
   ============================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}
@media (min-width: 640px)  { .books-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .books-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .books-grid { grid-template-columns: repeat(5, 1fr); } }

.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  background: var(--warm-white);
}
.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.book-cover-wrap {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--parchment);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.book-cover-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out);
}
.book-card:hover .book-cover-wrap img { transform: scale(1.06); }

/* Overlay on hover */
.book-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,64,53,.88) 0%, rgba(30,64,53,.1) 60%, transparent 100%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.book-card:hover .book-cover-overlay { opacity: 1; }
.book-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--brown-deep);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: transform .3s .05s var(--ease-spring);
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}
.book-card:hover .book-overlay-btn { transform: translateY(0); }

/* Badge on cover */
.book-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 2;
}
.book-badge-new { background: var(--gold); color: var(--brown-deep); }
.book-badge-featured { background: var(--green-mid); color: var(--warm-white); }

.book-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brown-deep);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-author {
  font-size: .8rem;
  color: var(--brown-light);
  margin-bottom: 8px;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.book-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-mid);
}
.book-price-mrp {
  font-size: .78rem;
  color: var(--brown-light);
  text-decoration: line-through;
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .cats-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform .35s var(--ease-out), box-shadow .35s;
  border: 1px solid rgba(44,26,14,.06);
}
.cat-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-md); }
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .3s;
  pointer-events: none;
}
.cat-card:hover::after { background: rgba(0,0,0,.04); }
.cat-card-1 { background: linear-gradient(135deg, #E3ECE5 0%, #D4E6D8 100%); }
.cat-card-2 { background: linear-gradient(135deg, #F5EDE1 0%, #EDE0CD 100%); }
.cat-card-3 { background: linear-gradient(135deg, #E1EBF4 0%, #D4E4F0 100%); }
.cat-card-4 { background: linear-gradient(135deg, #F5E5E7 0%, #EDD5D8 100%); }
.cat-card-5 { background: linear-gradient(135deg, #EDE5F0 0%, #E0D5E8 100%); }
.cat-card-6 { background: linear-gradient(135deg, #E5EDE5 0%, #D8E5D8 100%); }
.cat-card-7 { background: linear-gradient(135deg, #F0EBE1 0%, #E8E0D4 100%); }
.cat-card-8 { background: linear-gradient(135deg, #E1F0F0 0%, #D4E8E8 100%); }

.cat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.cat-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1.2;
}
.cat-count {
  font-size: .75rem;
  font-weight: 500;
  color: var(--brown-light);
  letter-spacing: .05em;
}

/* ============================================
   AUTHORS GRID
   ============================================ */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
@media (min-width: 640px)  { .authors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .authors-grid { grid-template-columns: repeat(4, 1fr); } }

.author-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: transform .35s var(--ease-out);
}
.author-card:hover { transform: translateY(-6px); }

.author-avatar-wrap {
  position: relative;
  width: 120px; height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
}
@media (min-width: 768px) { .author-avatar-wrap { width: 160px; height: 160px; } }

.author-avatar-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(var(--gold), var(--green-mid), var(--gold)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
}
.author-card:hover .author-avatar-ring { opacity: 1; }

.author-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--parchment);
  border: 3px solid rgba(200,149,58,.15);
  transition: border-color .35s, box-shadow .35s;
}
.author-card:hover .author-avatar {
  border-color: rgba(200,149,58,.4);
  box-shadow: var(--shadow-gold);
}
.author-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.author-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-mid);
}

.author-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1.25;
  transition: color .25s;
}
.author-card:hover .author-name { color: var(--green-mid); }

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  padding: 100px 0;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(42,87,65,.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.newsletter-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.newsletter-inner { position: relative; z-index: 1; text-align: center; }
.newsletter-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--warm-white);
  margin-bottom: 16px;
}
.newsletter-subtitle {
  color: rgba(253,250,245,.65);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
@media (min-width: 560px) { .newsletter-form { flex-direction: row; } }

.newsletter-input {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  background: rgba(253,250,245,.1);
  border: 1px solid rgba(253,250,245,.15);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: background .25s, border-color .25s;
  width: 100%;
}
.newsletter-input::placeholder { color: rgba(253,250,245,.4); }
.newsletter-input:focus {
  background: rgba(253,250,245,.15);
  border-color: rgba(200,149,58,.5);
}
.newsletter-btn {
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-md);
  background: var(--grad-gold);
  color: var(--brown-deep);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ============================================
   PREMIUM HEADER OVERRIDES
   ============================================ */
header {
  background: rgba(253,250,245,.92) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  border-bottom: 1px solid rgba(200,149,58,.12) !important;
  transition: box-shadow .3s, background .3s !important;
}
header.scrolled { box-shadow: var(--shadow-md) !important; }

header nav a {
  font-size: .78rem !important;
  font-weight: 500 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: var(--brown-mid) !important;
  position: relative !important;
  transition: color .25s !important;
}
header nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--green-mid);
  transition: width .3s;
}
header nav a:hover { color: var(--green-mid) !important; }
header nav a:hover::after { width: 100%; }

/* Publish link */
header nav a.text-primary { color: var(--gold) !important; font-weight: 700 !important; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: rgba(44,26,14,.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-mid); }

/* ============================================
   SKELETON LOADER
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--parchment) 25%, #f0e8d5 50%, var(--parchment) 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--radius-md);
}
