/*
Theme Name: Let's Frkn Dance
Theme URI: https://letsfrkndance.com
Author: RobbyMedia LLC
Description: Dark, neon-lit theme built for the Let's Frkn Dance community — the hall map, the event calendar, and the instructor directory. Pairs with the Let's Frkn Dance Hall Map plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lfd
Tags: dark, one-column, custom-logo, custom-menu, full-width-template, community
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--ink: #0b0a0d;
	--panel: #141317;
	--panel-2: #1c1a20;
	--line: #2b2830;
	--neon: #ff3b2f;
	--neon-soft: rgba(255, 59, 47, 0.16);
	--bone: #f3efe9;
	--dim: #d8d2cd;
	--muted: #9a939f;
	--radius: 4px;
	--shell: 1180px;
	--gutter: 22px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ink);
	color: var(--bone);
	font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-variation-settings: "wdth" 100;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--bone); text-decoration-color: rgba(255, 59, 47, 0.55); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--neon); }

:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

h1, h2, h3, h4 {
	font-variation-settings: "wdth" 125, "wght" 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 0.5em;
	color: var(--bone);
}

h1 { font-size: clamp(34px, 5.4vw, 60px); font-variation-settings: "wdth" 125, "wght" 800; line-height: 1; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
h4 { font-size: 18px; font-variation-settings: "wdth" 100, "wght" 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

blockquote {
	margin: 28px 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--neon);
	color: var(--dim);
}

code, pre {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 0.9em;
}

code { padding: 2px 6px; }
pre { padding: 16px; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 600; font-size: 14px; }

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 2000;
	padding: 12px 20px;
	background: var(--neon);
	color: #fff;
	font-weight: 600;
}

.skip-link:focus { left: 12px; top: 12px; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: transparent;
	color: var(--bone);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.btn:hover,
.wp-block-button__link:hover { border-color: var(--neon); color: var(--bone); }

.btn-solid,
.is-style-fill .wp-block-button__link {
	background: var(--neon);
	border-color: var(--neon);
	color: #fff;
	box-shadow: 0 0 22px rgba(255, 59, 47, 0.35);
}

.btn-solid:hover { background: #ff5347; border-color: #ff5347; color: #fff; }

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(11, 10, 13, 0.92);
	border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
	border-bottom-color: rgba(255, 59, 47, 0.45);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.site-nav {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: var(--shell);
	margin: 0 auto;
	padding: 12px var(--gutter);
}

.brand { display: flex; align-items: center; flex: 0 0 auto; line-height: 0; text-decoration: none; }

.brand img {
	height: 56px;
	width: auto;
	display: block;
	/* The logo art sits on black. Screen blending drops that away so it reads
	   as lit neon rather than a pasted-on square. */
	mix-blend-mode: screen;
}

.brand-text {
	font-variation-settings: "wdth" 125, "wght" 800;
	font-size: 20px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bone);
	line-height: 1.2;
}

.nav-panel { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-menu {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu li { position: relative; margin: 0; }

.nav-menu a {
	display: block;
	padding: 10px 14px;
	color: var(--bone);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a { border-bottom-color: var(--neon); color: #fff; }

.nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	list-style: none;
	margin: 0;
	padding: 6px 0;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }

.nav-menu .sub-menu a { border-bottom: 0; padding: 9px 16px; font-weight: 500; }
.nav-menu .sub-menu a:hover { background: var(--panel-2); }

.nav-cta { padding: 10px 18px; font-size: 14px; margin-left: 8px; }

.nav-toggle {
	display: none;
	margin-left: auto;
	padding: 10px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
}

.nav-bars { display: block; width: 22px; }
.nav-bars span { display: block; height: 2px; background: var(--bone); border-radius: 2px; }
.nav-bars span + span { margin-top: 5px; }

.nav-empty { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
	.brand img { height: 44px; }
	.nav-toggle { display: block; }

	.nav-panel {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px var(--gutter) 18px;
		background: var(--ink);
		border-bottom: 1px solid var(--line);
	}

	.nav-panel.is-open { display: flex; }
	.nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); }

	.nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		border: 0;
		box-shadow: none;
		background: transparent;
		padding: 0 0 0 16px;
	}

	.nav-cta { margin: 14px 0 0; }
}

/* ==========================================================================
   Page shell
   ========================================================================== */

.site-main { display: block; }

/* Pages that bring their own hero markup get no theme chrome at all. */
.page-canvas { padding: 0; }

.page-head {
	position: relative;
	padding: 60px 0 36px;
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}

.page-head::before {
	content: "";
	position: absolute;
	top: -260px;
	left: 12%;
	width: 700px;
	height: 460px;
	background: radial-gradient(closest-side, rgba(255, 59, 47, 0.20), transparent 100%);
	pointer-events: none;
}

.page-head > .shell { position: relative; }
.page-head p { max-width: 62ch; margin: 0; color: var(--dim); font-size: clamp(16px, 2vw, 19px); }

.page-body { padding: 40px 0 76px; }
.entry-content > *:first-child { margin-top: 0; }

.entry-content ul,
.entry-content ol { margin: 0 0 1.1em; padding-left: 22px; }
.entry-content li { margin-bottom: 6px; }
.entry-content li::marker { color: var(--neon); }

.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }

.entry-meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.entry-thumb {
	display: block;
	width: 100%;
	max-height: 460px;
	object-fit: cover;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	margin: 0 0 30px;
}

/* Readable measure for prose pages; the plugin's own blocks opt out. */
.measure { max-width: 74ch; }

.wp-block-image img { border-radius: var(--radius); }
.wp-caption-text, figcaption { color: var(--muted); font-size: 14px; }

/* ==========================================================================
   Post lists / archives
   ========================================================================== */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 18px;
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.card img { width: 100%; height: 180px; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { padding: 18px; }
.card-body h2 { font-size: 20px; margin: 0 0 6px; }
.card-body h2 a { text-decoration: none; }
.card-body h2 a:hover { color: var(--neon); }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }

.pagination .page-numbers {
	padding: 10px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
}

.pagination .current { background: var(--neon-soft); border-color: var(--neon); }

/* ==========================================================================
   Search form
   ========================================================================== */

.search-form { display: flex; gap: 10px; max-width: 520px; }

.search-form input[type="search"],
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
textarea, select {
	width: 100%;
	padding: 12px 14px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--bone);
	font: inherit;
	font-size: 16px;
}

::placeholder { color: var(--muted); }

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

.site-footer {
	border-top: 1px solid var(--line);
	background:
		radial-gradient(closest-side at 50% 0%, rgba(255, 59, 47, 0.10), transparent 70%),
		var(--ink);
	padding: 54px 0 34px;
	margin-top: 0;
}

.footer-top {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 34px;
	padding-bottom: 34px;
	border-bottom: 1px solid var(--line);
}

.footer-brand img { height: 92px; width: auto; mix-blend-mode: screen; }
.footer-blurb { color: var(--muted); font-size: 15px; margin: 14px 0 0; max-width: 40ch; }

.footer-col h4 {
	font-size: 13px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--muted);
	font-variation-settings: "wdth" 125, "wght" 700;
	margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--bone); font-size: 15px; text-decoration: none; }
.footer-col a:hover { color: var(--neon); }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	justify-content: space-between;
	align-items: center;
	padding-top: 26px;
	color: var(--muted);
	font-size: 14px;
}

@media (max-width: 860px) {
	.footer-top { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
	.footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Home page
   ========================================================================== */

.hero {
	position: relative;
	padding: 84px 0 66px;
	text-align: center;
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	top: -180px;
	left: 50%;
	width: 900px;
	height: 620px;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(255, 59, 47, 0.30), rgba(255, 59, 47, 0.06) 62%, transparent 100%);
	pointer-events: none;
}

.hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 190px;
	background: repeating-linear-gradient(90deg, rgba(255, 59, 47, 0.10) 0 1px, transparent 1px 78px);
	-webkit-mask-image: linear-gradient(to top, #000, transparent);
	mask-image: linear-gradient(to top, #000, transparent);
	pointer-events: none;
}

.hero > .shell { position: relative; }

.hero-logo { margin: 0 0 26px; line-height: 0; }
.hero-logo img { height: 210px; width: auto; display: inline-block; mix-blend-mode: screen; }

.hero-kicker {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid rgba(255, 59, 47, 0.5);
	border-radius: 999px;
	color: #ffb1aa;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 22px;
}

.hero h1 {
	font-size: clamp(40px, 7.6vw, 88px);
	line-height: 0.94;
	letter-spacing: -0.02em;
	margin: 0 auto 22px;
	max-width: 15ch;
	text-shadow: 0 0 42px rgba(255, 59, 47, 0.28);
}

.hero-lede { max-width: 58ch; margin: 0 auto 32px; font-size: clamp(17px, 2.1vw, 20px); color: var(--dim); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 44px; }

.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 720px;
	margin: 0 auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(20, 19, 23, 0.7);
}

.stat { padding: 20px 14px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }

.stat b {
	display: block;
	font-variation-settings: "wdth" 125, "wght" 800;
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1;
}

.stat span {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
	/* The logo is left out on purpose: animating it makes a stacking context,
	   which would break the screen blend hiding its black backing. */
	.hero-kicker, .hero h1, .hero-lede, .hero-cta, .stats {
		animation: rise 0.7s cubic-bezier(0.22, 0.7, 0.3, 1) both;
	}
	.hero h1 { animation-delay: 0.08s; }
	.hero-lede { animation-delay: 0.16s; }
	.hero-cta { animation-delay: 0.24s; }
	.stats { animation-delay: 0.32s; }
}

@keyframes rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

/* Home sections */
.sec { padding: 62px 0; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; }

.sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); max-width: 46ch; }

.sec-more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.split h2 { font-size: clamp(24px, 2.8vw, 32px); }
.split .sub { color: var(--muted); margin: 10px 0 22px; }

/* A real sequence, so it gets numbers */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 26px; }

.step-n {
	display: block;
	font-variation-settings: "wdth" 125, "wght" 800;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--neon);
	margin-bottom: 8px;
}

.step h3 { font-size: 19px; margin: 0 0 6px; font-variation-settings: "wdth" 100, "wght" 700; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.closer {
	padding: 70px 0 84px;
	text-align: center;
	background: radial-gradient(closest-side at 50% 0%, rgba(255, 59, 47, 0.16), transparent 70%), var(--ink);
}

.closer p { color: var(--muted); max-width: 52ch; margin: 12px auto 28px; }

@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; gap: 44px; }
	.steps { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 640px) {
	.hero { padding: 48px 0 46px; }
	.hero-logo img { height: 140px; }
	.sec { padding: 46px 0; }
	.hero-cta .btn { flex: 1 1 100%; }
	.stats { grid-template-columns: 1fr; }
	.stat { border-left: 0; border-top: 1px solid var(--line); padding: 16px 14px; }
	.stat:first-child { border-top: 0; }
	.page-head { padding: 44px 0 30px; }
	.page-body { padding: 32px 0 60px; }
}

/* ==========================================================================
   Plugin single views — the plugin styles its own blocks, this is the frame
   ========================================================================== */

.entry-single-plugin .page-head p { max-width: 70ch; }

.back-link {
	display: inline-block;
	margin-bottom: 18px;
	color: var(--muted);
	font-size: 14px;
	text-decoration: none;
}

.back-link:hover { color: var(--neon); }

/* ==========================================================================
   404 / empty states
   ========================================================================== */

.empty-state { padding: 90px 0 110px; text-align: center; }
.empty-state p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
