/*
 * Raising Kansas v2 ("Watch First"): all front-end styles.
 * Fonts: Barlow Condensed (headings, matches the logo's lettering) + Public Sans (text), self-hosted, Latin subset,
 * SIL Open Font License.
 */

@font-face {
	font-family: "Barlow Condensed";
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
	font-family: "Barlow Condensed";
	font-weight: 800;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/barlow-condensed-800.woff2") format("woff2");
}
@font-face {
	font-family: "Public Sans";
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/public-sans-400-700.woff2") format("woff2");
}

:root {
	--rk-green: #075e30;
	--rk-forest: #04381d;
	--rk-night: #021f10;
	--rk-gold: #f2c13a;
	--rk-cream: #faf5ed;
	--rk-sand: #efe7d6;
	--rk-line: #e3dccd;
	--rk-ink: #1d2a22;
	--rk-muted: #4f5b53;
	--rk-on-dark: #e4ecd9;
	--rk-on-dark-muted: #cfdcc6;
	--rk-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--rk-text: "Public Sans", -apple-system, "Segoe UI", sans-serif;
}

/* ---------------------------------------------------------------- base */

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

html {
	-webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--rk-cream);
	color: var(--rk-ink);
	font-family: var(--rk-text);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--rk-green);
}
a:hover {
	color: var(--rk-forest);
}

h1, h2, h3 {
	margin: 0;
	line-height: 1.15;
}

p {
	margin: 0;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

:focus-visible {
	outline: 3px solid var(--rk-gold);
	outline-offset: 3px;
}

[id] {
	scroll-margin-top: 16px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.rk-skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 9999;
	width: 1px;
	height: 1px;
	padding: 8px 14px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	background: var(--rk-forest);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}
.rk-skip-link:focus {
	width: auto;
	height: auto;
	clip: auto;
	color: #fff;
}

.rk-wrap {
	width: 100%;
	max-width: 1248px;
	margin-inline: auto;
	padding-inline: 24px;
}

/* ---------------------------------------------------------------- buttons */

.rk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.rk-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}
.rk-btn svg {
	flex-shrink: 0;
}
.rk-btn--gold {
	min-height: 48px;
	padding-inline: 22px;
	background: var(--rk-gold);
	color: var(--rk-forest);
}
.rk-btn--gold:hover {
	background: #ffd25a;
	color: var(--rk-forest);
}
.rk-btn--light {
	min-height: 48px;
	padding-inline: 22px;
	border-color: var(--rk-cream);
	color: var(--rk-cream);
}
.rk-btn--light:hover {
	background: var(--rk-cream);
	color: var(--rk-forest);
}
.rk-btn--solid {
	background: var(--rk-green);
	color: #fff;
}
.rk-btn--solid:hover {
	background: var(--rk-forest);
	color: #fff;
}
.rk-btn--outline {
	border-color: var(--rk-green);
	color: var(--rk-green);
}
.rk-btn--outline:hover {
	background: var(--rk-green);
	color: #fff;
}
.rk-btn--text {
	padding-inline: 8px;
	text-decoration: underline;
}

/* ---------------------------------------------------------------- header */

.rk-header {
	border-bottom: 1px solid var(--rk-line);
	background: var(--rk-cream);
}
.rk-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 16px;
}
.rk-header__logo img {
	display: block;
	width: auto;
	height: 48px;
}
.rk-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 20px;
	font-size: 0.95rem;
	font-weight: 600;
}
.rk-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--rk-ink);
	text-decoration: none;
}
.rk-nav a:hover {
	color: var(--rk-green);
	text-decoration: underline;
}
.rk-nav .rk-nav__contact {
	padding: 0 16px;
	border: 2px solid var(--rk-green);
	border-radius: 10px;
	color: var(--rk-green);
}
.rk-nav .rk-nav__contact:hover {
	background: var(--rk-green);
	color: #fff;
	text-decoration: none;
}

/* ---------------------------------------------------------------- videos (click to play) */

.rk-video {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	background: var(--rk-night);
}
.rk-video--large {
	border-radius: 16px;
}
.rk-video iframe,
.rk-play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.rk-play {
	display: block;
}
.rk-play img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.rk-play:hover img {
	transform: scale(1.03);
}
.rk-play__button {
	position: absolute;
	left: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--rk-gold);
	color: var(--rk-forest);
	box-shadow: 0 2px 10px rgba(2, 31, 16, 0.35);
}
.rk-play__button svg {
	width: 18px;
	height: 18px;
}
.rk-video--large .rk-play__button {
	left: 50%;
	top: 50%;
	bottom: auto;
	width: 88px;
	height: 88px;
	transform: translate(-50%, -50%);
}
.rk-video--large .rk-play__button svg {
	width: 36px;
	height: 36px;
}
.rk-play:hover .rk-play__button {
	background: #ffd25a;
}
.rk-badge {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(2, 31, 16, 0.85);
	color: var(--rk-cream);
	font-size: 0.8125rem;
	font-weight: 700;
}
.rk-video--large .rk-badge {
	right: 12px;
	bottom: 12px;
	padding: 4px 10px;
	font-size: 0.875rem;
}

/* ---------------------------------------------------------------- hero */

.rk-hero {
	background: var(--rk-forest);
	color: var(--rk-cream);
}
.rk-hero > .rk-wrap {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-block: 48px 56px;
}
.rk-hero__intro {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 780px;
}
.rk-hero__intro .rk-intro {
	display: contents;
}
.rk-hero__intro h1 {
	font-family: var(--rk-display);
	font-size: clamp(2.5rem, 7vw, 4rem);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}
.rk-hero__intro p {
	color: var(--rk-on-dark);
	font-size: 1.125rem;
}
.rk-hero__intro a {
	color: var(--rk-gold);
}
.rk-hero .rk-eyebrow,
.rk-label {
	color: var(--rk-gold);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.rk-hero__intro .rk-eyebrow {
	font-size: 0.875rem;
}

.rk-feature {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px 32px;
}
.rk-feature .rk-video {
	flex: 1 1 520px;
	min-width: min(100%, 280px);
}
.rk-feature__info {
	display: flex;
	flex: 1 1 340px;
	flex-direction: column;
	gap: 14px;
}
.rk-feature__info h2 {
	font-family: var(--rk-display);
	font-size: clamp(1.875rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.05;
}
.rk-feature__meta {
	color: var(--rk-on-dark-muted);
}
.rk-feature .rk-actions {
	padding-top: 6px;
}

/* ---------------------------------------------------------------- sections */

.rk-section {
	padding-block: 56px;
}
.rk-section--sand {
	background: var(--rk-sand);
}
.rk-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin-bottom: 24px;
}
.rk-section h2 {
	color: var(--rk-forest);
	font-family: var(--rk-display);
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 800;
	text-transform: uppercase;
}
.rk-section__head p {
	color: var(--rk-muted);
}

/* Quick answers */
.rk-clips {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 28px 24px;
}
.rk-clip {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.rk-clip__title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}
.rk-clip__guest {
	margin-top: -4px;
	color: var(--rk-muted);
	font-size: 0.875rem;
}

/* Phones: clips as compact rows (thumbnail beside the title); a playing clip grows to full width. */
@media (max-width: 599px) {
	.rk-clips {
		gap: 16px;
	}
	.rk-clip {
		display: grid;
		grid-template-columns: 136px 1fr;
		align-items: center;
		gap: 4px 14px;
	}
	.rk-clip .rk-video {
		grid-row: span 2;
		border-radius: 10px;
	}
	.rk-clip__title {
		align-self: end;
		font-size: 1rem;
	}
	.rk-clip__guest {
		align-self: start;
		margin-top: 0;
	}
	.rk-clip .rk-play__button {
		left: 6px;
		bottom: 6px;
		width: 34px;
		height: 34px;
	}
	.rk-clip .rk-badge {
		right: 6px;
		bottom: 6px;
		font-size: 0.75rem;
	}
	.rk-clip.is-playing .rk-video {
		grid-column: 1 / -1;
		grid-row: auto;
	}
	.rk-clip.is-playing .rk-clip__title,
	.rk-clip.is-playing .rk-clip__guest {
		grid-column: 1 / -1;
	}
}

/* Full episodes */
.rk-episodes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
	gap: 24px;
}
.rk-episode {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
}
.rk-episode .rk-video {
	border-radius: 0;
}
.rk-episode__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 24px 24px;
}
.rk-episode__body h3 {
	font-size: 1.375rem;
	line-height: 1.25;
}
.rk-episode__guest {
	color: var(--rk-muted);
	font-size: 0.9375rem;
}

/* About */
.rk-about-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px 40px;
}
.rk-about__logo {
	flex: 0 0 auto;
	width: 200px;
	height: 200px;
}
.rk-about__text {
	display: flex;
	flex: 1 1 420px;
	flex-direction: column;
	gap: 14px;
	font-size: 1.0625rem;
	line-height: 1.65;
}
.rk-about__text .rk-about {
	display: contents;
}
.rk-about__text .rk-actions {
	padding-top: 4px;
}

/* ---------------------------------------------------------------- footer */

.rk-footer {
	padding-block: 28px;
	background: var(--rk-forest);
	color: var(--rk-on-dark-muted);
	font-size: 0.875rem;
	text-align: center;
}
.rk-footer a {
	color: var(--rk-gold);
}

/* ---------------------------------------------------------------- 404, search, other pages */

.rk-404 .rk-wrap,
.rk-page .rk-wrap {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 760px;
	min-height: 50vh;
}
.rk-404 h1,
.rk-page h1 {
	color: var(--rk-forest);
	font-family: var(--rk-display);
	font-size: clamp(2.25rem, 6vw, 3.25rem);
	font-weight: 800;
	text-transform: uppercase;
}
.rk-page h2 {
	font-size: 1.375rem;
}
.rk-search {
	display: flex;
	max-width: 420px;
}
.rk-search input[type="search"] {
	flex: 1;
	min-height: 48px;
	padding: 0 16px;
	border: 2px solid #cfc6b2;
	border-radius: 10px;
	background: #fff;
	color: var(--rk-ink);
	font: inherit;
}
