/**
 * The Kosher Cookbook, homepage ("Bubbe's Kitchen" design).
 * Tokens and shared pieces (.tkc-btn, .tkc-chip, .tkc-script) live in bubbe.css.
 *
 * @package TheKosherCookbook
 */

/* Astra's .ast-container is flex; keep the homepage full width so it doesn't jump while loading. */
#tkc-homepage { flex: 1 1 100%; width: 100%; max-width: 100%; min-width: 0; }

.tkc-v2.home #content > .ast-container { max-width: 100%; padding-left: 0; padding-right: 0; }

.tkc-home { color: var(--tkc-ink); }

.tkc-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.tkc-head { text-align: center; margin: 0 auto 40px; max-width: 720px; }
.tkc-head .tkc-script { margin: 0 0 2px; font-size: 1.6rem; color: var(--tkc-brick); }
.tkc-head h2 {
	margin: 0;
	font-family: var(--tkc-serif);
	font-size: clamp(1.9rem, 3.6vw, 2.6rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--tkc-ink);
}
.tkc-head h2::after {
	content: "";
	display: block;
	width: 64px;
	height: 10px;
	margin: 14px auto 0;
	background: radial-gradient(circle, var(--tkc-honey) 2px, transparent 2.5px) center / 12px 10px repeat-x;
}

/* ---------- Hero ---------- */

.tkc-hero2 {
	position: relative;
	padding: 56px 24px 72px;
	background:
		radial-gradient(ellipse at 85% 35%, rgba(79, 117, 112, 0.10), transparent 55%),
		radial-gradient(ellipse at 10% 90%, rgba(200, 150, 62, 0.12), transparent 50%),
		var(--tkc-paper);
	overflow: hidden;
}
.tkc-hero2::after {
	/* scalloped tablecloth edge into the next section */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 14px;
	background: radial-gradient(circle at 12px 14px, var(--tkc-paper-2) 11px, transparent 11.5px) 0 0 / 24px 14px repeat-x;
}
.tkc-hero2__inner {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 56px;
	align-items: center;
}
.tkc-hero2__kicker { margin: 0 0 6px; font-size: 1.9rem; color: var(--tkc-brick); transform: rotate(-1.5deg); transform-origin: left; }
.tkc-hero2__title {
	margin: 0 0 20px;
	font-family: var(--tkc-serif);
	font-size: clamp(2.3rem, 5vw, 3.7rem);
	font-weight: 600;
	font-variation-settings: "opsz" 120;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--tkc-ink);
}
.tkc-hero2__lead { margin: 0 0 28px; max-width: 560px; font-size: 1.125rem; line-height: 1.7; color: var(--tkc-ink-soft); }
.tkc-hero2__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.tkc-hero2__types { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 0.9rem; color: var(--tkc-ink-soft); }
.tkc-hero2__types > span { margin-right: 4px; }

.tkc-hero2__art { position: relative; margin: 0; justify-self: center; width: min(100%, 420px); }
.tkc-hero2__frame {
	position: relative;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	background: var(--tkc-card);
	box-shadow:
		0 0 0 10px var(--tkc-card),
		0 0 0 11px var(--tkc-line),
		0 0 0 18px var(--tkc-card),
		0 0 0 19.5px var(--tkc-honey),
		0 24px 50px -10px rgba(74, 46, 30, 0.35);
}
.tkc-hero2__frame img {
	position: absolute;
	left: 50%;
	top: -1%;
	width: 120%;
	max-width: none;
	height: auto;
	transform: translateX(-50%);
	mix-blend-mode: multiply;
	filter: brightness(1.04);
}
.tkc-hero2__tag {
	position: absolute;
	right: -6px;
	bottom: 18px;
	padding: 10px 18px 10px 22px;
	background: var(--tkc-card);
	border: 1px solid var(--tkc-line);
	border-radius: 4px;
	box-shadow: 0 8px 20px -8px rgba(74, 46, 30, 0.35);
	font-size: 0.85rem;
	color: var(--tkc-ink-soft);
	transform: rotate(4deg);
}
.tkc-hero2__tag::before {
	/* string hole */
	content: "";
	position: absolute;
	left: 8px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	background: var(--tkc-paper-2);
	box-shadow: inset 0 0 0 1px var(--tkc-line);
}
.tkc-hero2__tag .tkc-script { font-size: 1.5rem; color: var(--tkc-brick); margin-right: 4px; }

/* ---------- Holidays ---------- */

.tkc-holi { padding: 72px 0 80px; background: var(--tkc-paper-2); }
.tkc-holi__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tkc-holi__grid li { margin: 0; }
.tkc-holi__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 26px 14px 22px;
	text-align: center;
	text-decoration: none;
	background: var(--tkc-card);
	border: 1px solid var(--tkc-line);
	border-radius: 999px 999px 14px 14px; /* arched like a window */
	transition: transform var(--tkc-t), box-shadow var(--tkc-t), border-color var(--tkc-t);
}
.tkc-holi__card:hover { transform: translateY(-4px); border-color: var(--tkc-honey); box-shadow: var(--tkc-shadow); }
.tkc-holi__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-bottom: 6px;
	border-radius: 50%;
	color: var(--tkc-brick);
	background: var(--tkc-paper);
	box-shadow: inset 0 0 0 1px var(--tkc-line), inset 0 0 0 5px var(--tkc-paper), inset 0 0 0 6px rgba(200, 150, 62, 0.45);
}
.tkc-holi__name { font-family: var(--tkc-serif); font-size: 1.15rem; font-weight: 600; color: var(--tkc-ink); }
.tkc-holi__line { font-size: 0.82rem; line-height: 1.4; color: var(--tkc-ink-soft); }

/* ---------- Featured ---------- */

.tkc-feat { padding: 88px 0; background: var(--tkc-paper); }
.tkc-feat__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.tkc-feat__media {
	position: relative;
	display: block;
	padding: 12px 12px 40px;
	background: var(--tkc-card);
	box-shadow: 0 18px 40px -16px rgba(74, 46, 30, 0.35);
	transform: rotate(-1.5deg);
	transition: transform var(--tkc-t);
}
.tkc-feat__media:hover { transform: rotate(0); }
.tkc-feat__media::before,
.tkc-feat__media::after {
	/* washi tape */
	content: "";
	position: absolute;
	top: -12px;
	width: 96px;
	height: 26px;
	background: rgba(200, 150, 62, 0.45);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.tkc-feat__media::before { left: 22px; transform: rotate(-6deg); }
.tkc-feat__media::after { right: 22px; transform: rotate(5deg); background: rgba(79, 117, 112, 0.4); }
.tkc-feat__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.tkc-feat__body .tkc-script { margin: 0 0 4px; font-size: 1.7rem; color: var(--tkc-brick); }
.tkc-feat__title { margin: 0 0 16px; font-family: var(--tkc-serif); font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 600; line-height: 1.15; }
.tkc-feat__title a { color: var(--tkc-ink); text-decoration: none; }
.tkc-feat__title a:hover { color: var(--tkc-brick); }
.tkc-feat__desc { margin: 0 0 22px; font-size: 1.05rem; line-height: 1.7; color: var(--tkc-ink-soft); }
.tkc-feat__meta { display: flex; gap: 0; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--tkc-line); border-bottom: 1px solid var(--tkc-line); }
.tkc-feat__meta div { flex: 1; padding: 12px 0; text-align: center; }
.tkc-feat__meta div + div { border-left: 1px dashed var(--tkc-line); }
.tkc-feat__meta dt { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tkc-sage); }
.tkc-feat__meta dd { margin: 2px 0 0; font-family: var(--tkc-serif); font-size: 1.1rem; color: var(--tkc-ink); }

/* ---------- Latest ---------- */

.tkc-latest2 { padding: 80px 0 96px; background: var(--tkc-paper-2); }
.tkc-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tkc-card { margin: 0; }
.tkc-card a { display: block; height: 100%; color: inherit; text-decoration: none; }
.tkc-card__img {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--tkc-r);
	background: var(--tkc-paper);
	box-shadow: 0 1px 0 var(--tkc-line);
}
.tkc-card__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; transition: transform 0.6s ease; }
.tkc-card a:hover .tkc-card__img img { transform: scale(1.04); }
.tkc-card__kt { position: absolute; left: 10px; top: 10px; }
.tkc-card__body { display: block; padding: 14px 2px 0; }
.tkc-card__cat { display: block; margin-bottom: 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tkc-sage); }
.tkc-card__title {
	margin: 0;
	font-family: var(--tkc-serif);
	font-size: 1.12rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--tkc-ink);
	transition: color var(--tkc-t);
}
.tkc-card a:hover .tkc-card__title { color: var(--tkc-brick); }

/* ---------- Quote band ---------- */

.tkc-quote {
	position: relative;
	padding: 88px 24px;
	text-align: center;
	color: #F6EEDF;
	background:
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 40%),
		var(--tkc-sage-dark);
}
.tkc-quote::before,
.tkc-quote::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 14px;
}
.tkc-quote::before { top: -1px; background: radial-gradient(circle at 12px 0, var(--tkc-paper-2) 11px, transparent 11.5px) 0 0 / 24px 14px repeat-x; }
.tkc-quote::after { bottom: -1px; background: radial-gradient(circle at 12px 14px, var(--tkc-paper) 11px, transparent 11.5px) 0 0 / 24px 14px repeat-x; }
.tkc-quote__inner { max-width: 820px; margin: 0 auto; }
.tkc-quote blockquote { margin: 18px 0 10px; padding: 0; border: 0; }
.tkc-quote blockquote p {
	margin: 0;
	font-family: var(--tkc-serif);
	font-style: italic;
	font-size: clamp(1.6rem, 3.4vw, 2.4rem);
	font-weight: 400;
	line-height: 1.35;
	color: #FBF6EC;
}
.tkc-quote__by { margin: 0; font-size: 1.6rem; color: #E7C27F; }

/* ---------- Meat / dairy / pareve ---------- */

.tkc-kinds { padding: 88px 0 72px; background: var(--tkc-paper); }
.tkc-kinds__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tkc-kind {
	position: relative;
	display: block;
	padding: 30px 28px 28px;
	text-decoration: none;
	background: var(--tkc-card);
	border: 1px solid var(--tkc-line);
	border-radius: var(--tkc-r);
	transition: transform var(--tkc-t), box-shadow var(--tkc-t);
}
.tkc-kind::before {
	content: "";
	position: absolute;
	left: 28px;
	top: -1px;
	width: 44px;
	height: 5px;
	border-radius: 0 0 4px 4px;
	background: var(--kc);
}
.tkc-kind:hover { transform: translateY(-3px); box-shadow: var(--tkc-shadow); }
.tkc-kind--meat { --kc: var(--tkc-meat); }
.tkc-kind--dairy { --kc: var(--tkc-dairy); }
.tkc-kind--pareve { --kc: var(--tkc-pareve); }
.tkc-kind__label { display: block; margin-bottom: 10px; font-family: var(--tkc-serif); font-size: 1.45rem; font-weight: 600; color: var(--tkc-ink); }
.tkc-kind__label em { font-family: var(--tkc-hand); font-style: normal; font-size: 1.35rem; font-weight: 500; color: var(--kc); margin-left: 4px; }
.tkc-kind__text { display: block; font-size: 0.98rem; line-height: 1.65; color: var(--tkc-ink-soft); }

/* ---------- Recipe box (categories) ---------- */

.tkc-box { padding: 40px 0 100px; background: var(--tkc-paper); }
.tkc-box__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.tkc-box__grid li { margin: 0; }
.tkc-box__card { position: relative; display: block; padding-top: 18px; text-decoration: none; }
.tkc-box__img {
	display: block;
	overflow: hidden;
	border-radius: var(--tkc-r);
	background: var(--tkc-paper-2);
	aspect-ratio: 3 / 2;
}
.tkc-box__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tkc-box__card:hover .tkc-box__img img { transform: scale(1.05); }
.tkc-box__tab {
	/* index-card tab sitting on the photo */
	position: absolute;
	left: 18px;
	top: 0;
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 8px 16px 10px;
	background: var(--tkc-card);
	border: 1px solid var(--tkc-line);
	border-radius: 8px 8px 8px 8px;
	box-shadow: 0 6px 14px -8px rgba(74, 46, 30, 0.4);
	transition: background var(--tkc-t);
}
.tkc-box__card:hover .tkc-box__tab { background: var(--tkc-brick); border-color: var(--tkc-brick); }
.tkc-box__name { font-family: var(--tkc-serif); font-size: 1.2rem; font-weight: 600; color: var(--tkc-ink); }
.tkc-box__count { font-size: 0.78rem; color: var(--tkc-ink-soft); }
.tkc-box__more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 40px auto 0; max-width: 900px; font-size: 0.9rem; color: var(--tkc-ink-soft); }
.tkc-box__more span { margin-right: 4px; font-family: var(--tkc-hand); font-size: 1.3rem; color: var(--tkc-brick); }
.tkc-v2 .tkc-box__more a { padding: 5px 14px; border: 1px solid var(--tkc-line); border-radius: 999px; background: var(--tkc-card); color: var(--tkc-ink); font-weight: 500; text-decoration: none; }
.tkc-v2 .tkc-box__more a:hover { border-color: var(--tkc-brick); color: var(--tkc-brick); }
.tkc-box__card:hover .tkc-box__name,
.tkc-box__card:hover .tkc-box__count { color: #FBF6EC; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.tkc-holi__grid { grid-template-columns: repeat(3, 1fr); }
	.tkc-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
	.tkc-hero2 { padding: 36px 16px 64px; }
	.tkc-hero2__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
	.tkc-hero2__kicker { transform: rotate(-1.5deg); transform-origin: center; }
	.tkc-hero2__lead { margin-left: auto; margin-right: auto; }
	.tkc-hero2__actions, .tkc-hero2__types { justify-content: center; }
	.tkc-hero2__art { order: -1; width: min(72%, 300px); }
	.tkc-feat__inner { grid-template-columns: 1fr; gap: 40px; }
	.tkc-cards { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
	.tkc-kinds__grid { grid-template-columns: 1fr; }
	.tkc-box__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.tkc-wrap { padding: 0 16px; }
	.tkc-holi, .tkc-latest2, .tkc-feat, .tkc-kinds { padding-top: 56px; padding-bottom: 64px; }
	.tkc-holi__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.tkc-holi__card { border-radius: 999px 999px 12px 12px; padding: 22px 10px 18px; }
	.tkc-card__title { font-size: 1rem; }
	.tkc-box__grid { grid-template-columns: 1fr; }
	.tkc-quote { padding: 64px 20px; }
	.tkc-hero2__tag { right: -10px; }
}
