/**
 * Curatery Interests pages — the rebrand.
 *
 * page-interests.php (every Interest) is built to the mockup's interests.html
 * and site-pages.css; taxonomy-good_category.php (one Interest) to
 * interest-detail.html and interest-detail.css. Shared pieces — eyebrows,
 * breadcrumbs, section headings, chips — are in components.css, and product
 * cards in good-card.css.
 */

.cur-interests,
.cur-interest {
	/* Blocksy colors every link through these; inherit instead. */
	--theme-link-initial-color: currentColor;
	--theme-link-hover-color: var(--cur-tomato);
	color: var(--cur-ink);
	font-family: var(--cur-sans);
}

.cur-interests :where(a),
.cur-interest :where(a) {
	text-decoration: none;
}

.cur-interests :is(h1, h2, h3),
.cur-interest :is(h1, h2, h3) {
	color: inherit;
	font-family: var(--cur-serif);
	font-weight: 400;
}

.cur-interests :is(ul, ol),
.cur-interest :is(ul, ol) {
	margin: 0;
	padding: 0;
	list-style: none;
}


/* ════════════════════════════════════════════════════════════
   Every Interest (page-interests.php)
   ════════════════════════════════════════════════════════════ */

.cur-interests__hero {
	padding: 3.8rem var(--cur-gutter);
	background: var(--cur-peach);
}

.cur-interests__hero-inner {
	display: grid;
	grid-template-columns: 1fr 0.72fr;
	gap: 3rem;
	align-items: end;
	max-width: var(--cur-max-width);
	margin: 0 auto;
}

.cur-interests .cur-interests__title {
	margin: 0.45rem 0 0.8rem;
	font-size: clamp(3.6rem, 7vw, 6.7rem);
	line-height: 0.9;
	letter-spacing: -0.045em;
}

.cur-interests__intro {
	max-width: 620px;
	margin: 0;
	font-size: 1.05rem;
}

.cur-interests__note {
	margin: 0;
	padding: 1.3rem 1.5rem;
	border-radius: 70px 12px 12px 12px;
	background: var(--cur-paper);
	font: 1.25rem/1.25 var(--cur-serif);
}

.cur-interests__browser {
	padding: 4rem var(--cur-gutter) 6rem;
	background: var(--cur-paper);
}

.cur-interests__browser-inner {
	max-width: var(--cur-max-width);
	margin: 0 auto;
}

.cur-interests__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0 0 2rem;
}

.cur-interests__chips[hidden],
.cur-interests__item[hidden] {
	display: none;
}

.cur-interests .cur-interests__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4rem;
}

.cur-interests__item {
	margin: 0;
}

.cur-interests__tile {
	position: relative;
	display: block;
	height: 100%;
	min-height: 330px;
	overflow: hidden;
	border-radius: var(--cur-radius-panel);
	background: var(--cur-blue-deep);
	box-shadow: 0 10px 24px rgba(36, 27, 22, 0.1);
	color: #ffffff;
}

.cur-interests__item:nth-child(4n+1) .cur-interests__tile {
	min-height: 410px;
}

.cur-interests__tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.cur-interests__tile::after {
	content: "";
	position: absolute;
	/* The shade behind the tile's words. It used to start two-thirds down and
	   fade in gently, which was fine over dark photos but left the headings at
	   2:1 over pale ones. It now starts higher and deepens sooner, so the text
	   is readable whatever photo sits behind it. */
	inset: 0;
	background: linear-gradient(
		rgba(28, 22, 18, 0) 28%,
		rgba(28, 22, 18, 0.55) 58%,
		rgba(28, 22, 18, 0.93) 100%
	);
}

.cur-interests__tile:hover,
.cur-interests__tile:focus-visible {
	color: #ffffff;
}

.cur-interests__tile:hover img {
	transform: scale(1.03);
}

.cur-interests__tile:focus-visible {
	outline: 3px solid var(--cur-tomato);
	outline-offset: 3px;
}

.cur-interests__tile-copy {
	position: absolute;
	right: 1.35rem;
	bottom: 1.25rem;
	left: 1.35rem;
	z-index: 1;
}

.cur-interests .cur-interests__tile h2 {
	margin: 0 0 0.45rem;
	font-size: 2.1rem;
	line-height: 0.95;
}

.cur-interests__tile:hover h2 {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.cur-interests__tile p {
	margin: 0 0 0.7rem;
	font-size: 0.82rem;
}

.cur-interests__tile-count {
	color: #f7cf61;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}


/* ════════════════════════════════════════════════════════════
   One Interest (taxonomy-good_category.php)
   ════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────── */

.cur-interest__hero {
	padding: 1rem var(--cur-gutter) 4rem;
	background: var(--cur-butter);
}

.cur-interest__hero-inner {
	display: grid;
	grid-template-columns: 0.86fr 1.14fr;
	gap: 3.5rem;
	align-items: center;
	max-width: var(--cur-max-width);
	margin: 0 auto;
}

.cur-interest__image {
	min-height: 450px;
	overflow: hidden;
	border-radius: 12px 120px 12px 12px;
	background: var(--cur-peach);
}

.cur-interest__image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 450px;
	object-fit: cover;
}

.cur-interest .cur-interest__title {
	margin: 0.45rem 0 1rem;
	font-size: clamp(4rem, 7vw, 7rem);
	line-height: 0.88;
	letter-spacing: -0.045em;
}

.cur-interest__intro {
	max-width: 590px;
	margin: 0;
	font-size: 1.05rem;
}

.cur-interest .cur-interest__counts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.3rem;
}

.cur-interest__counts a {
	display: block;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--cur-line);
	border-radius: 22px;
	background: var(--cur-paper);
	font-size: 0.75rem;
	font-weight: 700;
}

.cur-interest__counts a:hover,
.cur-interest__counts a:focus-visible {
	background: var(--cur-mustard);
	color: var(--cur-ink);
}

/* ── Sections ──────────────────────────────────────────────── */

.cur-interest__goods {
	background: var(--cur-paper);
}

.cur-interest__corners {
	background: var(--cur-peach);
}

.cur-interest__collections {
	background: var(--cur-sky);
}

.cur-interest__articles {
	padding-bottom: 6rem;
	background: var(--cur-cream);
}

.cur-interest section[id] {
	scroll-margin-top: 1rem;
}

.cur-interest .cur-interest__goods-grid {
	grid-template-columns: repeat(4, 1fr);
}

.cur-interest__empty {
	margin: 0;
	color: var(--cur-ink-muted);
}

.cur-interest .cur-interest__card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.3rem;
	align-items: start;
}

/* One card look for Corners, collections and articles, with different corners. */
.cur-interest__card {
	display: block;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--cur-line);
	border-radius: 12px;
	background: var(--cur-paper);
	box-shadow: 0 8px 20px rgba(36, 27, 22, 0.08);
}

.cur-interest__card:hover h3,
.cur-interest__card:focus-visible h3 {
	color: var(--cur-tomato);
}

.cur-interest__card:focus-visible {
	outline: 3px solid var(--cur-ink);
	outline-offset: 3px;
}

.cur-interest__card-image {
	height: 210px;
	background: var(--cur-butter);
}

.cur-interest__card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cur-interest__card-copy {
	padding: 1.25rem;
}

.cur-interest .cur-interest__card h3 {
	margin: 0 0 0.6rem;
	font-size: 1.65rem;
	line-height: 1.02;
	transition: color 0.15s ease;
}

.cur-interest__card p {
	margin: 0;
	font-size: 0.8rem;
}

.cur-interest__card-meta {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--cur-line);
	font-size: 0.75rem;
}

/* Corners: the signature curve, green stats. */
.cur-interest__corners .cur-interest__card {
	border-radius: 80px 12px 12px 12px;
	box-shadow: 0 9px 24px rgba(36, 27, 22, 0.09);
}

.cur-interest__corners .cur-interest__card-image {
	height: 200px;
}

.cur-interest__corners .cur-interest__card p {
	margin-bottom: 0.9rem;
}

.cur-interest__corners .cur-interest__card-meta {
	justify-content: flex-start;
	margin-top: 0;
	color: var(--cur-green);
	font-weight: 700;
}

/* Collections: the first is larger. */
.cur-interest__collections .cur-interest__card-grid {
	grid-template-columns: 1.15fr 0.85fr 0.85fr;
}

.cur-interest__collections .cur-interest__card-image {
	height: 240px;
}

.cur-interest__collections li:first-child .cur-interest__card-image {
	height: 360px;
}

.cur-interest__owner {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.75rem;
	font-weight: 700;
}

.cur-interest__owner-avatar {
	display: grid;
	flex: 0 0 32px;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--cur-mustard);
	font: 400 1rem/1 var(--cur-serif);
}

.cur-interest__owner small {
	margin-left: auto;
	color: var(--cur-green);
	font-size: 0.75rem;
}

/* Articles */
.cur-interest__articles .cur-interest__card .cur-eyebrow {
	font-size: 0.72rem;
}

.cur-interest__articles .cur-interest__card h3 {
	margin: 0.45rem 0 0.65rem;
	font-size: 1.6rem;
}

.cur-interest__articles .cur-interest__card p {
	font-size: 0.82rem;
}

.cur-interest__articles .cur-interest__card-meta {
	color: var(--cur-ink-muted);
}


/* ════════════════════════════════════════════════════════════
   Smaller screens
   ════════════════════════════════════════════════════════════ */

@media (max-width: 1050px) {
	.cur-interest .cur-interest__goods-grid,
	.cur-interest__articles .cur-interest__card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cur-interest__collections .cur-interest__card-grid {
		grid-template-columns: 1fr 1fr;
	}

	.cur-interest__collections li:first-child {
		grid-row: span 2;
	}
}

@media (max-width: 950px) {
	.cur-interests__hero-inner {
		grid-template-columns: 1fr;
	}

	.cur-interests .cur-interests__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 760px) {
	.cur-interest__hero-inner {
		grid-template-columns: 1fr;
	}

	.cur-interest__image,
	.cur-interest__image img {
		min-height: 320px;
	}

	.cur-interest .cur-interest__card-grid,
	.cur-interest__collections .cur-interest__card-grid,
	.cur-interest__articles .cur-interest__card-grid {
		grid-template-columns: 1fr;
	}

	.cur-interest__collections li:first-child {
		grid-row: auto;
	}

	.cur-interest__collections li:first-child .cur-interest__card-image {
		height: 260px;
	}
}

@media (max-width: 650px) {
	.cur-interests__hero,
	.cur-interests__browser,
	.cur-interest__hero {
		padding-right: 6vw;
		padding-left: 6vw;
	}

	.cur-interests__note {
		display: none;
	}

	.cur-interests .cur-interests__grid,
	.cur-interest .cur-interest__goods-grid {
		grid-template-columns: 1fr;
	}

	.cur-interests__item:nth-child(4n+1) .cur-interests__tile {
		min-height: 330px;
	}

	.cur-interest .cur-interest__counts {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.cur-interest__counts a {
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cur-interests__tile img,
	.cur-interest .cur-interest__card h3 {
		transition: none;
	}

	.cur-interests__tile:hover img {
		transform: none;
	}
}
