/* Bond Affair: custom homepage v2 */
:root {
	--ba-ink: #1d1a4a;
	--ba-rasp: #ff5f7e;
	--ba-rasp-text: #c2264f;
	--ba-gold: #ffb547;
	--ba-lilac: #f4f1ff;
	--ba-line: #e3ddf5;
	--ba-text: #26233f;
	--ba-muted: #5f5b7a;
	--ba-head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
	--ba-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Full width layout on the homepage */
.home,
.home .site,
.home .site-content {
	background: var(--ba-lilac);
	font-family: var(--ba-body);
	color: var(--ba-text);
}
.home .site.grid-container {
	max-width: none;
	padding: 0;
}
.home .site-content {
	display: block;
}
.home .content-area {
	width: 100%;
	margin: 0;
}
.home .site-main {
	margin: 0;
}
.home .site-header {
	border-bottom: 1px solid var(--ba-line);
}
.home .main-title a {
	font-family: var(--ba-head);
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--ba-ink);
}

.ba-home a:focus-visible,
.ba-home input:focus-visible,
.ba-home button:focus-visible {
	outline: 3px solid var(--ba-gold);
	outline-offset: 3px;
}

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

/* Hero */
.ba-hero {
	background: var(--ba-ink);
	color: #fff;
	padding: 64px 0 120px;
	overflow: hidden;
}
.ba-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 40px;
	align-items: center;
}
.ba-hero__title {
	margin: 0 0 18px;
	font-family: var(--ba-head);
	font-size: clamp(36px, 5.2vw, 62px);
	line-height: 1.04;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
}
.ba-hero__lead {
	margin: 0 0 30px;
	max-width: 30em;
	font-size: 20px;
	line-height: 1.55;
	color: #d9d5f5;
}
.ba-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.ba-hero__art {
	animation: ba-rise 0.7s ease-out both;
}
.ba-hero__art svg {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	margin-left: auto;
}
@keyframes ba-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Buttons */
.ba-btn {
	display: inline-block;
	padding: 15px 26px;
	border-radius: 12px;
	font-family: var(--ba-body);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.1;
	text-decoration: none;
}
.ba-btn--gold {
	background: var(--ba-gold);
	color: var(--ba-ink);
}
.ba-btn--gold:hover,
.ba-btn--gold:focus {
	background: #ffc36b;
	color: var(--ba-ink);
}
.ba-btn--outline {
	border: 2px solid rgba(255, 255, 255, 0.55);
	color: #fff;
}
.ba-btn--outline:hover,
.ba-btn--outline:focus {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

/* Planner bar overlapping the hero */
.ba-planner-wrap {
	position: relative;
	margin-top: -56px;
	z-index: 2;
}
.ba-planner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	padding: 20px 26px;
	background: #fff;
	border: 1px solid var(--ba-line);
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(29, 26, 74, 0.14);
}
.ba-planner__label {
	margin: 0;
	font-family: var(--ba-head);
	font-size: 19px;
	font-weight: 800;
	color: var(--ba-ink);
}
.ba-chips {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 10px;
}
.ba-chip {
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--ba-lilac);
	border: 1px solid var(--ba-line);
	color: var(--ba-ink);
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
}
.ba-chip:hover,
.ba-chip:focus {
	background: var(--ba-ink);
	border-color: var(--ba-ink);
	color: #fff;
}
.ba-planner__search .search-form {
	display: flex;
	margin: 0;
	border: 1px solid var(--ba-line);
	border-radius: 12px;
	overflow: hidden;
}
.ba-planner__search .search-form label {
	margin: 0;
}
.ba-planner__search .search-field {
	width: 190px;
	border: 0;
	background: #fff;
	padding: 10px 14px;
	color: var(--ba-text);
}
.ba-planner__search .search-submit {
	border: 0;
	border-radius: 0;
	background: var(--ba-ink);
	color: #fff;
	padding: 0 16px;
}

/* Sections */
.ba-block {
	padding-top: 60px;
	padding-bottom: 8px;
}
.ba-h2 {
	margin: 0 0 24px;
	font-family: var(--ba-head);
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--ba-ink);
}
.ba-tag {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ba-rasp-text);
	text-decoration: none;
}
.ba-tag::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ba-rasp);
}
.ba-meta {
	font-size: 14px;
	color: var(--ba-muted);
}
.ba-thumb {
	display: block;
	background: var(--ba-line);
	overflow: hidden;
}
.ba-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Newest guides */
.ba-news {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 24px;
	align-items: stretch;
}
.ba-lead {
	display: grid;
	grid-template-rows: auto 1fr;
	background: #fff;
	border: 1px solid var(--ba-line);
	border-radius: 24px;
	overflow: hidden;
}
.ba-lead .ba-thumb {
	aspect-ratio: 16 / 9;
}
.ba-lead__body {
	display: flex;
	flex-direction: column;
	padding: 24px 28px 28px;
}
.ba-lead__title {
	margin: 0 0 10px;
	font-family: var(--ba-head);
	font-size: clamp(24px, 2.6vw, 32px);
	line-height: 1.15;
	font-weight: 800;
}
.ba-lead__title a,
.ba-row__title a,
.ba-card__title a {
	color: var(--ba-ink);
	text-decoration: none;
}
.ba-lead__title a:hover,
.ba-row__title a:hover,
.ba-card__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.ba-lead__excerpt {
	flex: 1;
	margin: 0 0 14px;
	color: var(--ba-muted);
	line-height: 1.6;
}
.ba-rows {
	display: grid;
	gap: 16px;
	align-content: start;
}
.ba-row {
	display: grid;
	grid-template-columns: 132px 1fr;
	gap: 16px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--ba-line);
	border-radius: 14px;
}
.ba-row .ba-thumb {
	aspect-ratio: 1;
	border-radius: 10px;
}
.ba-row__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ba-row__title {
	margin: 0 0 6px;
	font-family: var(--ba-head);
	font-size: 18px;
	line-height: 1.25;
	font-weight: 600;
}

/* Theme panels with the couple characters */
.ba-panels {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.ba-panel {
	display: flex;
	flex-direction: column;
	padding: 22px 22px 26px;
	border-radius: 28px;
	text-decoration: none;
	color: var(--ba-ink);
	transition: transform 0.2s ease;
}
.ba-panel:hover,
.ba-panel:focus-visible {
	transform: translateY(-4px);
}
.ba-panel--hero {
	background: #ffe9b8;
}
.ba-panel--halloween {
	background: #ffe6cc;
}
.ba-panel--adults {
	background: #e7deff;
}
.ba-panel--thanksgiving {
	background: #ffe9d6;
}
.ba-panel__art svg {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 14px;
}
.ba-panel__title {
	font-family: var(--ba-head);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.ba-panel__desc {
	margin: 6px 0 14px;
	line-height: 1.5;
	color: #3d3966;
}
.ba-panel__count {
	margin-top: auto;
	font-weight: 700;
	font-size: 15px;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* More to try */
.ba-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.ba-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ba-line);
	border-radius: 16px;
	overflow: hidden;
}
.ba-card .ba-thumb {
	aspect-ratio: 16 / 10;
}
.ba-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 18px 18px;
}
.ba-card__title {
	margin: 0 0 10px;
	font-family: var(--ba-head);
	font-size: 19px;
	line-height: 1.25;
	font-weight: 600;
}
.ba-card__body .ba-meta {
	margin-top: auto;
}

/* Closing band */
.ba-band {
	margin-top: 72px;
	background: var(--ba-ink);
	color: #fff;
}
.ba-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	padding-top: 44px;
	padding-bottom: 44px;
}
.ba-band__title {
	margin: 0 0 6px;
	font-family: var(--ba-head);
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
}
.ba-band__text {
	margin: 0;
	color: #d9d5f5;
}

/* Responsive */
@media (max-width: 960px) {
	.ba-hero__grid {
		grid-template-columns: 1fr;
		text-align: left;
	}
	.ba-hero__art svg {
		margin: 0 auto;
		max-width: 420px;
	}
	.ba-news {
		grid-template-columns: 1fr;
	}
	.ba-panels,
	.ba-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.ba-hero {
		padding: 44px 0 104px;
	}
	.ba-hero__lead {
		font-size: 18px;
	}
	.ba-planner {
		padding: 18px;
	}
	.ba-planner__search,
	.ba-planner__search .search-form,
	.ba-planner__search .search-form label {
		width: 100%;
	}
	.ba-planner__search .search-field {
		width: 100%;
	}
	.ba-block {
		padding-top: 44px;
	}
	.ba-row {
		grid-template-columns: 96px 1fr;
	}
	.ba-panels,
	.ba-grid {
		grid-template-columns: 1fr;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ba-hero__art {
		animation: none;
	}
	.ba-panel {
		transition: none;
	}
}
