/*
Theme Name: Craig & Ryan
Theme URI: https://craigandryan.com
Author: Craig
Description: Custom theme for Craig & Ryan — dark, playful, film-reel themed design that ties the video player, follow buttons, and CTAs together into one consistent look.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: craig-ryan
*/

/* =========================================================================
   Design tokens — the single source of truth for color/type/spacing.
   The video player and follow-button plugins read these same variables
   (with their own fallbacks) so everything shares one palette.
   ========================================================================= */

:root {
	--cr-bg: #0a0a0a;
	--cr-bg-alt: #050505;
	--cr-panel: #141414;
	--cr-ink: #f5f5f0;
	--cr-ink-dim: rgba(245, 245, 240, 0.62);
	--cr-accent: #ffcc00;
	--cr-accent-2: #ff3b30;
	--cr-border: rgba(245, 245, 240, 0.14);
	--cr-radius: 18px;
	--cr-radius-pill: 999px;
	--cr-font-display: "Bangers", "Segoe UI", sans-serif;
	--cr-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--cr-max-width: 1100px;
}

/* =========================================================================
   Reset + base
   ========================================================================= */

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--cr-bg);
	color: var(--cr-ink);
	font-family: var(--cr-font-body);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.cr-wrap {
	max-width: var(--cr-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* =========================================================================
   Film-reel sprocket divider — the recurring signature element,
   echoing the film-reel dot rail already used inside the video player.
   ========================================================================= */

.cr-sprocket-divider {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 28px 0;
}
.cr-sprocket-divider span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cr-border);
}
.cr-sprocket-divider span:nth-child(3n+1) {
	background: var(--cr-accent-2);
}

/* =========================================================================
   Header
   ========================================================================= */

.cr-header {
	padding: 20px 0;
	border-bottom: 1px solid var(--cr-border);
	background: var(--cr-bg-alt);
}

.cr-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.cr-logo {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	line-height: 1;
}
.cr-logo-mark {
	font-family: var(--cr-font-display);
	font-size: clamp(28px, 4vw, 40px);
	letter-spacing: 0.02em;
	color: var(--cr-ink);
	text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}
.cr-logo-mark .cr-logo-and {
	color: var(--cr-accent);
	font-size: 0.6em;
	margin: 0 4px;
}
.cr-logo-tagline {
	margin-top: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cr-accent);
}

.cr-nav ul {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.cr-nav a {
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--cr-ink-dim);
	transition: color 0.15s ease;
}
.cr-nav a:hover,
.cr-nav .current-menu-item a {
	color: var(--cr-accent);
}

.cr-header-social {
	display: flex;
	gap: 10px;
}
.cr-header-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--cr-panel);
	border: 1px solid var(--cr-border);
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.cr-header-social a:hover {
	transform: translateY(-2px);
	border-color: var(--cr-accent);
}
.cr-header-social svg {
	width: 15px;
	height: 15px;
}

/* =========================================================================
   Hero section
   ========================================================================= */

.cr-hero-section {
	padding: 56px 0 40px;
	text-align: center;
}

.cr-hero-title {
	font-family: var(--cr-font-display);
	font-size: clamp(36px, 6vw, 64px);
	line-height: 1.05;
	margin: 0 0 12px;
	color: var(--cr-ink);
	text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}
.cr-hero-title .cr-accent-text {
	color: var(--cr-accent);
}

.cr-hero-subtitle {
	max-width: 560px;
	margin: 0 auto 36px;
	color: var(--cr-ink-dim);
	font-size: 16px;
}

/* =========================================================================
   Section labels — used above the follow/CTA sections
   ========================================================================= */

.cr-section {
	padding: 32px 0;
}
.cr-section-label {
	display: block;
	text-align: center;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cr-accent-2);
	margin-bottom: 16px;
}

/* =========================================================================
   Footer
   ========================================================================= */

.cr-footer {
	border-top: 1px solid var(--cr-border);
	background: var(--cr-bg-alt);
	padding: 32px 0;
	margin-top: 40px;
}
.cr-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.cr-footer-copy {
	font-size: 13px;
	color: var(--cr-ink-dim);
}
.cr-footer-copy strong {
	color: var(--cr-ink);
}

/* =========================================================================
   CTA buttons (like/follow) — same component used in the CTA row below
   the player, now driven by the shared tokens above.
   ========================================================================= */

.cr-cta-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}
.cr-cta-btn,
.cr-cta-btn:link,
.cr-cta-btn:visited,
.cr-cta-btn:active {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	background: var(--cr-panel) !important;
	color: var(--cr-ink) !important;
	font-family: var(--cr-font-body);
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
	border: 1.5px solid var(--cr-border);
	border-radius: var(--cr-radius-pill);
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.cr-cta-btn:hover,
.cr-cta-btn:focus-visible {
	transform: translateY(-2px);
	background: #1c1c1c !important;
}
.cr-cta-like:hover,
.cr-cta-like:focus-visible {
	border-color: #1877f2;
	color: #1877f2 !important;
}
.cr-cta-follow:hover,
.cr-cta-follow:focus-visible {
	border-color: var(--cr-accent);
	color: var(--cr-accent) !important;
}

/* =========================================================================
   Mobile nav toggle
   ========================================================================= */

.cr-nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--cr-border);
	border-radius: 8px;
	width: 40px;
	height: 40px;
	color: var(--cr-ink);
	align-items: center;
	justify-content: center;
}

@media (max-width: 720px) {
	.cr-nav-toggle { display: flex; }
	.cr-nav { display: none; width: 100%; order: 3; }
	.cr-nav.cr-nav-open { display: block; }
	.cr-nav ul { flex-direction: column; gap: 14px; padding: 16px 0; }
}
