/* ═══════════════════════════════════════════════════════
   MOR Purple — Tabloid Theme for Marketo Ops Radar
   Personality: Technical, precise, practitioner-focused.
   Deep Marketo purple masthead, white background,
   Inter throughout, 4-column grid, compact punchy cards.
   Based on sn-roja; colours swapped from red → Marketo purple.
   ═══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/SourceSerif4-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/SourceSerif4-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --cream:       #ffffff;
  --ink:         #111111;
  --ink-light:   #333333;
  --rule:        #111111;
  --rule-light:  #e5e5e5;
  --muted:       #777777;
  --accent:      #6B2FA0;
  --accent-dark: #4e1f7a;
  --max-w:       1200px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-ui:      'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { background: var(--cream); color: var(--ink); font-family: var(--font-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.sn-container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* MASTHEAD */
.sn-masthead { border-top: none; background: var(--accent); }
.sn-masthead-top { display: grid; grid-template-columns: 140px 1fr 140px; align-items: center; gap: 16px; padding: 14px 0 12px; }
.sn-masthead-nav { font-family: var(--font-ui); font-size: 11px; line-height: 2; }
.sn-masthead-nav ul { list-style: none; padding: 0; }
.sn-masthead-nav a { text-decoration: none; color: rgba(255,255,255,0.85); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.sn-masthead-nav a:hover { color: #fff; text-decoration: underline; }
.sn-masthead-nav.right { text-align: right; }
.sn-logo-wrap { text-align: center; }
.sn-logo { display: block; font-family: var(--font-display); font-size: clamp(30px, 5.5vw, 72px); font-weight: 900; letter-spacing: -2px; line-height: 1; color: #ffffff; text-decoration: none; }
.sn-logo:hover { opacity: 0.9; }
.sn-tagline { font-family: var(--font-ui); font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.7); text-align: center; padding: 5px 0 0; border: none; margin: 4px 0 0; }
.sn-masthead-meta { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: 10px; color: var(--muted); padding: 5px 24px; border-top: 1px solid var(--rule-light); text-transform: uppercase; letter-spacing: 0.5px; background: #fff; }
.sn-nav { border-top: none; border-bottom: 3px solid var(--accent); background: var(--ink); margin-top: 0; }
.sn-nav-list { display: flex; list-style: none; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sn-nav-list li { border-right: 1px solid rgba(255,255,255,0.12); }
.sn-nav-list li:first-child { border-left: 1px solid rgba(255,255,255,0.12); }
.sn-nav-list a { display: block; padding: 8px 20px; font-family: var(--font-ui); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.9); text-decoration: none; transition: background 0.15s, color 0.15s; }
.sn-nav-list a:hover { background: var(--accent); color: #fff; }

/* FRONT PAGE */
.sn-main { padding: 20px 0 48px; }
.sn-front-top { display: grid; grid-template-columns: 2fr 1fr; gap: 0; }
.sn-hero-col { padding: 20px 28px 20px 0; border-right: 1px solid var(--rule-light); }
.sn-hero-section { font-family: var(--font-ui); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; background: var(--accent); color: #fff !important; display: inline-block; padding: 2px 8px; }
.sn-hero-section a { text-decoration: none; color: #fff !important; }
.sn-hero-title { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 42px); font-weight: 900; line-height: 1.08; margin-bottom: 14px; letter-spacing: -0.5px; }
.sn-hero-title a { text-decoration: none; color: var(--ink); }
.sn-hero-title a:hover { color: var(--accent); }
.sn-hero-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 10px; }
.sn-hero-excerpt { font-size: 14px; line-height: 1.6; color: var(--ink-light); margin-bottom: 8px; }
.sn-hero-meta { font-family: var(--font-ui); font-size: 11px; color: var(--muted); }
.sn-sidebar { padding: 20px 0 20px 24px; }
.sn-sidebar-label { font-family: var(--font-ui); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; background: var(--accent); padding: 4px 10px; margin-bottom: 12px; display: inline-block; }
.sn-sidebar-item { display: grid; grid-template-columns: 68px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule-light); }
.sn-sidebar-item:last-child { border-bottom: none; }
.sn-sidebar-thumb-wrap { display: block; }
.sn-sidebar-thumb { width: 68px; height: 50px; object-fit: cover; }
.sn-thumb-placeholder { display: block; width: 68px; height: 50px; opacity: 0.6; }
.sn-sidebar-title { font-family: var(--font-ui); font-size: 12px; font-weight: 700; line-height: 1.35; }
.sn-sidebar-title a { text-decoration: none; color: var(--ink); }
.sn-sidebar-title a:hover { color: var(--accent); }
.sn-sidebar-meta { font-family: var(--font-ui); font-size: 10px; color: var(--muted); margin-top: 3px; }

/* SECTION ROWS */
.sn-rule { border: none; border-top: 1px solid var(--rule); margin: 20px 0; }
.sn-section-row { margin-bottom: 8px; }
.sn-section-label { font-family: var(--font-ui); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; background: var(--accent); padding: 5px 12px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: none; }
.sn-section-label a { text-decoration: none; color: #fff; }
.sn-section-label::after { content: "See all →"; font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.75); }
.sn-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* STORY CARD */
.sn-card-thumb-wrap { display: block; margin-bottom: 8px; }
.sn-card-thumb { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: opacity 0.2s; }
.sn-card-thumb:hover { opacity: 0.88; }
.sn-card-thumb.sn-thumb-placeholder { height: 0; padding-top: 66.6%; opacity: 0.5; }
.sn-card-section { display: inline-block; font-family: var(--font-ui); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; margin-bottom: 4px; background: var(--accent); color: #fff !important; padding: 1px 6px; }
.sn-card-title { font-family: var(--font-display); font-size: 15px; font-weight: 800; line-height: 1.25; margin-bottom: 5px; }
.sn-card-title a { text-decoration: none; color: var(--ink); }
.sn-card-title a:hover { color: var(--accent); }
.sn-card-excerpt { font-size: 12px; line-height: 1.5; color: var(--ink-light); margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sn-card-meta { font-family: var(--font-ui); font-size: 10px; color: var(--muted); }

/* POST PAGE */
.sn-post { max-width: 760px; margin: 0 auto; padding: 32px 0 48px; }
.sn-post-section { display: inline-block; font-family: var(--font-ui); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; margin-bottom: 10px; background: var(--accent); color: #fff !important; padding: 2px 8px; }
.sn-post-section:hover { opacity: 0.85; text-decoration: none; }
.sn-post-title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 46px); font-weight: 900; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 14px; }
.sn-post-meta { font-family: var(--font-ui); font-size: 11px; color: var(--muted); border-top: 3px solid var(--accent); border-bottom: 1px solid var(--rule-light); padding: 7px 0; margin-bottom: 24px; }
.sn-post-feature-image { margin-bottom: 24px; }
.sn-post-feature-image img { width: 100%; }
.sn-post-feature-image figcaption { font-family: var(--font-ui); font-size: 11px; color: var(--muted); margin-top: 5px; font-style: italic; }
.sn-post-content { font-family: var(--font-body); font-size: 16px; line-height: 1.7; }
.sn-post-content p, .sn-post-content li, .sn-post-content em, .sn-post-content strong, .sn-post-content span { font-family: var(--font-body); }
.sn-post-content h1, .sn-post-content h2, .sn-post-content h3 { font-family: var(--font-display); margin: 28px 0 12px; line-height: 1.15; }
.sn-post-content h2 { font-size: 24px; border-left: 4px solid var(--accent); padding-left: 12px; border-bottom: none; }
.sn-post-content h3 { font-size: 19px; }
.sn-post-content p { margin-bottom: 18px; }
.sn-post-content ul, .sn-post-content ol { margin: 0 0 18px 24px; }
.sn-post-content li { margin-bottom: 5px; }
.sn-post-content blockquote { border-left: 4px solid var(--accent); margin: 20px 0; padding: 8px 20px; font-style: italic; color: var(--ink-light); font-size: 17px; }
.sn-post-content a { color: var(--accent); text-decoration: underline; }
.sn-post-content a:hover { color: var(--accent-dark); }
.sn-post-content iframe { width: 100%; aspect-ratio: 16/9; border: none; margin: 14px 0 20px; }
.sn-post-tags { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--rule-light); display: flex; flex-wrap: wrap; gap: 6px; }
.sn-post-tag { font-family: var(--font-ui); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 9px; border: 1px solid var(--accent); text-decoration: none; color: var(--accent); }
.sn-post-tag:hover { background: var(--accent); color: #fff; }
.sn-post-share { margin-top: 20px; }
.sn-share-btn { font-family: var(--font-ui); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 5px 14px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; display: inline-block; }
.sn-share-btn:hover { background: var(--accent); color: #fff; }

/* CHANNEL / TAG PAGE */
.sn-channel { padding: 28px 0 48px; }
.sn-channel-header { margin-bottom: 24px; padding-bottom: 14px; border-bottom: none; }
.sn-channel-name { font-family: var(--font-display); font-size: 36px; font-weight: 900; background: var(--accent); color: #fff; display: inline-block; padding: 4px 16px; }
.sn-channel-description { font-size: 14px; color: var(--muted); margin-top: 8px; }
.sn-channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }

/* PAGINATION */
.sn-pagination { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-top: 1px solid var(--rule-light); font-family: var(--font-ui); font-size: 13px; }
.sn-page-link { text-decoration: none; font-weight: 700; color: #fff; background: var(--accent); padding: 6px 14px; border: none; }
.sn-page-link:hover { background: var(--accent-dark); }
.sn-page-info { color: var(--muted); font-size: 11px; }

/* FOOTER */
.sn-footer { border-top: 4px solid var(--accent); padding: 24px 0 28px; margin-top: 48px; }
.sn-footer-nav { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; flex-wrap: wrap; }
.sn-footer-nav a { font-family: var(--font-ui); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; text-decoration: none; color: var(--ink-light); }
.sn-footer-nav a:hover { color: var(--accent); }
.sn-footer-copy { text-align: center; font-family: var(--font-ui); font-size: 12px; color: var(--muted); line-height: 1.8; }

/* ERROR */
.sn-error { text-align: center; padding: 80px 0; }
.sn-error-code { font-family: var(--font-display); font-size: 120px; font-weight: 900; line-height: 1; color: var(--accent); opacity: 0.2; }
.sn-error-msg { font-size: 18px; color: var(--ink-light); margin: 16px 0 28px; }
.sn-error-home { font-family: var(--font-ui); font-size: 14px; font-weight: 700; text-decoration: none; color: #fff; background: var(--accent); padding: 8px 20px; }
.sn-empty { color: var(--muted); font-style: italic; padding: 24px 0; font-size: 15px; }

/* KOENIG CARDS */
.kg-width-wide { position: relative; width: 85vw; max-width: 1200px; left: 50%; margin-left: -42.5vw; margin-right: -42.5vw; }
.kg-width-full { position: relative; width: 100vw; left: 50%; margin-left: -50vw; margin-right: -50vw; }
.kg-image-card { margin: 24px 0; }
.kg-image-card img { width: 100%; }
.kg-image-card figcaption { font-family: var(--font-ui); font-size: 11px; color: var(--muted); text-align: center; margin-top: 6px; font-style: italic; }
.kg-embed-card { margin: 24px 0; }
.kg-embed-card iframe { aspect-ratio: 16/9; width: 100%; border: none; }
.kg-callout-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; margin: 24px 0; border-left: 4px solid var(--accent); background: rgba(107,47,160,0.05); }
.kg-callout-emoji { font-size: 18px; line-height: 1.4; flex-shrink: 0; }
.kg-callout-text { font-size: 15px; line-height: 1.6; }
.kg-btn { display: inline-block; padding: 10px 24px; font-family: var(--font-ui); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; background: var(--accent); color: #fff; border: 2px solid var(--accent); }
.kg-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .sn-masthead-top { grid-template-columns: 1fr; text-align: center; }
  .sn-masthead-nav { display: none; }
  .sn-front-top { grid-template-columns: 1fr; }
  .sn-hero-col { border-right: none; padding-right: 0; }
  .sn-sidebar { padding-left: 0; border-top: 1px solid var(--rule-light); margin-top: 20px; }
  .sn-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .sn-channel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sn-cards-grid { grid-template-columns: 1fr; }
  .sn-channel-grid { grid-template-columns: 1fr; }
}
