/* ==========================================================================
   2026 Editorial Article & Post Page Styles - InkTattooz
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* Font & Color Design Tokens */
:root {
  --font-heading: 'Bricolage Grotesque', 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-bg-main: #fcfbfa;
  --color-bg-card: #ffffff;
  --color-bg-accent: #f4efea;
  --color-ink-primary: #14110f;
  --color-ink-secondary: #4a443f;
  --color-ink-muted: #7a6f63;
  --color-border: #e8e2d9;
  --color-brand-accent: #14110f;
  --color-brand-hover: #332d29;
  --color-pin-red: #e60023;

  --measure-content: 68ch;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px -10px rgba(20, 17, 15, 0.08);
  --shadow-hover: 0 20px 40px -15px rgba(20, 17, 15, 0.15);
}

/* Reading Progress Bar */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-ink-primary);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}


/* Hide legacy hardcoded fixed sidebars inside old post content */
.entry-content .fixed.right-16,
.entry-content div[class*="fixed right-"],
.entry-content div[class*="top-72"] {
  display: none !important;
}

/* Layout Containers & Body Font Overrides */
body.wp-singular,
.editorial-article-wrapper {
  background-color: var(--color-bg-main);
  color: var(--color-ink-primary);
  font-family: var(--font-body) !important;
  line-height: 1.75;
  font-size: 1.125rem; /* 18px */
  -webkit-font-smoothing: antialiased;
}


.editorial-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.editorial-content-column {
  max-width: var(--measure-content);
  margin: 0 auto;
}

/* Typography & Legibility Overrides */
.editorial-article-wrapper h1,
.editorial-article-wrapper h2,
.editorial-article-wrapper h3,
.editorial-article-wrapper h4,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-title {
  font-family: var(--font-heading) !important;
  color: var(--color-ink-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance; /* Modern Legibility */
}


.editorial-article-wrapper h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.editorial-article-wrapper h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.editorial-article-wrapper h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.editorial-article-wrapper p,
.editorial-article-wrapper li {
  color: var(--color-ink-secondary);
  margin-bottom: 1.5rem;
  text-wrap: pretty; /* Modern Legibility - avoids orphans */
}

/* Drop-cap for the first paragraph */
.editorial-body > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.8em;
  float: left;
  line-height: 0.8;
  margin-right: 0.15em;
  margin-top: 0.05em;
  color: var(--color-brand-accent);
  font-weight: 800;
}

/* Meta Bar & Header */
.editorial-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-brand-accent);
}

.author-info-name {
  font-weight: 700;
  color: var(--color-ink-primary);
  font-size: 0.95rem;
}

.author-info-meta {
  font-size: 0.825rem;
  color: var(--color-ink-muted);
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-action {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-ink-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-action:hover {
  background: var(--color-bg-accent);
  color: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
}

/* Hero Feature Frame */
.editorial-hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-soft);
}

.editorial-hero-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 580px;
}

.editorial-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(20, 17, 15, 0.85) 0%, rgba(20, 17, 15, 0) 100%);
  color: #ffffff;
  padding: 2.5rem 1.75rem 1.25rem;
  font-size: 0.875rem;
  backdrop-filter: blur(4px);
}

/* Floating / Sticky Table of Contents Container */
.editorial-layout-grid {
  position: relative;
  width: 100%;
}

/* Image Styling - Ultra Clean 16px Rounded Cards with Subtle Soft Elevation */
.entry-content img,
.editorial-body img,
article img:not(.author-avatar):not(.author-bio-avatar):not(.custom-logo) {
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(20, 17, 15, 0.08) !important;
  border: none !important;
  outline: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  position: static !important;
  margin-top: 1.75rem !important;
  margin-bottom: 1.75rem !important;
  background-color: transparent !important;
}


.entry-content img:hover,
.editorial-body img:hover,
article img:not(.author-avatar):not(.author-bio-avatar):not(.custom-logo):hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(20, 17, 15, 0.12) !important;
}

/* Eliminate theme aspect-ratio pseudo-elements causing white space under portrait images */
.entry-content figure:before,
.editorial-body figure:before,
.pinterest-image-wrapper:before,
article .entry-content figure:before {
  display: none !important;
  content: none !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Pinterest Image Card Wrapper - Ultra Clean Edge-to-Edge Fit */
.pinterest-image-wrapper {
  position: relative !important;
  display: block !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  margin: 2rem 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(20, 17, 15, 0.08) !important;
  line-height: 0 !important;
}

.pinterest-image-wrapper img {
  border-radius: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border: 1px solid var(--color-border) !important;
  box-sizing: border-box !important;
}

.pinterest-image-wrapper:hover img {
  transform: scale(1.02) !important;
}


/* Full-Article Sticky Table of Contents Container */
.editorial-layout-grid {
  position: relative !important;
  width: 100% !important;
}

@media (min-width: 1240px) {
  .toc-sidebar {
    position: absolute !important;
    right: calc(100% + 2.5rem) !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 250px !important;
    height: auto !important;
    pointer-events: none !important;
  }

  .toc-sticky-box {
    position: sticky !important;
    top: 100px !important;
    background: var(--color-bg-card) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.25rem !important;
    box-shadow: var(--shadow-soft) !important;
    pointer-events: auto !important;
  }
}



/* Mid-screen & Mobile Collapsible Outline */
@media (max-width: 1239px) {
  .toc-sidebar {
    margin-bottom: 2.5rem;
  }

  .toc-sticky-box {
    position: relative;
    top: 0;
    background: var(--color-bg-accent);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: none;
  }
}

/* Pinterest Pin button visible on mobile / touch */
@media (max-width: 768px), (hover: none) {
  .pin-it-btn {
    opacity: 1;
    transform: scale(0.95);
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}



.toc-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.85rem 0;
  color: var(--color-ink-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.toc-list a {
  color: var(--color-ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.toc-list a:hover,
.toc-list a.toc-active {
  color: var(--color-brand-accent);
  background-color: var(--color-bg-accent);
  font-weight: 600;
}

/* Visual Lookbook Widgets & Cards */
.pinterest-image-wrapper {
  position: relative;
  margin: 2rem 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 20px rgba(20, 17, 15, 0.06) !important;
  border: 1px solid var(--color-border) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent !important;
}

.pinterest-image-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 17, 15, 0.12) !important;
}

.pinterest-image-wrapper img {
  width: 100% !important;
  height: auto !important;
  position: static !important;
  display: block !important;
  border-radius: 16px !important;
  margin: 0 !important;
  box-shadow: none !important;
  border: none !important;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.pinterest-image-wrapper:hover img {
  transform: scale(1.015);
  opacity: 0.98;
}

.pin-it-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--color-pin-red);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 24px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 10;
}

.pin-it-btn:hover {
  transform: scale(1.06);
  background-color: #ad0018;
}

.pin-it-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Care Cards / Expert Stylist Callouts */
.care-card {
  background: var(--color-bg-accent);
  border-left: 4px solid var(--color-brand-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.care-card-icon {
  font-size: 1.8rem;
  line-height: 1;
  background: var(--color-bg-card);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.care-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.4rem 0;
  color: var(--color-ink-primary);
}

.care-card-text {
  margin: 0 !important;
  font-size: 0.95rem !important;
  color: var(--color-ink-secondary);
}

/* Content Inline Columns (Side-by-Side Comparison) */
.content-inline-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

@media (min-width: 640px) {
  .content-inline-columns {
    grid-template-columns: 1fr 1fr;
  }
}

/* Editorial Blockquote */
.editorial-article-wrapper blockquote {
  border-left: 3px solid var(--color-brand-accent);
  margin: 2.5rem 0;
  padding: 0.75rem 0 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-ink-primary);
  line-height: 1.5;
}

/* Author Bio Card at Footer */
.author-bio-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-soft);
}

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

.author-bio-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-brand-accent);
  flex-shrink: 0;
}

/* Next / Prev Article Recommendations */
.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .related-posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.related-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.related-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-card-body {
  padding: 1.25rem;
}

.related-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: var(--color-ink-primary);
  line-height: 1.3;
}
