/*
Theme Name: YC Theme
Theme URI: https://yescontext.com
Description: Editorial magazine theme for nocontextsociology. Works with yc-engine plugin.
Version: 1.0.0
Author: NCS
Text Domain: yc-theme
*/

/* ===== CSS VARIABLES ===== */
:root {
  --bg: #FAF7F2;
  --bg-deep: #F0EBE3;
  --text: #1A1A1A;
  --text-muted: #6B6560;
  --accent: #C05225;
  --accent-light: #F4E6DD;
  --accent-hover: #A8431D;
  --teal: #1A6B5A;
  --teal-light: #E0F0EC;
  --purple: #5B3E8A;
  --purple-light: #EDE7F5;
  --gold: #B8860B;
  --gold-light: #FFF8E7;
  --border: #E0DBD4;
  --card: #FFFFFF;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bg);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
}

/* Override WP defaults that can frame/box the layout */
html, body {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}
.wp-site-blocks {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Kill any WP block theme wrappers */
.is-layout-constrained,
.is-layout-flow,
.has-global-padding {
  max-width: none !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ===== TOP NAV ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  overflow: hidden;
}
.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
.nav-cats {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-cats::-webkit-scrollbar { display: none; }
.nav-cat {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-cat:hover, .nav-cat.active {
  background: var(--accent);
  color: white;
  text-decoration: none;
}

/* ===== HERO ===== */
.yc-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 0;
}
.yc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.yc-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.yc-breadcrumb a:hover { text-decoration: underline; }
.yc-bc-sep { opacity: 0.4; }
.yc-hero-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.yc-hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--text);
}
.yc-hero-title em {
  font-style: italic;
  color: var(--accent);
}
.yc-hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 24px;
}
.yc-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.yc-reading-time {
  background: var(--teal-light);
  color: var(--teal);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
}
.yc-data-badge {
  background: var(--purple-light);
  color: var(--purple);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
}

/* ===== HERO IMAGE ===== */
.yc-hero-image {
  max-width: 860px;
  margin: 32px auto 0;
  padding: 0 24px;
}
.yc-hero-image figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.yc-hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ===== QUICK ANSWER BOX ===== */
.yc-quick-answer {
  max-width: 860px;
  margin: 32px auto;
  padding: 0 24px;
}
.yc-quick-answer-inner {
  background: linear-gradient(135deg, var(--accent) 0%, #D4663A 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: white;
  position: relative;
  overflow: hidden;
}
.yc-quick-answer-inner::before {
  content: '\26A1';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 80px;
  opacity: 0.12;
}
.yc-qa-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 10px;
}
.yc-qa-text {
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
}
.yc-qa-text strong { font-weight: 700; }

/* ===== CONTENT LAYOUT ===== */
.yc-content-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}

/* ===== TABLE OF CONTENTS ===== */
.yc-toc {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}
.yc-toc::-webkit-scrollbar { display: none; }
.yc-toc-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.yc-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.yc-toc-list a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: all 0.2s;
  line-height: 1.4;
}
.yc-toc-list a:hover,
.yc-toc-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}
.yc-toc-progress {
  margin-top: 20px;
  height: 3px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.yc-toc-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 10px;
  transition: width 0.3s;
}

/* ===== ARTICLE CONTENT ===== */
.yc-content-body {
  max-width: 700px;
}
.yc-content-body h2 {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.2;
  margin: 48px 0 16px;
  letter-spacing: -0.5px;
  scroll-margin-top: 80px;
}
.yc-content-body h2:first-child {
  margin-top: 0;
}
.yc-content-body h2 .section-emoji {
  margin-right: 8px;
}
.yc-content-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.yc-content-body p {
  margin-bottom: 20px;
  color: #2A2825;
}
.yc-content-body p.lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-muted);
}
.yc-content-body ul, .yc-content-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.yc-content-body li {
  margin-bottom: 8px;
}

/* ===== INLINE SOURCE CITATION ===== */
.cite {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-light);
  padding: 1px 8px;
  border-radius: 4px;
  text-decoration: none;
  vertical-align: super;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
}
.cite:hover {
  background: var(--teal);
  color: white;
  text-decoration: none;
}

/* ===== STAT CALLOUT ===== */
.yc-stat-callout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.yc-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.yc-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.yc-stat-number {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.yc-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.3;
}
.yc-stat-source {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 4px;
  font-family: var(--mono);
}

/* ===== INFO BOXES ===== */
.yc-info-box {
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.yc-info-box::before {
  position: absolute;
  top: -8px;
  right: 16px;
  font-size: 56px;
  opacity: 0.15;
}
.yc-info-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.yc-info-text {
  font-size: 16px;
  line-height: 1.65;
}

/* Info box variants */
.yc-info-did-you-know {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
}
.yc-info-did-you-know::before { content: '\1F4A1'; }
.yc-info-did-you-know .yc-info-label { color: var(--gold); }

.yc-info-plot-twist {
  background: var(--purple-light);
  border-left: 4px solid var(--purple);
}
.yc-info-plot-twist::before { content: '\1F504'; }
.yc-info-plot-twist .yc-info-label { color: var(--purple); }

.yc-info-myth-busted {
  background: #FDE8E8;
  border-left: 4px solid #C53030;
}
.yc-info-myth-busted::before { content: '\1F4A5'; }
.yc-info-myth-busted .yc-info-label { color: #C53030; }

.yc-info-wait-what {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
}
.yc-info-wait-what::before { content: '\1F92F'; }
.yc-info-wait-what .yc-info-label { color: var(--teal); }

.yc-info-hot-take {
  background: linear-gradient(135deg, #FFF5F5, #FFF0E5);
  border-left: 4px solid var(--accent);
}
.yc-info-hot-take::before { content: '\1F525'; }
.yc-info-hot-take .yc-info-label { color: var(--accent); }

/* ===== DATA TABLE ===== */
.yc-data-table-wrap {
  margin: 32px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.yc-data-table-title {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.yc-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.yc-data-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.yc-data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.yc-data-table tr:last-child td { border-bottom: none; }
.yc-data-table tr:hover td { background: var(--bg); }
.yc-data-table .highlight {
  color: var(--accent);
  font-weight: 600;
}
.yc-data-table-source {
  padding: 10px 20px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ===== BLOCKQUOTE ===== */
.yc-content-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 17px;
  font-style: italic;
  color: #3D3530;
}
.yc-content-body blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ===== FRAMEWORK BOX (Hofstede etc.) ===== */
.yc-framework-box {
  margin: 36px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.yc-framework-header {
  padding: 16px 24px;
  background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}
.yc-framework-badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(255,255,255,0.15);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}
.yc-framework-title {
  font-family: var(--serif);
  font-size: 18px;
}
.yc-framework-body { padding: 24px; }
.yc-framework-dimension {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.yc-framework-dimension:last-child { border-bottom: none; }
.yc-fd-label {
  width: 140px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
}
.yc-fd-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-deep);
  border-radius: 10px;
  overflow: hidden;
}
.yc-fd-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease;
}
.yc-fd-value {
  width: 40px;
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ===== FAQ SECTION ===== */
.yc-faq-section { margin: 40px 0; }
.yc-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.yc-faq-item:hover { box-shadow: var(--shadow-sm); }
.yc-faq-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.yc-faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
.yc-faq-open .yc-faq-q::after {
  transform: rotate(45deg);
}
.yc-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.yc-faq-open .yc-faq-a {
  max-height: 500px;
  padding: 0 20px 16px;
}
.yc-faq-a p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== SMART CROSS-LINKING ===== */
.yc-smart-link {
  margin: 40px 0;
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2520 100%);
  border-radius: var(--radius);
  padding: 32px;
  color: white;
  position: relative;
  overflow: hidden;
}
.yc-smart-link::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(192,82,37,0.3), transparent 70%);
  border-radius: 50%;
}
.yc-sl-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.yc-sl-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: yc-pulse 2s infinite;
}
@keyframes yc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.yc-sl-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  position: relative;
}
.yc-sl-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-decoration: none;
  color: white;
  transition: all 0.3s;
  display: block;
}
.yc-sl-card:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.yc-sl-card-cat {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 6px;
}
.yc-sl-card-title {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.3;
}
.yc-sl-arrow {
  font-size: 24px;
  color: var(--accent);
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.yc-sl-arrow-icon { font-size: 24px; }
.yc-sl-arrow-text {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
}
.yc-sl-bridge-name {
  font-size: 11px;
  color: var(--accent);
  font-family: var(--mono);
}

/* Pattern tag links */
.yc-sl-tags {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.yc-sl-tag {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.08);
}
.yc-sl-tag:hover {
  background: rgba(192,82,37,0.25);
  color: white;
  border-color: var(--accent);
  text-decoration: none;
}

/* ===== SOURCES SECTION ===== */
.yc-sources {
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.yc-sources-title {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.yc-source-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.yc-source-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-light);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.yc-source-text a {
  color: var(--accent);
  text-decoration: none;
}
.yc-source-text a:hover { text-decoration: underline; }
.yc-source-type {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== RELATED ARTICLES GRID ===== */
.yc-related-grid {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}
.yc-related-grid > h2 {
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 8px;
}
.yc-related-grid-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.yc-related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.yc-related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  display: block;
}
.yc-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  text-decoration: none;
}
.yc-rc-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.yc-rc-body { padding: 20px; }
.yc-rc-cat {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
}
.yc-rc-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}
.yc-rc-bridge {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.5px;
}

/* ===== NEWSLETTER CTA ===== */
.yc-newsletter {
  max-width: 700px;
  margin: 48px auto;
  padding: 0 24px;
}
.yc-newsletter-inner {
  background: linear-gradient(135deg, #1A1A1A, #2D2826);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: white;
}
.yc-newsletter-inner h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 8px;
}
.yc-newsletter-inner p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin-bottom: 20px;
}
.yc-newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}
.yc-newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: white;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
}
.yc-newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.yc-newsletter-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.yc-newsletter-form button:hover { background: var(--accent-hover); }

/* ===== FOOTER ===== */
.yc-footer {
  background: #1A1A1A;
  color: rgba(255,255,255,0.5);
  padding: 48px 24px;
  text-align: center;
  font-size: 13px;
}
.yc-footer-inner {
  max-width: 700px;
  margin: 0 auto;
}
.yc-footer a {
  color: var(--accent);
  text-decoration: none;
}
.yc-footer a:hover { text-decoration: underline; }
.yc-footer p { margin-bottom: 8px; }
.yc-footer strong { color: rgba(255,255,255,0.8); }
.yc-footer-links {
  margin-top: 12px;
}
.yc-footer-credit {
  margin-top: 8px;
  opacity: 0.7;
  font-size: 12px;
}

/* ===== ARTICLE IMAGE ===== */
.yc-article-image {
  margin: 36px -20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.yc-article-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.yc-article-image figcaption {
  padding: 12px 16px;
  background: var(--bg-deep);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== CATEGORY INDEX ===== */
.yc-category-index {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}
.yc-category-index header {
  margin-bottom: 40px;
}
.yc-category-index header h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 8px;
}
.yc-category-index header p {
  color: var(--text-muted);
  font-size: 15px;
}
.yc-page-list {
  display: grid;
  gap: 16px;
}
.yc-page-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}
.yc-page-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  text-decoration: none;
}
.yc-page-card h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.yc-page-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}
.yc-page-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== HOMEPAGE ===== */
.yc-home-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 48px;
  text-align: center;
}
.yc-home-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.yc-home-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.yc-home-hero p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.yc-home-grid {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}
.yc-home-grid h2 {
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 24px;
}
.yc-home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== 404 PAGE ===== */
.yc-404 {
  max-width: 600px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}
.yc-404 h1 {
  font-family: var(--serif);
  font-size: 72px;
  color: var(--accent);
  margin-bottom: 16px;
}
.yc-404 p {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.yc-404 a {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.2s;
}
.yc-404 a:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .yc-content-wrap {
    grid-template-columns: 1fr;
  }
  .yc-toc { display: none; }
  .yc-stat-callout { grid-template-columns: 1fr; }
  .yc-sl-cards { grid-template-columns: 1fr; }
  .yc-sl-arrow { transform: rotate(90deg); }
  .yc-related-cards { grid-template-columns: 1fr; }
  .yc-home-cards { grid-template-columns: 1fr; }
  .nav-cats {
    max-width: 60vw;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-cats::-webkit-scrollbar { display: none; }
}

/* ===== WP ADMIN BAR ADJUSTMENT ===== */
.admin-bar .topnav {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .topnav {
    top: 46px;
  }
}

/* ══════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════ */

.topnav-landing {
  position: fixed;
  background: rgba(250,247,242,0.9);
}
.topnav-landing .nav-cat {
  border: 1px solid transparent;
  border-radius: 6px;
}
.topnav-landing .nav-cat:hover {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.topnav-landing .nav-cat.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ═══ HERO ═══ */
.yc-landing-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 54px;
}
.yc-lh-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
  max-width: 680px;
  margin-left: auto;
}
.yc-lh-left > * {
  opacity: 0;
  transform: translateY(20px);
  animation: ycFadeUp 0.7s ease forwards;
}
.yc-lh-left > *:nth-child(1) { animation-delay: 0.2s; }
.yc-lh-left > *:nth-child(2) { animation-delay: 0.35s; }
.yc-lh-left > *:nth-child(3) { animation-delay: 0.5s; }
.yc-lh-left > *:nth-child(4) { animation-delay: 0.65s; }
@keyframes ycFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.yc-lh-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.yc-lh-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent);
}
.yc-lh-title {
  font-family: var(--serif);
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.yc-lh-title em {
  font-style: italic;
  color: var(--accent);
}
.yc-lh-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
}
.yc-lh-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
}
.yc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}
.yc-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192,82,37,0.3);
  text-decoration: none;
}
.yc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.yc-btn-ghost:hover {
  border-color: var(--text);
  text-decoration: none;
}

/* Hero right mosaic */
.yc-lh-right {
  position: relative;
  background: var(--text);
  overflow: hidden;
}
.yc-lh-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  height: 100%;
  gap: 3px;
}
.yc-mosaic-tile {
  position: relative;
  overflow: hidden;
  background: #2A2520;
  text-decoration: none;
  color: white;
}
.yc-mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.4s, transform 0.6s;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.yc-mosaic-tile:hover img {
  opacity: 0.95;
  transform: scale(1.04);
}
.yc-mosaic-tile:hover {
  text-decoration: none;
}
.yc-mosaic-tile.featured {
  grid-row: 1 / 3;
}
.yc-mosaic-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}
.yc-ml-cat {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 4px;
}
.yc-ml-title {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.25;
}
.yc-mosaic-tile.featured .yc-ml-title {
  font-size: 22px;
}

/* Stats bar */
.yc-lh-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}
.yc-lh-stat {
  flex: 1;
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.yc-lh-stat:last-child { border-right: none; }
.yc-lh-stat-num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}
.yc-lh-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  font-family: var(--mono);
  letter-spacing: 0.5px;
}

/* ═══ TICKER ═══ */
.yc-ticker {
  background: var(--text);
  padding: 14px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.yc-ticker-track {
  display: flex;
  gap: 48px;
  animation: ycTickerScroll 40s linear infinite;
  width: max-content;
}
@keyframes ycTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.yc-ticker-item {
  font-family: var(--serif);
  font-size: 18px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  flex-shrink: 0;
}
.yc-ticker-item em { color: var(--accent); font-style: italic; opacity: 0.8; }
.yc-ticker-sep { color: rgba(255,255,255,0.12); }

/* ═══ MANIFESTO ═══ */
.yc-manifesto {
  max-width: 880px;
  margin: 0 auto;
  padding: 100px 28px 80px;
  text-align: center;
}
.yc-manifesto-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 24px;
}
.yc-manifesto h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 28px;
}
.yc-manifesto h2 em { font-style: italic; color: var(--accent); }
.yc-manifesto > p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}
.yc-manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}
.yc-mg-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s;
}
.yc-mg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  border-color: var(--accent);
}
.yc-mg-icon { font-size: 28px; margin-bottom: 14px; }
.yc-mg-card h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 8px; }
.yc-mg-card p { font-size: 14px; line-height: 1.65; color: var(--text-muted); }

/* ═══ FEATURED SECTION ═══ */
.yc-featured-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 28px 100px;
}
.yc-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}
.yc-section-header h2 {
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: -0.5px;
}
.yc-section-header a {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-decoration: none;
}
.yc-section-header a:hover { text-decoration: underline; }
.yc-article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.yc-article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  display: block;
}
.yc-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.09);
  border-color: var(--accent);
  text-decoration: none;
}
.yc-ac-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.yc-ac-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.yc-article-card:hover .yc-ac-img img { transform: scale(1.06); }
.yc-ac-img .yc-ac-cat {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 5px;
}
.yc-ac-body { padding: 20px 22px; }
.yc-ac-cat {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
}
.yc-ac-title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.28;
  margin-bottom: 8px;
}
.yc-ac-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.yc-article-card.large {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.yc-article-card.large .yc-ac-img { height: 100%; }
.yc-article-card.large .yc-ac-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}
.yc-article-card.large .yc-ac-title { font-size: 28px; }
.yc-article-card.large .yc-ac-excerpt { font-size: 15px; }

/* ═══ BRIDGE SECTION ═══ */
.yc-bridge-section {
  background: var(--text);
  padding: 80px 28px;
  color: white;
}
.yc-bridge-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.yc-section-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 20px;
}
.yc-bridge-inner h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  margin-bottom: 20px;
}
.yc-bridge-inner h2 em { font-style: italic; color: var(--accent); }
.yc-bridge-inner > p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 600px;
  margin: 0 auto 48px;
}
.yc-bridge-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.yc-bd-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 24px 28px;
  max-width: 280px;
  text-align: left;
  transition: all 0.3s;
}
.yc-bd-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}
.yc-bd-card-cat {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 6px;
}
.yc-bd-card-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
}
.yc-bd-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.yc-bd-arrow-icon {
  font-size: 20px;
  color: var(--accent);
  animation: ycArrowPulse 2s ease-in-out infinite;
}
@keyframes ycArrowPulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}
.yc-bd-bridge-label {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
}
.yc-bd-bridge-name {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

/* ═══ CATEGORIES ═══ */
.yc-cat-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 28px;
}
.yc-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.yc-cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 22px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  text-align: center;
  display: block;
}
.yc-cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  text-decoration: none;
}
.yc-cat-emoji { font-size: 32px; margin-bottom: 12px; display: block; }
.yc-cat-name { font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.yc-cat-count { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }

/* ═══ LANDING RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .yc-landing-hero { grid-template-columns: 1fr; min-height: auto; }
  .yc-lh-left { padding: 60px 28px; max-width: 100%; }
  .yc-lh-right { height: 50vh; }
  .yc-article-card.large { grid-column: auto; }
  .yc-article-card.large .yc-ac-title { font-size: 20px; }
  .yc-manifesto-grid { grid-template-columns: 1fr; }
  .yc-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .yc-article-grid { grid-template-columns: 1fr; }
  .yc-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .yc-bridge-demo { flex-direction: column; }
  .yc-bd-arrow { transform: rotate(90deg); }
  .yc-mosaic-tile.featured { grid-row: auto; }
  .yc-lh-mosaic { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
}

/* ═══ REVEAL ANIMATION ═══ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
