/* ==========================================================================
   Beehiiv Newsletters — Archive & Single
   ========================================================================== */

/* Archive
   ========================================================================== */

.beehiiv-archive {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

.beehiiv-archive__header {
	text-align: center;
	margin-bottom: 48px;
}

.beehiiv-archive__title {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.2;
}

.beehiiv-archive__description {
	font-size: 1.125rem;
	color: #6b7280;
	margin: 0;
}

/* Grid */

.beehiiv-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 32px;
}

/* Card */

.beehiiv-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.beehiiv-card:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.beehiiv-card__image-link {
	display: block;
}

.beehiiv-card__image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.beehiiv-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.beehiiv-card:hover .beehiiv-card__image img {
	transform: scale(1.03);
}

.beehiiv-card__body {
	padding: 20px 24px 24px;
}

.beehiiv-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.beehiiv-card__tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #4f46e5;
	background: #eef2ff;
	padding: 2px 8px;
	border-radius: 4px;
}

.beehiiv-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
}

.beehiiv-card__title a {
	color: inherit;
	text-decoration: none;
}

.beehiiv-card__title a:hover {
	color: #4f46e5;
}

.beehiiv-card__excerpt {
	font-size: 0.95rem;
	color: #6b7280;
	line-height: 1.5;
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.beehiiv-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.85rem;
	color: #9ca3af;
}

.beehiiv-card__authors::before {
	content: "\00b7";
	margin-right: 12px;
}

/* Pagination */

.beehiiv-archive__pagination {
	margin-top: 48px;
	text-align: center;
}

.beehiiv-archive__pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.beehiiv-archive__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	font-size: 0.9rem;
	text-decoration: none;
	color: #374151;
	background: #f3f4f6;
	transition: background 0.15s ease, color 0.15s ease;
}

.beehiiv-archive__pagination .page-numbers:hover {
	background: #e5e7eb;
}

.beehiiv-archive__pagination .page-numbers.current {
	background: #4f46e5;
	color: #fff;
}

/* Empty state */

.beehiiv-archive__empty {
	text-align: center;
	padding: 80px 20px;
	color: #9ca3af;
	font-size: 1.1rem;
}

/* Single
   ========================================================================== */

.beehiiv-single {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

.beehiiv-single__header {
	margin-bottom: 40px;
}

.beehiiv-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.beehiiv-single__tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #4f46e5;
	background: #eef2ff;
	padding: 2px 8px;
	border-radius: 4px;
}

.beehiiv-single__title {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 12px;
}

.beehiiv-single__subtitle {
	font-size: 1.25rem;
	color: #6b7280;
	line-height: 1.4;
	margin: 0 0 16px;
}

.beehiiv-single__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #9ca3af;
	margin-bottom: 24px;
}

.beehiiv-single__hero {
	border-radius: 12px;
	overflow: hidden;
}

.beehiiv-single__hero img {
	width: 100%;
	height: auto;
	display: block;
}

/* Content */

.beehiiv-single__content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #1f2937;
}

.beehiiv-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 24px 0;
}

.beehiiv-single__content h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 40px 0 16px;
}

.beehiiv-single__content h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 32px 0 12px;
}

.beehiiv-single__content p {
	margin: 0 0 20px;
}

.beehiiv-single__content a {
	color: #4f46e5;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.beehiiv-single__content blockquote {
	border-left: 4px solid #4f46e5;
	margin: 24px 0;
	padding: 16px 24px;
	background: #f9fafb;
	border-radius: 0 8px 8px 0;
	color: #4b5563;
	font-style: italic;
}

/* Footer */

.beehiiv-single__footer {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.beehiiv-single__original-link,
.beehiiv-single__back-link {
	font-size: 0.9rem;
	font-weight: 500;
	color: #4f46e5;
	text-decoration: none;
	transition: color 0.15s ease;
}

.beehiiv-single__original-link:hover,
.beehiiv-single__back-link:hover {
	color: #4338ca;
}

/* Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.beehiiv-archive__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.beehiiv-archive__title,
	.beehiiv-single__title {
		font-size: 1.75rem;
	}

	.beehiiv-single__subtitle {
		font-size: 1.1rem;
	}

	.beehiiv-single__footer {
		flex-direction: column;
		align-items: flex-start;
	}
}
