/*
Theme Name: B RO
Theme URI: https://b-ro.us
Author: B RO
Description: Minimal black one-page artist site: main photo, four buttons (Videos, Music, Merch, Shows), social/streaming icon bars, and a Mailchimp free-song popup. All settings live in Appearance → Customize → B RO Site Settings.
Version: 1.0.11
Requires at least: 5.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: bro
*/

/* Fonts are bundled with the theme (no Google requests). SIL Open Font License. */
@font-face { font-family: "Archivo Black"; font-weight: 400; font-display: swap; src: url("assets/fonts/archivo-black-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("assets/fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); }

:root {
	--bg: #000;
	--panel: #0e0c10;
	--line: #2a2430;
	--text: #fff;
	--muted: #bdb6c4;
	--red: #ff3b2f;
	--orange: #ff8a1e;
	--purple: #a650ff;
	/* Bright gradient for lines and accents. */
	--grad: linear-gradient(100deg, var(--red), var(--orange) 50%, var(--purple));
	/* Deeper gradient for filled buttons, so white text stays readable. */
	--grad-fill: linear-gradient(100deg, #d4231b, #b93d0b 50%, #7a22c9);
	--head: "Archivo Black", "Arial Black", Impact, sans-serif;
	--body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Soft red/orange/purple glow behind everything. */
.glow {
	position: fixed;
	inset: -20vh -20vw auto;
	height: 90vh;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(40% 50% at 25% 30%, rgba(255, 59, 47, .16), transparent 70%),
		radial-gradient(40% 50% at 75% 25%, rgba(166, 80, 255, .18), transparent 70%),
		radial-gradient(35% 40% at 50% 60%, rgba(255, 138, 30, .10), transparent 70%);
	filter: blur(10px);
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }

.skip, .sr {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
	position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
	padding: 10px 14px; background: #fff; color: #000; z-index: 100;
}

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

/* ---------- Icon bars (top + bottom) ---------- */
.topbar, main, .footer, .inner-head { position: relative; z-index: 1; }

.topbar { padding: 18px 24px; }

.links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 4px;
	justify-content: center;
}
.links--top { justify-content: flex-end; }

.links a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	color: var(--text);
	border-radius: 50%;
	transition: color .2s, transform .2s;
}
.links a svg { width: 21px; height: 21px; }
.links a:hover { color: var(--orange); transform: translateY(-2px); }
.links a:nth-child(3n+2):hover { color: var(--red); }
.links a:nth-child(3n):hover { color: var(--purple); }

/* ---------- Home ---------- */
.home-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 20px 24px;
	text-align: center;
}

.logo {
	margin: 4px 0 22px;
	font-family: var(--head);
	font-weight: 400;
	font-size: clamp(3.2rem, 11vw, 5.6rem);
	line-height: .9;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.logo a, a.logo { text-decoration: none; color: var(--text); }
.logo::after, a.logo::after {
	content: "";
	display: block;
	height: 5px;
	width: 58%;
	margin: 14px auto 0;
	background: var(--grad);
	border-radius: 3px;
}

.hero {
	margin: 0;
	width: min(500px, 100%, 60vh);
	padding: 4px;
	background: var(--grad);
	box-shadow: 0 0 60px rgba(166, 80, 255, .25), 0 0 120px rgba(255, 59, 47, .12);
}
.hero img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero__link { position: relative; display: block; overflow: hidden; }
.hero__link img { transition: transform .4s ease, filter .3s; }
.hero__link:hover img, .hero__link:focus-visible img { transform: scale(1.03); filter: brightness(.8); }
.hero__cta {
	position: absolute; left: 50%; bottom: 18px;
	transform: translate(-50%, 8px);
	padding: 10px 18px 10px 38px;
	background: rgba(0, 0, 0, .78);
	border: 2px solid #fff;
	color: var(--text);
	font-family: var(--head);
	font-size: .9rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0;
	transition: opacity .25s, transform .25s;
}
.hero__cta::before {
	content: ""; position: absolute; left: 16px; top: 50%; margin-top: -7px;
	border-left: 12px solid var(--orange); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.hero__link:hover .hero__cta, .hero__link:focus-visible .hero__cta { opacity: 1; transform: translate(-50%, 0); }
/* Phones and tablets have no hover, so keep the label visible there. */
@media (hover: none) { .hero__cta { opacity: 1; transform: translate(-50%, 0); font-size: .78rem; padding: 8px 14px 8px 32px; } .hero__cta::before { left: 13px; } }

.tagline { margin: 18px 0 0; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }

/* ---------- Main menu buttons ---------- */
.menu { display: flex; flex-wrap: wrap; justify-content: center; }

.menu--home {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	width: min(600px, 100%);
	margin-top: 30px;
}
.menu--home a {
	position: relative;
	display: block;
	padding: 15px 8px;
	font-family: var(--head);
	font-size: 1.05rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text);
	border: 2px solid #fff;
	transition: color .2s, border-color .2s, transform .2s;
	isolation: isolate;
}
.menu--home a::before {
	content: "";
	position: absolute;
	inset: -2px;
	background: var(--grad-fill);
	opacity: 0;
	transition: opacity .2s;
	z-index: -1;
}
.menu--home a:hover, .menu--home a:focus-visible { border-color: transparent; transform: translateY(-2px); }
.menu--home a:hover::before, .menu--home a:focus-visible::before { opacity: 1; }

/* Support button: full width under the four buttons, filled so it stands out. */
.support-btn {
	display: block;
	width: min(600px, 100%);
	margin-top: 12px;
	padding: 15px 8px;
	background: var(--grad-fill);
	color: var(--text);
	font-family: var(--head);
	font-size: 1.05rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform .2s, filter .2s;
}
.support-btn:hover, .support-btn:focus-visible { transform: translateY(-2px); filter: brightness(1.15); }

.free-song {
	margin-top: 22px;
	padding: 6px 2px;
	background: none;
	border: 0;
	border-bottom: 2px solid var(--orange);
	color: var(--text);
	font: 700 .95rem var(--body);
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
}
.free-song:hover { color: var(--orange); }

/* ---------- Inner pages ---------- */
.inner-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 0 20px 10px;
}
.logo--small { font-size: clamp(2.4rem, 8vw, 3.4rem); margin: 0; }
.logo--small::after { height: 4px; margin-top: 10px; }
.logo--small:hover::after { width: 100%; transition: width .25s; }

.menu--inline { gap: 4px 26px; }
.menu--inline a {
	padding: 6px 0;
	font-size: .95rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--muted);
	border-bottom: 3px solid transparent;
}
.menu--inline a:hover { color: var(--text); }
.menu--inline a[aria-current="page"] { color: var(--text); border-image: var(--grad) 1; }

.page-main {
	flex: 1;
	width: min(1040px, 100%);
	margin: 0 auto;
	padding: 34px 20px 50px;
}

.page-title {
	margin: 0 0 30px;
	text-align: center;
	font-family: var(--head);
	font-weight: 400;
	font-size: clamp(2rem, 6vw, 3rem);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.center { text-align: center; }

.block + .block { margin-top: 56px; }
.block__title {
	margin: 0 0 18px;
	font-family: var(--head);
	font-weight: 400;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	display: flex;
	align-items: center;
	gap: 14px;
}
.block__title::after { content: ""; flex: 1; height: 3px; background: var(--grad); border-radius: 2px; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	background: transparent;
	color: var(--text);
	border: 2px solid #fff;
	font: 800 .95rem var(--body);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s, background .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); border-color: var(--orange); }
.btn--fill { background: var(--grad-fill); border-color: transparent; }
.btn--fill:hover { border-color: transparent; filter: brightness(1.12); }
.btn--sm { padding: 10px 16px; font-size: .82rem; }

/* Embeds */
.embed { position: relative; width: 100%; background: var(--panel); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--video { aspect-ratio: 16 / 9; }
.embed--spotify { height: 600px; max-width: 760px; margin: 0 auto 26px; border-radius: 12px; overflow: hidden; }
@media (max-width: 600px) { .embed--spotify { height: 520px; } }
.block .embed + .center, .vgrid + .center { margin-top: 22px; }

/* Video grid */
.vgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 22px;
}
.vcard {
	display: block;
	padding: 0;
	background: none;
	border: 0;
	color: var(--text);
	text-align: left;
	cursor: pointer;
	font: inherit;
}
.vcard__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, opacity .35s; opacity: .9; }
.vcard__thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 transparent; transition: box-shadow .2s; }
.vcard:hover .vcard__thumb img { transform: scale(1.04); opacity: 1; }
.vcard:hover .vcard__thumb::after { box-shadow: inset 0 -4px 0 0 var(--orange); }
.vcard__play {
	position: absolute; left: 50%; top: 50%;
	width: 58px; height: 58px; margin: -29px 0 0 -29px;
	border-radius: 50%;
	background: var(--grad-fill);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.vcard__play::after {
	content: ""; position: absolute; left: 23px; top: 18px;
	border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.vcard__title { display: block; margin-top: 10px; font-size: .98rem; line-height: 1.35; }

/* Video player overlay */
.player, .pop {
	position: fixed; inset: 0; z-index: 50;
	display: grid; place-items: center;
	padding: 16px;
}
.player[hidden], .pop[hidden] { display: none; }
.player__backdrop, .pop__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .86); backdrop-filter: blur(4px); }
.player__box { position: relative; width: min(1000px, 100%); }
.player__box .pop__x { top: -48px; right: 0; }

/* Empty states */
.empty { text-align: center; padding: 30px 0 10px; }
.empty__big {
	margin: 0 0 10px;
	font-family: var(--head);
	font-size: clamp(1.6rem, 5vw, 2.4rem);
	text-transform: uppercase;
	letter-spacing: .03em;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.empty__sub { margin: 0 auto 26px; max-width: 460px; color: var(--muted); }

/* "Under construction" tape */
.tape {
	display: flex; gap: 0; overflow: hidden;
	margin: 0 -40px 34px;
	padding: 10px 0;
	transform: rotate(-3deg);
	background: repeating-linear-gradient(-45deg, var(--orange) 0 22px, #111 22px 44px);
}
.tape span {
	flex: none;
	margin: 0 12px;
	padding: 4px 14px;
	background: #000;
	font-family: var(--head);
	font-size: .9rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Shows */
.shows { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.show {
	display: grid;
	grid-template-columns: 76px 1fr auto;
	align-items: center;
	gap: 18px;
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
}
.show:first-child { border-top: 3px solid; border-image: var(--grad) 1; }
.show__date { text-align: center; line-height: 1; }
.show__mon { display: block; color: var(--orange); text-transform: uppercase; font-size: .85rem; letter-spacing: .1em; }
.show__day { display: block; font-family: var(--head); font-size: 2rem; margin-top: 4px; }
.show__venue { display: block; font-size: 1.15rem; }
.show__city { display: block; color: var(--muted); font-size: .95rem; }
@media (max-width: 520px) {
	.show { grid-template-columns: 60px 1fr; }
	.show .btn { grid-column: 2; justify-self: start; }
}

/* Merch (Shopify products) */
.page-intro { margin: -14px auto 30px; max-width: 520px; text-align: center; color: var(--muted); }
.pgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
	justify-content: center;
	gap: 28px;
}
.pcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); }
.pcard__img { position: relative; display: block; aspect-ratio: 1; max-width: 100%; overflow: hidden; background: #111; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard__img:hover img { transform: scale(1.04); }
.pcard__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); }
.pcard__badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: #000; border: 2px solid #fff; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.pcard.is-sold-out .pcard__img img { filter: grayscale(1) brightness(.6); }
.pcard__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 18px 18px 20px; }
.pcard__title { margin: 0; font-family: var(--head); font-weight: 400; font-size: 1.1rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; }
.pcard__title a { text-decoration: none; }
.pcard__title a:hover { color: var(--orange); }
.pcard__price { margin: 0 0 10px; color: var(--orange); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pcard__buy { justify-content: center; margin-top: auto; }
.pnote { margin-top: 30px; color: var(--muted); font-size: .9rem; }
.pnote a { color: var(--text); }

/* Generic content */
.prose { max-width: 720px; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer { padding: 26px 20px 30px; text-align: center; }
.footer::before {
	content: ""; display: block; height: 1px; max-width: 600px; margin: 0 auto 22px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
}
.fine { margin: 12px 0 0; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Free-song popup ---------- */
.pop__card {
	position: relative;
	width: min(440px, 100%);
	padding: 38px 30px 26px;
	background: #0b0a0d;
	border: 1px solid var(--line);
	text-align: center;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 80px rgba(166, 80, 255, .18);
	animation: pop-in .35s cubic-bezier(.2, .9, .3, 1.2);
}
.pop__card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 5px; background: var(--grad); }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }

.pop__x {
	position: absolute; top: 8px; right: 10px;
	width: 40px; height: 40px;
	background: none; border: 0;
	color: var(--text); font-size: 30px; line-height: 1; cursor: pointer;
}
.pop__x:hover { color: var(--orange); }
.pop__kicker {
	display: inline-block; margin: 0 0 12px; padding: 4px 10px;
	background: var(--grad-fill);
	font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.pop__title { margin: 0 0 8px; font-family: var(--head); font-weight: 400; font-size: 1.7rem; line-height: 1.12; text-transform: uppercase; }
.pop__text { margin: 0 0 22px; color: var(--muted); font-size: 1.05rem; }
.pop__form { display: grid; gap: 10px; }
.pop__form input {
	width: 100%;
	padding: 14px 16px;
	background: #16131a;
	border: 2px solid #342d3b;
	color: var(--text);
	font: 700 1rem var(--body);
}
.pop__form input::placeholder { color: #8f879a; }
.pop__form input:focus { outline: none; border-color: var(--orange); }
.pop__form .btn { justify-content: center; margin-top: 4px; padding: 15px; }
.pop__form .btn[disabled] { opacity: .6; cursor: wait; }
.pop__msg { min-height: 1.4em; margin: 4px 0 0; font-size: .95rem; }
.pop__msg.is-ok { color: #ffb36b; }
.pop__msg.is-err { color: #ff7a70; }
.pop__fine { margin: 6px 0 0; color: #8f879a; font-size: .78rem; }
.hp { position: absolute; left: -5000px; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
	body { font-size: 16px; }
	.topbar { padding: 12px 12px 6px; }
	.links--top { justify-content: center; }
	.links a { width: 40px; height: 40px; }
	.hero { width: min(100%, 420px); }
	.menu--home { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
	.menu--home a { padding: 16px 6px; }
	.support-btn { margin-top: 10px; padding: 16px 6px; }
	.menu--inline { gap: 2px 18px; }
	.pop__card { padding: 34px 20px 22px; }
	.pop__title { font-size: 1.45rem; }
}

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