/*
Theme Name: Blocksy Series Child
Theme URI: https://ronniej.sfuhost.com/
Description: A Blocksy child theme tuned for series-first technical blogging.
Author: RonnieJ + OpenAI Codex
Template: blocksy
Version: 1.0.0
Text Domain: blocksy-series-child
*/

:root {
	--rs-accent: #1f6feb;
	--rs-accent-strong: #154db3;
	--rs-surface: #ffffff;
	--rs-surface-alt: #f5f8fb;
	--rs-border: #d8e1ea;
	--rs-text: #203244;
	--rs-muted: #5f7388;
	--rs-heading: #102235;
	--rs-shadow: 0 12px 30px rgba(16, 34, 53, 0.08);
}

.rs-hero {
	padding: 40px;
	border: 1px solid var(--rs-border);
	border-radius: 18px;
	background: linear-gradient(135deg, #f7fbff 0%, #eef4fb 100%);
	box-shadow: var(--rs-shadow);
}

.rs-hero__eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rs-accent);
}

.rs-hero__title {
	margin: 0 0 12px;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.15;
	color: var(--rs-heading);
}

.rs-hero__lead {
	max-width: 760px;
	margin: 0;
	font-size: 1.05rem;
	color: var(--rs-text);
}

.rs-home,
.rs-archive {
	display: grid;
	gap: 28px;
}

.rs-panel {
	padding: 28px;
	border: 1px solid var(--rs-border);
	border-radius: 18px;
	background: var(--rs-surface);
	box-shadow: var(--rs-shadow);
}

.rs-panel--subtle {
	background: var(--rs-surface-alt);
}

.rs-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.rs-section-head h2,
.rs-section-head h3 {
	margin: 0;
	color: var(--rs-heading);
}

.rs-section-head p {
	margin: 0;
	color: var(--rs-muted);
	font-size: 0.95rem;
}

.rs-search form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
}

.rs-search input[type="search"] {
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--rs-border);
	border-radius: 12px;
	background: #fff;
}

.rs-search button {
	height: 48px;
	padding: 0 18px;
	border: 0;
	border-radius: 12px;
	background: var(--rs-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.rs-search button:hover {
	background: var(--rs-accent-strong);
}

.rs-series-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.rs-series-card {
	display: grid;
	gap: 10px;
	padding: 22px;
	border: 1px solid var(--rs-border);
	border-radius: 16px;
	background: #fff;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rs-series-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(16, 34, 53, 0.12);
}

.rs-series-card__meta {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--rs-accent);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.rs-series-card__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.35;
	color: var(--rs-heading);
}

.rs-series-card__desc {
	margin: 0;
	color: var(--rs-muted);
}

.rs-series-card__link {
	font-weight: 700;
	color: var(--rs-accent);
}

.rs-topic-sections {
	display: grid;
	gap: 22px;
}

.rs-topic-panel {
	padding: 24px;
	border: 1px solid var(--rs-border);
	border-radius: 16px;
	background: #fff;
}

.rs-post-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 14px;
}

.rs-post-list__item {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rs-border);
}

.rs-post-list__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.rs-post-list__title {
	margin: 0 0 4px;
	font-size: 1.05rem;
	line-height: 1.4;
}

.rs-post-list__meta {
	margin: 0 0 8px;
	font-size: 0.9rem;
	color: var(--rs-muted);
}

.rs-post-list__excerpt {
	margin: 0;
	color: var(--rs-text);
}

.rs-archive-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
}

.rs-archive-list {
	display: grid;
	gap: 18px;
}

.rs-archive-card {
	padding: 24px;
	border: 1px solid var(--rs-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--rs-shadow);
}

.rs-archive-card h2 {
	margin: 0 0 8px;
	font-size: 1.35rem;
	line-height: 1.35;
}

.rs-archive-card__meta {
	margin: 0 0 10px;
	font-size: 0.92rem;
	color: var(--rs-muted);
}

.rs-archive-card__categories {
	margin-top: 12px;
	font-size: 0.92rem;
	color: var(--rs-muted);
}

.rs-link-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--rs-accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.rs-link-button:hover {
	color: #fff;
	background: var(--rs-accent-strong);
}

.rs-archive .widget,
.rs-home .widget {
	padding: 22px;
	border: 1px solid var(--rs-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--rs-shadow);
}

.rs-archive .widget-title,
.rs-home .widget-title {
	margin-bottom: 14px;
	font-size: 1.1rem;
}

.rs-taxonomy-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}

.rs-taxonomy-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rs-border);
}

.rs-taxonomy-list li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.rs-taxonomy-list span {
	color: var(--rs-muted);
	font-size: 0.9rem;
}

.rs-home-pagination {
	margin-top: 22px;
}

.rs-home-pagination .page-numbers {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 0;
}

.rs-home-pagination .page-numbers li {
	margin: 0;
}

.rs-home-pagination .page-numbers a,
.rs-home-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--rs-border);
	border-radius: 12px;
	background: #fff;
	color: var(--rs-text);
	text-decoration: none;
}

.rs-home-pagination .page-numbers .current {
	background: var(--rs-accent);
	border-color: var(--rs-accent);
	color: #fff;
	font-weight: 700;
}

@media (max-width: 999.98px) {
	.rs-series-grid,
	.rs-archive-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 689.98px) {
	.rs-hero,
	.rs-panel,
	.rs-topic-panel,
	.rs-archive-card {
		padding: 20px;
	}

	.rs-search form {
		grid-template-columns: 1fr;
	}

	.rs-series-grid {
		grid-template-columns: 1fr;
	}
}
