/* Felt Ledger — magazine layout, unique class names */

:root {
	--felt-ink: #282828;
	--felt-muted: #999999;
	--felt-line: #ececec;
	--felt-black: #000000;
	--felt-white: #ffffff;
	--felt-max: 1170px;
	--felt-font: Lato, Helvetica, Arial, sans-serif;
	--felt-display: Montserrat, Helvetica, Arial, sans-serif;
	--felt-topbar-bg: #1a1a1a;
	--felt-header-bg: #ffffff;
	--felt-nav-bg: #ffffff;
	--felt-spotlight-bg: #ffffff;
	--felt-body-bg: #ffffff;
	--felt-prose-bg: #ffffff;
	--felt-sidebar-bg: #ffffff;
	--felt-cluster-bg: #ffffff;
	--felt-footer-bg: #282828;
	--felt-copyright-bg: #242424;
}

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

html {
	scroll-behavior: smooth;
}

body.felt-body {
	margin: 0;
	font-family: var(--felt-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--felt-ink);
	background: var(--felt-body-bg);
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--felt-black);
}

h1, h2, h3, h4 {
	font-family: var(--felt-display);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.4em;
}

.felt-skip {
	position: absolute;
	left: -999px;
	top: 0;
}

.felt-skip:focus {
	left: 8px;
	top: 8px;
	z-index: 99;
	background: #fff;
	padding: 8px 12px;
}

.felt-wrap {
	width: min(var(--felt-max), calc(100% - 32px));
	margin-inline: auto;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* Header */

.felt-mast__bar {
	background: var(--felt-topbar-bg);
	color: #fff;
	font-size: 13px;
}

.felt-mast__bar a {
	color: #fff;
}

.felt-mast__bar-inner,
.felt-mast__left {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 36px;
}

.felt-mast__links ul {
	display: flex;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.felt-mast__brand {
	background: var(--felt-header-bg);
	padding: 28px 0 22px;
}

.felt-mast__brand-inner {
	display: flex;
	justify-content: center;
}

.felt-logo img {
	display: block;
	max-height: 92px;
	width: auto;
}

/* Nav */

.felt-navstrip {
	background: var(--felt-nav-bg);
	border-top: 1px solid var(--felt-line);
	border-bottom: 1px solid var(--felt-line);
	position: sticky;
	top: 0;
	z-index: 40;
}

.admin-bar .felt-navstrip {
	top: 32px;
}

.felt-navstrip__inner {
	display: flex;
	align-items: center;
	min-height: 52px;
	gap: 12px;
}

.felt-nav {
	flex: 1;
}

.felt-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.felt-nav__item a {
	font-family: var(--felt-font);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.felt-navstrip__toggle {
	display: none;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	padding: 8px 6px;
	cursor: pointer;
}

.felt-navstrip__toggle span {
	display: block;
	height: 2px;
	background: #000;
	margin: 5px 0;
}

.felt-navstrip__find {
	margin-left: auto;
	position: relative;
}

.felt-navstrip__find-btn {
	list-style: none;
	cursor: pointer;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
}

.felt-navstrip__find-btn::-webkit-details-marker {
	display: none;
}

.felt-navstrip__find-panel {
	position: absolute;
	right: 0;
	top: 100%;
	background: #fff;
	padding: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	min-width: 260px;
	z-index: 5;
}

/* Spotlight mosaic */

.felt-spotlight {
	background: var(--felt-spotlight-bg);
	padding: 20px 0 8px;
}

.felt-mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	min-height: 540px;
}

.felt-mosaic__stack {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px;
	max-height: 540px;
	overflow: auto;
}

.felt-mosaic__stack .felt-overlay {
	min-height: 132px;
}

.felt-mosaic__lead {
	min-height: 540px;
}

.felt-overlay {
	position: relative;
	overflow: hidden;
	height: 100%;
	min-height: 260px;
	background: #111;
}

.felt-overlay--lead {
	min-height: 540px;
}

.felt-overlay__media,
.felt-overlay__media img,
.felt-overlay__media .felt-fallback {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}

.felt-overlay__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.78) 100%);
	z-index: 1;
}

.felt-overlay__copy {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 22px 20px 18px;
	color: #fff;
}

.felt-overlay__title {
	font-size: 21px;
	margin: 8px 0 10px;
}

.felt-overlay--tile .felt-overlay__title {
	font-size: 16px;
}

.felt-overlay__title a {
	color: #fff;
}

.felt-overlay__copy .felt-meta {
	color: rgba(255, 255, 255, 0.85);
}

.felt-chip,
.felt-pin__chip,
.felt-gridcard__chip {
	display: inline-block;
	background: #000;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 8px;
	line-height: 1.4;
}

.felt-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 12px;
	color: var(--felt-muted);
}

.felt-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: hsl(var(--felt-hue, 200) 18% 28%);
	color: #fff;
	font-family: var(--felt-display);
	font-size: 42px;
	font-weight: 700;
}

/* Slider */

.felt-reel {
	position: relative;
	margin-top: 18px;
}

.felt-reel__track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 4px 40px 12px;
	scrollbar-width: none;
}

.felt-reel__track::-webkit-scrollbar {
	display: none;
}

.felt-reel__slide {
	flex: 0 0 32%;
	scroll-snap-align: start;
}

.felt-reel__btn {
	position: absolute;
	top: 38%;
	z-index: 2;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #000;
	color: #fff;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
}

.felt-reel__btn--prev { left: 0; }
.felt-reel__btn--next { right: 0; }

/* Stage + deck */

.felt-stage {
	background: var(--felt-body-bg);
}

.felt-deck {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 36px;
	padding: 28px 0 60px;
	align-items: start;
}

.felt-main {
	min-width: 0;
}

.felt-prose {
	background: var(--felt-prose-bg);
	margin-bottom: 28px;
	font-size: 15px;
	line-height: 24px;
	color: var(--felt-ink);
}

.felt-prose p {
	margin: 0 0 1em;
}

.felt-prose h2,
.felt-article__title {
	font-size: 28px;
}

.felt-article__hero {
	margin: 0 0 20px;
}

.felt-article__hero img {
	width: 100%;
	display: block;
}

/* Category clusters */

.felt-cluster {
	background: var(--felt-cluster-bg);
	margin-bottom: 32px;
}

.felt-cluster__head {
	margin-bottom: 14px;
	border-bottom: 1px solid var(--felt-line);
}

.felt-cluster__title {
	display: inline-block;
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding-bottom: 8px;
	border-bottom: 2px solid #000;
	margin: 0 0 -1px;
}

.felt-cluster__pairs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 20px;
	margin-top: 16px;
}

.felt-cluster__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 20px;
}

.felt-cluster__split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.felt-cluster__stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.felt-row {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 12px;
	align-items: start;
}

.felt-row__media,
.felt-row__media img,
.felt-row__media .felt-fallback {
	width: 110px;
	height: 85px;
	object-fit: cover;
	display: block;
}

.felt-row__title {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 6px;
}

.felt-gridcard__media {
	position: relative;
	display: block;
	aspect-ratio: 540 / 324;
	overflow: hidden;
	background: #111;
}

.felt-gridcard__media img,
.felt-gridcard__media .felt-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.felt-gridcard__chip {
	position: absolute;
	left: 8px;
	bottom: 8px;
}

.felt-gridcard__title {
	font-size: 18px;
	margin: 10px 0 8px;
}

/* Sidebar */

.felt-rail {
	background: var(--felt-sidebar-bg);
	position: sticky;
	top: 72px;
}

.felt-widget {
	margin-bottom: 28px;
}

.felt-widget__title {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 1px solid var(--felt-line);
	padding-bottom: 8px;
	margin-bottom: 16px;
}

.felt-pin {
	position: relative;
	margin-bottom: 22px;
}

.felt-pin__index {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	background: #000;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
}

.felt-pin__media {
	position: relative;
	display: block;
	aspect-ratio: 540 / 320;
	overflow: hidden;
	background: #111;
}

.felt-pin__media img,
.felt-pin__media .felt-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.felt-pin__chip {
	position: absolute;
	left: 8px;
	bottom: 8px;
}

.felt-pin__title {
	font-size: 14px;
	margin: 10px 0 0;
}

.felt-seek {
	display: flex;
	border: 1px solid #ddd;
}

.felt-seek input {
	flex: 1;
	border: 0;
	padding: 10px 12px;
	font: inherit;
}

.felt-seek button {
	border: 0;
	background: #000;
	color: #fff;
	width: 42px;
	cursor: pointer;
}

/* Footer */

.felt-foot {
	background: var(--felt-footer-bg);
	color: #ddd;
}

.felt-foot a {
	color: #ddd;
}

.felt-foot__inner {
	padding: 18px 0;
}

.felt-foot__nav ul {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.felt-foot__copy {
	background: var(--felt-copyright-bg);
	color: #dddddd;
	font-size: 13px;
}

.felt-foot__copy p {
	margin: 0;
	padding: 14px 0;
}

.felt-nav-open .felt-nav {
	display: block;
}

@media (max-width: 980px) {
	.felt-mosaic,
	.felt-deck,
	.felt-cluster__grid,
	.felt-cluster__pairs,
	.felt-cluster__split {
		grid-template-columns: 1fr;
	}

	.felt-mosaic__lead,
	.felt-overlay--lead {
		min-height: 360px;
	}

	.felt-mosaic__stack {
		max-height: none;
		grid-template-columns: 1fr 1fr;
	}

	.felt-reel__slide {
		flex-basis: 80%;
	}

	.felt-rail {
		position: static;
	}
}

@media (max-width: 720px) {
	.felt-navstrip__toggle {
		display: block;
	}

	.felt-nav {
		display: none;
	}

	.felt-nav-open .felt-nav {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--felt-nav-bg);
		padding: 8px 16px 16px;
		border-bottom: 1px solid var(--felt-line);
	}

	.felt-navstrip {
		position: relative;
	}

	.admin-bar .felt-navstrip {
		top: 0;
	}

	.felt-nav__list {
		flex-direction: column;
		gap: 10px;
	}

	.felt-mosaic__stack,
	.felt-cluster__pairs {
		grid-template-columns: 1fr;
	}

	.felt-overlay--lead .felt-overlay__title {
		font-size: 22px;
	}
}
