/*
Theme Name: Slaton Music
Description: Standalone editorial artist theme for Slaton Music.
Version: 1.0.11
Requires at least: 6.6
Requires PHP: 8.3
License: GPL-2.0-or-later
Text Domain: slaton-music
*/

:root {
	color-scheme: dark;
	--bg: #101012;
	--ink: #faf8f7;
	--muted: #c3bec1;
	--red: #ff5c65;
	--line: #39343a;
	--bar: 72px;
	--gutter: clamp(1.25rem,5vw,5rem);
	--measure: 76rem;
}

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

html {
	scroll-padding-top: calc(var(--bar) + 1rem);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 1rem/1.65 system-ui,sans-serif;
}

a {
	color: inherit;
	text-underline-offset: .24em;
}

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

button {
	cursor: pointer;
}

button:disabled {
	cursor: default;
}

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

h1,h2,h3 {
	line-height: 1.05;
	letter-spacing: -.055em;
	margin: 0 0 .55em;
}

h1 {
	font-size: clamp(3.5rem,11vw,9.4rem);
	font-weight: 850;
}

h2 {
	font-size: clamp(2rem,5.5vw,4.8rem);
}

h3 {
	font-size: clamp(1.35rem,3.5vw,2.35rem);
}

p {
	margin: 0 0 1.1em;
}

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

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

.sm-skip {
	position: fixed;
	z-index: 99;
	top: 8px;
	left: 8px;
	padding: 10px;
	background: #fff;
	color: #111;
	transform: translateY(-150%);
}

.sm-skip:focus {
	transform: none;
}

.sm-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: #101012;
	border-bottom: 1px solid #ffffff16;
}

.admin-bar .sm-header {
	top: 32px;
}

.sm-header-inner,.sm-section,.sm-footer-inner {
	width: min(100% - 2 * var(--gutter),var(--measure));
	margin-inline: auto;
}

.sm-header-inner {
	min-height: var(--bar);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.sm-brand img {
	width: clamp(9rem,19vw,15rem);
	max-height: 60px;
	object-fit: contain;
}

.sm-nav ul {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: clamp(1rem,3vw,2.6rem);
	list-style: none;
}

.sm-nav a {
	font-size: .85rem;
	font-weight: 750;
	letter-spacing: .09em;
	text-transform: uppercase;
	text-decoration: none;
}

.sm-nav a:hover,.sm-nav .current-menu-item>a,.sm-nav [aria-current] {
	color: var(--red);
}


.sm-hero {
	margin: 0;
	height: calc(100vh - var(--bar));
	height: calc(100svh - var(--bar));
	background: #222;
	position: relative;
}

.sm-hero img,.sm-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focus,50% 50%);
}

.sm-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 21%;
	background: linear-gradient(transparent,#10101275);
	pointer-events: none;
}

.sm-banner {
	height: clamp(18rem,58vw,49rem);
	margin: 0;
}

.sm-section {
	padding-block: clamp(2.6rem,7vw,7.5rem);
}

.sm-section+.sm-section {
	border-top: 1px solid var(--line);
}

.sm-opening {
	padding-bottom: clamp(1.75rem,4vw,4rem);
}

.sm-intro {
	max-width: var(--measure);
}

/* Reading copy scales independently of the headings and interface labels. */
:where(.sm-section) :is(p, address, .sm-facts) {
	font-size: clamp(1.125rem, 1.55vw, 1.375rem);
}

:where(.sm-prose) p {
	max-width: 65ch;
}

.sm-prose>p {
	color: var(--muted);
}

.sm-lead {
	max-width: 65ch;
	color: var(--muted);
	font-size: clamp(1.15rem,2.4vw,1.6rem);
}

.sm-kicker,.sm-status {
	color: var(--red);
	font-size: .83rem;
	letter-spacing: .13em;
	text-transform: uppercase;
	font-weight: 800;
}

.sm-grid {
	display: grid;
	grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
	align-items: center;
	gap: clamp(1.5rem,5vw,5rem);
}

.sm-grid>* {
	min-width: 0;
}

.sm-cover {
	aspect-ratio: 1;
	object-fit: contain;
	width: 100%;
	background: #1b191d;
}

.sm-opening .sm-editorial-image {
	width: min(100%,65rem);
	margin: 0 0 1.5rem clamp(-6.5rem,-10%,0rem);
}

.sm-clip {
	width: min(100%,19rem);
	aspect-ratio: 9/16;
	position: relative;
	grid-column: 1 / -1;
	margin: 0;
	justify-self: center;
	background: #252028;
	display: grid;
	place-items: end center;
	overflow: hidden;
}

.sm-clip img,.sm-clip video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sm-clip img {
	object-fit: contain;
}

.sm-clip figcaption {
	z-index: 1;
	margin: .5rem;
	padding: .35rem .6rem;
	background: #151217;
	color: white;
}

.sm-clip video[hidden] {
	display: none;
}

.sm-platforms {
	display: flex;
	flex-wrap: wrap;
	gap: .55rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.sm-button,.sm-platforms a,.sm-platforms span,.sm-form button,.sm-controls button {
	display: inline-block;
	padding: .55rem .9rem;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	text-decoration: none;
	font-weight: 680;
}

.sm-platforms span {
	color: var(--muted);
	border-style: dashed;
}

.sm-button,.sm-form button {
	background: #e31b23;
	border-color: #e31b23;
	color: white;
	padding: .7rem 1.05rem;
}

.sm-button:hover,.sm-platforms a:hover,.sm-controls button:hover {
	border-color: var(--red);
	background: #35181d;
}

.sm-video {
	aspect-ratio: 16/9;
	background: #1b181c;
	position: relative;
	overflow: hidden;
}

.sm-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.sm-video button {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #161316;
	color: white;
	border: 0;
	padding: 0;
}

.sm-video button img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .62;
}

.sm-play-label {
	position: absolute;
	inset: 50% auto auto 50%;
	transform: translate(-50%,-50%);
	background: #a11019;
	color: white;
	padding: .55em 1em;
	border-radius: 100px;
	white-space: nowrap;
}

.sm-video button:focus-visible {
	outline-offset: -5px;
}

.sm-watch-link {
	display: inline-block;
	margin-top: .6rem;
	color: var(--muted);
	font-size: .9rem;
}

.sm-carousel-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2rem)/3);
	gap: 1rem;
	overflow: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.sm-carousel-track::-webkit-scrollbar {
	display: none;
}

.sm-carousel-track img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	scroll-snap-align: start;
}

.sm-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .5rem;
	margin-top: 1rem;
}

.sm-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.sm-dots button {
	border: 0;
	padding: .5rem;
	background: none;
	color: var(--muted);
	font-size: 1.2rem;
	line-height: 1;
}

.sm-dots [aria-current=true] {
	color: var(--red);
}

.sm-dots button[hidden],.sm-controls[hidden] {
	display: none;
}

.sm-release {
	display: grid;
	grid-template-columns: clamp(6rem,25vw,18rem) minmax(0,1fr);
	align-items: start;
	gap: clamp(1rem,4vw,3rem);
	border-top: 1px solid var(--line);
	padding-block: 1.6rem;
}

.sm-release h3 {
	letter-spacing: -.035em;
}

.sm-placeholder {
	aspect-ratio: 1;
	background: #241f25;
	display: grid;
	place-items: center;
	padding: .6rem;
	text-align: center;
	color: var(--muted);
	font-size: .85rem;
}

.sm-tracks {
	padding-left: clamp(1rem,4vw,3rem);
	margin-bottom: 0;
}

.sm-tracks .sm-release {
	grid-template-columns: clamp(4.5rem,12vw,9rem) minmax(0,1fr);
}

.sm-facts {
	display: grid;
	grid-template-columns: minmax(6rem,.3fr) minmax(0,1fr);
	gap: .5rem 1rem;
}

.sm-facts dt {
	font-weight: 750;
}

.sm-facts dd {
	margin: 0;
	color: var(--muted);
}

.sm-form {
	display: grid;
	gap: .75rem;
	max-width: 40rem;
}

.sm-form label {
	font-weight: 700;
}

.sm-form :is(input,select,textarea) {
	display: block;
	width: 100%;
	margin-top: .25rem;
	padding: .6rem;
	background: #1d191e;
	color: var(--ink);
	border: 1px solid #807482;
}

.sm-form button {
	justify-self: start;
}

.sm-form-note {
	margin: 1.25rem 0;
}

.sm-trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sm-footer {
	border-top: 1px solid var(--line);
	background: #0a090b;
}

.sm-footer-inner {
	padding-block: 3rem;
	color: var(--muted);
}

.sm-footer-inner>*+* {
	margin-top: 1rem;
}

@media(max-width:760px) {
	:root {
		--bar: 105px;
	}
	.sm-grid {
		grid-template-columns: 1fr;
	}
	.sm-grid>.sm-cover {
		max-width: 31rem;
	}
	.sm-carousel-track {
		grid-auto-columns: calc((100% - 1rem)/2);
	}
	.sm-header-inner {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 0;
	}

	.sm-nav {
		width: 100%;
	}
	.sm-nav ul {
		justify-content: space-between;
		gap: .25rem;
	}
	.sm-nav a {
		display: block;
		padding-block: .6rem;
		font-size: clamp(.625rem, 3vw, .875rem);
		letter-spacing: .06em;
	}
	.home .sm-hero {
		height: auto;
	}
	.home .sm-hero img {
		height: auto;
	}
	.sm-release,.sm-tracks .sm-release {
		grid-template-columns: minmax(0, 1fr);
	}
	.sm-platforms {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sm-platforms li {
		min-width: 0;
	}
	.sm-platforms li > :is(a, span) {
		display: grid;
		place-content: center;
		height: 100%;
		text-align: center;
	}
	.sm-hero img {
		object-position: var(--focus-mobile,var(--focus,50% 50%));
	}
}

@media(max-width:600px) {
	.admin-bar .sm-header {
		top: 0;
	}
}

@media(min-width:601px) and (max-width:782px) {
	.admin-bar .sm-header {
		top: 46px;
	}
}

@media(max-width:480px) {
	.sm-carousel-track {
		grid-auto-columns: 100%;
	}
	.sm-controls:not([hidden]) {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	.sm-controls > button {
		grid-row: 2;
		justify-self: start;
		padding: .4rem;
	}
	.sm-controls > button:last-child {
		grid-column: 2;
		justify-self: end;
	}
	.sm-dots {
		grid-column: 1 / -1;
		grid-row: 1;
		flex-wrap: nowrap;
	}
	.sm-dots button {
		padding: 0;
		min-width: 1.75rem;
		min-height: 1.75rem;
		font-size: 1rem;
	}
}

.sm-editorial-image {
	width: min(100%,52rem);
	margin-block: 1.5rem 2rem;
}


@media(min-width:761px) {

}

.sm-listen {
	margin-top: 1rem;
}

.sm-listen > p {
	margin-bottom: .45rem;
	color: var(--muted);
	font-size: .85rem;
	font-weight: 700;
}

.sm-listen > .sm-platforms {
	margin-top: 0;
}

@media (min-width: 1050px) {
	.sm-feature {
		grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) minmax(0,.85fr);
		gap: clamp(1.5rem,3vw,3rem);
	}

	.sm-feature .sm-clip {
		grid-column: auto;
	}
}

.sm-footer-logo {
	width: min(13rem,100%);
}

@media (min-width: 761px) {
	.sm-brand img {
		width: clamp(9.5rem,21vw,17rem);
		max-height: 68px;
	}

	.sm-footer-logo {
		width: min(15rem,100%);
	}
}

.sm-form {
	margin-block-end: 1.5rem;
}
