/*
Theme Name: Mathilde Lacombe
Theme URI: https://mathildelacombe.com
Author: Mathilde Lacombe
Description: Editorial beauty & lifestyle blog with PDF-designed homepage: hero split, category strip, widget zones, 4-col post grids, 3-col list rows, newsletter bar, dark footer.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Tags: blog, beauty, lifestyle, editorial, custom-colors, custom-logo, featured-images, two-columns, three-columns
*/

/* ─── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

/* ─── Variables ────────────────────────────────────────────────── */
:root {
  --pink:         #D4537E;
  --pink-hover:   #B8395F;
  --pink-light:   #FBEAF0;
  --pink-mid:     #F4C0D1;
  --pink-dark:    #72243E;
  --cream:        #F9F7F4;
  --white:        #FFFFFF;
  --ink:          #1A1A1A;
  --ink-mid:      #3D3D3A;
  --ink-muted:    #73726C;
  --ink-faint:    #B4B2A9;
  --border:       rgba(26,26,26,0.1);
  --border-mid:   rgba(26,26,26,0.18);
  --dark-bg:      #1A1A1A;
  --dark-surface: #242424;
  --dark-border:  rgba(255,255,255,0.1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', -apple-system, sans-serif;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    14px;
  --max-w:        1200px;
  --trans:        0.2s ease;
}

/* ─── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; }

/* ─── Typography ───────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem,3.5vw,2.8rem); }
h2 { font-size: clamp(1.5rem,2.5vw,2rem); }
h3 { font-size: clamp(1rem,1.8vw,1.25rem); }
p { color: var(--ink-mid); }

/* ─── Container ────────────────────────────────────────────────── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-header .wrap {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-logo {
  flex-shrink: 0;
  display: block;
}
.site-logo img { height: 38px; width: auto; }
.site-logo__text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-logo__icon {
  width: 36px; height: 36px;
  background: var(--pink);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.site-logo__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 2; }

.primary-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Reset wp_nav_menu ul/li so they don't stack vertically */
.primary-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: nowrap;
}
.primary-nav ul li {
  display: block;
  position: relative;
  margin: 0; padding: 0;
}
.primary-nav ul li a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-mid);
  padding: 0 1.1rem;
  height: 62px;
  display: flex;
  align-items: center;
  border-bottom: 2.5px solid transparent;
  transition: color var(--trans), border-color var(--trans);
  white-space: nowrap;
  text-decoration: none;
}
.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current_page_item > a {
  color: var(--ink);
  border-bottom-color: var(--pink);
}
/* Fallback direct anchors (no menu assigned) */
.primary-nav > a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-mid);
  padding: 0 1.1rem;
  height: 62px;
  display: flex;
  align-items: center;
  border-bottom: 2.5px solid transparent;
  transition: color var(--trans), border-color var(--trans);
  white-space: nowrap;
}
.primary-nav > a:hover { color: var(--ink); border-bottom-color: var(--pink); }

/* Dropdown */
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--trans), transform var(--trans);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  flex-direction: column !important;
  z-index: 300;
}
.primary-nav .menu-item-has-children:hover .sub-menu {
  opacity: 1; pointer-events: auto; transform: none; display: flex;
}
.primary-nav .sub-menu li a {
  height: auto; padding: 0.5rem 1.25rem; border: none; font-size: 0.82rem;
}
.primary-nav .sub-menu li a:hover { color: var(--pink); background: var(--pink-light); }

/* Search bar in header */
.header-search-form {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-mid);
  border-radius: 30px;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}
.header-search-form input {
  border: none; outline: none;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  background: transparent;
  color: var(--ink);
  width: 160px;
}
.header-search-form input::placeholder { color: var(--ink-faint); }
.header-search-form button {
  background: none; border: none;
  padding: 0 0.75rem; color: var(--ink-muted);
  display: flex; align-items: center;
}
.header-search-form button svg { width: 16px; height: 16px; }

/* Mobile toggle */
.mobile-toggle {
  display: none; background: none; border: none;
  color: var(--ink); padding: 4px; margin-left: auto;
}
.mobile-toggle svg { width: 24px; height: 24px; }

/* ═══════════════════════════════════════════════════════════════
   HERO — split layout (left: about + text; right: photo)
═══════════════════════════════════════════════════════════════ */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.25rem;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0;
}
.hero__left {}
.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}
.hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero__social { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-mid);
  color: var(--ink-mid);
  transition: all var(--trans);
}
.hero__social a:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-light); }
.hero__social svg { width: 18px; height: 18px; }

.hero__bio {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 1.5rem;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 30px;
  border: none;
  transition: background var(--trans);
  text-decoration: none;
}
.hero__cta:hover { background: var(--pink-hover); color: var(--white); }

.hero__right { position: relative; }
.hero__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.hero__photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #f0c4d0 0%, #e8a0b8 100%);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--pink-dark);
  font-weight: 700;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY STRIP — 5 images with label
═══════════════════════════════════════════════════════════════ */
.cat-strip {
  background: var(--white);
  padding: 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cat-strip .wrap { padding: 0; }
.cat-strip__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.cat-strip__item { display: block; text-decoration: none; }
.cat-strip__img-wrap {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: var(--pink-light);
}
.cat-strip__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-strip__item:hover .cat-strip__img-wrap img { transform: scale(1.05); }
.cat-strip__label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink);
  padding-top: 0.1rem;
}
.cat-strip__label::after {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--pink);
  margin-top: 3px;
  transition: width var(--trans);
}
.cat-strip__item:hover .cat-strip__label::after { width: 40px; }

/* ═══════════════════════════════════════════════════════════════
   WIDGET ZONE (bordered box, "Widget" placeholder)
═══════════════════════════════════════════════════════════════ */
.widget-zone {
  padding: 1.25rem 1.25rem;
}
.widget-zone .wrap { padding: 0; }
.widget-zone__box {
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.widget-zone__box .widget-zone__label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}
/* WordPress widget area inside the box */
.widget-zone__box .widget { width: 100%; padding: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADING (category section title e.g. "Beauty")
═══════════════════════════════════════════════════════════════ */
.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-heading__more {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: none;
}
.section-heading__more:hover { color: var(--pink-hover); }

/* ═══════════════════════════════════════════════════════════════
   4-COLUMN POST GRID (Beauty, Health & Wellness sections)
═══════════════════════════════════════════════════════════════ */
.cat-section { padding: 2rem 1.25rem; }
.cat-section .wrap { padding: 0; }
.posts-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.post-card-v {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--trans), transform var(--trans);
  display: flex; flex-direction: column;
}
.post-card-v:hover { border-color: var(--pink-mid); transform: translateY(-3px); }
.post-card-v__img {
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--pink-light);
  flex-shrink: 0;
}
.post-card-v__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card-v:hover .post-card-v__img img { transform: scale(1.04); }
.post-card-v__body { padding: 0.85rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.post-card-v__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  display: block;
  text-decoration: none;
  margin-bottom: 0.4rem;
  flex: 1;
}
.post-card-v__title:hover { color: var(--pink-dark); }
.post-card-v__meta {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.5rem;
}
.post-card-v__meta .sep { color: var(--ink-faint); }

/* ═══════════════════════════════════════════════════════════════
   3-COLUMN LIST SECTION (Culture / Lifestyle / Celebrity)
═══════════════════════════════════════════════════════════════ */
.list-section { padding: 1rem 1.25rem 2rem; }
.list-section .wrap { padding: 0; }
.list-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.list-col__heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
}
.list-post {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.list-post:last-child { border-bottom: none; }
.list-post__img {
  width: 76px; height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--pink-light);
  flex-shrink: 0;
}
.list-post__title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  display: block;
  text-decoration: none;
  margin-bottom: 0.2rem;
}
.list-post__title:hover { color: var(--pink); }
.list-post__date { font-size: 0.7rem; color: var(--ink-faint); }

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER BAR (dark bg, email + pink button)
═══════════════════════════════════════════════════════════════ */
.newsletter-bar {
  background: var(--dark-bg);
  padding: 2rem 1.25rem;
}
.newsletter-bar .wrap { padding: 0; }
.newsletter-bar__form {
  display: flex;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
}
.newsletter-bar__form input {
  flex: 1;
  border: none; outline: none;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255,255,255,0.95);
}
.newsletter-bar__form input::placeholder { color: var(--ink-faint); }
.newsletter-bar__form button {
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--trans);
  letter-spacing: 0.03em;
}
.newsletter-bar__form button:hover { background: var(--pink-hover); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER WIDGETS ROW (dark, 3 wide widget boxes)
═══════════════════════════════════════════════════════════════ */
.footer-widgets {
  background: var(--dark-surface);
  padding: 0;
  border-top: 1px solid var(--dark-border);
}
.footer-widgets__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.footer-widget-col {
  padding: 2rem 2rem;
  border-right: 1px solid var(--dark-border);
  min-height: 130px;
  display: flex; align-items: center; justify-content: center;
}
.footer-widget-col:last-child { border-right: none; }
.footer-widget-col .widget-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.footer-widget-col .widget { width: 100%; color: var(--white); }
.footer-widget-col .widget * { color: rgba(255,255,255,0.8); }
.footer-widget-col .widget a:hover { color: var(--pink); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER — dark, 4 columns (Resources, Company, Contact, Widget)
═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark-bg);
  padding: 2.5rem 1.25rem 1rem;
  border-top: 1px solid var(--dark-border);
}
.site-footer .wrap { padding: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--dark-border);
  margin-bottom: 1.25rem;
}
.footer-col__title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--trans);
}
.footer-col ul a:hover { color: var(--white); }

/* Contact col icons */
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}
.footer-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; stroke: rgba(255,255,255,0.5); }

/* Footer widget box (4th col) */
.footer-widget-box {
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  min-height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.footer-widget-box .widget-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  padding-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════════════════ */
.single-hero-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.25rem 0;
}
.single-hero-bar .wrap { padding: 0; max-width: 1100px; }
.single-cats { margin-bottom: 0.75rem; }
.cat-pill {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pink-dark); background: var(--pink-light);
  padding: 3px 10px; border-radius: 20px;
  transition: background var(--trans);
}
.cat-pill:hover { background: var(--pink-mid); }
.single-title { font-size: clamp(1.6rem,3.5vw,2.8rem); margin-bottom: 0.75rem; }
.single-excerpt { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink-muted); margin-bottom: 1.25rem; line-height: 1.7; }
.single-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 2rem; flex-wrap: wrap; }
.single-meta__sep { opacity: 0.5; }
.single-cover { max-width: 1100px; margin: 0 auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; aspect-ratio: 16/7; }
.single-cover img { width: 100%; height: 100%; object-fit: cover; }

.single-body {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem;
  padding: 0 1.25rem 4rem;
}
.article-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 2.5rem 2.5rem 2rem;
  min-width: 0;
}
.article-content h2 { font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.article-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
.article-content p { color: var(--ink-mid); margin-bottom: 1rem; }
.article-content a { color: var(--pink-dark); border-bottom: 1px solid var(--pink-mid); }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { color: var(--ink-mid); list-style: disc; margin-bottom: 0.3rem; }
.article-content img { border-radius: var(--radius-md); margin: 1.25rem 0; }
blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--pink-dark); border-left: 3px solid var(--pink); padding: 0.75rem 1.25rem; background: var(--pink-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.tag-link { font-size: 0.72rem; color: var(--ink-muted); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; transition: all var(--trans); }
.tag-link:hover { background: var(--pink-light); color: var(--pink-dark); border-color: var(--pink-mid); }

.author-box { display: flex; gap: 1rem; background: var(--pink-light); border: 1px solid var(--pink-mid); border-radius: var(--radius-lg); padding: 1.25rem; margin-top: 1.5rem; }
.author-box img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__initials { width: 60px; height: 60px; border-radius: 50%; background: var(--pink-mid); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--pink-dark); flex-shrink: 0; }
.author-box__role { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pink); font-weight: 700; margin-bottom: 2px; }
.author-box__name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.author-box__bio { font-size: 0.82rem; color: var(--ink-muted); margin: 0; }

/* Single sidebar */
.single-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.s-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.s-widget__title { font-family: var(--font-body); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }

.related-section { max-width: 860px; margin: 0 auto; padding: 0 1.25rem 4rem; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   ARCHIVE / SEARCH
═══════════════════════════════════════════════════════════════ */
.archive-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 2rem 1.25rem; }
.archive-bar .wrap { padding: 0; }
.archive-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--pink); font-weight: 700; margin-bottom: 0.3rem; }
.archive-title { font-size: clamp(1.4rem,2.5vw,2rem); }
.archive-body { padding: 2rem 1.25rem 4rem; }
.archive-body .wrap { padding: 0; }
.archive-body .posts-grid-4 { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════ */
.pagination { display: flex; justify-content: center; gap: 0.3rem; padding: 1.5rem 0 0.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.82rem; color: var(--ink-mid); border: 1px solid var(--border); transition: all var(--trans); }
.pagination a:hover { border-color: var(--pink); color: var(--pink); }
.pagination .current { background: var(--pink); color: var(--white); border-color: var(--pink); }

/* ═══════════════════════════════════════════════════════════════
   PAGE / 404
═══════════════════════════════════════════════════════════════ */
.page-wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 5rem; }
.page-wrap h1 { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.page-content p { color: var(--ink-mid); }
.error-404-center { max-width: 480px; margin: 6rem auto; padding: 0 1.25rem; text-align: center; }
.error-404-center .error-num { font-family: var(--font-display); font-size: 7rem; color: var(--pink-mid); line-height: 1; font-weight: 700; }
.error-404-center h1 { margin: 0.5rem 0 0.75rem; }
.error-404-center p { color: var(--ink-muted); margin-bottom: 2rem; }

/* ═══════════════════════════════════════════════════════════════
   MISC HELPERS
═══════════════════════════════════════════════════════════════ */
.btn-pink { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--pink); color: var(--white); font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; padding: 0.65rem 1.5rem; border-radius: 30px; border: none; transition: background var(--trans); text-decoration: none; }
.btn-pink:hover { background: var(--pink-hover); color: var(--white); }
.btn-outline { display: inline-flex; align-items: center; background: transparent; color: var(--ink); font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; padding: 0.6rem 1.4rem; border-radius: 30px; border: 1.5px solid var(--border-mid); transition: all var(--trans); text-decoration: none; }
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }

/* Reading progress */
#read-progress { position: fixed; top: 0; left: 0; width: 0; height: 2.5px; background: var(--pink); z-index: 9999; pointer-events: none; transition: width 0.08s linear; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.anim { animation: fadeUp 0.45s ease both; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }

/* WP alignment */
.alignleft { float: left; margin: 0 1.25rem 0.75rem 0; }
.alignright { float: right; margin: 0 0 0.75rem 1.25rem; }
.aligncenter { margin: 0 auto 1rem; display: block; }
.wp-caption-text { font-size: 0.75rem; color: var(--ink-faint); text-align: center; margin-top: 0.35rem; font-style: italic; }
.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cat-strip__grid { grid-template-columns: repeat(5,1fr); gap: 0.75rem; }
  .posts-grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero__right { display: none; }
  .cat-strip__grid { grid-template-columns: repeat(3,1fr); }
  .list-section__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  /* Footer widget row: stack to single column on tablet */
  .footer-widgets__grid { grid-template-columns: 1fr; }
  .footer-widget-col { border-right: none; border-bottom: 1px solid var(--dark-border); }
  .single-body { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .single-sidebar { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 62px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 199; padding: 0.5rem 0;
  }
  .primary-nav.is-open ul { flex-direction: column; width: 100%; }
  .primary-nav.is-open ul li { width: 100%; }
  .primary-nav.is-open ul li a { height: auto; padding: 0.7rem 1.5rem; border: none; border-bottom: 1px solid var(--border); }
  .primary-nav.is-open > a { height: auto; padding: 0.7rem 1.5rem; border: none; }
  .mobile-toggle { display: block; }
  .header-search-form { display: none; }
  .cat-strip__grid { grid-template-columns: repeat(2,1fr); }
  .posts-grid-4 { grid-template-columns: 1fr; }
  /* Mobile footer: every widget in its own full-width row */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .footer-widgets__grid { grid-template-columns: 1fr; }
  .footer-widget-col { border-right: none; border-bottom: 1px solid var(--dark-border); padding: 1.5rem 1.25rem; justify-content: flex-start; }
  .footer-widget-box { min-height: 80px; }
  .related-grid { grid-template-columns: 1fr; }
  .single-cover { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .article-content { padding: 1.25rem 1rem; }
  .hero { padding: 2rem 1.25rem; }
  .cat-section { padding: 1.5rem 1.25rem; }
  .list-section { padding: 1rem 1.25rem 1.5rem; }
}
