/*
Theme Name: HSL Forward
Author: Houston Sports Live
Description: Private presentation theme for Houston Sports Live and authorized Texas Sports Live operations.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: hsl-forward
*/

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--hsl-color-navy-950);
	color: var(--hsl-color-white);
	font-family: var(--hsl-font-body);
	font-size: var(--hsl-font-size-body);
	line-height: 1.6;
}

body.admin-bar .hsl-site-header {
	top: 32px;
}

a {
	color: var(--hsl-color-blue-400);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

a:hover {
	color: var(--hsl-color-white);
}

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

button,
input,
select,
textarea {
	font: inherit;
}

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

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

.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.75rem 1rem;
	background: var(--hsl-color-white);
	color: var(--hsl-color-navy-950);
	font-weight: 700;
}

.hsl-shell {
	width: min(100% - 2rem, var(--hsl-content-wide));
	margin-inline: auto;
}

.hsl-live-ticker {
	position: relative;
	z-index: 30;
	background: var(--hsl-color-ink);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	font-size: var(--hsl-font-size-small);
}

.hsl-live-ticker__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: stretch;
	min-height: 2.5rem;
}

.hsl-live-ticker__label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 1.25rem 0.45rem 0;
	color: var(--hsl-color-white);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.hsl-live-ticker__label::before {
	width: 0.55rem;
	height: 0.55rem;
	background: var(--hsl-color-live);
	border-radius: 50%;
	box-shadow: 0 0 0 0.22rem rgba(255, 0, 0, 0.2);
	content: "";
}

.hsl-live-ticker__viewport {
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: thin;
}

.hsl-live-ticker__items {
	display: flex;
	align-items: stretch;
	min-width: max-content;
	min-height: 100%;
	padding: 0;
	margin: 0;
	list-style: none;
}

.hsl-live-ticker__item {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.4rem 1.25rem;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--hsl-color-gray-200);
}

.hsl-live-ticker__item a {
	color: inherit;
	text-decoration: none;
}

.hsl-live-ticker__state {
	color: var(--hsl-color-orange-500);
	font-family: var(--hsl-font-display);
	font-style: italic;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hsl-live-ticker__detail {
	color: var(--hsl-color-gray-400);
}

.hsl-site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(1, 9, 76, 0.96);
	border-bottom: 1px solid rgba(1, 157, 218, 0.35);
	box-shadow: var(--hsl-shadow-header);
	backdrop-filter: blur(12px);
}

.hsl-site-header__inner {
	display: grid;
	grid-template-columns: minmax(13rem, auto) 1fr auto;
	align-items: center;
	gap: clamp(1rem, 3vw, 3rem);
	min-height: 5.25rem;
}

.hsl-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	color: var(--hsl-color-white);
	text-decoration: none;
}

.hsl-brand__wordmark {
	display: flex;
	flex-direction: column;
	font-family: var(--hsl-font-display);
	font-size: clamp(1.35rem, 2.3vw, 2rem);
	font-style: italic;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 0.82;
	text-transform: uppercase;
}

.hsl-brand__wordmark span:last-child {
	color: var(--hsl-color-blue-400);
}

.hsl-brand__wordmark em {
	color: var(--hsl-color-orange-500);
	font-style: inherit;
}

.hsl-brand__tagline {
	max-width: 9rem;
	color: var(--hsl-color-gray-400);
	font-size: 0.68rem;
	font-style: italic;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: uppercase;
}

.custom-logo-link img {
	width: auto;
	max-height: 3.75rem;
}

.hsl-primary-nav {
	justify-self: end;
}

.hsl-primary-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(0.8rem, 1.7vw, 1.7rem);
	padding: 0;
	margin: 0;
	list-style: none;
}

.hsl-primary-nav a {
	display: block;
	padding-block: 0.65rem;
	color: var(--hsl-color-white);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.hsl-primary-nav a:hover,
.hsl-primary-nav .current-menu-item > a {
	color: var(--hsl-color-blue-400);
}

.hsl-header-actions {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.hsl-search-link,
.hsl-menu-toggle {
	display: inline-grid;
	width: 2.75rem;
	height: 2.75rem;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: transparent;
	color: var(--hsl-color-white);
	text-decoration: none;
}

.hsl-search-link::before {
	width: 0.8rem;
	height: 0.8rem;
	border: 2px solid currentColor;
	border-radius: 50%;
	content: "";
}

.hsl-search-link::after {
	position: absolute;
	width: 0.45rem;
	height: 2px;
	margin: 0.9rem 0 0 0.9rem;
	background: currentColor;
	content: "";
	transform: rotate(45deg);
}

.hsl-search-link {
	position: relative;
}

.hsl-menu-toggle {
	display: none;
	cursor: pointer;
}

.hsl-menu-toggle__bars,
.hsl-menu-toggle__bars::before,
.hsl-menu-toggle__bars::after {
	display: block;
	width: 1.3rem;
	height: 2px;
	background: currentColor;
	content: "";
}

.hsl-menu-toggle__bars::before {
	transform: translateY(-0.4rem);
}

.hsl-menu-toggle__bars::after {
	transform: translateY(0.3rem);
}

.hsl-main {
	min-height: 55vh;
	padding-block: clamp(3rem, 8vw, 7rem);
	background:
		radial-gradient(circle at 80% 10%, rgba(1, 157, 218, 0.18), transparent 30rem),
		linear-gradient(145deg, var(--hsl-color-navy-900), var(--hsl-color-navy-950));
}

.hsl-page-header {
	margin-bottom: 2rem;
}

.hsl-page-title,
.hsl-entry-title {
	max-width: 18ch;
	margin: 0;
	font-family: var(--hsl-font-display);
	font-size: var(--hsl-font-size-display);
	font-style: italic;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 0.96;
	text-transform: uppercase;
}

.hsl-page-title::after,
.hsl-entry-title::after {
	display: block;
	width: 4.5rem;
	height: 0.25rem;
	margin-top: 0.75rem;
	background: var(--hsl-color-orange-500);
	content: "";
	transform: skewX(-16deg);
}

.hsl-entry {
	padding: clamp(1.5rem, 4vw, 3.5rem);
	background: rgba(4, 15, 50, 0.86);
	border: 1px solid rgba(1, 157, 218, 0.28);
	box-shadow: var(--hsl-shadow-panel);
}

.hsl-entry + .hsl-entry {
	margin-top: 1.5rem;
}

.hsl-entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	margin: 0.85rem 0 1.5rem;
	color: var(--hsl-color-gray-400);
	font-size: var(--hsl-font-size-small);
}

.hsl-entry__content {
	max-width: var(--hsl-content-reading);
}

.hsl-entry__content > * + * {
	margin-block-start: 1.25em;
}

.hsl-entry__content h2,
.hsl-entry__content h3,
.hsl-entry__content h4 {
	font-family: var(--hsl-font-display);
	font-style: italic;
	line-height: 1.05;
	text-transform: uppercase;
}

.hsl-entry__content blockquote {
	padding-left: 1.5rem;
	margin-inline: 0;
	border-left: 0.3rem solid var(--hsl-color-orange-500);
	font-size: 1.2em;
}

.hsl-entry__content .alignwide {
	width: min(var(--hsl-content-wide), calc(100vw - 2rem));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.hsl-entry__content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.hsl-site-footer {
	background: var(--hsl-color-ink);
	border-top: 2px solid var(--hsl-color-blue-600);
}

.hsl-site-footer__accent {
	height: 0.45rem;
	background: linear-gradient(105deg, var(--hsl-color-blue-600) 0 58%, var(--hsl-color-orange-500) 58% 63%, transparent 63%);
}

.hsl-site-footer__main {
	display: grid;
	grid-template-columns: minmax(14rem, 1.3fr) repeat(2, minmax(9rem, 1fr));
	gap: 2rem;
	padding-block: 3rem;
}

.hsl-site-footer__heading {
	margin: 0 0 0.75rem;
	font-family: var(--hsl-font-display);
	font-style: italic;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hsl-site-footer__copy {
	max-width: 32rem;
	color: var(--hsl-color-gray-400);
}

.hsl-site-footer ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.hsl-site-footer li + li {
	margin-top: 0.5rem;
}

.hsl-site-footer a {
	color: var(--hsl-color-gray-200);
	text-decoration: none;
}

.hsl-site-footer a:hover {
	color: var(--hsl-color-blue-400);
}

.hsl-site-footer__legal {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: var(--hsl-color-gray-400);
	font-size: var(--hsl-font-size-small);
}

@media (max-width: 1080px) {
	.hsl-site-header__inner {
		grid-template-columns: 1fr auto;
	}

	.hsl-menu-toggle {
		display: inline-grid;
	}

	.hsl-primary-nav {
		display: none;
		grid-column: 1 / -1;
		justify-self: stretch;
		padding-bottom: 1rem;
	}

	.hsl-primary-nav.is-open {
		display: block;
	}

	.hsl-primary-nav ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.25rem 1rem;
	}

	.hsl-header-actions {
		grid-column: 2;
		grid-row: 1;
	}

	.hsl-header-actions .hsl-button {
		display: none;
	}
}

@media (max-width: 782px) {
	body.admin-bar .hsl-site-header {
		top: 46px;
	}

	.hsl-live-ticker__inner {
		width: 100%;
		grid-template-columns: auto minmax(0, 1fr);
		padding-left: 1rem;
	}

	.hsl-brand__tagline,
	.hsl-search-link {
		display: none;
	}

	.hsl-site-footer__main {
		grid-template-columns: 1fr 1fr;
	}

	.hsl-site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.hsl-shell {
		width: min(100% - 1.25rem, var(--hsl-content-wide));
	}

	.hsl-site-header__inner {
		min-height: 4.5rem;
	}

	.hsl-primary-nav ul,
	.hsl-site-footer__main {
		grid-template-columns: 1fr;
	}

	.hsl-site-footer__brand {
		grid-column: auto;
	}

	.hsl-site-footer__legal {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
