/*
Theme Name: The Label Book
Theme URI: https://thelabelbook.com
Description: Editorial block theme for The Label Book, a little book of small and homegrown fashion brands worth knowing. Pairs with the "The Label Book Core" plugin for the brand directory.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 7.4
Author: The Label Book
Text Domain: thelabelbook
License: GNU General Public License v2 or later
*/

/* Most styling lives in theme.json. This file holds what theme.json can't express. */

/* Small-caps kicker above headings */
.lb-kicker {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

/* Thin rule that reads like a book's section break */
.lb-rule {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

/* Cards: brand + article */
.lb-card .wp-block-post-featured-image img {
	transition: transform 0.6s ease;
}
.lb-card:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}
.lb-card .wp-block-post-featured-image {
	overflow: hidden;
}
.lb-card .wp-block-post-title a {
	text-decoration: none;
}
.lb-card .wp-block-post-title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}

/* Placeholder tone when a brand has no image yet */
.lb-card .wp-block-post-featured-image:empty,
.lb-card:not(:has(.wp-block-post-featured-image)) {
	background: var(--wp--preset--color--blush);
}

/* Brand facts + buttons from the [brand_links] shortcode */
.lb-brand-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 0 0 1.25rem;
	font-size: var(--wp--preset--font-size--small);
}
.lb-brand-facts em {
	display: block;
	font-style: normal;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.lb-brand-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
}
.lb-btn {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}
.lb-btn:hover,
.lb-btn--solid {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}
.lb-btn--solid:hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

/* City / style chips */
.lb-chips .wp-block-categories,
ul.lb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
ul.lb-chips li a,
.lb-chips .wp-block-post-terms a {
	display: inline-block;
	padding: 0.45rem 1.1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	font-size: var(--wp--preset--font-size--small);
}
ul.lb-chips li a:hover,
.lb-chips .wp-block-post-terms a:hover {
	border-color: var(--wp--preset--color--ink);
}
.lb-chips .wp-block-post-terms__separator {
	display: none;
}
.lb-chips .wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Roundup articles: numbered brand headings ("1. Label Name") read as a list */
.single-post .entry-content h2 {
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
}

/* Header search: keep compact */
.lb-header .wp-block-search__input {
	border-radius: 999px;
	padding-inline: 1rem;
	min-width: 0;
}

@media (max-width: 600px) {
	.lb-hide-mobile {
		display: none !important;
	}
}
