@import url("../../css/roboto.css");

:root {
	color-scheme: dark;
	--page: #101012;
	--panel: #1c1b20;
	--line: #45434b;
	--text: #f7f5ef;
	--muted: #cbc6d0;
	--accent: #f5cf48;
	font: 16px/1.5 Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { background: var(--page); color: var(--text); margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.shell { max-width: 78rem; margin: auto; padding: clamp(1rem, 4vw, 3rem); }
.hero { border-left: .5rem solid var(--accent); padding-left: clamp(1rem, 3vw, 2rem); margin-bottom: 2rem; }
.hero p { margin: 0; color: var(--muted); }
.hero .brand { color: var(--accent); text-transform: uppercase; font-weight: 800; letter-spacing: .13em; }
h1, h2 { font-family: Impact, "Arial Narrow", system-ui, sans-serif; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
h1 { margin: .3rem 0 .6rem; font-size: clamp(2.35rem, 7vw, 5.5rem); }
h2 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.65rem); overflow-wrap: anywhere; }

.toolbar {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .25rem 1rem;
	padding: .85rem 1rem;
	margin-bottom: 1rem;
	background: var(--page);
	border-block: 1px solid var(--line);
}
.toolbar output { font-weight: 800; }
.toolbar a { margin-inline-start: auto; font-weight: 700; }

.albums { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: .5rem; }
.album-cover { display: block; width: 100%; height: auto; border-radius: .45rem .45rem 0 0; }
.album-heading { padding: 1rem; border-bottom: 2px solid var(--accent); }
.album-heading p { margin: 0 0 .25rem; color: var(--accent); font-weight: 750; }
.tracks { list-style: none; margin: 0; padding: .4rem; }
.track { display: flex; gap: .75rem; align-items: center; min-height: 44px; padding: .5rem .65rem; border-radius: .25rem; cursor: pointer; }
.track:hover, .track:has(:checked) { background: #333027; }
.track:has(:disabled) { color: var(--muted); cursor: default; }
.track input {
	appearance: none;
	display: grid;
	place-content: center;
	flex: 0 0 1.25rem;
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid #bcb7c4;
	border-radius: .25rem;
	margin: 0;
	cursor: inherit;
}
.track input:checked { background: var(--accent); border-color: var(--accent); }
.track input:checked::after {
	content: "";
	width: .6rem;
	height: .35rem;
	border-left: 2px solid #15120c;
	border-bottom: 2px solid #15120c;
	transform: translateY(-1px) rotate(-45deg);
}
.submission, .review { padding: 1.25rem; max-width: 42rem; }
.submission { margin-top: 1rem; scroll-margin-top: 6rem; }
.submission label { display: block; margin-top: 1rem; }
.submission input { display: block; width: 100%; padding: .65rem; margin: .25rem 0 1rem; background: var(--page); color: var(--text); border: 1px solid #88838e; border-radius: .25rem; font: inherit; }
button, .button { display: inline-block; padding: .65rem 1rem; border: 0; border-radius: .25rem; background: var(--accent); color: #15120c; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.message { padding: .75rem 1rem; margin: 0 0 1rem; background: var(--panel); border-left: .25rem solid var(--accent); }
.message.error { border-color: #ff8d8d; }
.review li { margin-bottom: .5rem; }
.review li span { display: block; color: var(--muted); }

body { display: flex; flex-direction: column; min-height: 100vh; }
.shell { width: 100%; flex: 1; }
.share-controls { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin-top: 1rem; }
.share-controls [hidden] { display: none; }
.share-controls input { width: min(100%, 26rem); padding: .5rem; font: inherit; }
.site-banner { background: #c40026; color: #fff; text-align: center; }
.site-banner a { display: block; color: inherit; padding: 1rem; font-weight: 850; }
.site-banner a:focus-visible { outline-offset: -5px; }

#share-ballot:not([hidden]) {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
}
