/* Honeydrop Hill website: honey, sky and meadow colours; Fredoka headings, Nunito text. */
:root {
	--honey: #ffb627;
	--honey-deep: #e8830c;
	--honey-soft: #ffe7a8;
	--brown: #6b3a1a;
	--brown-2: #8a4520;
	--ink: #3d2a1e;
	--cream: #fff8e7;
	--cream-2: #fff1d6;
	--sky: #cbeaff;
	--sky-2: #8fd0ff;
	--mint: #9fe0c9;
	--pink: #ffb8d4;
	--grass: #9bd47a;
	--card: #ffffff;
	--shadow: 0 10px 30px rgba(107, 58, 26, 0.14);
	--radius: 26px;
	--head: 'Fredoka', 'Nunito', system-ui, sans-serif;
	--body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color-scheme: light;
}

* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img {
	max-width: 100%;
	display: block;
}
a {
	color: var(--brown-2);
}
h1,
h2,
h3 {
	font-family: var(--head);
	color: var(--brown);
	line-height: 1.1;
	margin: 0 0 0.4em;
}
h2 {
	font-size: clamp(2rem, 4.5vw, 3rem);
	text-align: center;
}
.lead {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 2.2rem;
	font-size: 1.12rem;
	color: #6f5440;
}
.wrap {
	width: min(1180px, 100% - 32px);
	margin: 0 auto;
}
.skip {
	position: absolute;
	left: -999px;
	top: 8px;
	background: var(--brown);
	color: #fff;
	padding: 8px 14px;
	border-radius: 10px;
	z-index: 20;
}
.skip:focus {
	left: 8px;
}
:focus-visible {
	outline: 4px solid var(--sky-2);
	outline-offset: 3px;
	border-radius: 10px;
}

/* ------------------------------------------------------------ buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.85em 1.5em;
	border-radius: 999px;
	background: var(--honey-deep);
	color: #fff;
	font-family: var(--head);
	font-weight: 600;
	font-size: 1.1rem;
	text-decoration: none;
	box-shadow: 0 6px 0 #b9650b, 0 12px 24px rgba(184, 101, 11, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 0 #b9650b, 0 16px 28px rgba(184, 101, 11, 0.3);
}
.btn:active {
	transform: translateY(3px);
	box-shadow: 0 3px 0 #b9650b;
}
.btn-light {
	background: #fff;
	color: var(--brown-2);
	box-shadow: 0 6px 0 #e9d3b4, 0 12px 24px rgba(107, 58, 26, 0.16);
}
.btn-small {
	padding: 0.5em 1.1em;
	font-size: 1rem;
	box-shadow: 0 4px 0 #b9650b;
}

/* ------------------------------------------------------------ nav */
.nav {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 10px clamp(16px, 4vw, 40px);
	background: rgba(255, 248, 231, 0.88);
	backdrop-filter: blur(10px);
	border-bottom: 2px solid rgba(232, 131, 12, 0.15);
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-family: var(--head);
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--brown);
}
.nav nav {
	margin-left: auto;
	display: flex;
	gap: 6px;
}
.nav nav a {
	font-family: var(--head);
	font-weight: 600;
	text-decoration: none;
	color: var(--brown-2);
	padding: 6px 12px;
	border-radius: 999px;
}
.nav nav a:hover {
	background: var(--honey-soft);
}

/* ------------------------------------------------------------ hero */
.hero {
	position: relative;
	min-height: min(88vh, 860px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow: hidden;
	background: var(--sky);
}
.hero-art {
	position: absolute;
	inset: 0;
	background: url('assets/hero.jpg') center bottom / cover no-repeat;
}
.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(203, 234, 255, 0.85) 0%, rgba(203, 234, 255, 0.4) 26%, rgba(203, 234, 255, 0) 42%);
	pointer-events: none;
}
.hero-text {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: clamp(28px, 6vh, 64px) 16px 0;
	max-width: 1040px;
}
.eyebrow {
	display: inline-block;
	margin: 0 0 10px;
	padding: 6px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.8);
	font-weight: 800;
	color: var(--brown-2);
	letter-spacing: 0.02em;
}
.hero h1 {
	font-size: clamp(3.2rem, 11vw, 7rem);
	font-weight: 700;
	color: var(--brown-2);
	-webkit-text-stroke: 0;
	text-shadow:
		0 4px 0 #fff8e7,
		0 -4px 0 #fff8e7,
		4px 0 0 #fff8e7,
		-4px 0 0 #fff8e7,
		3px 3px 0 #fff8e7,
		-3px 3px 0 #fff8e7,
		3px -3px 0 #fff8e7,
		-3px -3px 0 #fff8e7,
		0 12px 24px rgba(107, 58, 26, 0.25);
	margin-bottom: 0.15em;
}
.tagline {
	font-size: clamp(1.1rem, 2.4vw, 1.35rem);
	font-weight: 700;
	color: var(--brown);
	margin: 0 auto 1.4em;
	max-width: 34rem;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}
.bee {
	position: absolute;
	z-index: 1;
	font-size: 2.2rem;
	animation: float 6s ease-in-out infinite;
}
.bee-1 {
	top: 22%;
	left: 9%;
}
.bee-2 {
	top: 30%;
	right: 10%;
	font-size: 1.7rem;
	animation-delay: -3s;
}
@keyframes float {
	0%,
	100% {
		transform: translate(0, 0) rotate(-6deg);
	}
	50% {
		transform: translate(14px, -18px) rotate(6deg);
	}
}

/* Wavy edges between sections. */
.watch,
.friends,
.grown-ups {
	position: relative;
	padding: 72px 0 96px;
}
.watch::before,
.friends::before,
.grown-ups::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -38px;
	height: 40px;
	background: inherit;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C150 0 300 0 450 20 S750 40 900 18 S1100 0 1200 22 V40 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C150 0 300 0 450 20 S750 40 900 18 S1100 0 1200 22 V40 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.watch {
	background: var(--cream);
	z-index: 2;
}
.friends {
	background: var(--sky);
	z-index: 3;
}
.grown-ups {
	background: var(--cream-2);
	z-index: 4;
}

/* ------------------------------------------------------------ watch */
.player-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: #2b1d14;
	border: 8px solid #fff;
	box-shadow: var(--shadow), 0 0 0 4px var(--honey);
	max-width: 960px;
	margin: 0 auto;
}
.player-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.episodes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 26px;
	margin-top: 56px;
}
.episodes:empty {
	display: none;
}
.ep-card {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.yt-facade {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: #2b1d14;
}
.yt-facade img,
.yt-facade iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}
.yt-facade .play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border-radius: 50%;
	background: var(--honey-deep);
	color: #fff;
	font-size: 28px;
	display: grid;
	place-items: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
	transition: transform 0.15s ease;
}
.yt-facade:hover .play {
	transform: scale(1.08);
}
.ep-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.ep-body h3 {
	font-size: 1.35rem;
	margin: 0;
}
.ep-body p {
	margin: 0;
}
.ep-lesson,
.ep-talk {
	background: var(--cream);
	border-radius: 14px;
	padding: 8px 12px;
	font-weight: 700;
	color: var(--brown-2);
}
.ep-talk {
	background: #eef8ff;
	color: #275a80;
}
.ep-links {
	margin-top: auto;
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	font-weight: 800;
}

/* ------------------------------------------------------------ friends */
.friend-grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}
.friend {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px 18px 22px;
	text-align: center;
	transition: transform 0.2s ease;
}
.friend:hover {
	transform: translateY(-4px) rotate(-0.6deg);
}
.friend-pic {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	margin-bottom: 12px;
	overflow: hidden;
}
.friend-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.06) translateY(3%);
}
.friend h3 {
	font-size: 1.45rem;
	margin: 0;
}
.friend .role {
	font-weight: 800;
	color: var(--honey-deep);
	font-size: 0.95rem;
	margin: 2px 0 8px;
}
.friend p {
	margin: 0;
	color: #6f5440;
}

/* ------------------------------------------------------------ grown-ups */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
	margin-top: 26px;
}
.feature {
	background: var(--card);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow);
}
.feature-icon {
	font-size: 2rem;
	display: block;
	margin-bottom: 8px;
}
.feature h3 {
	font-size: 1.3rem;
}
.feature p {
	margin: 0;
	color: #6f5440;
}

/* ------------------------------------------------------------ footer */
.footer {
	background: var(--brown);
	color: #f7e6cf;
	padding: 36px 0 44px;
	text-align: center;
}
.footer .brand {
	color: #fff;
	justify-content: center;
	margin-bottom: 8px;
}
.footer a {
	color: var(--honey);
}
.footer p {
	margin: 4px 0;
}
.footer .small {
	font-size: 0.9rem;
	opacity: 0.8;
}

/* ------------------------------------------------------------ small screens */
@media (max-width: 640px) {
	body {
		font-size: 16px;
	}
	.nav nav {
		display: none;
	}
	.nav .btn-small {
		margin-left: auto;
	}
	.brand {
		font-size: 1.15rem;
	}
	.hero {
		min-height: 860px;
	}
	.hero-art {
		background-image: url('assets/hero-mobile.jpg');
		background-position: center bottom;
	}
	.hero-actions .btn {
		font-size: 1rem;
	}
	.bee-1 {
		top: 52%;
		left: 4%;
	}
	.bee-2 {
		display: none;
	}
	.watch,
	.friends,
	.grown-ups {
		padding: 56px 0 72px;
	}
	.player-frame {
		border-width: 5px;
	}
	.friend-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
	.friend {
		padding: 12px 10px 16px;
	}
	.friend h3 {
		font-size: 1.15rem;
	}
	.friend p {
		font-size: 0.9rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.bee {
		animation: none;
	}
	.btn,
	.friend,
	.yt-facade .play {
		transition: none;
	}
}
