/*
 * Priceless Magazine — Master Article Stylesheet
 * Version: 1.0.0
 * Author: Priceless Magazine
 * Description: Universal styles for all article pages.
 *              Link this file once in WordPress and use
 *              only HTML in each article page.
 *
 * CLASS NAMING CONVENTION:
 * All classes are prefixed with .pma- (Priceless Magazine Article)
 * to prevent any conflict with your WordPress theme.
 *
 * HOW TO USE:
 * 1. Upload this file to /wp-content/themes/your-theme/css/
 * 2. Add to functions.php (see documentation below)
 * 3. Use only HTML with .pma- classes in every article
 *
 * TABLE OF CONTENTS:
 * 1.  CSS Variables (colors, fonts, spacing)
 * 2.  Base wrapper
 * 3.  Author bar
 * 4.  Article intro (category, h1, lead, body text)
 * 5.  Quick facts box
 * 6.  Section headings (h2, h3)
 * 7.  Object cards
 * 8.  Image placeholders
 * 9.  Comparison table
 * 10. Hand guide / step list
 * 11. Highlight note box
 * 12. Related articles block
 * 13. Divider
 * 14. Inline links
 * 15. FAQ block
 * 16. Callout / warning block
 * 17. Tag pills
 * 18. Animations
 * 19. Responsive (mobile)
 */


/* ============================================================
   1. CSS VARIABLES
   ============================================================ */

.pma-wrap {
  --ink:          #1A1714;
  --ink-soft:     #4A4540;
  --ink-muted:    #8A847C;
  --gold:         #B8965A;
  --gold-light:   #F0E4CC;
  --cream:        #FAF8F4;
  --teal:         #3D7A72;
  --teal-light:   #E8F2F0;
  --rose:         #C4726A;
  --border:       rgba(26,23,20,0.10);
  --serif:        'Playfair Display', Georgia, serif;
  --sans:         'DM Sans', sans-serif;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    20px;
}


/* ============================================================
   2. BASE WRAPPER
   ============================================================ */

.pma-wrap {
  font-family:              var(--sans);
  color:                    var(--ink);
  line-height:              1.8;
  -webkit-font-smoothing:   antialiased;
  max-width:                780px;
  margin:                   0 auto;
  padding:                  0 1rem;
}

.pma-wrap *,
.pma-wrap *::before,
.pma-wrap *::after {
  box-sizing: border-box;
  margin:     0;
  padding:    0;
}


/* ============================================================
   3. AUTHOR BAR
   ============================================================ */

.pma-author-bar {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         1.25rem 0;
  border-bottom:   1px solid var(--border);
  margin-bottom:   2rem;
  flex-wrap:       wrap;
  gap:             0.5rem;
}

.pma-author-left {
  display:     flex;
  align-items: center;
  gap:         10px;
}

.pma-avatar {
  width:           36px;
  height:          36px;
  border-radius:   50%;
  background:      var(--gold-light);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-family:     var(--serif);
  font-size:       13px;
  color:           var(--gold);
  font-style:      italic;
  flex-shrink:     0;
  overflow:        hidden;
  border:          1px solid rgba(184,150,90,0.25);
}

.pma-avatar img {
  width:         100%;
  height:        100%;
  object-fit:    cover;
  border-radius: 50%;
}

.pma-author-name {
  font-size:   13px;
  font-weight: 500;
  color:       var(--ink);
}

.pma-author-name a {
  color:           var(--ink);
  text-decoration: none;
  transition:      color 0.2s;
}

.pma-author-name a:hover { color: var(--gold); }

.pma-author-meta {
  font-size:   12px;
  color:       var(--ink-muted);
  font-weight: 300;
}

.pma-last-updated {
  font-size:   12px;
  color:       var(--ink-muted);
  font-weight: 300;
}


/* ============================================================
   4. ARTICLE INTRO
   ============================================================ */

.pma-intro {
  margin-bottom: 2.5rem;
}

.pma-category {
  display:       inline-block;
  font-size:     10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:         var(--gold);
  font-weight:   500;
  margin-bottom: 0.75rem;
  font-family:   var(--sans);
}

.pma-h1 {
  font-family:    var(--serif);
  font-size:      clamp(26px, 4.5vw, 40px);
  color:          var(--ink);
  font-weight:    400;
  line-height:    1.2;
  letter-spacing: -0.02em;
  margin-bottom:  1.1rem;
}

.pma-lead {
  font-size:     16px;
  color:         var(--ink-soft);
  line-height:   1.8;
  font-weight:   300;
  border-left:   3px solid var(--gold);
  padding-left:  1.1rem;
  margin-bottom: 1.5rem;
}

.pma-p {
  font-size:     15px;
  color:         var(--ink-soft);
  line-height:   1.85;
  font-weight:   300;
  margin-bottom: 1.1rem;
}

.pma-p:last-child { margin-bottom: 0; }

.pma-p strong,
.pma-p b {
  font-weight: 500;
  color:       var(--ink);
}


/* ============================================================
   5. QUICK FACTS BOX
   ============================================================ */

.pma-facts {
  background:    var(--cream);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       1.4rem 1.6rem;
  margin:        2rem 0;
}

.pma-facts-title {
  font-size:      11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color:          var(--ink-muted);
  font-weight:    500;
  margin-bottom:  1rem;
  font-family:    var(--sans);
}

.pma-facts-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1rem;
}

.pma-fact-value {
  font-family:   var(--serif);
  font-size:     20px;
  color:         var(--ink);
  font-weight:   400;
  line-height:   1;
  margin-bottom: 3px;
}

.pma-fact-label {
  font-size:   12px;
  color:       var(--ink-muted);
  font-weight: 300;
}


/* ============================================================
   6. SECTION HEADINGS
   ============================================================ */

.pma-h2 {
  font-family:    var(--serif);
  font-size:      clamp(20px, 3vw, 26px);
  color:          var(--ink);
  font-weight:    400;
  line-height:    1.25;
  letter-spacing: -0.01em;
  margin:         2.5rem 0 1rem;
}

.pma-h3 {
  font-size:     16px;
  font-weight:   500;
  color:         var(--ink);
  margin:        1.75rem 0 0.6rem;
  font-family:   var(--sans);
  line-height:   1.35;
}

.pma-section-intro {
  font-size:     15px;
  color:         var(--ink-soft);
  line-height:   1.85;
  font-weight:   300;
  margin-bottom: 1.25rem;
}


/* ============================================================
   7. OBJECT CARDS
   ============================================================ */

.pma-object {
  border:        1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow:      hidden;
  margin:        1.5rem 0;
  background:    #fff;
}

.pma-object-header {
  display:               grid;
  grid-template-columns: auto 1fr auto;
  align-items:           center;
  gap:                   1rem;
  padding:               1.1rem 1.4rem;
  border-bottom:         1px solid var(--border);
  background:            var(--cream);
}

.pma-object-num {
  font-family: var(--serif);
  font-size:   13px;
  color:       var(--gold);
  font-style:  italic;
  width:       22px;
  flex-shrink: 0;
}

.pma-object-name {
  font-size:   15px;
  font-weight: 500;
  color:       var(--ink);
  line-height: 1.35;
}

.pma-object-size {
  font-size:     12px;
  color:         var(--ink-muted);
  font-weight:   300;
  white-space:   nowrap;
  background:    white;
  border:        1px solid var(--border);
  border-radius: 20px;
  padding:       3px 10px;
  flex-shrink:   0;
}

.pma-object-body {
  padding: 1.1rem 1.4rem;
}

.pma-object-body p {
  font-size:   14.5px;
  color:       var(--ink-soft);
  line-height: 1.8;
  font-weight: 300;
  margin:      0 0 0.75rem;
}

.pma-object-body p:last-child { margin-bottom: 0; }


/* ============================================================
   8. IMAGE AREAS
   ============================================================ */

.pma-object-img {
  width:         100%;
  max-height:    260px;
  object-fit:    cover;
  display:       block;
  border-bottom: 1px solid var(--border);
}

.pma-object-img-placeholder {
  width:           100%;
  height:          180px;
  background:      var(--cream);
  border-bottom:   1px solid var(--border);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       12px;
  color:           var(--ink-muted);
  font-weight:     300;
  font-family:     var(--sans);
}

/* Full-width image inside article body */
.pma-img-full {
  width:         100%;
  border-radius: var(--radius-md);
  display:       block;
  margin:        1.5rem 0;
  border:        1px solid var(--border);
}

.pma-img-caption {
  font-size:   12px;
  color:       var(--ink-muted);
  font-weight: 300;
  text-align:  center;
  margin-top:  -1rem;
  margin-bottom: 1.5rem;
}


/* ============================================================
   9. COMPARISON TABLE
   ============================================================ */

.pma-table-wrap {
  overflow-x:    auto;
  margin:        1.5rem 0;
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pma-table {
  width:            100%;
  border-collapse:  collapse;
  font-size:        13.5px;
  font-family:      var(--sans);
}

.pma-table th {
  background:     var(--cream);
  padding:        0.7rem 1rem;
  text-align:     left;
  font-size:      10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:          var(--ink-muted);
  font-weight:    500;
  border-bottom:  1px solid var(--border);
}

.pma-table td {
  padding:       0.8rem 1rem;
  color:         var(--ink-soft);
  font-weight:   300;
  border-bottom: 1px solid var(--border);
  line-height:   1.55;
  vertical-align: middle;
  background:    #fff;
}

.pma-table tr:last-child td { border-bottom: none; }

.pma-table td:first-child {
  font-weight: 500;
  color:       var(--ink);
}

/* Highlighted row — use for the current measurement */
.pma-table tr.pma-row-highlight td {
  background: var(--gold-light);
}

.pma-table tr.pma-row-highlight td:first-child {
  color: var(--gold);
}


/* ============================================================
   10. STEP / GUIDE LIST
   ============================================================ */

.pma-guide-box {
  background:    var(--teal-light);
  border:        1px solid rgba(61,122,114,0.2);
  border-radius: var(--radius-lg);
  padding:       1.4rem 1.6rem;
  margin:        2rem 0;
}

.pma-guide-title {
  font-size:      12px;
  font-weight:    500;
  color:          var(--teal);
  margin-bottom:  0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family:    var(--sans);
}

.pma-steps {
  list-style:      none;
  display:         flex;
  flex-direction:  column;
  gap:             0.6rem;
}

.pma-step {
  display:     flex;
  gap:         0.75rem;
  font-size:   14px;
  color:       var(--ink-soft);
  font-weight: 300;
  line-height: 1.65;
}

.pma-step-num {
  font-family: var(--serif);
  font-size:   13px;
  color:       var(--teal);
  font-style:  italic;
  flex-shrink: 0;
  width:       18px;
  padding-top: 1px;
}


/* ============================================================
   11. HIGHLIGHT NOTE BOX
   ============================================================ */

.pma-note {
  background:    var(--cream);
  border-left:   2px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding:       1rem 1.25rem;
  margin:        1.5rem 0;
}

.pma-note p {
  font-size:   14px;
  color:       var(--ink-soft);
  line-height: 1.75;
  font-weight: 300;
  margin:      0 0 0.5rem;
}

.pma-note p:last-child { margin-bottom: 0; }

.pma-note strong { font-weight: 500; color: var(--ink); }

/* Warning variant */
.pma-note-warning {
  border-left-color: var(--rose);
  background:        #FDF2F1;
}

/* Info / teal variant */
.pma-note-info {
  border-left-color: var(--teal);
  background:        var(--teal-light);
}


/* ============================================================
   12. RELATED ARTICLES BLOCK
   ============================================================ */

.pma-related {
  background:    #fff;
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       1.25rem 1.5rem;
  margin:        2.5rem 0;
}

.pma-related-label {
  font-size:      10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color:          var(--ink-muted);
  font-weight:    500;
  margin-bottom:  0.75rem;
  font-family:    var(--sans);
}

.pma-related-links {
  display:        flex;
  flex-direction: column;
  gap:            0;
}

.pma-related-link {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         0.6rem 0;
  border-bottom:   1px solid var(--border);
  text-decoration: none;
  font-size:       13.5px;
  color:           var(--ink-soft);
  font-weight:     400;
  transition:      color 0.15s;
}

.pma-related-link:last-child { border-bottom: none; }

.pma-related-link:hover { color: var(--gold); }

.pma-related-arrow {
  font-size:  14px;
  color:      rgba(26,23,20,0.15);
  transition: color 0.15s, transform 0.15s;
  display:    inline-block;
}

.pma-related-link:hover .pma-related-arrow {
  color:     var(--gold);
  transform: translateX(3px);
}


/* ============================================================
   13. DIVIDER
   ============================================================ */

.pma-divider {
  border:     none;
  border-top: 1px solid var(--border);
  margin:     2.25rem 0;
}


/* ============================================================
   14. INLINE LINKS
   ============================================================ */

.pma-link {
  color:           var(--gold);
  text-decoration: none;
  font-weight:     400;
  transition:      opacity 0.2s;
}

.pma-link:hover {
  text-decoration: underline;
  opacity:         0.85;
}


/* ============================================================
   15. FAQ BLOCK
   ============================================================ */

.pma-faq {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pma-faq-item {
  border-bottom: 1px solid var(--border);
  background:    #fff;
}

.pma-faq-item:last-child { border-bottom: none; }

.pma-faq-question {
  width:           100%;
  background:      none;
  border:          none;
  padding:         1rem 1.25rem;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1rem;
  cursor:          pointer;
  text-align:      left;
  font-family:     var(--sans);
  font-size:       14.5px;
  font-weight:     500;
  color:           var(--ink);
  line-height:     1.4;
  transition:      background 0.15s;
}

.pma-faq-question:hover { background: var(--cream); }

.pma-faq-icon {
  width:       18px;
  height:      18px;
  border:      1px solid var(--border);
  border-radius: 50%;
  display:     flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size:   14px;
  color:       var(--ink-muted);
  transition:  transform 0.2s;
  font-style:  normal;
}

.pma-faq-item.pma-faq-open .pma-faq-icon { transform: rotate(45deg); }

.pma-faq-answer {
  display:     none;
  padding:     0 1.25rem 1rem;
  font-size:   14px;
  color:       var(--ink-soft);
  line-height: 1.8;
  font-weight: 300;
}

.pma-faq-item.pma-faq-open .pma-faq-answer { display: block; }


/* ============================================================
   16. CALLOUT / WARNING BLOCK
   ============================================================ */

.pma-callout {
  background:    var(--ink);
  border-radius: var(--radius-xl);
  padding:       2rem 2.25rem;
  margin:        2rem 0;
  position:      relative;
  overflow:      hidden;
}

.pma-callout::after {
  content:        '\201C';
  font-family:    var(--serif);
  font-size:      180px;
  color:          rgba(255,255,255,0.04);
  position:       absolute;
  top:            -40px;
  right:          20px;
  line-height:    1;
  pointer-events: none;
}

.pma-callout p {
  font-family:   var(--serif);
  font-size:     clamp(15px, 2vw, 19px);
  color:         rgba(255,255,255,0.90);
  line-height:   1.7;
  font-style:    italic;
  margin-bottom: 0.75rem;
  position:      relative;
  z-index:       1;
}

.pma-callout-attr {
  font-family:    var(--sans);
  font-size:      11px;
  color:          var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight:    500;
}


/* ============================================================
   17. TAG PILLS
   ============================================================ */

.pma-tags {
  display:   flex;
  flex-wrap: wrap;
  gap:       7px;
  margin:    1rem 0;
}

.pma-tag {
  font-size:     12px;
  background:    var(--cream);
  border:        1px solid var(--border);
  border-radius: 20px;
  padding:       4px 12px;
  color:         var(--ink-soft);
  font-weight:   400;
  font-family:   var(--sans);
}

.pma-tag-gold {
  background: var(--gold-light);
  border-color: rgba(184,150,90,0.3);
  color:       #7A5F2E;
}


/* ============================================================
   18. ANIMATIONS
   ============================================================ */

@keyframes pmaFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pma-fade-in {
  opacity:   0;
  animation: pmaFadeUp 0.65s ease forwards;
}

.pma-delay-1 { animation-delay: 0.05s; }
.pma-delay-2 { animation-delay: 0.10s; }
.pma-delay-3 { animation-delay: 0.15s; }
.pma-delay-4 { animation-delay: 0.20s; }
.pma-delay-5 { animation-delay: 0.25s; }


/* ============================================================
   19. RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 600px) {

  .pma-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pma-object-header {
    grid-template-columns: auto 1fr;
  }

  .pma-object-size {
    display: none;
  }

  .pma-author-bar {
    flex-direction: column;
    align-items:    flex-start;
  }

  .pma-table {
    font-size: 12.5px;
  }

  .pma-table td,
  .pma-table th {
    padding: 0.65rem 0.75rem;
  }

  .pma-callout {
    padding: 1.6rem 1.5rem;
  }

  .pma-guide-box {
    padding: 1.2rem 1.25rem;
  }

}

@media (max-width: 400px) {

  .pma-facts-grid {
    grid-template-columns: 1fr;
  }

  .pma-h1 {
    font-size: 24px;
  }

}


/* ============================================================
   END OF FILE
   Add any custom overrides below this line
   ============================================================ */