/*
Theme Name: Stitchin Crochet
Theme URI: https://stitchincrochet.com
Author: Stitchin Crochet Studio
Author URI: https://stitchincrochet.com
Description: World-class, boutique editorial crafts theme with warm studio aesthetic.
Version: 3.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600&display=swap');

:root {
  --sc-forest: #1F3327;
  --sc-sage: #4E6E5D;
  --sc-terracotta: #C86D51;
  --sc-cream: #FAF8F5;
  --sc-sand: #F4EFEA;
  --sc-border: #E8E0D5;
  --sc-text: #1C2E24;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--sc-cream);
  color: var(--sc-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sc-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* WordPress Admin Bar Sticky Alignment */
body.admin-bar header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px !important;
  }
}

/* Studio soft shadows */
.sc-shadow-warm {
  box-shadow: 0 10px 30px -5px rgba(31, 51, 39, 0.05), 0 4px 6px -2px rgba(31, 51, 39, 0.02);
}

.sc-shadow-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-shadow-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -8px rgba(31, 51, 39, 0.09), 0 6px 10px -4px rgba(31, 51, 39, 0.04);
}

/* Circular Category Card Aspect Ratio */
.sc-category-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  overflow: hidden;
  border: 4px solid #FAF6F0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Live beacon dot */
@keyframes sc-beacon-anim {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.sc-beacon {
  animation: sc-beacon-anim 2s infinite ease-in-out;
}
/* Reading Progress Bar (Fixed Top) */
#sc-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
}

#sc-progress-bar {
  height: 100%;
  width: 0%;
  background: #C86D51;
  transition: width 0.1s ease;
}

/* Back to Top Floating Button */
#sc-back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#sc-back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Callout Styling */
.sc-callout {
  border-radius: 16px;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.65;
  border-left-width: 4px;
}

.sc-callout-tip {
  background: #F2F8F4;
  border-left-color: #4E6E5D;
  color: #1F3327;
}

.sc-callout-warning {
  background: #FFF7ED;
  border-left-color: #EA580C;
  color: #7C2D12;
}

.sc-callout-note {
  background: #FAF6F0;
  border-left-color: #C86D51;
  color: #38241B;
}

/* ============================================================
   ARTICLE TYPOGRAPHY & EDITORIAL STYLING (Luxury Editorial Feel)
   ============================================================ */

.sc-reading-content {
  width: 100%;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  color: #374151;
  letter-spacing: normal;
}

.sc-reading-content p {
  margin-bottom: 20px;
}

/* Editorial Lead Hook Paragraph */
.sc-reading-content .lead,
.sc-reading-content > p:first-of-type {
  font-size: 18.5px;
  line-height: 1.75;
  color: #1C2E24;
  font-weight: 500;
  margin-bottom: 24px;
  border-left: 3px solid #C86D51;
  padding-left: 18px;
}

/* Headings with Playfair Serif */
.sc-reading-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  color: #1C2E24;
  margin-top: 38px;
  margin-bottom: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #F0EAE1;
}

.sc-reading-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #1C2E24;
  margin-top: 26px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.sc-reading-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #4E6E5D;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 20px;
  margin-bottom: 8px;
}

.sc-reading-content strong {
  color: #111827;
  font-weight: 700;
}

.sc-reading-content a {
  color: #C86D51;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #E5A894;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sc-reading-content a:hover {
  color: #B35C41;
  text-decoration-color: #B35C41;
}

/* Clean Perfectly Aligned Bullet Lists */
.sc-reading-content ul {
  list-style: none;
  padding-left: 0;
  margin: 18px 0;
}

.sc-reading-content ul > li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 1.7;
  color: #374151;
}

.sc-reading-content ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C86D51;
}

/* Custom Styled Numbered Lists */
.sc-reading-content ol {
  list-style: none;
  counter-reset: sc-step-counter;
  padding-left: 0;
  margin: 20px 0;
}

.sc-reading-content ol > li {
  counter-increment: sc-step-counter;
  position: relative;
  padding-left: 38px;
  margin-bottom: 14px;
  line-height: 1.7;
  color: #374151;
}

.sc-reading-content ol > li::before {
  content: counter(sc-step-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FAF0EB;
  color: #C86D51;
  border: 1px solid #F0DCD4;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blockquotes */
.sc-reading-content blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.7;
  color: #1F3327;
  border-left: 4px solid #C86D51;
  background: #FAF6F0;
  border-radius: 0 16px 16px 0;
  padding: 20px 28px;
  margin: 32px 0;
}

/* ============================================================
   EDITORIAL TEXT FORMATTING ENHANCEMENTS
   ============================================================ */

/* Lead Story Intro Box */
.sc-intro-box {
  background: #FAF6F0;
  border-left: 4px solid #C86D51;
  border-radius: 0 20px 20px 0;
  padding: 24px 28px;
  margin-bottom: 32px;
}

.sc-intro-box p {
  margin-bottom: 12px;
  font-size: 19px;
  line-height: 1.8;
  color: #1C2E24;
  font-weight: 500;
}

.sc-intro-box p:last-child {
  margin-bottom: 0;
  font-size: 16px;
  color: #4A5568;
  font-weight: normal;
  line-height: 1.75;
}

/* Material & Tool Cards Grid */
.sc-material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0 0;
}

.sc-material-card {
  background: #FFFFFF;
  border: 1px solid #E5DDD2;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s ease;
}

.sc-material-card:hover {
  border-color: #C86D51;
  box-shadow: 0 4px 14px rgba(200, 109, 81, 0.08);
}

.sc-material-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #FAF0EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sc-material-content strong {
  display: block;
  font-size: 14.5px;
  color: #1C2E24;
  margin-bottom: 3px;
}

.sc-material-content span {
  display: block;
  font-size: 13px;
  color: #55635B;
  line-height: 1.5;
}

/* Studio Tips Grid (Replaces plain dense bullet list) */
.sc-tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.sc-tip-card {
  background: #FFFFFF;
  border: 1.5px solid #E8DFD3;
  border-radius: 20px;
  padding: 22px 20px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.sc-tip-card:hover {
  border-color: #4E6E5D;
  box-shadow: 0 8px 24px -4px rgba(78, 110, 93, 0.12);
  transform: translateY(-2px);
}

.sc-tip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sc-tip-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #EBF1ED;
  color: #4E6E5D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sc-tip-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #1C2E24;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.sc-tip-card p {
  font-size: 13.5px;
  color: #55635B;
  line-height: 1.65;
  margin: 0;
}

/* Term Badge (Smooth Inline Flow) */
.sc-term-badge {
  display: inline;
  background: #FAF0EB;
  color: #C86D51;
  border: 1px solid #F0DCD4;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88em;
  font-weight: 600;
  vertical-align: baseline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ============================================================
   STEP-BY-STEP CREATION CARDS (.sc-step-card) WITH MEDIA
   ============================================================ */

.sc-step-card {
  background: #FFFFFF;
  border: 1.5px solid #E5DDD2;
  border-radius: 20px;
  padding: 30px 26px;
  margin: 32px 0;
  box-shadow: 0 6px 20px -3px rgba(28, 46, 36, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sc-step-card:hover {
  border-color: #D5C9BC;
  box-shadow: 0 10px 25px -4px rgba(28, 46, 36, 0.08);
}

.sc-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sc-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FAF0EB;
  color: #C86D51;
  border: 1px solid #F0DCD4;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 9999px;
}

.sc-step-tag {
  font-size: 11px;
  font-weight: 600;
  color: #718096;
}

.sc-step-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: #1C2E24;
  margin: 0 0 14px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Step Image / Media Container */
.sc-step-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #E5DDD2;
  margin: 20px 0 14px;
  background: #1C2E24;
}

.sc-step-media img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sc-step-media:hover img {
  transform: scale(1.02);
}

.sc-step-caption {
  display: block;
  font-size: 12px;
  color: #718096;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Step Maker Tip */
.sc-step-tip {
  background: #F2F8F4;
  border: 1px solid #D5E5DC;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #1F3327;
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Callout Boxes */
.sc-callout {
  border-radius: 20px;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.7;
  border-left: 5px solid;
}

.sc-callout-tip {
  background: #F2F8F4;
  border-left-color: #4E6E5D;
  color: #1F3327;
}

.sc-callout-warning {
  background: #FFF7ED;
  border-left-color: #EA580C;
  color: #7C2D12;
}

.sc-callout-note {
  background: #FAF6F0;
  border-left-color: #C86D51;
  color: #38241B;
}

/* Pinterest hover overlay on images */
.sc-pin-target {
  position: relative;
  display: inline-block;
  width: 100%;
}

.sc-pin-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #C86D51;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 10;
  text-decoration: none;
}

.sc-pin-target:hover .sc-pin-btn {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FAQ ACCORDION STYLING (.sc-faq-item)
   ============================================================ */

.sc-faq-box {
  margin: 48px 0;
}

.sc-faq-item {
  background: #FAF8F5;
  border: 1.5px solid #E5DDD2;
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sc-faq-item:hover {
  border-color: #D5C9BC;
  background: #FAF6F1;
}

.sc-faq-item[open] {
  background: #FFFFFF;
  border-color: #C86D51;
  box-shadow: 0 4px 16px -2px rgba(200, 109, 81, 0.08);
}

.sc-faq-summary {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 16.5px;
  color: #1C2E24;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.sc-faq-summary::-webkit-details-marker {
  display: none;
}

.sc-faq-icon {
  font-size: 11px;
  color: #718096;
  transition: transform 0.25s ease;
}

.sc-faq-item[open] .sc-faq-icon {
  transform: rotate(180deg);
  color: #C86D51;
}

.sc-faq-answer {
  font-size: 14.5px;
  color: #55635B;
  line-height: 1.75;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #EFE8DF;
}

/* ==========================================================================
   14. COMMENTS & DISCUSSION AREA
   ========================================================================== */
.comments-area {
  margin-top: 0;
}

.comment-respond {
  position: relative;
}

.comment-reply-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  color: #1C2E24;
  font-size: 22px;
  margin-bottom: 8px;
}

.logged-in-as {
  font-size: 13px;
  color: #55635B;
  margin-bottom: 20px;
  background: #FAF8F5;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #EBE4DA;
  display: block;
}

.logged-in-as a {
  color: #C86D51;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.logged-in-as a:hover {
  color: #B35C41;
}

.comment-notes {
  font-size: 12px;
  color: #718096;
  margin-bottom: 16px;
}

.comment-form p {
  margin-bottom: 16px;
}

.comment-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  margin-bottom: 6px;
}

.comment-form textarea {
  width: 100%;
  background: #FAF8F5;
  border: 1.5px solid #E5DDD2;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
  color: #1C2E24;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s ease;
  min-height: 120px;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
  background: #FFFFFF;
  border-color: #C86D51;
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 109, 81, 0.12);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  background: #FAF8F5;
  border: 1.5px solid #E5DDD2;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: #1C2E24;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s ease;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #55635B;
  margin-bottom: 20px !important;
}

.comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #C86D51;
}

.comment-form-cookies-consent label {
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
  cursor: pointer;
  margin-bottom: 0;
}

.comment-form input[type="submit"],
.comment-form button[type="submit"] {
  background-color: #1F3327 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 14px 28px !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(31, 51, 39, 0.15) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.comment-form input[type="submit"]:hover,
.comment-form button[type="submit"]:hover {
  background-color: #2C4837 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(31, 51, 39, 0.25) !important;
}

/* ==========================================================================
   15. CLEAN PRINT RECIPE STYLESHEET
   ========================================================================== */
@media print {
  /* Hide non-essential web chrome */
  header,
  footer,
  #sc-progress-container,
  #sc-back-to-top,
  #sc-copy-toast,
  aside[aria-label="Share this pattern"],
  .sc-pin-btn,
  .fixed.bottom-0,
  #newsletter,
  .comments-area,
  .max-w-3xl.mx-auto.px-4.mt-12,
  section[aria-label="Related Patterns"],
  .hidden.sm\:flex.items-center.gap-2\.5 {
    display: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #111827 !important;
    font-size: 13pt !important;
    line-height: 1.6 !important;
  }

  main {
    padding-bottom: 0 !important;
  }

  .sc-reading-content {
    font-size: 13pt !important;
    line-height: 1.6 !important;
  }

  /* Keep Pattern Quick Card and Steps crisp */
  .bg-gradient-to-br {
    background: #FFFFFF !important;
    border: 2px solid #333333 !important;
    color: #000000 !important;
  }

  .sc-step-card {
    border: 1px solid #CCCCCC !important;
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    background: #FFFFFF !important;
    margin-bottom: 20px !important;
  }

  .sc-tip-box {
    border-left: 4px solid #333333 !important;
    background: #F9F9F9 !important;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  a {
    text-decoration: none !important;
    color: #000000 !important;
  }

  /* Print Header Stamp */
  h1 {
    font-size: 24pt !important;
    color: #000000 !important;
    margin-bottom: 12pt !important;
  }
}



