:root{
    /* --- color --- */
    --cream:        #FBF6EC;
    --cream-deep:   #F3EAD9;
    --card:         #FFFFFF;
    --card-soft:    #F7F3EA;
    --ink:          #263241;
    --ink-soft:     #69675e;
    --ink-faint:    #9AA4AD;
    --orange:       #E67A3C;
    --orange-dark:  #C25E24;
    --orange-light: #FCE6D3;
    --teal:         #4FA9B8;
    --teal-light:   #DDF0F0;
    --border:       #E9E1D0;
    --white:        #FFFFFF;
  
    /* --- type --- */
    --font-display: 'Fraunces', serif;
    --font-body:   'Manrope';
  
    /* --- shape/motion --- */
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --ease: cubic-bezier(.4,0,.2,1);
    --shadow-card: 0 2px 8px rgba(38,50,65,.05), 0 1px 2px rgba(38,50,65,.04);
    --shadow-card-hover: 0 22px 40px -12px rgba(230,122,60,.28), 0 8px 16px -8px rgba(38,50,65,.12);
  }
  
  *, *::before, *::after{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  }
  
  body{
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  
  img{ max-width: 100%; display: block; }
  a{ color: inherit; text-decoration: none; }
  ul{ margin: 0; padding: 0; list-style: none; }

  button{ font-family: inherit; cursor: pointer; }
  
  :focus-visible{
    outline: 2.5px solid var(--orange);
    outline-offset: 3px;
    border-radius: 4px;
  }
  

  
  /* ------------------------------------------------------------
     Decorative paw motif (used sparingly — signature texture)
     ------------------------------------------------------------ */
  .paw-icon{ width: 1em; height: 1em; display: inline-block; fill: currentColor; }
  
  .paw-trail{
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    opacity: .55;
  }
  .paw-trail svg{ width: 14px; height: 14px; }
  .paw-trail svg:nth-child(2){ opacity: .75; transform: translateY(2px) rotate(8deg); }
  .paw-trail svg:nth-child(3){ opacity: 1; transform: translateY(-1px) rotate(-6deg); }
  
  /* ------------------------------------------------------------
     Eyebrow / kicker labels
     ------------------------------------------------------------ */
  .eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange-dark);
  }
  
  /* ------------------------------------------------------------
     Buttons
     ------------------------------------------------------------ */
  .btn{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    border: none;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease), color .3s var(--ease);
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
  }
  .btn::before{
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255,255,255,.35), transparent 60%);
    opacity: 0;
    transition: opacity .35s var(--ease);
    z-index: -1;
  }
  .btn:hover::before{ opacity: 1; }
  
  .btn-primary{
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 10px 24px -8px rgba(230,122,60,.55);
  }
  .btn-primary:hover{
    background: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -8px rgba(230,122,60,.6);
  }
  .btn-primary svg{ transition: transform .35s var(--ease); }
  .btn-primary:hover svg{ transform: translateX(4px); }
  
  .btn-ghost{
    background: var(--card);
    color: var(--ink);
    border: 1.5px solid var(--border);
  }
  .btn-ghost:hover{
    border-color: var(--orange);
    color: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
  }
  
  .btn-dark{
    background: var(--ink);
    color: var(--white);
  }
  .btn-dark:hover{
    background: #1a232e;
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -10px rgba(38,50,65,.45);
  }

/* ============================================================
   Scroll reveal utility
   ============================================================ */
   .reveal{
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .reveal.in-view{ opacity: 1; transform: translateY(0); }
  /* --- Category pills --- */
.category-bar{
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 6rem 0 0;
  }
  .category-pill{
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--card);
    border: 1.5px solid var(--border);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    transition: all .3s var(--ease);
    display: flex; align-items: center; gap: 7px;
  }
  .category-pill svg{ width: 13px; height: 13px; opacity: .7; }
  .category-pill:hover{ border-color: var(--orange); color: var(--orange-dark); transform: translateY(-2px); }
  .category-pill.active{
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
    box-shadow: 0 10px 20px -8px rgba(38,50,65,.4);
  }
  .category-pill.active svg{ opacity: 1; }
  
  /* --- Layout: sidebar + grid --- */
  .blog-layout{
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 56px 0 100px;
    align-items: start;
  }
  
  /* Sidebar */
  .sidebar{
    position: sticky;
    top: 108px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
  }
  .sidebar h3{
    font-size: 19px;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
  }
  .sidebar h3::before{
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--orange);
    flex-shrink: 0;
  }
  .recent-item{
    display: flex;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    transition: background .3s var(--ease), transform .3s var(--ease);
  }
  .recent-item:last-child{ margin-bottom: 0; }
  .recent-item:hover{ background: var(--card-soft); transform: translateX(3px); }
  .recent-thumb{
    width: 64px; height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--card-soft);
  }
  .recent-thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
  .recent-item:hover .recent-thumb img{ transform: scale(1.12); }
  .recent-info h4{
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--ink);
  }
  .recent-info time{
    font-size: 12px;
    color: var(--ink-faint);
    font-weight: 500;
  }
  
  .sidebar-divider{
    height: 1px;
    background: var(--border);
    margin: 26px 0;
  }
  
  .tag-cloud{ display: flex; flex-wrap: wrap; gap: 8px; }
  .tag-cloud a{
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--card-soft);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    border: 1px solid var(--border);
    transition: all .25s var(--ease);
  }
  .tag-cloud a:hover{ background: var(--orange); border-color: var(--orange); color: var(--white); transform: translateY(-2px); }
  
  .sidebar-cta{
    margin-top: 26px;
    background: linear-gradient(160deg, var(--ink), #1b2530);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .sidebar-cta::after{
    content: '';
    position: absolute; top: -40px; right: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(230,122,60,.4), transparent 70%);
  }
  .sidebar-cta p{ color: #C9D2DA; font-size: 13px; margin-bottom: 4px; }
  .sidebar-cta h4{ color: var(--white); font-size: 1rem; margin-bottom: 16px; position: relative; }
  .sidebar-cta .btn{ width: 100%; position: relative; }
  
  /* --- Article grid --- */
  .articles-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .article-card{
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .article-card:hover{
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
  }
  /* folded corner — signature journal-page detail */
  .article-card::before{
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 34px 34px 0;
    border-color: transparent var( --orange) transparent transparent;
    filter: drop-shadow(-2px 2px 3px rgba(38,50,65,.12));
    z-index: 2;
    transition: border-width .35s var(--ease);
  }
  .article-card:hover::before{ border-width: 0 42px 42px 0; }
  
  .card-media{
    position: relative;
    height: 220px !important;
    overflow: hidden;
    background: var(--card-soft);
  }
  .card-media img{
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s var(--ease);    object-position: center 32%;
  }
  .article-card:hover .card-media img{ transform: scale(1.09); }
  .card-media::after{
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(38,50,65,0) 55%, rgba(38,50,65,.55) 100%);
    opacity: 0;
    transition: opacity .4s var(--ease);
  }
  .article-card:hover .card-media::after{ opacity: 1; }
  
  .card-category{
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--orange-dark);
    z-index: 3;
  }
  
  .card-body{
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .card-meta{
    display: flex; align-items: center; gap: 14px;
    font-size: 12.5px; color: var(--ink-faint); font-weight: 600;
    margin-bottom: 12px;
  }
  .card-meta span{ display: flex; align-items: center; gap: 5px; }
  .card-meta svg{ width: 13px; height: 13px; }
  
  .card-body h3{
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 12px;
    transition: color .3s var(--ease);
  }
  .article-card:hover .card-body h3{ color: var(--orange-dark); }
  
  .card-body p{
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
  }
  
  .card-link{
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 13.5px;
    color: var(--ink);
    align-self: flex-start;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--orange);
  }
  .card-link svg{ width: 14px; height: 14px; transition: transform .35s var(--ease); }
  .article-card:hover .card-link svg{ transform: translateX(5px); }
  
  /* Featured (first) card spans full width, alt layout */
  .article-card.featured{
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .article-card.featured .card-media{ width: 46%;     min-height: 370px !important; flex-shrink: 0; }
  .article-card.featured .card-body{ justify-content: center; padding: 36px 44px; }
  .article-card.featured .card-body h3{ font-size: 28px; }
  .article-card.featured .card-body p{ font-size: 1rem; }
 
  /* ============================================================
     Responsive
     ============================================================ */
  @media (max-width: 1080px){
    .blog-layout{ grid-template-columns: 260px 1fr; }
    .articles-grid{ gap: 22px; }
  }
  @media (max-width: 900px){
    .blog-layout{ grid-template-columns: 1fr; }
    .sidebar{ position: static; order: 2; }
    .articles-grid{ order: 1; grid-template-columns: 1fr 1fr; }
    .article-card.featured{ flex-direction: column; }
    .article-card.featured .card-media{ width: 100%; height: 260px; }
  }
  @media (max-width: 640px){
    .articles-grid{ grid-template-columns: 1fr; }
    .article-card.featured .card-body{ padding: 26px 24px; }
    .article-card.featured .card-body h3{ font-size: 23px; }
    .hero-search{ flex-wrap: nowrap; }
    .hero-search button span{ display: none; }
    .category-bar{ justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
    .category-bar::-webkit-scrollbar{ display: none; }
    .category-pill{ flex-shrink: 0; }
  }


  
/* ============================================================
   BLOG DETAILS PAGE
   ============================================================ */

/* Article hero */
.article-hero{
  padding: 30px 0 0;
  text-align: left;
}
.article-hero .eyebrow{ justify-content: center; margin-bottom: 20px; }
.article-hero h1{
  /* max-width: 820px;
  margin: 0 auto; */
  font-size: clamp(30px, 4.8vw, 50px);
  line-height: 1.14;
  letter-spacing: -.01em;
}
.article-hero .subtitle{
  /* max-width: 620px; */
  margin: 20px 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.article-meta-row{
  display: flex; align-items: center; justify-content: start;
  gap: 28px; flex-wrap: wrap;
  margin: 34px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.meta-item{ display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.meta-item svg{ width: 15px; height: 15px; color: var(--orange); }

.article-hero-media{
  margin-top: 44px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 1040px;
  margin-left: auto; margin-right: auto;
  box-shadow: 0 30px 60px -24px rgba(38,50,65,.25);
  position: relative;
}
.article-hero-media img{ width: 100%; height: clamp(280px, 46vw, 520px); object-fit: cover; object-position: center 36%; }
.article-hero-media figcaption{
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 28px 16px;
  background: linear-gradient(0deg, rgba(24,31,39,.75), transparent);
  color: #EDEFF1;
  font-size: 12.5px;
  font-weight: 500;
}

/* Content layout: TOC + prose + share rail */
.article-layout{
  display: grid;
  grid-template-columns: 64px minmax(0,720px) 260px;
  gap: 48px;
  justify-content: center;
  padding: 64px 0 0;
}

/* Prose */
.prose{ min-width: 0; }
.prose h5{font-weight: 700;}
.prose > p, .prose > ul, .prose > blockquote, .prose > figure, .prose > h2, .prose > h3{
  margin-bottom: 26px;
}
.prose p{ color: var(--gray); font-size: 1rem; line-height: 1.85; }
.prose h2{
  font-size: 28px; margin-top: 50px; margin-bottom: 20px;
  scroll-margin-top: 120px;
  display: flex; align-items: center; gap: 14px;
}
.prose h2::before{
  content: '';
  width: 26px; height: 3px; border-radius: 3px;
  background: var(--orange); flex-shrink: 0;
}
.prose h3{ font-size: 21px; margin-top: 34px; scroll-margin-top: 120px; }
.prose ul{ padding-left: 4px; }
.prose ul li{
  position: relative;
  padding-left: 30px;
  color: #3C4854; font-size: 16px; line-height: 1.7;
  margin-bottom: 12px;
}
.prose ul li::before{
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px;
  background: var(--orange-light);
  border-radius: 6px;
}
.prose ul li::after{
  content: '';
  position: absolute; left: 4.5px; top: 11.5px;
  width: 7px; height: 7px;
  background: var(--orange); border-radius: 50%;
}
.prose strong{ color: var(--ink); font-weight: 700; }
.prose a.inline-link{ color: var(--orange-dark); font-weight: 600; border-bottom: 1.5px solid var(--orange-light); transition: border-color .25s var(--ease); }
.prose a.inline-link:hover{ border-color: var(--orange); }

@media (max-width: 1180px){
  .article-layout{ grid-template-columns: 56px minmax(0,660px) 240px; gap: 32px; }
}
@media (max-width: 980px){
  .article-layout{ grid-template-columns: 1fr; }
  .share-rail{ position: static; flex-direction: row; margin-bottom: 10px; }
  .share-rail span{ writing-mode: horizontal-tb; margin-bottom: 0; margin-right: 6px; }
  .toc-rail{ position: static; order: -1; margin-bottom: 36px; }
  .related-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .article-meta-row{ gap: 16px 22px; }
  .article-hero-media{ border-radius: var(--radius-md); }
  .prose h2{ font-size: 23px; }
  .prose p{ font-size: 16px; }
 
  .related-grid{ grid-template-columns: 1fr; }
  .mobile-share{ display: flex; }
}

    