/*
 * Tinkering Bee — Weekly Bakes
 * Golden Hive palette: home page honey tones plus the gold and brown
 * sampled from the bee seal. Everything is scoped to .tbb-wb so it
 * cannot leak into the rest of the theme.
 */

.tbb-wb {
	--tbb-ink: #34271f;
	--tbb-cream: #fffaf0;
	--tbb-honey: #e7a72e;
	--tbb-honey-dark: #b96f16;
	--tbb-gold: #f5c244;
	--tbb-gold-soft: #f6e2b8;
	--tbb-gold-wash: #f7edd6;
	--tbb-hive: #54452b;
	--tbb-hive-deep: #2d2318;
	--tbb-line: #eadbc1;
	--tbb-line-gold: #e0c489;
	--tbb-muted: #6c5846;
	--tbb-serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
	--tbb-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	box-sizing: border-box;
	color: var(--tbb-ink);
	background: var(--tbb-cream);
	font-family: var(--tbb-serif);
	line-height: 1.55;
}

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

.tbb-wb a {
	color: inherit;
}

.tbb-wb p {
	margin: 0 0 1em;
}

.tbb-wb h2,
.tbb-wb h3,
.tbb-wb h4 {
	font-family: var(--tbb-serif);
	color: var(--tbb-ink);
	letter-spacing: -0.02em;
}

/* ---------- brand strip (only with header="yes") ---------- */

.tbb-wb__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 6%;
	border-bottom: 1px solid var(--tbb-line);
}

.tbb-wb__seal {
	display: block;
	width: 50px;
	height: 50px;
	border-radius: 5px;
	border: 1px solid var(--tbb-line-gold);
	box-shadow: 0 1px 0 rgba(52, 39, 31, 0.08);
}

.tbb-wb__brand-text strong {
	display: block;
	font-size: 20px;
	letter-spacing: 0.04em;
}

.tbb-wb__tagline {
	display: block;
	font-family: var(--tbb-sans);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #765f4d;
}

/* ---------- shared bits ---------- */

.tbb-wb__eyebrow {
	margin: 0;
	color: var(--tbb-honey-dark);
	font-family: var(--tbb-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

.tbb-wb__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 22px 0 0;
}

.tbb-wb__button {
	display: inline-block;
	padding: 13px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--tbb-honey);
	color: #2e210e;
	font-family: var(--tbb-serif);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tbb-wb__button:hover,
.tbb-wb__button:focus {
	color: #2e210e;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(185, 111, 22, 0.25);
}

.tbb-wb__button--alt {
	background: transparent;
	border-color: var(--tbb-honey-dark);
	color: var(--tbb-ink);
}

.tbb-wb__button--alt:hover,
.tbb-wb__button--alt:focus {
	color: var(--tbb-ink);
}

.tbb-wb__button--small {
	padding: 9px 15px;
	font-size: 13px;
}

/* ---------- hero ---------- */

.tbb-wb__hero {
	position: relative;
	overflow: hidden;
	padding: 56px 6% 30px;
}

.tbb-wb__hero::before {
	content: "";
	position: absolute;
	top: -140px;
	right: -190px;
	width: 440px;
	height: 440px;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, #f9e2a4, #f6e2b8);
	opacity: 0.7;
}

.tbb-wb__hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 44px;
	align-items: start;
}

.tbb-wb__headline {
	margin: 14px 0 16px;
	font-size: clamp(34px, 5vw, 60px);
	line-height: 1.02;
}

.tbb-wb__note {
	max-width: 56ch;
	margin: 0;
	color: #5c493c;
	font-size: 18px;
}

/* ---------- how it works ---------- */

.tbb-wb__card {
	padding: 24px;
	background: #fff;
	border: 1px solid var(--tbb-line-gold);
	box-shadow: 9px 9px 0 var(--tbb-gold);
}

.tbb-wb__card h3 {
	margin: 0 0 14px;
	font-size: 21px;
}

.tbb-wb__steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.tbb-wb__steps li {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px dashed var(--tbb-line);
}

.tbb-wb__steps li:first-child {
	padding-top: 0;
	border-top: 0;
}

.tbb-wb__steps b {
	display: block;
	color: var(--tbb-honey-dark);
	font-family: var(--tbb-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tbb-wb__steps span span {
	font-size: 15px;
}

.tbb-wb__hex {
	flex: 0 0 26px;
	display: grid;
	place-items: center;
	height: 26px;
	background: var(--tbb-gold);
	color: #3d2d16;
	font-size: 13px;
	font-weight: 700;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- the board ---------- */

.tbb-wb__board {
	padding: 18px 6% 60px;
}

.tbb-wb__board-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 22px;
}

.tbb-wb__board-title {
	margin: 8px 0 4px;
	font-size: clamp(26px, 3.4vw, 38px);
	line-height: 1.05;
}

.tbb-wb__board-intro {
	margin: 0;
	color: var(--tbb-muted);
	font-size: 15px;
}

.tbb-wb__grid {
	display: grid;
	grid-template-columns: repeat(var(--tbb-cols, 3), minmax(0, 1fr));
	gap: 18px;
}

.tbb-wb[data-columns="1"] .tbb-wb__grid {
	--tbb-cols: 1;
}

.tbb-wb[data-columns="2"] .tbb-wb__grid {
	--tbb-cols: 2;
}

.tbb-wb[data-columns="4"] .tbb-wb__grid {
	--tbb-cols: 4;
}

.tbb-wb__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 196px;
	padding: 22px;
	background: #fffdf8;
	border: 1px solid var(--tbb-line-gold);
	border-radius: 16px;
	box-shadow: 0 1px 0 rgba(185, 111, 22, 0.06);
}

.tbb-wb__badge {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	font-family: var(--tbb-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tbb-wb__badge--available {
	background: var(--tbb-gold-soft);
	color: #7a5210;
}

.tbb-wb__badge--limited {
	background: #f7d9a0;
	color: #8a5a10;
}

.tbb-wb__badge--soldout {
	background: #e6dcc9;
	color: #5d4c33;
}

.tbb-wb__badge--new {
	background: var(--tbb-hive);
	color: var(--tbb-gold);
}

.tbb-wb__tag {
	margin: 0;
	color: var(--tbb-honey-dark);
	font-family: var(--tbb-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tbb-wb__item-name {
	margin: 2px 0 0;
	font-size: 23px;
	line-height: 1.15;
}

.tbb-wb__detail {
	margin: 0;
	color: var(--tbb-muted);
	font-size: 15px;
}

.tbb-wb__soldout-note {
	margin: 0;
	color: #8a5a10;
	font-size: 13px;
}

.tbb-wb__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: auto 0 0;
	padding-top: 14px;
	border-top: 1px dashed var(--tbb-line);
}

.tbb-wb__size {
	color: #7d6857;
	font-family: var(--tbb-sans);
	font-size: 13px;
	letter-spacing: 0.04em;
}

.tbb-wb__price {
	color: var(--tbb-honey-dark);
	font-size: 22px;
	font-weight: 700;
}

.tbb-wb__item.is-soldout {
	background: #f9f2e5;
	border-color: var(--tbb-line);
}

.tbb-wb__item.is-soldout .tbb-wb__item-name,
.tbb-wb__item.is-soldout .tbb-wb__price {
	color: #9c8a6d;
}

/* open spot */

.tbb-wb__item--blank {
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: transparent;
	border: 2px dashed var(--tbb-line-gold);
	box-shadow: none;
	color: #9c8770;
	text-align: center;
}

.tbb-wb__plus {
	color: var(--tbb-honey);
	font-size: 30px;
	line-height: 1;
}

.tbb-wb__item--blank strong {
	color: #8d7860;
	font-size: 17px;
}

.tbb-wb__item--blank span:last-child {
	max-width: 22ch;
	font-size: 13px;
}

.tbb-wb__empty {
	padding: 34px 0;
	color: var(--tbb-muted);
	font-size: 17px;
}

/* ---------- golden hive ordering band ---------- */

.tbb-wb__order {
	position: relative;
	overflow: hidden;
	background: linear-gradient(160deg, #f6cd63, #e7a72e 62%, #d4901f);
	border-top: 1px solid #cf9a2a;
	border-bottom: 1px solid #cf9a2a;
	color: #33260f;
}

.tbb-wb__order::before {
	content: "";
	position: absolute;
	inset: -2px;
	pointer-events: none;
	opacity: 0.5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cg fill='none' stroke='%23885213' stroke-width='1.6' stroke-opacity='.38'%3E%3Cpath d='M30 1.5 58 17.5v32L30 65.5 2 49.5v-32z'/%3E%3Cpath d='M30 53.5 58 69.5v32L30 117.5 2 101.5v-32z'/%3E%3Cpath d='M2 17.5 -26 1.5M58 17.5 86 1.5'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 60px 104px;
}

.tbb-wb__order-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 0.9fr;
	gap: 36px;
	align-items: center;
	padding: 54px 6%;
}

.tbb-wb__order .tbb-wb__eyebrow {
	color: #5c3c07;
}

.tbb-wb__order-title {
	margin: 8px 0 12px;
	color: #33260f;
	font-size: clamp(26px, 3.4vw, 36px);
	line-height: 1.1;
}

.tbb-wb__order-inner > div > p {
	max-width: 58ch;
	color: #4a3718;
	font-size: 17px;
}

.tbb-wb__order .tbb-wb__button {
	background: var(--tbb-hive);
	border-color: var(--tbb-hive);
	color: var(--tbb-gold);
}

.tbb-wb__order .tbb-wb__button:hover,
.tbb-wb__order .tbb-wb__button:focus {
	color: var(--tbb-gold);
	box-shadow: 0 6px 14px rgba(45, 35, 24, 0.3);
}

.tbb-wb__order-card {
	padding: 26px;
	background: var(--tbb-cream);
	border: 1px solid #f0d9a2;
	border-radius: 14px;
	box-shadow: 0 10px 26px rgba(90, 60, 10, 0.14);
	color: var(--tbb-ink);
}

.tbb-wb__order-card h4 {
	margin: 0 0 12px;
	font-size: 21px;
}

.tbb-wb__order-card dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 16px;
	margin: 0;
	font-size: 15px;
}

.tbb-wb__order-card dt {
	padding-top: 3px;
	color: var(--tbb-honey-dark);
	font-family: var(--tbb-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tbb-wb__order-card dd {
	margin: 0;
}

.tbb-wb__fine {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px dashed var(--tbb-line);
	color: #5b4a3d;
	font-size: 13px;
	line-height: 1.5;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
	.tbb-wb__hero-inner,
	.tbb-wb__order-inner {
		grid-template-columns: 1fr;
	}

	.tbb-wb__grid {
		--tbb-cols: 2;
	}

	.tbb-wb[data-columns="1"] .tbb-wb__grid {
		--tbb-cols: 1;
	}

	.tbb-wb__hero {
		padding-top: 40px;
	}
}

@media (max-width: 620px) {
	.tbb-wb__grid,
	.tbb-wb[data-columns="2"] .tbb-wb__grid,
	.tbb-wb[data-columns="4"] .tbb-wb__grid {
		--tbb-cols: 1;
	}

	.tbb-wb__card {
		box-shadow: 6px 6px 0 var(--tbb-gold);
	}

	.tbb-wb__seal {
		width: 44px;
		height: 44px;
	}

	.tbb-wb__tagline {
		display: none;
	}
}

/* ---------- print ---------- */

@media print {
	.tbb-wb {
		background: #fff;
	}

	.tbb-wb__actions,
	.tbb-wb__board-head button,
	.tbb-wb__order .tbb-wb__button {
		display: none !important;
	}

	.tbb-wb__hero::before,
	.tbb-wb__order::before {
		display: none;
	}

	.tbb-wb__item {
		break-inside: avoid;
	}
}
