/* Use the supplied Impact files on every device, without simulated bold. */
@font-face {
	font-family: 'Impact';
	src: url('../fonts/Impact.woff2') format('woff2'), url('../fonts/Impact.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* SPR design baseline 04. All presentation rules live in external stylesheets. */
:root {
	--black: #090909;
	--red: #df0025;
	--gold: #dcb45d;
	--paper: #f6f3ed;
	--muted: #c8c5c0;
	--display: 'Impact', 'Arial Narrow', 'Liberation Sans Narrow', sans-serif;
}
* {
	box-sizing: border-box;
}
/* Use gold for in-page scrolling and red for the main viewport. */
:where(*) {
	scrollbar-color: var(--gold) #222;
	scrollbar-width: thin;
}

:where(html) {
	scrollbar-color: var(--red) #222;
}

@supports not (scrollbar-width: thin) {
	::-webkit-scrollbar {
		width: 8px;
		height: 8px;
	}
	::-webkit-scrollbar-thumb {
		background: var(--gold);
		border-radius: 8px;
	}
	html::-webkit-scrollbar-thumb:vertical {
		background: var(--red);
	}
	::-webkit-scrollbar-track {
		background: #222;
	}
}

@media (forced-colors: active) {
	:where(*) {
		scrollbar-color: auto;
		scrollbar-width: auto;
	}
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}
body {
	margin: 0;
	background: var(--black) url('../img/site/fabric.webp') center top / 1400px auto;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.55;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	font: inherit;
	cursor: pointer;
}
img {
	display: block;
	max-width: 100%;
}
h1, h2, h3, p {
	margin: 0;
}
h1, h2, h3, .wordmark {
	font-family: var(--display);
	font-weight: 400;
	line-height: 1.05;
}
h1 {
	font-size: clamp(52px, 6.4vw, 102px);
	letter-spacing: -0.025em;
}
h2 {
	font-size: clamp(34px, 3.5vw, 53px);
	letter-spacing: -0.025em;
}
h3 {
	font-size: 27px;
}
p + p {
	margin-top: 12px;
}
:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 5px;
}
[hidden] {
	display: none !important;
}
.section-wrap {
	width: min(1320px, calc(100% - 48px));
	margin-inline: auto;
}
.eyebrow {
	color: var(--gold);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.19em;
	margin-bottom: 9px;
}
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 23px;
	background: var(--red);
	border: 1px solid var(--red);
	color: white;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-align: center;
	transition: background 160ms ease, transform 160ms ease;
}
.button:hover {
	background: #b90020;
	transform: translateY(-2px);
}
.button-outline {
	background: transparent;
	border-color: #fff;
}
.button-outline:hover {
	background: #ffffff14;
}
.button-row {
	margin-top: 27px;
}
.text-link {
	font-size: 12px;
	font-weight: 800;
	color: var(--red);
	letter-spacing: 0.08em;
}
.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 50;
	padding: 12px;
	background: white;
	color: black;
}
.skip-link:focus {
	top: 10px;
}
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #090909f5;
	border-bottom: 1px solid #ffffff16;
}
.header-inner {
	width: min(1400px, calc(100% - 48px));
	margin: auto;
	min-height: 88px;
	gap: 22px;
}
/* One continuous diagonal with a white upper half and a red lower half. */
.wordmark {
	position: relative;
	display: inline-block;
	padding-left: 15px;
	font-size: 25px;
	line-height: 0.92;
	letter-spacing: -0.03em;
	flex-shrink: 0;
}
.wordmark::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 3px;
	width: 4px;
	background: linear-gradient(to bottom, #fff 0%, #fff 50%, var(--red) 50%, var(--red) 100%);
	transform: skewX(-12deg);
	pointer-events: none;
}
.wordmark span {
	display: block;
}
.desktop-navigation {
	display: none;
	gap: 28px;
}
.desktop-navigation a, .account-link, .footer-top nav a {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.05em;
}
.desktop-navigation a:hover, .desktop-navigation a[aria-current], .account-link:hover {
	color: var(--gold);
}
.account-actions {
	gap: 24px;
	margin-left: auto;
}
.listen-button {
	display: none;
}
.menu-toggle {
	color: white;
	background: none;
	border: 1px solid #555;
	width: 44px;
	height: 44px;
	font-size: 23px;
}
.mobile-navigation {
	padding: 15px 24px 24px;
	border-top: 1px solid #333;
}
.mobile-navigation a {
	display: block;
	padding: 12px 0;
	font-size: 15px;
	font-weight: bold;
}
.hero {
	position: relative;
	overflow: hidden;
	min-height: 700px;
}
.hero-portrait {
	position: absolute;
	inset: 240px 0 0;
	background: url('../img/site/hosts.webp') center 26% / cover no-repeat;
	opacity: 0.8;
}
.hero-portrait::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, #090909 0%, transparent 30%, #09090930 75%, #090909 100%);
}
.hero-content {
	position: relative;
	padding-top: 42px;
	padding-bottom: 28px;
}
.hero h1 span {
	color: var(--red);
}
.hero-intro {
	font-size: 18px;
	margin-top: 20px;
	max-width: 420px;
}
.hero-signoff {
	margin-top: 300px;
	font-size: 10px;
	letter-spacing: 0.2em;
}
.hero-signoff span {
	font-size: 25px;
	color: var(--gold);
	vertical-align: middle;
	margin-right: 10px;
}
.light-section {
	background: var(--paper);
	color: #111;
}
.light-section .eyebrow {
	color: #9a6513;
}
.latest-layout {
	display: grid;
	gap: 24px;
	padding-block: 40px;
}
.episode-art {
	width: 180px;
	aspect-ratio: 1;
	object-fit: cover;
}
.latest h3 {
	margin-bottom: 10px;
}
.sample-label, .player-note {
	font-size: 10px;
	letter-spacing: 0.09em;
	color: #68635c;
}
.sample-label {
	margin-bottom: 10px;
}
.player-note {
	margin-top: 8px;
	letter-spacing: 0;
}
.episode-preview {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 20px;
	padding: 12px;
	background: #111;
	color: white;
	font-size: 12px;
	font-weight: bold;
}
.episode-preview > span:last-child {
	margin-left: auto;
}
.play-icon {
	display: grid;
	place-items: center;
	background: var(--red);
	border-radius: 50%;
	width: 40px;
	height: 40px;
}
.section-heading {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 26px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 25px;
}
.section-heading > p {
	color: var(--muted);
	font-size: 14px;
}
.album-section {
	padding-block: 42px;
}
.carousel-controls {
	display: flex;
	gap: 10px;
}
.carousel-controls button {
	width: 44px;
	height: 44px;
	border: 1px solid #888;
	border-radius: 50%;
	background: none;
	color: white;
}
.carousel-controls button:hover {
	border-color: var(--gold);
	color: var(--gold);
}
.album-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	padding-bottom: 16px;
	scroll-snap-type: x mandatory;
}
.album-card {
	flex: 0 0 175px;
	scroll-snap-align: start;
}
.album-card img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px solid #555;
	transition: border-color 160ms;
}
.album-card:hover img {
	border-color: var(--gold);
}
.album-card h3 {
	font-size: 19px;
	margin-top: 12px;
}
.album-card span {
	color: var(--gold);
	font-size: 12px;
}
.kofi-section {
	background: linear-gradient(90deg, #97051ae8, #4b0009dd), url('../img/site/fabric.webp') center / cover;
	overflow: hidden;
}
.kofi-layout {
	display: grid;
	gap: 28px;
	align-items: center;
	padding-block: 50px;
}
.kofi-section h2 {
	font-size: clamp(56px, 6vw, 86px);
}
.kofi-section p:not(.eyebrow) {
	max-width: 490px;
	margin-top: 20px;
	font-size: 19px;
}
/* Rotate the sleeve and record together so the disc exits along the sleeve opening. */
.kofi-art {
	position: relative;
	width: 100%;
	max-width: 520px;
	aspect-ratio: 1.25;
	margin-inline: auto;
}
.record-assembly {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 90%;
	aspect-ratio: 1.48;
	transform: translate(-50%, -50%) rotate(-8deg);
}
.vinyl {
	position: absolute;
	z-index: 1;
	top: 1.48%;
	left: 34%;
	width: 64%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	background: transparent;
	border-radius: 50%;
	box-shadow: 0 18px 30px #0008;
}
.record-sleeve {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 66%;
	aspect-ratio: 1;
	background: url('/img/site/kofi-klub-home.webp') center / cover no-repeat;
	box-shadow: 10px 20px 25px #0007;
}
.record-sticker {
	position: absolute;
	z-index: 3;
	right: 7px;
	bottom: 15px;
	background: var(--gold);
	color: #111;
	border-radius: 50%;
	padding: 17px 11px;
	font-size: 11px;
	text-align: center;
	font-weight: 800;
	transform: rotate(10deg);
}
.blog-section {
	padding-block: 48px;
}
.article-card {
	border: 1px solid #333;
	background: var(--black);
	color: #fff;
}
.article-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}
.article-card:first-child img {
	object-position: center 35%;
}
.article-card > a > div {
	padding: 20px;
}
.blog-grid .article-card .eyebrow {
	color: var(--gold);
	font-size: 10px;
}
.article-card h3 {
	font-size: 27px;
}
.article-card p:not(.eyebrow) {
	font-size: 15px;
	margin-top: 8px;
}
.article-card .byline {
	color: #666;
	font-size: 12px !important;
}
.members-section {
	display: grid;
	gap: 30px;
	padding-block: 50px;
	align-items: center;
}
.members-section p:not(.eyebrow) {
	margin-block: 15px 23px;
}
.member-preview {
	background: #090909b5;
	border: 1px solid #333;
	padding: 24px;
}
.member-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.member-tiles a {
	display: flex;
	flex-direction: column;
	gap: 15px;
	border: 1px solid #333;
	padding: 14px 9px;
	font-size: 10px;
	font-weight: bold;
}
.member-tiles span {
	color: var(--gold);
	font-size: 42px;
}
.friends-layout {
	display: grid;
	gap: 30px;
	padding-block: 48px;
}
.friends-layout p:not(.eyebrow) {
	margin-block: 15px 22px;
}
.friends-teaser {
	border-left: 3px solid var(--red);
	padding: 12px 24px;
}
.friends-teaser > span {
	color: var(--red);
	font-size: 40px;
}
.site-footer {
	--footer-gradient: linear-gradient(90deg, #a40720, #680814);
	position: relative;
	margin-block-start: 2px;
	border-block-start: 2px solid var(--black);
	background: var(--footer-gradient);
	color: #fff;
}

.site-footer::before {
	content: "";
	position: absolute;
	inset-block-start: -4px;
	inset-inline: 0;
	height: 2px;
	background: var(--footer-gradient);
	pointer-events: none;
}

.site-footer .wordmark {
	align-self: start;
}

.site-footer .wordmark::before {
	background: linear-gradient(to bottom, #fff 0 50%, var(--black) 50% 100%);
}

.site-footer .footer-top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
	align-items: start;
	gap: 28px;
	padding-block: 44px;
}

.site-footer nav h2 {
	color: var(--gold);
	font-size: 24px;
	text-transform: uppercase;
	margin-block-end: 10px;
}

.site-footer nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 5px;
}

.site-footer nav a {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: normal;
	overflow-wrap: anywhere;
}

.site-footer nav a:is(:hover, :focus-visible) {
	color: var(--gold);
}

.site-footer .footer-bottom {
	background: var(--black);
	color: #fff;
	font-size: 12px;
}

.site-footer .footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-block: 18px;
	text-transform: uppercase;
}

.site-footer .footer-bottom-inner > p {
	margin: 0;
}

.site-footer .footer-bottom-inner p + p {
	color: var(--gold);
	font-weight: 700;
	letter-spacing: .08em;
}

@media (max-width: 599px) {
	.site-footer .footer-bottom-inner {
		justify-content: center;
		text-align: center;
	}
}

.placeholder {
	min-height: 65vh;
	padding-block: 70px;
}
.placeholder > p {
	max-width: 650px;
	margin-block: 20px;
}
.album-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 25px;
	margin-top: 35px;
}
.album-grid img {
	aspect-ratio: 1;
	width: 100%;
	object-fit: cover;
}
.album-grid h2 {
	font-size: 24px;
	margin-top: 12px;
}
@media (min-width: 640px) {
	.listen-button {
		display: inline-flex;
	}
	.hero {
		min-height: 650px;
	}
	.hero-portrait {
		inset: 0 0 0 28%;
		background-position: center 22%;
	}
	.hero-portrait::after {
		background: linear-gradient(90deg, #090909 0%, #090909bb 20%, transparent 70%);
	}
	.hero-content {
		padding-top: 70px;
	}
	.hero-signoff {
		margin-top: 70px;
	}
	.latest-layout {
		grid-template-columns: 190px 1fr;
		align-items: center;
	}
	.latest-layout > div:first-child {
		grid-column: 1 / -1;
	}
	.album-card {
		flex-basis: 200px;
	}
	.kofi-layout {
		grid-template-columns: 1fr 1fr;
	}
	.album-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (min-width: 1100px) {
	.desktop-navigation {
		display: flex;
	}
	.menu-toggle, .mobile-navigation {
		display: none;
	}
	.hero {
		min-height: 660px;
	}
	.hero-portrait {
		inset: 0 0 0 35%;
		background-size: cover;
		opacity: 1;
	}
	.hero-portrait::after {
		background: linear-gradient(90deg, #090909 0%, transparent 35%, transparent 90%, #09090950);
	}
	.hero-intro {
		font-size: 22px;
	}
	.hero-signoff {
		margin-top: 52px;
	}
	.latest-layout {
		grid-template-columns: 1.15fr 190px 1.7fr;
		gap: 35px;
	}
	.latest-layout > div:first-child {
		grid-column: auto;
	}
	.album-card {
		flex-basis: calc((100% - 110px) / 6.35);
	}
	.kofi-layout {
		padding-block: 65px;
	}
	.kofi-section {
		background-attachment: fixed;
	}
	.members-section {
		grid-template-columns: 1fr 1.1fr;
	}
	.friends-layout {
		grid-template-columns: 1.1fr 1fr;
	}
	.footer-top {
		justify-content: space-between;
	}
	.album-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
@media (max-width: 420px) {
	.section-wrap, .header-inner {
		width: calc(100% - 32px);
	}
	.header-inner {
		gap: 10px;
		min-height: 74px;
	}
	.account-actions {
		gap: 13px;
	}
	.wordmark {
		font-size: 21px;
	}
	.account-link {
		font-size: 10px;
	}
	.hero h1 {
		font-size: 50px;
	}
	.hero-content .button-row {
		flex-direction: column;
		align-items: start;
	}
	.hero-content .button {
		width: 220px;
	}
	.hero-signoff {
		font-size: 8px;
		margin-top: 275px;
	}
	.member-preview {
		padding: 16px;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*, *::before, *::after {
		transition: none !important;
	}
	.kofi-section {
		background-attachment: scroll;
	}
}

/* Content links throughout public and member pages share this presentation.
   Apply content-links to future rich-text containers, including bare anchors. */
main :is(p, li, dd, td) a:not(.button):not([role="button"]),
.content-links a:not(.button):not([role="button"]),
main a.text-link {
	color: #dbb34f;
	text-decoration: none;
	font-weight: 700;
}
main :is(p, li, dd, td) a:not(.button):not([role="button"]):is(:hover, :focus-visible),
.content-links a:not(.button):not([role="button"]):is(:hover, :focus-visible),
main a.text-link:is(:hover, :focus-visible) {
	color: #e90035;
	text-decoration: none;
}

/* The homepage Ko-Fi feature has one wide destination button. */
.kofi-section .kofi-explore-button { width: 500px; max-width: 100%; text-align: center; justify-content: center; }

/* Place admin navigation before the primary action at the right of the heading. */
.admin-page-heading,
.admin-page-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.admin-page-heading {
	justify-content: space-between;
}

.admin-page-actions {
	margin-inline-start: auto;
	justify-content: flex-end;
}

.episode-admin-heading .admin-page-actions {
	justify-content: flex-end;
}

.episode-editor-top .admin-page-actions .button {
	font: 800 12px/1.3 Arial, sans-serif;
	padding: 12px 18px;
	background: var(--red);
	border: 1px solid var(--red);
}

.episode-editor-top .admin-page-actions .button-outline {
	background: transparent;
	border-color: currentColor;
}

.admin-action-status:empty {
	display: none;
}

#footer-settings .footer-settings-group {
	margin-block-start: 20px;
}

.footer-settings-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-block: 12px;
}

.footer-settings-actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.footer-settings-actions .button:disabled,
#footer-settings [data-footer-action="add"]:disabled {
	opacity: .45;
	cursor: default;
}

@media (max-width: 599px) {
	.footer-settings-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Match the sticky editor toolbar beneath the 76px members header and its border. */
.site-settings-toolbar {
	position: sticky;
	top: 77px;
	z-index: 10;
	padding-block: 12px;
	background: #101010;
	border-bottom: 1px solid #333;
}

.site-settings-toolbar h1 {
	font-size: clamp(26px, 4vw, 52px);
}

@media (max-width: 600px) {
	.site-settings-toolbar .button {
		padding-inline: 12px;
	}
}

/* Keep links free of underlines across page styles and interaction states. */
a:any-link {
	text-decoration: none !important;
}

.site-footer a {
	text-transform: uppercase;
}

.blog-grid .article-card:focus-within {
	background-color: #1c0c0f;
}

@media (hover: hover) {
	.blog-grid .article-card:hover {
		background-color: #1c0c0f;
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.blog-grid .article-card {
		transition: background-color 240ms ease, transform 240ms ease;
	}

	.blog-grid .article-card:hover {
		transform: scale(1.015);
	}
}

/* Native calendar controls must remain visible on the site's dark form fields. */
input:is([type="date"], [type="datetime-local"], [type="month"], [type="week"], [type="time"]) {
	color-scheme: dark;
	width: 100%;
	max-width: 320px;
	box-sizing: border-box;
}
input:is([type="date"], [type="datetime-local"], [type="month"], [type="week"], [type="time"])::-webkit-calendar-picker-indicator {
	opacity: 1;
	cursor: pointer;
}

/* Keep Listener Picks schedule fields adjacent rather than spanning the panel. */
.lp-admin .lp-fields:has(input[type="datetime-local"]) {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 320px));
	max-width: 660px;
	justify-content: start;
}
