@import url("../../prosilver/theme/stylesheet.css");

:root {
	--csf-ink: #3f3834;
	--csf-berry: #8f4055;
	--csf-berry-dark: #6f3042;
	--csf-teal: #2f6865;
	--csf-sage: #718468;
	--csf-gold: #c28a35;
	--csf-linen: #fbf6e9;
	--csf-paper: #fffdf8;
	--csf-border: #ded2bc;
}

html,
body {
	background: #efe8dc;
	color: var(--csf-ink);
}

body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#wrap {
	max-width: 1240px;
	margin: 18px auto;
	padding: 0 18px 22px;
	background: var(--csf-paper);
	border: 1px solid var(--csf-border);
	border-radius: 18px;
	box-shadow: 0 12px 36px rgba(71, 53, 43, 0.12);
}

.headerbar {
	min-height: 214px;
	margin: 0 -18px 14px;
	padding: 0 24px;
	background-color: var(--csf-linen);
	background-image: linear-gradient(90deg, rgba(255, 253, 248, 0.08), rgba(255, 253, 248, 0.72) 30%, rgba(255, 253, 248, 0.72) 70%, rgba(255, 253, 248, 0.08)), url("./crossstitch-header.png");
	background-position: center;
	background-size: cover;
	border: 0;
	border-radius: 17px 17px 0 0;
}

.headerbar .inner {
	display: flex;
	min-height: 214px;
	align-items: center;
	justify-content: center;
}

#site-description {
	float: none;
	width: auto;
	text-align: center;
	text-shadow: 0 1px 0 #fff;
}

#logo {
	display: none;
}

#site-description h1 {
	margin: 0;
	color: var(--csf-berry-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4.5vw, 3.6rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

#site-description p {
	margin-top: 8px;
	color: var(--csf-teal);
	font-size: 1.15rem;
	font-weight: 600;
}

.navbar {
	background: #f5eee2;
	border: 1px solid var(--csf-border);
	border-radius: 12px;
}

.forabg,
.forumbg {
	background: var(--csf-teal);
	border-radius: 12px;
	box-shadow: 0 3px 12px rgba(47, 104, 101, 0.12);
}

.forabg .header a,
.forumbg .header a,
.forabg .header dt,
.forumbg .header dt {
	color: #fffdf8;
	font-weight: 700;
	letter-spacing: 0.04em;
}

ul.forums,
ul.topics {
	background: var(--csf-paper);
}

li.row {
	border-color: #e9dfce;
}

li.row:hover {
	background-color: #faf2e6;
}

a,
a:link,
a:visited,
.button-secondary {
	color: var(--csf-teal);
}

a:hover,
a:focus,
.button-secondary:hover {
	color: var(--csf-berry);
}

.button,
.button1,
input.button1,
input.button2 {
	border-color: var(--csf-berry-dark);
	background: var(--csf-berry);
	color: #fff;
	box-shadow: none;
}

.button:hover,
.button1:hover,
input.button1:hover,
input.button2:hover {
	border-color: #532333;
	background: var(--csf-berry-dark);
	color: #fff;
}

.button,
.button1,
.button2,
.button .icon,
.button1 .icon,
.button2 .icon {
	color: #fff !important;
	text-shadow: none;
}

.panel,
.post,
.bg1,
.bg2,
.bg3 {
	border-radius: 10px;
}

.panel,
.post,
.bg1 {
	background-color: #fffdf8;
}

.bg2,
.bg3 {
	background-color: #faf4e8;
}

.post {
	margin-bottom: 14px;
	border: 1px solid #e5d7c0;
	box-shadow: 0 4px 12px rgba(71, 53, 43, .06);
}

.postbody .content {
	color: #3f3834;
	font-size: 1rem;
	line-height: 1.62;
}

.postprofile {
	border-color: #d8c09b;
}

.postprofile strong,
.postprofile a,
.username,
.username-coloured {
	font-weight: 700;
}

#tabs .tab > a {
	background: #eee4d3;
	border-color: #d8c09b;
	color: #2f6865;
}

#tabs .activetab > a,
#tabs .activetab > a:hover {
	background: #fffdf8;
	border-color: #8f4055;
	color: #6f3042;
}

#cp-main,
#cp-main .panel,
#cp-menu .panel {
	background-color: #fffdf8;
}

#cp-menu #navigation a {
	background: #f1e7d6;
	border-color: #ded2bc;
	color: #2f6865;
}

#cp-menu #navigation a:hover,
#cp-menu #navigation #active-subsection a {
	background: #8f4055;
	color: #fff;
}

.memberlist-title,
.postbody h3,
.postbody h3 a,
#cp-main h2,
#cp-main h3 {
	color: #6f3042;
}

.notice,
.rules {
	border-radius: 10px;
}

.stat-block h3,
.panel h2,
.content h2 {
	color: var(--csf-berry-dark);
	font-family: Georgia, "Times New Roman", serif;
}

.copyright {
	color: #746b63;
}

@media (max-width: 700px) {
	#wrap {
		margin: 0;
		padding: 0 8px 16px;
		border: 0;
		border-radius: 0;
	}

	.headerbar {
		min-height: 150px;
		margin: 0 -8px 10px;
		padding: 0 12px;
		background-position: center bottom;
		border-radius: 0;
	}

	.headerbar .inner {
		min-height: 150px;
	}

	#site-description h1 {
		font-size: clamp(1.45rem, 7vw, 2.15rem);
		line-height: 1.05;
	}

	#site-description p {
		font-size: 1rem;
	}
}

.csf-welcome {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
	gap: 24px;
	margin: 18px 0 24px;
	padding: clamp(22px, 4vw, 42px);
	background: linear-gradient(135deg, rgba(255, 252, 244, .98), rgba(241, 229, 207, .96));
	border: 1px solid #d8c09b;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(78, 48, 36, .12);
}

.csf-eyebrow {
	margin: 0 0 8px;
	color: #21736f;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.csf-welcome h2 {
	margin: 0 0 12px;
	color: #6f2434;
	font-size: clamp(1.55rem, 3vw, 2.45rem);
	line-height: 1.08;
}

.csf-welcome-copy > p:not(.csf-eyebrow) {
	max-width: 64ch;
	font-size: 1rem;
	line-height: 1.65;
}

.csf-welcome-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.csf-welcome-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 17px;
	border: 1px solid #21736f;
	border-radius: 999px;
	background: #fffdf8;
	color: #21736f;
	font-weight: 700;
	text-decoration: none;
}

.csf-welcome-actions a:hover,
.csf-welcome-actions a:focus {
	background: #f4e8d3;
	color: #6f2434;
}

.csf-primary-action {
	background: #6f2434 !important;
	border-color: #6f2434;
	color: #fff !important;
}

.csf-start-grid {
	display: grid;
	gap: 10px;
}

.csf-start-card {
	display: block;
	padding: 15px 16px;
	background: rgba(255, 255, 255, .74);
	border: 1px solid rgba(33, 115, 111, .24);
	border-radius: 12px;
	color: #43352f;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.csf-start-card:hover,
.csf-start-card:focus {
	transform: translateY(-1px);
	border-color: #21736f;
	box-shadow: 0 5px 14px rgba(33, 115, 111, .12);
	text-decoration: none;
}

.csf-start-card strong,
.csf-start-card span {
	display: block;
}

.csf-start-card strong {
	color: #21736f;
	font-size: 1rem;
}

.csf-start-card span {
	margin-top: 3px;
	font-size: .86rem;
	line-height: 1.4;
}

@media (max-width: 760px) {
	.csf-welcome {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 20px;
	}

	.csf-welcome-actions .button1,
	.csf-welcome-actions .button2 {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
}

.csf-onboarding {
	display: grid;
	grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
	gap: clamp(18px, 3vw, 34px);
	margin: 0 0 24px;
	padding: 22px 26px;
	background: #fffdf8;
	border: 1px solid #ded2bc;
	border-left: 5px solid #c28a35;
	border-radius: 14px;
}

.csf-onboarding h2 {
	margin: 0 0 8px;
	color: #6f3042;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.3rem, 2.5vw, 1.9rem);
}

.csf-onboarding-heading > p:last-child {
	margin: 0;
	line-height: 1.55;
}

.csf-onboarding-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.csf-onboarding-steps li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px;
	background: #faf4e8;
	border-radius: 10px;
}

.csf-step-number {
	display: inline-flex;
	flex: 0 0 28px;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: #2f6865;
	border-radius: 50%;
	color: #fff;
	font-weight: 800;
}

.csf-onboarding-steps strong,
.csf-onboarding-steps a {
	display: block;
}

.csf-onboarding-steps strong {
	margin-bottom: 5px;
	color: #3f3834;
}

.csf-onboarding-steps a {
	font-size: .86rem;
	line-height: 1.35;
}

@media (max-width: 900px) {
	.csf-onboarding,
	.csf-onboarding-steps {
		grid-template-columns: 1fr;
	}
}

.csf-community-projects {
	margin: 0 0 26px;
	padding: clamp(22px, 4vw, 36px);
	background: linear-gradient(145deg, #274f4d, #1f6662);
	border-radius: 16px;
	box-shadow: 0 9px 24px rgba(34, 75, 72, .18);
	color: #fffdf8;
}

.csf-community-projects .csf-eyebrow {
	color: #f0c67d;
}

.csf-community-projects h2 {
	margin: 0 0 8px;
	color: #fffdf8;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.csf-projects-intro > p:last-child {
	max-width: 64ch;
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}

.csf-project-routes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 13px;
	margin-top: 22px;
}

.csf-project-routes a {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	column-gap: 10px;
	align-items: center;
	padding: 15px;
	background: rgba(255, 253, 248, .96);
	border: 1px solid rgba(255, 255, 255, .42);
	border-radius: 12px;
	color: #3f3834;
	transition: transform .15s ease, box-shadow .15s ease;
}

.csf-project-routes a:hover,
.csf-project-routes a:focus {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(20, 44, 42, .22);
	text-decoration: none;
}

.csf-project-routes strong,
.csf-project-routes a > span:last-child {
	display: block;
	grid-column: 2;
}

.csf-project-routes strong {
	color: #6f3042;
	font-size: .98rem;
}

.csf-project-routes a > span:last-child {
	margin-top: 3px;
	font-size: .84rem;
	line-height: 1.4;
}

.csf-project-mark {
	display: inline-flex;
	grid-row: 1 / span 2;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: #f3e1bd;
	border-radius: 50%;
	color: #6f3042;
	font-size: 1.15rem;
}

@media (max-width: 820px) {
	.csf-project-routes {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
