/* ============================================================
   SINGLE POST — HOME PAGE STYLE MATCH
   Colors & Typography from Home Page
   ============================================================ */

:root {
  --bg:        #FAF3F1;
  --bg2:       #F5EBE7;
  --bg3:       #F0E3DE;
  --bg4:       #FCF6F4;
  --warm:      #FEFAF8;
  --slate:     #3D352D;
  --terra:     #C97B6B;
  --terra2:    #B05F4F;
  --terra3:    #F3DDD6;
  --gold:      #B8895A;
  --sage:      #6B7A6E;
  --sage2:     #4F5C52;
  --sage-tint: #EAEFE8;
  --esp:       #3A332C;
  --mid:       #685F54;
  --soft:      #A0958A;
  --border:    #E5D9D2;
  --pad:       clamp(20px,5vw,80px);
  --radius:    10px;
}

/* ============================================================
   SINGLE POST HERO — MATCHES HOME HERO
   ============================================================ */

.cs-post-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
  background: var(--esp);
  padding-top: 74px;
}

.cs-hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cs-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.cs-hero-fallback {
  background: linear-gradient(135deg, var(--esp) 0%, var(--slate) 100%);
}

.cs-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58,51,44,0.55);
}

.cs-post-hero-text {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
}

.cs-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.cs-post-category {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra3) !important;
  margin-bottom: 22px;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 0.5em 1.5em;
  text-decoration: none;
  transition: all 0.3s;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.cs-post-category:hover {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--warm) !important;
}

.cs-post-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  color: var(--warm) !important;
  line-height: 1.12;
  margin: 0 0 20px;
}

.cs-hero-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: .05em;
  color: rgba(255,255,255,0.7);
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cs-meta-sep {
  color: var(--terra);
  font-size: 0.7rem;
}

/* ============================================================
   POST CONTAINER — MATCHES HOME PADDING
   ============================================================ */

.cs-post-container {
  max-width: 1450px;
  margin: 0 auto;
  padding: 60px var(--pad);
  background: var(--bg4);
}

.cs-post-layout {
  display: flex;
  gap: 60px;
}

.cs-post-main {
  flex: 3;
  min-width: 0;
}

.cs-post-sidebar {
  flex: 1;
  min-width: 0;
}

/* ============================================================
   POST CONTENT — HOME TYPOGRAPHY
   ============================================================ */

.cs-post-intro-rule {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.cs-post-intro-rule::before,
.cs-post-intro-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.cs-post-intro-ornament {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--terra);
  line-height: 1;
}

.cs-post-content {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--mid);
}

.cs-post-content > * {
  max-width: 100%;
}

/* Headings — Home style */
.cs-post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--esp);
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--terra);
}

.cs-post-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--esp);
  margin: 2rem 0 1rem;
}

.cs-post-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 1.5rem 0 0.8rem;
}

/* Paragraphs */
.cs-post-content p {
  margin-bottom: 1.5rem;
}

/* Images */
.cs-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.cs-post-content figure {
  margin: 2rem 0;
}

.cs-post-content figcaption {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  text-align: center;
  color: var(--soft);
  margin-top: 0.5rem;
}

/* Blockquotes — Home style */
.cs-post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg2);
  border-left: 4px solid var(--terra);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.cs-post-content blockquote p {
  margin-bottom: 0;
  font-size: 20px;
  color: var(--esp);
}

/* Lists */
.cs-post-content ul,
.cs-post-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.cs-post-content li {
  margin: 0.5rem 0;
}

/* ============================================================
   TAGS — HOME STYLE
   ============================================================ */

.cs-post-tags {
  margin: 40px 0 30px;
  padding: 20px 0 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cs-tags-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--esp);
}

.cs-tag-pill {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--mid);
  border: 1.5px solid var(--border);
  padding: 0.3em 1em;
  text-decoration: none;
  transition: all 0.25s;
  border-radius: 30px;
}

.cs-tag-pill:hover {
  border-color: var(--terra);
  color: var(--terra);
  transform: translateY(-2px);
}

/* ============================================================
   POST NAVIGATION — HOME STYLE
   ============================================================ */

.cs-post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 30px 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.cs-post-navigation a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-decoration: none;
  color: var(--mid);
  padding: 8px 0;
  transition: color 0.3s;
  font-size: 13px;
  letter-spacing: .05em;
}

.cs-post-navigation a:hover {
  color: var(--terra);
}

.cs-nav-prev a:before {
  content: "← ";
}

.cs-nav-next a:after {
  content: " →";
}

/* ============================================================
   AUTHOR CARD & SIDEBAR — HOME STYLE
   ============================================================ */

.cs-author-card {
  background: var(--bg2);
  padding: 30px 24px;
  text-align: center;
  margin-bottom: 35px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s;
}

.cs-author-card:hover {
  transform: translateY(-3px);
}

.cs-author-avatar {
  margin-bottom: 16px;
}

.cs-author-avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid var(--terra3);
}

.cs-author-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--esp);
}

.cs-author-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 15px;
}

.cs-author-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--terra);
  text-decoration: none;
}

.cs-author-link:hover {
  text-decoration: underline;
}

/* Sidebar Widgets */
.cs-sidebar-widget {
  background: var(--bg2);
  padding: 25px;
  margin-bottom: 35px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cs-sidebar-widget h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--terra);
  display: inline-block;
  color: var(--esp);
}

.cs-recent-list,
.cs-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-recent-list li,
.cs-categories-list li {
  margin: 12px 0;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.cs-recent-list li:last-child,
.cs-categories-list li:last-child {
  border-bottom: none;
}

.cs-recent-list a,
.cs-categories-list a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
}

.cs-recent-list a:hover,
.cs-categories-list a:hover {
  color: var(--terra);
}

.cs-cat-count {
  font-size: 12px;
  color: var(--soft);
}

/* ============================================================
   CTA BAND — HOME STYLE
   ============================================================ */

.cs-post-cta {
  background: var(--esp);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cs-post-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cs-post-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}

.cs-post-cta-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.4rem;
  display: block;
}

.cs-post-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 48px);
  color: var(--warm) !important;
  line-height: 1.12;
  margin-bottom: 0.6rem;
}

.cs-post-cta-title em {
  font-style: italic;
  color: var(--terra3);
}

.cs-post-cta-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(248,246,241,0.5);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.cs-post-cta-btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--esp) !important;
  background: var(--warm);
  padding: 16px 38px;
  border-radius: 4px;
  border: 2px solid var(--warm);
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.cs-post-cta-btn:hover {
  background: transparent;
  color: var(--warm) !important;
  transform: translateY(-2px);
}

/* ============================================================
   RELATED POSTS — HOME STYLE
   ============================================================ */

.cs-related {
  background: var(--bg2);
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.cs-related-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cs-related-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.cs-related-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra);
  display: block;
  margin-bottom: 0.8rem;
}

.cs-related-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--esp);
  font-style: italic;
  margin: 0;
}

.cs-related-title em {
  font-style: italic;
  color: var(--terra);
}

.cs-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cs-related-card {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.cs-related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(58,51,44,0.1);
}

.cs-related-card-img-wrap {
  overflow: hidden;
  height: 220px;
  background: var(--esp);
}

.cs-related-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.cs-related-card:hover .cs-related-card-img-wrap img {
  transform: scale(1.05);
}

.cs-related-card-body {
  padding: 1.5rem;
}

.cs-related-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--esp);
  line-height: 1.3;
  margin: 0 0 8px;
}

.cs-related-card-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 992px) {
  .cs-post-container {
    padding: 40px 20px;
  }
  
  .cs-post-layout {
    flex-direction: column;
    gap: 50px;
  }
  
  .cs-post-sidebar {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  
  .cs-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .cs-post-hero,
  .cs-post-hero-text {
    min-height: 50vh;
  }
  
  .cs-post-hero-text {
    padding: 60px 20px 40px;
  }
  
  .cs-post-hero-title {
    font-size: clamp(28px, 5vw, 36px);
  }
  
  .cs-hero-meta {
    font-size: 12px;
    gap: 10px;
  }
  
  .cs-post-content {
    font-size: 15px;
  }
  
  .cs-post-content h2 {
    font-size: clamp(22px, 3vw, 28px);
  }
  
  .cs-post-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .cs-post-cta {
    padding: 3rem 1.5rem;
  }
  
  .cs-related {
    padding: 3rem 1.5rem;
  }
}

/* Mobile */
@media (max-width: 580px) {
  .cs-post-hero,
  .cs-post-hero-text {
    min-height: 40vh;
  }
  
  .cs-post-category {
    font-size: 11px;
    margin-bottom: 16px;
  }
  
  .cs-post-hero-title {
    font-size: clamp(24px, 6vw, 30px);
  }
  
  .cs-post-container {
    padding: 30px 16px;
  }
  
  .cs-post-layout {
    gap: 40px;
  }
  
  .cs-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cs-author-card,
  .cs-sidebar-widget {
    padding: 20px;
  }
}