/*
Theme Name: Styled Men
Theme URI: https://styledmen.com
Author: JH Media
Author URI: https://styledmen.com
Description: Custom theme for Styled Men magazine
Version: 5.9
License: GNU General Public License v2 or later
*/

/* ── ROOT VARIABLES ── */
:root {
  --ink: #1a1410;
  --cream: #f5f0e8;
  --warm-mid: #e8e0d0;
  --espresso: #3d2b1f;
  --caramel: #c8913a;
  --pale-caramel: #f0e4cc;
  --grey: #7a7068;
  --rule: #d4c9b8;
}

/* ── GLOBAL RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── CONTENT CONTAINER ── */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── IMAGES ── */
img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--espresso);
  margin-bottom: 40px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin-bottom: 24px;
}

h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--espresso);
  line-height: 1.2;
  margin-bottom: 16px;
}

p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16.5px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: 22px;
}

a {
  color: var(--espresso);
  text-decoration: none;
}

a:hover {
  color: var(--caramel);
}

/* ── LABELS & CATEGORIES ── */
.label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--caramel);
}

/* ── BOLD TEXT ── */
strong, b, .has-text-weight-bold {
  font-weight: 700 !important;
  font-family: 'DM Sans', sans-serif !important;
}

p strong, p b {
  font-weight: 700 !important;
}

/* ── NO GAP LIST ── */
ul.no-gap,
ol.no-gap,
.wp-block-list.no-gap {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-left: 2em !important;
}

ul.no-gap li,
ol.no-gap li,
.wp-block-list.no-gap li {
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

p + ul.no-gap,
p + ol.no-gap,
p + .wp-block-list.no-gap {
  margin-top: 0 !important;
}

p:has(+ ul.no-gap),
p:has(+ ol.no-gap),
p:has(+ .wp-block-list.no-gap) {
  margin-bottom: 0 !important;
}

/* ── RESPONSIVE TYPOGRAPHY ── */
@media (max-width: 768px) {
  h1 {
    font-size: 36px;
    margin-bottom: 28px;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

/* ── CONTENT TOP PADDING ── */
.entry-content,
.wp-block-post-content,
article.page,
article.post {
  padding-top: 40px;
}

@media (max-width: 768px) {
  .entry-content,
  .wp-block-post-content,
  article.page,
  article.post {
    padding-top: 30px;
  }
}

/* ── ARTICLE IMAGE BLOCK ── */
figure.wp-block-styled-men-article-image {
  padding: 0 !important;
}

figure.wp-block-styled-men-article-image img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  padding: 0 !important;
}

figure.wp-block-styled-men-article-image figcaption {
  font-family: 'DM Mono', monospace !important;
  font-size: 11px !important;
  color: #3d2b1f !important;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;
  letter-spacing: 0.05em !important;
  line-height: 1.4 !important;
}

/* ── REMOVE MOBILE TAP HIGHLIGHT ── */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ── DROP CAP PATTERN ── */
p.is-style-drop-cap {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 16.5px !important;
  font-weight: 300 !important;
  color: #1a1410 !important;
  line-height: 1.85 !important;
  margin-bottom: 22px !important;
  overflow: hidden !important;
}

p.is-style-drop-cap::first-letter,
p.is-style-drop-cap:not(:focus)::first-letter {
  font-family: 'Playfair Display', serif !important;
  font-size: 72px !important;
  font-weight: 700 !important;
  float: left !important;
  line-height: 0.82 !important;
  margin-right: 10px !important;
  margin-top: 0px !important;
  color: #c8913a !important;
  text-transform: none !important;
  font-style: normal !important;
  font-variant: normal !important;
  padding: 0 !important;
}

/* ── DROP CAP MOBILE FIX ── */
@media (max-width: 768px) {
  p.is-style-drop-cap::first-letter,
  p.is-style-drop-cap:not(:focus)::first-letter {
    font-family: 'Playfair Display', serif !important;
    font-size: 72px !important;
    font-weight: 700 !important;
    float: left !important;
    line-height: 0.82 !important;
    margin-right: 10px !important;
    margin-top: 0 !important;
    color: #c8913a !important;
    text-transform: none !important;
  }
}

/* ── BY THE NUMBERS BLOCK ── */
.sm-by-the-numbers {
  background: #f5f0e8;
  border-top: 2px solid #d4c9b8;
  border-bottom: none;
  padding: 8px 0 0 0;
  margin: 48px 0 22px 0;
}

.sm-btn-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c8913a;
  display: block;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 2px solid #d4c9b8;
  margin-bottom: 16px;
}

.sm-btn-grid {
  display: block;
}

.sm-btn-stat {
  margin-bottom: 32px;
}

.sm-btn-stat:last-child {
  margin-bottom: 0;
}

.sm-btn-number {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 700;
  color: #3d2b1f;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.sm-btn-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #7a7068;
  display: block;
  line-height: 1.5;
}

/* ── OBSERVATION BLOCK ── */
.wp-block-styled-men-observation {
  margin: 48px 0 22px 0;
}

.sm-obs-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c8913a;
  display: block;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 2px solid #d4c9b8;
  margin-bottom: 16px;
}

.sm-obs-content {
  border-left: 3px solid #c8913a;
  padding-left: 20px;
}

.sm-obs-content p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16.5px;
  font-weight: 700;
  color: #3d2b1f;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ── PULL QUOTE BLOCK ── */
figure.wp-block-pullquote {
  border-top: 3px solid #c8913a !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  padding: 28px 0 !important;
  margin: 44px 0 22px 0 !important;
  text-align: left !important;
}

figure.wp-block-pullquote blockquote {
  margin: 0 !important;
  padding: 0 !important;
}

figure.wp-block-pullquote blockquote p {
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
  font-size: clamp(18px, 1.8vw, 23px) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #3d2b1f !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* ── ARTICLE IMAGE SPACING FIX ── */
figure.wp-block-styled-men-article-image {
    display: block !important;
}

figure.wp-block-styled-men-article-image img {
    display: block !important;
    margin-bottom: 0 !important;
}

figure.wp-block-styled-men-article-image figcaption {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

.wp-block-styled-men-pull-quote {
  margin-bottom: 22px !important;
}

.wp-block-styled-men-pull-quote p {
  margin-bottom: 0 !important;
}