/* Homepage sections: hero, ticker, Just landed, Browse carousel, Spotlight. */

/* Hero */
.hero {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 48px;
	align-items: center;
	padding-top: 64px;
	padding-bottom: 72px;
}

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hero__eyebrow .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
}

.hero__title {
	font-size: clamp(48px, 9.2vw, 92px);
	line-height: 0.92;
	letter-spacing: -0.05em;
	margin: 22px 0;
}

.hero__intro {
	font-size: 19px;
	line-height: 1.5;
	color: var(--muted);
	margin: 0 0 32px;
	max-width: 500px;
}

.hero__pick {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	text-decoration: none;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-panel);
	padding: 44px 32px 32px;
}

.hero__pick:hover {
	color: var(--text);
}

/* Real proportions: width capped at the design's 220px, very tall covers capped in height. */
img.hero__cover {
	max-width: 220px;
	max-height: 340px;
	border-radius: 3px 8px 8px 3px;
	box-shadow: 0 0 90px rgba(120, 200, 240, 0.22), 0 30px 50px -20px rgba(0, 0, 0, 0.9);
	transform: perspective(1000px) rotateY(-12deg);
}

.hero__pick-text {
	text-align: center;
}

.hero__pick-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--gold);
	text-transform: uppercase;
}

.hero__pick-title {
	display: block;
	margin-top: 6px;
	font-size: 20px;
	font-weight: 600;
}

.hero__pick-price {
	color: var(--accent);
}

@media (max-width: 760px) {
	.hero {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-top: 40px;
		padding-bottom: 48px;
	}
}

/* Ticker */
.ticker {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 22px 0;
	overflow: hidden;
	white-space: nowrap;
	font-size: clamp(30px, 4.6vw, 46px);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.5;
	color: var(--ticker-dim);
}

.ticker__track {
	display: flex;
	width: max-content;
	padding-left: var(--gutter);
}

.ticker__set {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ticker__set li {
	white-space: pre;
}

.ticker__item {
	color: var(--text);
	text-decoration: none;
}

.ticker__item.accent {
	color: var(--accent);
}

.ticker__item.accent--gold {
	color: var(--gold);
}

.ticker__item:hover,
.ticker__item:focus-visible {
	color: var(--accent-hover);
}

@media (prefers-reduced-motion: reduce) {
	.ticker {
		overflow-x: auto;
	}
}

/* Sections */
.section--landed {
	padding-top: 72px;
	padding-bottom: 24px;
}

.section--browse {
	padding-top: 64px;
	padding-bottom: 24px;
}

.section--spotlight {
	padding-top: 64px;
	padding-bottom: 72px;
}

.section__head {
	display: flex;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.section__title {
	font-size: clamp(36px, 5.4vw, 54px);
	line-height: 1;
	letter-spacing: -0.045em;
	margin: 8px 0 0;
}

.section__title--browse {
	margin-bottom: 28px;
}

.section__more {
	margin-left: auto;
	font-weight: 600;
}

/* Browse carousel */
.catrow {
	display: grid;
	grid-template-columns: repeat(var(--cats, 5), minmax(0, 1fr));
	gap: 14px;
}

.cat {
	position: relative;
	overflow: hidden;
	text-align: left;
	font: inherit;
	cursor: pointer;
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: 20px;
	padding: 22px;
	min-height: 170px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: var(--text);
	transition: translate 0.45s var(--ease-out), background 0.45s, border-color 0.45s;
}

.cat.is-active {
	border-color: rgba(43, 214, 123, 0.55);
	background: var(--feature);
	translate: 0 -6px;
}

.cat__num {
	color: var(--gold);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.cat.is-active .cat__num {
	color: var(--accent);
}

.cat__name {
	display: block;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.cat__blurb {
	font-size: 13px;
	color: var(--muted);
}

.cat__progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 100%;
	background: var(--accent);
	transform-origin: left center;
	transform: scaleX(0);
	visibility: hidden;
}

.cat.is-active .cat__progress {
	visibility: visible;
}

.browse__panels {
	margin-top: 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-panel);
	padding: 32px;
	overflow: hidden;
}

.shelf-head {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.shelf-head__title {
	font-size: clamp(28px, 3.8vw, 38px);
	line-height: 1;
	letter-spacing: -0.04em;
	margin: 8px 0 0;
}

.shelf-head__blurb {
	margin: 0 0 4px;
	color: var(--muted);
}

.shelf-head__more {
	margin-left: auto;
	font-weight: 600;
}

.shelf {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 760px) {
	.catrow,
	.shelf {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.browse__panels {
		padding: 20px 14px;
	}
}

/* Spotlight */
.spotlight {
	background: var(--feature);
	border: 1px solid var(--feature-line);
	border-radius: var(--radius-feature);
	padding: 56px;
}

.spotlight__title {
	font-size: clamp(44px, 6.8vw, 68px);
	line-height: 0.92;
	letter-spacing: -0.05em;
	margin: 12px 0 18px;
}

.spotlight__intro {
	font-size: 18px;
	color: var(--muted-green);
	margin: 0 0 26px;
	max-width: 420px;
}

.spotlight__covers {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 320px;
}

.spotlight__book {
	position: relative;
	display: block;
	flex: none;
	transition: translate 0.4s var(--ease-out), scale 0.4s var(--ease-out);
}

.spotlight__book:hover {
	translate: 0 -18px;
	scale: 1.07;
	z-index: 5;
}

.spotlight__book img {
	display: block;
	max-width: 190px;
	max-height: 300px;
	border-radius: 3px 6px 6px 3px;
}

.spotlight__book--left {
	transform: rotate(-12deg) translateX(40px);
}

.spotlight__book--left img {
	max-width: 160px;
}

.spotlight__book--centre {
	z-index: 2;
}

.spotlight__book--centre img {
	box-shadow: 0 0 70px rgba(43, 214, 123, 0.35), 0 24px 40px -12px rgba(0, 0, 0, 0.9);
}

.spotlight__book--right {
	transform: rotate(12deg) translateX(-40px);
}

@media (max-width: 760px) {
	.spotlight {
		padding: 32px 22px;
	}

	.spotlight__covers {
		height: 240px;
	}

	.spotlight__book img {
		max-width: 130px;
	}

	.spotlight__book--left img {
		max-width: 110px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cat,
	.spotlight__book {
		transition: none;
	}
}
