/* RLV Karkku — shared theme tokens & chrome */

:root {
	--rlv-green: #0b6a55;
	--rlv-green-deep: #084f3f;
	--rlv-green-mid: #357b62;
	--rlv-green-soft: #e8f3ef;
	--rlv-ink: #1a1f1c;
	--rlv-muted: #5c6660;
	--rlv-paper: #f7f5f1;
	--rlv-paper-2: #efece6;
	--rlv-white: #ffffff;
	--rlv-font-display: "Merriweather", Georgia, "Times New Roman", serif;
	--rlv-font-body: "Merriweather Sans", "Segoe UI", sans-serif;
	--rlv-max: 68rem;
	--rlv-header-h: 4.25rem;
}

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

html {
	scroll-behavior: smooth;
}

body.rlv-karkku {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--rlv-font-body);
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--rlv-ink);
	background: var(--rlv-paper);
	-webkit-font-smoothing: antialiased;
}

#rlv-main,
.rlv-landing,
.rlv-page,
.rlv-course,
.rlv-week {
	flex: 1 0 auto;
}

body.rlv-karkku--landing {
	background: var(--rlv-paper);
}

.rlv-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--rlv-green);
	color: var(--rlv-white);
}

.rlv-skip:focus {
	left: 1rem;
	top: 1rem;
}

.rlv-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247, 245, 241, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(11, 106, 85, 0.12);
}

.rlv-site-header__inner {
	max-width: var(--rlv-max);
	margin: 0 auto;
	min-height: var(--rlv-header-h);
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.rlv-site-brand__name {
	font-family: var(--rlv-font-display);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--rlv-green-deep);
	text-decoration: none;
	letter-spacing: -0.01em;
}

.rlv-site-brand .custom-logo-link img {
	display: block;
	max-height: 2.5rem;
	width: auto;
}

.rlv-site-nav {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.rlv-site-nav__list {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rlv-site-nav__list a {
	color: var(--rlv-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

.rlv-site-nav__list a:hover,
.rlv-site-nav__list a:focus-visible {
	color: var(--rlv-green);
}

.rlv-site-nav__cta {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border-radius: 2px;
	background: var(--rlv-green);
	color: var(--rlv-white) !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}

.rlv-site-nav__cta:hover,
.rlv-site-nav__cta:focus-visible {
	background: var(--rlv-green-deep);
}

.rlv-btn {
	display: inline-block;
	padding: 0.7rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 2px;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rlv-btn--primary {
	background: var(--rlv-green);
	border-color: var(--rlv-green);
	color: var(--rlv-white);
}

.rlv-btn--primary:hover,
.rlv-btn--primary:focus-visible {
	background: var(--rlv-green-deep);
	border-color: var(--rlv-green-deep);
}

.rlv-btn--ghost {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

.rlv-btn--ghost:hover,
.rlv-btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.12);
}

.rlv-page {
	padding: 2rem 1.25rem 4rem;
}

.rlv-page__inner {
	max-width: 44rem;
	margin: 0 auto;
}

.rlv-page__title {
	font-family: var(--rlv-font-display);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	line-height: 1.2;
	color: var(--rlv-green-deep);
	margin: 0 0 1rem;
}

.rlv-page__content {
	font-size: 1.05rem;
}

.rlv-site-footer {
	margin-top: auto;
	padding: 2.5rem 1.25rem;
	background: var(--rlv-green-deep);
	color: rgba(255, 255, 255, 0.88);
}

.rlv-site-footer__inner {
	max-width: var(--rlv-max);
	margin: 0 auto;
}

.rlv-site-footer__brand {
	font-family: var(--rlv-font-display);
	font-size: 1.15rem;
	margin: 0 0 0.35rem;
	color: var(--rlv-white);
}

.rlv-site-footer__meta {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	opacity: 0.85;
}

.rlv-site-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rlv-site-footer__list a {
	color: var(--rlv-white);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Plugin surfaces inherit theme tokens when present */
.rlv-week,
.rlv-course,
.rlv-timeline,
.rlv-form {
	font-family: var(--rlv-font-body);
}

@media (max-width: 720px) {
	.rlv-site-header__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.rlv-site-nav {
		width: 100%;
		justify-content: space-between;
	}
}
