/*
 * OG Signal Podcast — design tokens + base editorial styles.
 *
 * Token palette (default — warm editorial):
 *   --ogsp-ink    : #1A1614  near-black with warmth
 *   --ogsp-paper  : #F7F3EC  warm off-white
 *   --ogsp-accent : #C2410C  warm rust/ember
 *   --ogsp-card   : #FBF8F2  tinted card background
 *   --ogsp-muted  : #6B645C  muted text
 *   --ogsp-subtle : #E8E1D4  hairline / divider
 *
 * Every site can override these in ~5 lines of CSS. No !important wars.
 */

.ogsp {
	--ogsp-ink: #1A1614;
	--ogsp-paper: #F7F3EC;
	--ogsp-accent: #C2410C;
	--ogsp-card: #FBF8F2;
	--ogsp-muted: #6B645C;
	--ogsp-subtle: #E8E1D4;

	--ogsp-serif: "Newsreader", Georgia, serif;
	--ogsp-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
	--ogsp-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

	--ogsp-max: 1180px;

	background: var(--ogsp-paper);
	color: var(--ogsp-ink);
	font-family: var(--ogsp-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.ogsp *,
.ogsp *::before,
.ogsp *::after {
	box-sizing: border-box;
}

.ogsp ::selection {
	background: var(--ogsp-accent);
	color: var(--ogsp-paper);
}

/* ── Typography utilities ─────────────────────────────────────────── */

.ogsp-serif   { font-family: var(--ogsp-serif); font-variation-settings: "opsz" 36; }
.ogsp-sans    { font-family: var(--ogsp-sans); }
.ogsp-mono    { font-family: var(--ogsp-mono); }
.ogsp-italic  { font-style: italic; font-weight: 400; }

.ogsp-kicker {
	font-family: var(--ogsp-mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ogsp-accent);
}

.ogsp-kicker--muted { color: var(--ogsp-muted); }
.ogsp-kicker--ink   { color: var(--ogsp-ink); }

.ogsp-label {
	font-family: var(--ogsp-mono);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ogsp-muted);
}

/* ── Layout container ─────────────────────────────────────────────── */

.ogsp-container {
	max-width: var(--ogsp-max);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

@media (min-width: 768px) {
	.ogsp-container { padding-left: 40px; padding-right: 40px; }
}

/* ── Section head with editorial rule ─────────────────────────────── */

.ogsp-section-head {
	border-top: 1px solid var(--ogsp-ink);
	padding-top: 20px;
	display: flex;
	align-items: baseline;
	gap: 16px;
}

.ogsp-section-head .ogsp-kicker { color: var(--ogsp-accent); }
.ogsp-section-head .ogsp-sep    { color: var(--ogsp-muted); }

.ogsp-section-title {
	font-family: var(--ogsp-serif);
	font-size: 28px;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--ogsp-ink);
	margin: 0;
	font-weight: 500;
}

@media (min-width: 768px) {
	.ogsp-section-title { font-size: 34px; }
}

/* ── Buttons ──────────────────────────────────────────────────────── */
/* Specificity bumped via `.ogsp` ancestor to beat Divi's default button rules. */

.ogsp .ogsp-btn,
.ogsp button.ogsp-btn,
.ogsp a.ogsp-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 24px;
	font-size: 15px;
	font-weight: 500;
	border: 1px solid var(--ogsp-ink);
	background: transparent;
	color: var(--ogsp-ink);
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease;
	font-family: inherit;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	border-radius: 0;
}

.ogsp .ogsp-btn:hover,
.ogsp button.ogsp-btn:hover,
.ogsp a.ogsp-btn:hover {
	background: rgba(26, 22, 20, 0.05);
	color: var(--ogsp-ink);
}

.ogsp .ogsp-btn.ogsp-btn--solid,
.ogsp button.ogsp-btn.ogsp-btn--solid,
.ogsp a.ogsp-btn.ogsp-btn--solid {
	background: var(--ogsp-ink);
	color: var(--ogsp-paper);
	border-color: var(--ogsp-ink);
}

.ogsp .ogsp-btn.ogsp-btn--solid:hover,
.ogsp button.ogsp-btn.ogsp-btn--solid:hover,
.ogsp a.ogsp-btn.ogsp-btn--solid:hover {
	background: #000;
	color: var(--ogsp-paper);
	border-color: #000;
}

.ogsp .ogsp-btn.ogsp-btn--accent,
.ogsp button.ogsp-btn.ogsp-btn--accent,
.ogsp a.ogsp-btn.ogsp-btn--accent {
	background: var(--ogsp-accent);
	color: var(--ogsp-paper);
	border-color: var(--ogsp-accent);
}

.ogsp .ogsp-btn .ogsp-btn__meta,
.ogsp .ogsp-btn__meta {
	font-family: var(--ogsp-mono);
	font-size: 11px;
	opacity: 0.6;
	margin-left: 8px;
	color: inherit;
}

/* ── Pill link (distribution row) ─────────────────────────────────── */

.ogsp-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 10px;
	border: 1px solid var(--ogsp-ink);
	border-radius: 999px;
	color: var(--ogsp-ink);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: background 160ms ease;
}

.ogsp-pill:hover { background: rgba(26, 22, 20, 0.05); }
.ogsp-pill svg   { width: 20px; height: 20px; display: block; }

/* ── Icons ────────────────────────────────────────────────────────── */

.ogsp-icon {
	width: 16px;
	height: 16px;
	display: inline-block;
	vertical-align: middle;
}

.ogsp-icon--sm { width: 14px; height: 14px; }
.ogsp-icon--lg { width: 20px; height: 20px; }

/* ── Breadcrumb ───────────────────────────────────────────────────── */

.ogsp-breadcrumb {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--ogsp-mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ogsp-muted);
}

.ogsp-breadcrumb a         { color: inherit; text-decoration: none; transition: opacity 160ms; }
.ogsp-breadcrumb a:hover   { opacity: 0.7; }
.ogsp-breadcrumb .ogsp-current { color: var(--ogsp-ink); }

/* ── Divi/theme reset — neutralize common conflicts ──────────────── */

.ogsp h1, .ogsp h2, .ogsp h3, .ogsp h4, .ogsp h5, .ogsp h6 {
	margin: 0;
	padding: 0;
	font-weight: 500;
	color: var(--ogsp-ink);
}

.ogsp p { margin: 0; }

.ogsp a {
	color: var(--ogsp-ink);
	text-decoration: none;
}

.ogsp button {
	font-family: inherit;
	color: inherit;
}

.ogsp img, .ogsp svg { max-width: 100%; height: auto; }
