/*
Theme Name:        Starlit Studio
Theme URI:         https://starlitstudio.co.uk
Author:            Starlit Studio
Description:       Dark, romantic theme for Starlit Studio. Designed to work with the Starlit Music plugin (albums, songs, signups).
Version:           1.0.0
Requires at least: 6.0
Requires PHP:      7.4
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       starlit-studio
*/

:root {
	--bg: #130A0E;
	--band: #1C0E14;
	--panel: #20111A;
	--panel-border: #331C26;
	--rule: #2A1720;
	--border: #55303F;
	--ring: #7A4A5C;
	--text: #F6EEF0;
	--muted: #CDB9C0;
	--dim: #A28C95;
	--faint: #8A707C;
	--accent: #EBB8C6;
	--heart: #B0405E;
	--lyrics: #E6CDD4;
	--eyebrow: #D9AFBB;
	--error: #F2A0A8;
	--serif: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
	--sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 16px; top: 16px; z-index: 100; padding: 12px 20px;
	background: var(--text); color: var(--bg); border-radius: 999px; text-decoration: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header .container {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px; padding-top: 28px; padding-bottom: 28px;
}
.brand {
	font-family: var(--serif); font-size: 24px; letter-spacing: .04em;
	text-decoration: none; color: var(--text);
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.nav a {
	display: inline-block; padding: 10px 0;
	font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
	text-decoration: none; color: var(--muted);
}
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--text); }
.nav a[href$="#subscribe"] { color: var(--accent); }

/* Hero */
.hero {
	position: relative; overflow: hidden;
	background: radial-gradient(ellipse 60% 55% at 50% 50%, #4A1424 0%, #24101A 45%, var(--bg) 80%);
}
.hero-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner {
	position: relative; display: flex; flex-direction: column; align-items: center;
	text-align: center; gap: 22px; padding-top: 150px; padding-bottom: 140px;
}
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.hero .eyebrow { font-size: 15px; letter-spacing: .42em; color: var(--eyebrow); }
.hero-title {
	margin: 0; font-family: var(--serif); font-weight: 400;
	font-size: clamp(52px, 8.5vw, 124px); line-height: 1; letter-spacing: -.01em;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
	margin: 0; font-family: var(--serif); font-style: italic;
	font-size: clamp(20px, 2.2vw, 28px); color: var(--lyrics);
}
.handle { margin: 0; font-size: 14px; letter-spacing: .1em; color: var(--dim); }
.heart { margin-top: 48px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hero .btn-row { justify-content: center; margin-top: 18px; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
	font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none;
	cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; color: var(--bg); }
.btn-ghost { border-color: var(--border); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--ring); color: #fff; }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: #F3CAD5; color: var(--bg); }

/* Sections */
.section { border-top: 1px solid var(--rule); }
.section--band { background: var(--band); }
.section-inner { padding-top: 96px; padding-bottom: 96px; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.section-head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
	gap: 16px; margin-bottom: 48px;
}
.section-link {
	font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--muted); text-decoration: none;
}
.section-link:hover { color: var(--text); }

.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 44px); line-height: 1.1; }
.h2--lg { font-size: clamp(38px, 4.6vw, 52px); }
.display { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: 1; }
.display--xl { font-size: clamp(52px, 8vw, 104px); }
.lead { margin: 0; font-size: 18px; color: var(--muted); max-width: 32rem; }
.meta { margin: 0; font-size: 14px; color: var(--dim); }
.meta a { color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split--end { align-items: flex-end; }
.split--top { align-items: flex-start; }
.split-col { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Artwork */
.art {
	flex: 1 1 340px; max-width: 500px; aspect-ratio: 1 / 1; overflow: hidden;
	background: var(--panel); border: 1px solid var(--panel-border);
	display: flex; align-items: center; justify-content: center;
	color: var(--faint); font-family: var(--serif); font-style: italic; font-size: 72px;
}
.art img { width: 100%; height: 100%; object-fit: cover; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 32px; }
.card-grid--songs { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--text); }
.card .art { max-width: none; width: 100%; flex: none; font-size: 48px; }
.card-title { font-family: var(--serif); font-size: 26px; line-height: 1.15; transition: color .2s; }
.card-meta { font-size: 14px; color: var(--dim); margin-top: -12px; }
.card:hover .card-title, .card:hover .song-title { color: var(--accent); }
.thumb {
	position: relative; aspect-ratio: 16 / 9; overflow: hidden;
	background: var(--panel); border: 1px solid var(--panel-border);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.card:hover .thumb img { opacity: 1; }
.play {
	position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
	border-radius: 999px; border: 1px solid var(--ring); background: rgba(19, 10, 14, .6);
	display: flex; align-items: center; justify-content: center; color: var(--text);
}
.song-title { font-size: 17px; font-weight: 500; transition: color .2s; }

/* About */
.about-inner {
	max-width: 760px; margin: 0 auto; text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 24px;
	padding-top: 120px; padding-bottom: 120px;
}
.about-text { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.35; }

/* Signup */
.signup-form { position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.signup-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.signup-row { display: flex; flex-wrap: wrap; gap: 12px; }
.signup-input {
	flex: 1 1 240px; min-height: 52px; padding: 0 20px;
	background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
	color: var(--text); font-family: var(--sans); font-size: 16px;
}
.signup-input::placeholder { color: var(--faint); }
.signup-input:focus { border-color: var(--accent); outline: none; }
.signup-row .btn { min-height: 52px; padding: 0 32px; }
.signup-note { margin: 4px 0 0; font-size: 13px; color: var(--dim); }
.signup-status { margin: 4px 0 0; font-size: 15px; color: var(--accent); }
.signup-status--invalid, .signup-status--error, .signup-status--slow { color: var(--error); }

/* Inner page heroes */
.page-hero { background: radial-gradient(ellipse 55% 70% at 30% 55%, #3E1220 0%, #1F0E16 50%, var(--bg) 85%); }
.page-hero .container { padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.page-hero--simple .container { padding-top: 72px; padding-bottom: 72px; gap: 16px; }
.back-link {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; align-self: flex-start;
	font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.back-link:hover { color: var(--text); }
.entry { color: var(--muted); font-size: 18px; max-width: 34rem; }
.entry p { margin: 0 0 1em; }
.entry p:last-child { margin-bottom: 0; }

/* Player, tracklist, lyrics */
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid var(--panel-border); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tracklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.tracklist li { border-bottom: 1px solid var(--rule); }
.track {
	width: 100%; min-height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 12px;
	border: 0; background: transparent; color: var(--text); text-decoration: none;
	font-family: var(--sans); font-size: 17px; text-align: left; cursor: pointer;
}
.track:hover { background: #1E0F16; color: var(--text); }
.track.is-active { background: #26121C; color: var(--accent); }
.track-num, .track-len { font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
.track-num { width: 32px; flex: none; }
.track-title { flex: 1; }
.track.is-active .track-num { color: var(--accent); }
.lyrics { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.6; color: var(--lyrics); white-space: pre-line; }

/* Generic content */
.prose { max-width: 720px; color: var(--muted); font-size: 18px; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 400; color: var(--text); line-height: 1.2; }
.prose a { color: var(--accent); }
.prose img { margin: 32px 0; }
.notice { margin: 0; color: var(--muted); font-size: 18px; }

/* Pagination */
.nav-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; }
.page-numbers {
	min-width: 44px; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--border); border-radius: 999px; color: var(--muted); text-decoration: none;
}
.page-numbers.current { background: var(--text); border-color: var(--text); color: var(--bg); }
.page-numbers.dots { border: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .container {
	display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
	padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--dim);
}
.site-footer .brand { font-size: 20px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
	.section-inner { padding-top: 72px; padding-bottom: 72px; }
	.hero-inner { padding-top: 96px; padding-bottom: 96px; }
	.about-inner { padding-top: 88px; padding-bottom: 88px; }
	.split { gap: 40px; }
	.nav ul { gap: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
