:root {
	--bg: #0c0d0f;
	--panel: #121419;
	--text: #e8e9eb;
	--muted: #9ca3af;
	--brand: #62d0ff;
	--accent: #ffd166;
	--link: #86e1ff;
	--border: #20242c;
	--shadow: rgba(0,0,0,.4);
	--code: #0f1117;
	--success: #17c964;
	--danger: #f31260;
	--focus: 0 0 0 3px rgba(98,208,255,.35);
	
	--font-display: 'Space Grotesk', sans-serif;
	--font-mono: 'JetBrains Mono', monospace;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.theme-light {
	--bg: #f7f8fa;
	--panel: #ffffff;
	--text: #0c111a;
	--muted: #4e5969;
	--brand: #0ea5e9;
	--accent: #b45309;
	--link: #0284c7;
	--border: #e5e7eb;
	--shadow: rgba(0,0,0,.08);
	--code: #f3f4f6;
	--success: #16a34a;
	--danger: #dc2626;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 var(--font-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* Typography Updates */
h1, h2, h3, .brand {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
}
.timestamp, .form-hint, .teaser-label, .meta, code, .btn, .nav a, .portrait-caption, .newsletter-card-meta, .card-label {
	font-family: var(--font-mono);
}
.meta, .portrait-caption {
	font-size: 0.85rem;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: saturate(160%) blur(6px);
	border-bottom: 1px solid var(--border);
}
.site-header .container {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 20px;
}
.brand {
	color: var(--text);
	text-decoration: none;
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0;
}
.nav {
	margin-left: auto;
	display: flex;
	gap: 16px;
}
.nav a {
	color: var(--muted);
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 0.9rem;
}
.nav a[aria-current="page"] {
	color: var(--text);
	background: var(--panel);
	border: 1px solid var(--border);
}
.nav .nav-cta {
	color: var(--text);
	border: 1px solid var(--border);
	background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 70%, transparent), var(--panel));
}
.theme-toggle {
	border: 1px solid var(--border);
	background: var(--panel);
	color: var(--text);
	border-radius: 4px;
	padding: 6px 10px;
	cursor: pointer;
}
.theme-toggle .sun { display: none; }
.theme-light .theme-toggle .sun { display: inline; }
.theme-light .theme-toggle .moon { display: none; }
.hero {
	padding: 56px 0 32px;
	border-bottom: 1px solid var(--border);
	background:
		radial-gradient(800px 300px at 20% -20%, color-mix(in srgb, var(--brand) 18%, transparent) 0, transparent 60%),
		radial-gradient(800px 300px at 80% -20%, color-mix(in srgb, var(--accent) 14%, transparent) 0, transparent 60%);
}
.hero h1 {
	margin: 0 0 8px;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
	letter-spacing: -.02em;
}
.hero p {
	margin: 0;
	color: var(--muted);
	max-width: 70ch;
}
.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

/* FLIGHT DECK AESTHETIC: Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 4px; /* Sharper technical look */
	text-decoration: none;
	font-weight: 600;
	border: 1px solid var(--border);
	color: var(--text);
	background: var(--panel);
	box-shadow: 0 2px 5px var(--shadow);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}
.btn:hover {
	transform: translateY(-2px);
	border-color: var(--brand);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 20%, transparent);
	color: var(--brand);
}
.btn.sm { padding: 8px 12px; border-radius: 4px; font-weight: 700; font-size: 0.75rem; }
.btn.primary {
	background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, var(--panel)), var(--panel));
	border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}
.btn.primary:hover {
	background: color-mix(in srgb, var(--brand) 15%, var(--panel));
}
.btn.alt {
	background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel));
	border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.section {
	padding: 48px 0;
	border-bottom: 1px solid var(--border);
}
.two-col {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 28px;
}
@media (max-width: 900px) {
	.two-col { grid-template-columns: 1fr; }
}

/* FLIGHT DECK AESTHETIC: Cards */
.card {
	border: 1px solid var(--border);
	background: color-mix(in srgb, var(--panel) 70%, transparent);
	backdrop-filter: blur(12px);
	border-radius: 8px;
	padding: 24px;
	box-shadow: 
		0 0 0 1px rgba(0,0,0,0.1),
		inset 0 0 0 1px rgba(255,255,255,0.03);
	transition: border-color 0.2s ease;
}
.card:hover {
	border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
}

.site-footer {
	margin-top: 0;
	border-top: 1px solid var(--border);
	background: color-mix(in srgb, var(--panel) 90%, transparent);
}
.site-footer .container { padding: 28px 20px; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 64px;
}
.privacy-note {
	margin-top: 18px;
	color: var(--muted);
	font-size: 0.85rem;
	font-family: var(--font-mono);
}
.privacy-note a { color: var(--link); text-decoration: none; }
.privacy-note a:hover { text-decoration: underline; }
@media (max-width: 900px) {
	.footer-grid { grid-template-columns: 1fr; }
}
.site-footer .newsletter-row {
	align-items: stretch;
}
@media (min-width: 701px) {
	.site-footer .newsletter-row {
		display: grid;
		grid-template-columns: minmax(150px, 0.6fr) minmax(220px, 1fr) auto;
	}
	.site-footer .newsletter-row button {
		width: auto;
	}
}
.newsletter-form label { display: block; font-weight: 600; margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.9rem; }
.newsletter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form .form-hint { 
	margin-top: 16px;
	font-size: 11px;
}
.newsletter-row input {
	border-radius: 4px;
	border: 1px solid var(--border);
	padding: 12px 14px;
	color: var(--text);
	background: var(--bg);
	min-width: 0;
	font-family: var(--font-mono);
	font-size: 0.9rem;
}
.newsletter-row input:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 20%, transparent);
}
.newsletter-row .name-input {
	flex: 0 1 180px;
}
.newsletter-row .email-input {
	flex: 1 1 220px;
}
.newsletter-row button {
	border-radius: 4px;
	border: 1px solid color-mix(in srgb, var(--brand) 60%, var(--border));
	padding: 12px 20px;
	background: color-mix(in srgb, var(--panel) 86%, transparent);
	color: var(--text);
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 0 0 0 transparent;
	transition: all .18s ease;
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.85rem;
}
.newsletter-row button:hover {
	background: var(--brand);
	color: #06121b;
	border-color: var(--brand);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 40%, transparent);
}
.newsletter-row button:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 3px color-mix(in srgb, var(--brand) 40%, transparent),
		0 12px 26px color-mix(in srgb, var(--brand) 30%, transparent);
}
.form-hint { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.form-hint a { color: var(--link); text-decoration: none; }
.form-hint a:hover { text-decoration: underline; }
.form-msg { margin: 8px 0 0; font-size: 13px; font-weight: 600; font-family: var(--font-mono); }
.form-msg.success { color: var(--success); }
.form-msg.error { color: var(--danger); }

/* Story CTA styling */
.story-cta {
	background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, var(--panel)), var(--panel));
	border-color: color-mix(in srgb, var(--brand) 20%, var(--border));
	padding: 32px;
}
.story-cta h2 { color: var(--text); }
.story-cta ul { 
	margin: 12px 0 24px; 
	padding-left: 20px;
	max-width: 70ch;
}
.story-cta li { 
	margin: 8px 0;
	line-height: 1.6;
}
.story-cta a { color: var(--link); }
.story-newsletter-form { margin-top: 24px; }
.story-newsletter-row { max-width: 620px; }

@media (max-width: 700px) {
	.newsletter-row { flex-direction: column; }
	.newsletter-row .name-input,
	.newsletter-row .email-input {
		flex: 1 1 auto;
		width: 100%;
	}
	.newsletter-row button { width: 100%; }
}
.legal {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 16px;
	color: var(--muted);
	font-size: 13px;
	font-family: var(--font-mono);
}
@media (max-width: 700px) {
	.legal { flex-direction: column; }
}

/* Reader */
.reader {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 24px;
}
@media (max-width: 1100px) {
	.reader { grid-template-columns: 1fr; }
}
.toc {
	position: sticky;
	top: 72px;
	align-self: start;
	border: 1px solid var(--border);
	background: var(--panel);
	border-radius: 8px;
	padding: 16px;
}
.toc h3 { 
	margin: 0 0 12px; 
	font-size: 12px; 
	letter-spacing: .1em; 
	color: var(--muted); 
	font-family: var(--font-mono);
	text-transform: uppercase;
}
.toc a {
	display: block;
	color: var(--muted);
	text-decoration: none;
	padding: 6px 8px;
	border-radius: 4px;
	font-size: 0.95rem;
	transition: all 0.1s;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); font-weight: 600; }
.toc-fab { display: none; }
@media (max-width: 900px) {
	.toc { display: none; }
	.toc-fab {
		position: fixed;
		right: 16px;
		bottom: 16px;
		z-index: 100;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 12px 16px;
		border-radius: 999px;
		border: 1px solid var(--border);
		background: var(--panel);
		color: var(--text);
		box-shadow: 0 12px 24px var(--shadow);
		font-weight: 700;
		cursor: pointer;
		font-family: var(--font-mono);
		font-size: 0.9rem;
	}
}
.toc-modal[hidden] { display: none; }
.toc-modal {
	position: fixed;
	inset: 0;
	z-index: 120;
	background: color-mix(in srgb, #000 50%, transparent);
	backdrop-filter: blur(4px);
	display: grid;
	place-items: center;
	padding: 16px;
}
.toc-panel {
	width: min(680px, 96vw);
	max-height: 78vh;
	overflow: auto;
	border: 1px solid var(--border);
	background: var(--panel);
	color: var(--text);
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 20px 40px var(--shadow);
}
.toc-panel nav a {
	display: block;
	color: var(--muted);
	text-decoration: none;
	padding: 10px 12px;
	border-radius: 6px;
}
.toc-panel nav a.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.story {
	border: 1px solid var(--border);
	background: var(--panel);
	border-radius: 8px;
	padding: clamp(16px, 3vw, 32px);
}
.story h1 {
	margin: 0 0 4px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.2;
}
.story header {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 24px;
	align-items: start;
	margin-bottom: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) {
	.story header { grid-template-columns: 1fr; }
}
.story-cover {
	border-radius: 4px;
	border: 1px solid var(--border);
	background: #000;
	box-shadow: 0 10px 20px var(--shadow);
	width: 100%;
	max-width: 200px;
	aspect-ratio: 2/3;
	object-fit: cover;
}
.story .byline { margin: 0 0 16px; color: var(--muted); font-family: var(--font-mono); font-size: 0.9rem; }
.story .meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.inline-callout {
	margin: 10px 0 18px;
	padding: 16px 20px;
	border: 1px solid var(--brand);
	background: color-mix(in srgb, var(--brand) 5%, transparent);
	border-radius: 4px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
}
.inline-callout p {
	margin: 0;
	color: var(--text);
	max-width: 320px;
	font-weight: 500;
}
.inline-callout strong { color: var(--brand); }
.inline-callout-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.inline-callout .btn {
	min-width: 0;
}
.story .section {
	padding: 0;
	border: 0;
	margin: 40px 0;
}
.story p {
	max-width: 70ch;
	margin: 0 0 1.2em;
	font-size: clamp(18px, 2.1vw, 20px);
	line-height: 1.75;
	hyphens: auto;
}
.story .timestamp {
	margin: 40px 0 12px;
	color: var(--brand);
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	font-size: 0.9rem;
	border-top: 1px solid var(--border);
	padding-top: 24px;
	display: inline-block;
}
.progress {
	position: sticky;
	top: 0;
	height: 2px;
	background: var(--brand);
	transform-origin: 0 50%;
	transform: scaleX(0);
	z-index: 1000;
	box-shadow: 0 0 10px var(--brand);
}

/* Cover thumbnail on cards */
.cover-thumb {
	float: right;
	width: 150px;
	border-radius: 4px;
	border: 1px solid var(--border);
	margin: 0 0 16px 24px;
	box-shadow: 0 8px 20px var(--shadow);
}
@media (max-width: 700px) {
	.cover-thumb { width: 100px; }
}

/* About page */
.avatar { width: 300px; max-width: 48vw; border-radius: 4px; border: 1px solid var(--border); box-shadow: 0 10px 20px var(--shadow); background: #000; }
@media (max-width: 700px) { .avatar { width: 160px; max-width: 55vw; } }

/* About layout refinements */
.about-grid { align-items: start; }
.about-text p { max-width: 72ch; line-height: 1.65; }

/* Vector portrait with subtle CRT glow + scanlines */
.portrait-wrap { position: relative; width: min(420px, 80%); margin: 0 auto; }
.portrait-wrap::before {
	content: "";
	position: absolute;
	inset: -6% -4% -6% -4%;
	background:
		radial-gradient(60% 50% at 50% 40%, rgba(0,255,120,.18), transparent 60%),
		radial-gradient(40% 35% at 55% 55%, rgba(0,255,120,.10), transparent 60%);
	filter: blur(16px);
	opacity: .6;
	pointer-events: none;
	border-radius: 18px;
}
.portrait-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(
			to bottom,
			rgba(0,255,120,.06) 0,
			rgba(0,255,120,.06) 1px,
			transparent 1px,
			transparent 3px
		);
	opacity: .055;
	pointer-events: none;
	border-radius: 12px;
}
.portrait {
	display: block;
	width: 100%;
	margin: 0 auto;
	filter: drop-shadow(0 0 10px rgba(0,255,120,.22)) drop-shadow(0 0 24px rgba(0,255,120,.10));
}
.portrait-caption { margin-top: 14px; color: var(--muted); opacity: .72; font-size: 0.8rem; text-align: left; font-family: var(--font-mono); }
@media (max-width: 900px) {
	.portrait-wrap { width: 72%; max-width: 380px; }
}

/* ==================================
   NEW HOMEPAGE HERO STYLES
   ================================== */
.new-hero {
	padding: 48px 0 56px;
	background:
		radial-gradient(800px 300px at 20% -20%, color-mix(in srgb, var(--brand) 18%, transparent) 0, transparent 60%),
		radial-gradient(800px 300px at 80% -20%, color-mix(in srgb, var(--accent) 14%, transparent) 0, transparent 60%);
}

.new-hero-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 40px;
	align-items: center;
}

.new-hero-content h1 {
	margin: 0 0 12px;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.1;
	letter-spacing: -.03em;
}

.new-hero-content p {
	color: var(--muted);
	max-width: 65ch;
	font-size: 1.1rem;
	line-height: 1.6;
}

.new-hero .home-newsletter-form .newsletter-row {
	flex-direction: column;
}

.new-hero .home-newsletter-form .name-input,
.new-hero .home-newsletter-form .email-input {
	flex: 1 1 auto;
	width: 100%;
}

.new-hero .home-newsletter-form button {
	width: 100%;
}

/* Re-using your existing portrait styles for consistency */
.new-hero-portrait .portrait-wrap {
	position: relative;
	width: min(380px, 100%);
	margin: 0 auto;
}

.new-hero-portrait .portrait-wrap::before {
	content: "";
	position: absolute;
	inset: -6% -4% -6% -4%;
	background:
		radial-gradient(60% 50% at 50% 40%, rgba(0,255,120,.18), transparent 60%),
		radial-gradient(40% 35% at 55% 55%, rgba(0,255,120,.10), transparent 60%);
	filter: blur(16px);
	opacity: .6;
	pointer-events: none;
	border-radius: 18px;
}

.new-hero-portrait .portrait-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(
			to bottom,
			rgba(0,255,120,.06) 0,
			rgba(0,255,120,.06) 1px,
			transparent 1px,
			transparent 3px
		);
	opacity: .055;
	pointer-events: none;
	border-radius: 12px;
}

.new-hero-portrait .portrait {
	display: block;
	width: 100%;
	margin: 0 auto;
	filter: drop-shadow(0 0 10px rgba(0,255,120,.22)) drop-shadow(0 0 24px rgba(0,255,120,.10));
}

.new-hero-portrait .portrait-caption {
	margin-top: 14px;
	color: var(--muted);
	opacity: .72;
	font-size: 0.875rem;
	text-align: left;
}

/* Responsive adjustments */
@media (max-width: 900px) {
	.new-hero-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.new-hero-portrait {
		order: -1;
		padding: 0 10%;
	}

	.new-hero-content {
		text-align: center;
	}

	.new-hero-content p {
		margin-left: auto;
		margin-right: auto;
	}

	.new-hero-portrait .portrait-caption {
		text-align: center;
	}
}

/* ==================================
   NEWSLETTER PAGE STYLES
   ================================== */

/* Homepage newsletter section - signup + teaser side by side */
.home-newsletter-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 24px;
	align-items: start;
}

.home-newsletter-signup {
	/* Newsletter form takes up left column */
}

.home-newsletter-teaser {
	/* Teaser takes up right column */
	padding: 20px;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.home-newsletter-teaser .teaser-label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brand);
	margin-bottom: 8px;
}

.home-newsletter-teaser time {
	display: block;
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 8px;
	font-family: var(--font-mono);
}

.home-newsletter-teaser h3 {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.3;
}

.home-newsletter-teaser h3 a {
	color: var(--text);
	text-decoration: none;
}

.home-newsletter-teaser h3 a:hover {
	color: var(--brand);
}

.home-newsletter-teaser .teaser-excerpt {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.5;
	margin: 0 0 16px;
}

@media (max-width: 900px) {
	.home-newsletter-section {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.home-newsletter-teaser {
		order: -1; /* Show teaser above form on mobile */
	}
}

/* Newsletter archive page */
.newsletter-page {
	padding: 48px 0;
}

.newsletter-archive-header {
	text-align: center;
	margin-bottom: 48px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--border);
}

.newsletter-archive-header h1 {
	margin: 0 0 16px;
	font-size: clamp(32px, 5vw, 48px);
}

.newsletter-archive-header .lead {
	font-size: 1.15rem;
	color: var(--muted);
	max-width: 60ch;
	margin: 0 auto;
	line-height: 1.6;
}

/* Newsletter list cards */
.newsletter-list {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.newsletter-card {
	padding: 32px;
	transition: border-color 0.2s, box-shadow 0.2s;
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.newsletter-card-content {
	flex: 1;
	min-width: 0;
}

.newsletter-card-thumbnail {
	width: 260px;
	height: 100%;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid var(--border);
	box-shadow: 0 8px 16px var(--shadow);
	flex-shrink: 0;
}

.newsletter-card:hover {
	border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
	box-shadow: 0 8px 24px var(--shadow);
}

.newsletter-card-meta {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.newsletter-card-meta .sep {
	opacity: 0.4;
}

.newsletter-card h2 {
	margin: 0 0 8px;
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.25;
}

.newsletter-card h2 a {
	color: var(--text);
	text-decoration: none;
}

.newsletter-card h2 a:hover {
	color: var(--brand);
}

.newsletter-card-subtitle {
	font-size: 16px;
	color: var(--muted);
	font-style: italic;
	margin: 0 0 16px;
}

.newsletter-card p {
	color: var(--muted);
	line-height: 1.6;
	margin: 0 0 20px;
}

/* Individual newsletter view */
.newsletter-header {
	margin-bottom: 48px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--border);
}

.newsletter-meta {
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-family: var(--font-mono);
}

.newsletter-meta .sep {
	opacity: 0.4;
}

.newsletter-meta .back-link {
	color: var(--brand);
	text-decoration: none;
	font-weight: 600;
}

.newsletter-meta .back-link:hover {
	text-decoration: underline;
}

.newsletter-header h1 {
	margin: 0 0 12px;
	font-size: clamp(28px, 5vw, 42px);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.newsletter-subtitle {
	font-size: 1.15rem;
	color: var(--muted);
	font-style: italic;
	margin: 0 0 24px;
	line-height: 1.5;
}

/* Share buttons */
.share-buttons {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
}

.share-label {
	font-size: 13px;
	color: var(--muted);
	font-weight: 600;
	font-family: var(--font-mono);
	text-transform: uppercase;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 4px;
	background: var(--panel);
	border: 1px solid var(--border);
	color: var(--text);
	text-decoration: none;
	transition: all 0.2s;
}

.share-btn:hover {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
	transform: translateY(-2px);
}

.share-btn svg {
	width: 16px;
	height: 16px;
}

/* Newsletter content styling */
.newsletter-content {
	font-size: 18px;
	line-height: 1.7;
	color: var(--text);
}

.newsletter-content p {
	margin: 0 0 1.4em;
	max-width: 72ch;
}

.newsletter-content h2 {
	margin: 2em 0 0.8em;
	font-size: 1.6em;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.newsletter-content h2:first-child {
	margin-top: 0;
}

.newsletter-content h3 {
	margin: 1.8em 0 0.6em;
	font-size: 1.3em;
	line-height: 1.3;
}

.newsletter-content ul,
.newsletter-content ol {
	margin: 0 0 1.4em;
	padding-left: 1.5em;
	max-width: 72ch;
}

.newsletter-content li {
	margin-bottom: 0.5em;
	color: var(--muted);
}

.newsletter-content li::marker {
	color: var(--brand);
}

.newsletter-content a {
	color: var(--link);
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--link) 30%, transparent);
}

.newsletter-content a:hover {
	border-bottom-color: var(--link);
}

.newsletter-content strong {
	color: var(--text);
	font-weight: 600;
}

.newsletter-content em {
	font-style: italic;
	color: var(--text);
}

.newsletter-content code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	background: var(--code);
	padding: 2px 6px;
	border-radius: 4px;
	color: var(--text);
}

.newsletter-content blockquote {
	margin: 1.8em 0;
	padding: 16px 20px;
	border-left: 3px solid var(--brand);
	background: var(--panel);
	border-radius: 0 4px 4px 0;
	font-style: italic;
}

.newsletter-content blockquote p:last-child {
	margin-bottom: 0;
}

.newsletter-content figure {
	margin: 2em 0;
}

.newsletter-content figure img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
	border: 1px solid var(--border);
}

.newsletter-content figcaption {
	margin-top: 12px;
	font-size: 14px;
	color: var(--muted);
	text-align: center;
	font-style: italic;
}

/* Newsletter footer CTA */
.newsletter-footer {
	margin-top: 64px;
	padding-top: 48px;
	border-top: 1px solid var(--border);
}

.newsletter-cta {
	padding: 32px;
	text-align: center;
}

.newsletter-cta h3 {
	margin: 0 0 12px;
	font-size: 24px;
}

.newsletter-cta p {
	color: var(--muted);
	margin: 0 0 20px;
}

/* Responsive adjustments */
@media (max-width: 700px) {
	.newsletter-content {
		font-size: 17px;
	}
	
	.newsletter-header h1 {
		font-size: 26px;
	}
	
	.share-buttons {
		flex-wrap: wrap;
	}
	
	.newsletter-card {
		padding: 24px;
		flex-direction: column;
	}
	
	.newsletter-card-thumbnail {
		width: 100%;
		order: -1;
	}
	
	.newsletter-cta {
		padding: 24px;
	}
}

/* ==================================
   SIMULATOR CARD SPECIFICS
   ================================== */
.sim-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}
.sim-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #000;
	/* Background image will be set inline or via class if available */
	background-size: cover;
	background-position: center;
	opacity: 0.4;
	mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 100%);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 100%);
}
/* Radar pulse animation */
.sim-card::before {
	content: '';
	position: absolute;
	top: 30%;
	right: 20%;
	width: 10px;
	height: 10px;
	background: var(--danger);
	border-radius: 50%;
	box-shadow: 0 0 20px var(--danger);
	z-index: 1;
	animation: pulse 3s infinite;
	opacity: 0;
}
.sim-card::after {
	content: '';
	position: absolute;
	top: 30%;
	right: 20%;
	width: 10px;
	height: 10px;
	border: 1px solid var(--danger);
	border-radius: 50%;
	z-index: 1;
	animation: radar 3s infinite;
	opacity: 0;
}
@keyframes pulse {
	0% { opacity: 0; transform: scale(1); }
	20% { opacity: 1; transform: scale(1.2); }
	100% { opacity: 0; transform: scale(1); }
}
@keyframes radar {
	0% { opacity: 1; transform: scale(1); border-width: 1px; }
	100% { opacity: 0; transform: scale(15); border-width: 0px; }
}

.sim-content {
	position: relative;
	z-index: 2;
	background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
	margin: -24px;
	padding: 24px;
	padding-top: 80px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.card-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--brand);
	margin-bottom: 0;
	font-weight: 700;
}
.sim-status {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 2;
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--danger);
	border: 1px solid var(--danger);
	padding: 4px 8px;
	border-radius: 4px;
	background: rgba(0,0,0,0.6);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.sim-status::before {
	content: '●';
	margin-right: 6px;
	animation: blink 1.5s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
