/** Ruinsholic theme */

:root {
	--rs-bg: #0b1410;
	--rs-panel: #111a14;
	--rs-card: #152019;
	--rs-green: #143d28;
	--rs-green-soft: #1f5338;
	--rs-orange: #e85d04;
	--rs-orange-soft: #ff9430;
	--rs-muted: #9fb5a9;
	--rs-text: #e8eae6;
	--rs-max: 1100px;
}

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

body {
	margin: 0;
	font-family:
		system-ui,
		-apple-system,
		"Segoe UI",
		"Hiragino Sans",
		"Hiragino Kaku Gothic ProN",
		Meiryo,
		sans-serif;
	background: radial-gradient(circle at 20% -10%, rgba(232, 93, 4, 0.12), transparent 45%), var(--rs-bg);
	color: var(--rs-text);
	line-height: 1.7;
}

.rs-wrap {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.rs-main {
	flex: 1 0 auto;
}

.rs-container {
	width: min(100% - 2.5rem, var(--rs-max));
	margin-inline: auto;
}

/* Header */
.rs-header__bar {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(11, 20, 16, 0.92);
	backdrop-filter: blur(10px);
}

.rs-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 4rem;
	gap: 1rem;
}

.rs-brand__text {
	color: var(--rs-text);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	font-size: 1.35rem;
}

.rs-brand__text:hover {
	color: var(--rs-orange-soft);
}

.rs-brand__tag {
	display: block;
	font-size: 0.72rem;
	color: var(--rs-muted);
	letter-spacing: 0.06em;
}

.rs-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.rs-nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--rs-orange);
	border-radius: 1px;
}

.rs-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.rs-nav li a {
	color: var(--rs-muted);
	text-decoration: none;
	font-size: 0.93rem;
}

.rs-nav li a:hover,
.rs-nav li.current a {
	color: var(--rs-orange-soft);
}

/* Hero */
.rs-hero {
	padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 7vw, 4rem);
	background:
		linear-gradient(120deg, rgba(20, 61, 40, 0.55), transparent 58%),
		linear-gradient(180deg, rgba(232, 93, 4, 0.18), transparent 35%),
		var(--rs-panel);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	position: relative;
	overflow: clip;
}

.rs-hero__inner {
	width: min(100% - 2.5rem, var(--rs-max));
	margin-inline: auto;
}

.rs-hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.74rem;
	color: var(--rs-orange-soft);
	margin: 0 0 0.75rem;
}

.rs-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 4vw, 2.45rem);
	line-height: 1.35;
	font-weight: 700;
}

.rs-hero__lead {
	max-width: 46rem;
	font-size: 1.03rem;
	color: var(--rs-muted);
	margin: 0 0 2rem;
}

.rs-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Buttons */
.rs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.75rem 1.35rem;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.rs-btn--primary {
	background: var(--rs-green-soft);
	border-color: rgba(255, 255, 255, 0.08);
	color: var(--rs-text);
}

.rs-btn--primary:hover {
	transform: translateY(-1px);
	background: var(--rs-green);
}

.rs-btn--ghost {
	background: transparent;
	border-color: rgba(232, 93, 4, 0.55);
	color: var(--rs-orange-soft);
}

.rs-btn--ghost:hover {
	background: rgba(232, 93, 4, 0.12);
}

.rs-btn--accent {
	background: var(--rs-orange);
	color: #0b0906;
	border-color: transparent;
}

.rs-btn--accent:hover {
	background: var(--rs-orange-soft);
}

.rs-btn--block {
	width: 100%;
}

/* Sections */
.rs-section {
	padding: clamp(2.75rem, 6vw, 4.25rem) 0;
}

.rs-section__head {
	margin-bottom: 2rem;
}

.rs-heading {
	margin: 0 0 0.6rem;
	font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.rs-heading--light {
	color: #fffdfa;
}

.rs-lead-inline {
	margin: 0;
	color: var(--rs-muted);
	max-width: 40rem;
}

.rs-cards {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rs-card {
	background: var(--rs-card);
	padding: 1.35rem 1.35rem 1.5rem;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.rs-card__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.06rem;
	margin: 0 0 0.85rem;
}

.rs-card__accent {
	font-size: 0.78rem;
	color: var(--rs-orange-soft);
	border: 1px solid rgba(232, 93, 4, 0.45);
	border-radius: 3px;
	padding: 0.1rem 0.45rem;
}

.rs-card__text {
	margin: 0;
	color: var(--rs-muted);
	font-size: 0.93rem;
}

.rs-section--dark {
	background:
		radial-gradient(circle at 90% -20%, rgba(232, 93, 4, 0.18), transparent 52%),
		#08120d;
	border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.rs-text-light {
	color: #cdd8cf;
	max-width: 36rem;
}

.rs-list-light {
	color: var(--rs-muted);
	padding-left: 1.25rem;
}

.rs-split {
	display: grid;
	gap: 2rem;
	align-items: start;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.rs-panel {
	background: rgba(17, 32, 25, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.06);
	padding: 1.5rem 1.35rem;
	border-radius: 8px;
}

.rs-panel__title {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin: 0 0 0.75rem;
	color: var(--rs-orange-soft);
}

.rs-check {
	margin: 0 0 1.5rem;
	padding-left: 1.25rem;
	color: var(--rs-muted);
}

.rs-section--muted {
	background: #0d1611;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rs-note {
	color: var(--rs-muted);
	margin: 0;
	max-width: 52rem;
}

/* Subpages */
.rs-pagehead {
	padding: 2rem 0 1.25rem;
	background: linear-gradient(180deg, var(--rs-panel), var(--rs-bg));
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rs-pagehead__title {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.rs-breadcrumb {
	padding: 0.85rem 0 0;
	font-size: 0.85rem;
	color: var(--rs-muted);
}

.rs-breadcrumb a {
	color: var(--rs-orange-soft);
	text-decoration: none;
}

.rs-content {
	padding-bottom: 3.5rem;
}

/* Prose from WYSIWYG */
.rs-prose h2 {
	font-size: 1.2rem;
	margin: 2rem 0 0.75rem;
	border-left: 4px solid var(--rs-orange);
	padding-left: 0.55rem;
}

.rs-prose h2:first-child {
	margin-top: 0;
}

.rs-prose p,
.rs-prose li {
	color: #d3ded6;
}

.rs-prose .rs-lead {
	font-size: 1.05rem;
	color: var(--rs-text);
}

.rs-prose strong {
	color: #fff;
}

.rs-callout {
	margin-top: 1.5rem;
	padding: 1rem 1.1rem;
	border-radius: 6px;
	background: rgba(232, 93, 4, 0.1);
	border: 1px solid rgba(232, 93, 4, 0.28);
}

.rs-callout p {
	margin: 0;
	color: var(--rs-muted);
}

.rs-steps {
	padding-left: 1.1rem;
}

.rs-steps li {
	margin-bottom: 1rem;
}

.rs-faq h2 {
	font-size: 1.05rem;
	margin-top: 1.75rem;
	border-left: none;
	padding-left: 0;
	color: var(--rs-orange-soft);
}

.rs-faq h2:first-child {
	margin-top: 0;
}

.rs-muted {
	color: var(--rs-muted);
	font-size: 0.92rem;
}

code {
	background: rgba(255, 255, 255, 0.06);
	padding: 0.1rem 0.35rem;
	border-radius: 3px;
	font-size: 0.88em;
}

/* Footer */
.rs-footer__cta {
	background: linear-gradient(90deg, var(--rs-green), #0f2a1c);
	border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.rs-footer__cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.75rem 0;
}

.rs-footer__cta-label {
	margin: 0;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.rs-footer__cta-text {
	margin: 0;
	color: var(--rs-muted);
	font-size: 0.93rem;
}

.rs-footer__main {
	background: #050a07;
	padding: 2.5rem 0 1.75rem;
}

.rs-footer__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.rs-footer__brand {
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 0.4rem;
}

.rs-footer__copy,
.rs-footer__small {
	font-size: 0.87rem;
	color: var(--rs-muted);
	margin: 0;
}

.rs-footer__label {
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rs-muted);
	margin: 0 0 0.65rem;
}

.rs-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rs-footer ul li + li {
	margin-top: 0.35rem;
}

.rs-footer a {
	color: #c6d8cc;
	text-decoration: none;
	font-size: 0.92rem;
}

.rs-footer a:hover {
	color: var(--rs-orange-soft);
}

.rs-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 2rem;
	padding-top: 1.35rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.82rem;
	color: var(--rs-muted);
}

.rs-footer__power a {
	color: inherit;
	text-decoration: underline;
}

.rs-footer nav .contents-menu-li,
.rs-footer nav ul {
	display: grid;
	gap: 0.35rem;
}

@media (max-width: 860px) {
	.rs-nav-toggle {
		display: flex;
	}

	.rs-nav {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		top: 4rem;
		background: rgba(5, 10, 7, 0.97);
		padding: 1.25rem 1.75rem;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		overflow-y: auto;
	}

	body.rs-nav-open .rs-nav {
		transform: translateX(0);
	}

	.rs-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.95rem;
	}
}
