/*
Theme Name: Little Puff
Theme URI: http://localhost/little_puff/
Description: Child theme of Hello Elementor for the Little Puff site. Header and footer are Elementor templates selected in Customizer > Little Puff.
Author: Little Puff
Template: hello-elementor
Version: 1.0.0
Text Domain: little-puff
*/

/* ---------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------ */
:root {
	--lp-cream: #faf7f0;
	--lp-ink: #000;
	--lp-olive: #6f6e52;
	--lp-pink: #f2e7e3;
	--lp-grey: #d9d9d9;
	--lp-line: #d9d9d9;
	--lp-serif: "Cormorant Garamond", Georgia, serif;
	--lp-sans: "DM Sans", Arial, sans-serif;
	--lp-hand: "Coming Soon", "Comic Sans MS", cursive;
}

@font-face {
	font-family: "Coming Soon";
	src: url("assets/fonts/ComingSoon-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

html.lp-locked {
	overflow: hidden;
}

body {
	background: var(--lp-cream);
	color: var(--lp-ink);
	font-family: var(--lp-serif);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
}

a:hover,
a:focus-visible {
	color: var(--lp-olive);
}

.lp-site-header,
.lp-site-footer {
	position: relative;
	z-index: 5;
}

/* Wider than the 1440 design: the band's content (art to newsletter) ends 78px short
   of its right edge, so nudge it right to look centred. 0px at 1440, up to 39px. */
@media (min-width: 1441px) {
	.lp-band.e-con {
		left: clamp(0px, calc((100vw - 1460px) / 2), 39px);
	}
}

/* Linked images: Elementor makes the link an inline-block that shrinks to the
   picture, so a 100%-wide image never fills its column. A block link fixes that;
   the image inside still follows the widget's alignment. */
.e-con .elementor-widget-image a {
	display: block;
}

/* Butterfly band: watercolour layers sit under the text columns. */
.lp-band .lp-band__smoke,
.lp-band .lp-band__pink {
	z-index: 0;
}

.lp-band .lp-band__art {
	z-index: 1;
}

.lp-band .lp-band__quote,
.lp-band .lp-band__wonderings,
.lp-band .lp-band__news {
	position: relative;
	z-index: 2;
}

.lp-band .lp-band__quote {
	position: absolute;
}

/* Buttons and inputs: undo Hello Elementor's pink defaults inside our components. */
.lp-tools__btn,
.lp-newsletter__submit,
.lp-overlay__close,
.lp-overlay__search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	line-height: 0;
}

.lp-tools__btn:hover,
.lp-tools__btn:focus,
.lp-newsletter__submit:hover,
.lp-newsletter__submit:focus,
.lp-overlay__close:hover,
.lp-overlay__search button:hover {
	background: none;
	color: var(--lp-olive);
}

/* ---------------------------------------------------------------------------
   Logo
   ------------------------------------------------------------------------ */
.lp-logo {
	display: block;
	width: 158px;
	line-height: 0;
}

.lp-logo img {
	display: block;
	width: 158px;
	height: auto;
}

/* ---------------------------------------------------------------------------
   Menus
   ------------------------------------------------------------------------ */
.lp-menu__list {
	display: flex;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lp-menu a {
	display: block;
	color: var(--lp-ink);
	font: 400 18px/26px var(--lp-serif);
	white-space: nowrap;
	text-decoration: none;
}

.lp-menu a:hover,
.lp-menu a:focus-visible,
.lp-menu .current-menu-item > a {
	color: var(--lp-olive);
}

/* Spacing taken from the Figma frame (item gaps are not all equal there). */
.lp-menu--primary .lp-menu__list {
	gap: 24.5px;
}

.lp-menu--primary li:nth-child(1) {
	margin-right: 4.1px;
}

.lp-menu--primary li:nth-child(2) {
	margin-right: 0.1px;
}

.lp-menu--primary li:nth-child(3),
.lp-menu--primary li:nth-child(4) {
	margin-right: 1px;
}

.lp-menu--footer .lp-menu__list {
	justify-content: flex-end;
	gap: 24.5px;
	margin-right: 1px;
}

.lp-menu--footer li:nth-child(1) {
	margin-right: 9.1px;
}

.lp-menu--footer li:nth-child(2) {
	margin-right: 10.4px;
}

.lp-menu--footer li:nth-child(3),
.lp-menu--footer li:nth-child(4) {
	margin-right: 1px;
}

/* ---------------------------------------------------------------------------
   Header tools (search, bag, mobile menu)
   ------------------------------------------------------------------------ */
.lp-tools {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	color: var(--lp-ink);
}

.lp-tools__search {
	width: 24px;
	height: 24px;
}

.lp-tools__bag {
	width: 20px;
	height: 20px;
	margin-top: 2px;
}

.lp-tools__menu {
	display: none;
	width: 24px;
	height: 24px;
}

/* ---------------------------------------------------------------------------
   Social icons
   ------------------------------------------------------------------------ */
/* Each icon sits centred in a 24x24 box, 14px apart (Figma "social icons": 138x24). */
.lp-social {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lp-social li {
	line-height: 0;
}

.lp-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--lp-ink);
}

.lp-social__youtube a {
	color: #5c5954;
}

.lp-social a:hover {
	color: var(--lp-olive);
}

/* ---------------------------------------------------------------------------
   Inline arrow / heart
   ------------------------------------------------------------------------ */
.lp-arrow,
.lp-heart {
	display: inline-block;
	line-height: 0;
}

.lp-heart svg {
	width: 21px;
	height: 19px;
}

/* ---------------------------------------------------------------------------
   From the Wonderings
   ------------------------------------------------------------------------ */
.lp-wonderings {
	display: grid;
	grid-template-columns: repeat(3, 110px);
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lp-wonderings a {
	display: block;
	color: var(--lp-ink);
	text-decoration: none;
}

.lp-wonderings__thumb {
	display: block;
	width: 110px;
	height: 85px;
	overflow: hidden;
	background: var(--lp-grey);
}

.lp-wonderings__thumb:has(img),
.lp-post-card__thumb:has(img) {
	background: #fff;
}

.lp-wonderings__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.lp-wonderings a:hover img {
	transform: scale(1.05);
}

.lp-wonderings__caption {
	position: relative;
	display: block;
	margin-top: 6px;
	padding: 0 18px 0 0;
	font: 400 14px/16px var(--lp-serif);
}

.lp-wonderings__title {
	display: block;
	max-width: 92px;
}

.lp-wonderings__caption svg {
	position: absolute;
	top: 3.5px;
	right: 1px;
	width: 10px;
	height: 9px;
}

.lp-wonderings__item:first-child .lp-wonderings__caption svg {
	right: 5px;
}

/* ---------------------------------------------------------------------------
   Newsletter
   ------------------------------------------------------------------------ */
.lp-newsletter {
	position: relative;
	width: 238px;
	max-width: 100%;
	margin: 0;
}

.lp-newsletter__input[type="email"] {
	display: block;
	width: 100%;
	height: 36px;
	margin: 0;
	padding: 8px 40px 8px 20px;
	border: 1px solid var(--lp-line);
	border-radius: 18px;
	background: #fff;
	color: var(--lp-ink);
	font: 400 14px/18px var(--lp-sans);
	letter-spacing: 0.7px;
	text-transform: uppercase;
	outline: none;
}

.lp-newsletter__input::placeholder {
	color: var(--lp-ink);
	opacity: 1;
}

.lp-newsletter__input:focus {
	border-color: var(--lp-olive);
	text-transform: none;
}

.lp-newsletter__submit {
	position: absolute;
	top: 0;
	right: 1px;
	width: 44px;
	height: 36px;
	padding-left: 12px;
	justify-content: flex-start;
}

.lp-form-note {
	margin: 8px 0 0;
	font: 400 15px/1.3 var(--lp-serif);
}

/* ---------------------------------------------------------------------------
   Buttons used outside Elementor (contact form, blog)
   ------------------------------------------------------------------------ */
.lp-button,
.lp-contact button.lp-button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 18px;
	border: 1px solid var(--lp-olive);
	border-radius: 18px;
	background: var(--lp-olive);
	color: #fff;
	font: 400 14px/18px var(--lp-sans);
	letter-spacing: 0.7px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.lp-button:hover,
.lp-button:focus {
	background: #5d5c43;
	color: #fff;
}

/* ---------------------------------------------------------------------------
   Contact form
   ------------------------------------------------------------------------ */
.lp-contact p {
	margin: 0 0 18px;
}

.lp-contact label {
	display: block;
	margin-bottom: 6px;
	font: 400 12px/16px var(--lp-sans);
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.lp-contact input,
.lp-contact textarea {
	width: 100%;
	padding: 10px 16px;
	border: 1px solid var(--lp-line);
	border-radius: 8px;
	background: #fff;
	color: var(--lp-ink);
	font: 400 18px/24px var(--lp-serif);
}

.lp-contact input:focus,
.lp-contact textarea:focus {
	border-color: var(--lp-olive);
	outline: none;
}

.lp-contact__hp {
	position: absolute;
	left: -9999px;
}

/* ---------------------------------------------------------------------------
   Overlays (search, mobile menu)
   ------------------------------------------------------------------------ */
.lp-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	padding: 24px;
	background: rgba(250, 247, 240, 0.97);
}

.lp-overlay[hidden] {
	display: none;
}

.lp-overlay__close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 32px;
	height: 32px;
}

.lp-overlay__search {
	position: relative;
	width: min(640px, 100%);
}

.lp-overlay__search input[type="search"] {
	width: 100%;
	padding: 12px 56px 12px 0;
	border: 0;
	border-bottom: 1px solid var(--lp-ink);
	border-radius: 0;
	background: transparent;
	color: var(--lp-ink);
	font: 400 32px/1.2 var(--lp-serif);
	outline: none;
}

.lp-overlay__search button {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%) scale(1.6);
}

.lp-overlay--menu .lp-menu__list {
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.lp-overlay--menu .lp-menu li {
	margin: 0 !important;
}

.lp-overlay--menu .lp-menu a {
	font-size: 30px;
	line-height: 36px;
}

/* ---------------------------------------------------------------------------
   Blog: Wonderings index, single posts, search, archives
   ------------------------------------------------------------------------ */
.lp-page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 20px 80px;
}

.lp-page__head {
	margin-bottom: 40px;
	text-align: center;
}

.lp-page__title {
	margin: 0;
	font: 400 38px/46px var(--lp-serif);
}

.lp-page__intro {
	margin: 8px 0 0;
	font: 400 20px/28px var(--lp-serif);
}

.lp-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lp-post-card a {
	display: block;
	color: var(--lp-ink);
	text-decoration: none;
}

.lp-post-card__thumb {
	display: block;
	aspect-ratio: 110 / 85;
	overflow: hidden;
	border-radius: 4px;
	background: var(--lp-grey);
}

.lp-post-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.lp-post-card a:hover img {
	transform: scale(1.04);
}

.lp-post-card__meta {
	display: block;
	margin-top: 14px;
	font: 400 12px/16px var(--lp-sans);
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.lp-post-card__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 0;
	font: 400 24px/28px var(--lp-serif);
}

.lp-page__empty {
	text-align: center;
}

.lp-post-card__excerpt {
	display: block;
	margin: 8px 0 0;
	font: 400 18px/24px var(--lp-serif);
}

.lp-pagination {
	margin-top: 48px;
	text-align: center;
	font: 400 18px/26px var(--lp-serif);
}

.lp-pagination .page-numbers {
	padding: 0 8px;
	color: var(--lp-ink);
}

.lp-single {
	max-width: 760px;
	margin: 0 auto;
	padding: 56px 20px 80px;
}

.lp-single__meta {
	font: 400 12px/16px var(--lp-sans);
	letter-spacing: 1.2px;
	text-align: center;
	text-transform: uppercase;
}

.lp-single__title {
	margin: 10px 0 32px;
	font: 400 52px/56px var(--lp-serif);
	text-align: center;
}

.lp-single__image {
	margin: 0 0 32px;
}

/* Show the whole artwork (Hello Elementor crops post images to 500px by default). */
.lp-single .lp-single__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 460px;
	margin: 0 auto;
	border-radius: 6px;
	object-fit: contain;
}

.lp-single__content {
	font: 400 20px/1.6 var(--lp-serif);
}

.lp-single__content p {
	margin: 0 0 1em;
}

.lp-single__back {
	margin-top: 40px;
	text-align: center;
}

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.lp-site-header .lp-menu--primary {
		display: none;
	}

	/* Keep the hero copy readable where it overlaps the tree and sky. */
	.lp-hero.e-con::before {
		content: "";
		position: absolute;
		inset: 0 0 auto;
		height: 55%;
		background: linear-gradient(rgba(250, 247, 240, 0.82), rgba(250, 247, 240, 0));
		pointer-events: none;
	}

	.lp-hero.e-con > .elementor-widget-heading,
	.lp-hero.e-con > .elementor-widget-button {
		position: relative;
		z-index: 1;
	}

	/* Butterfly band below desktop: the art flows on top, then the two columns
	   (column layout and spacing are set in Elementor's tablet settings). */
	.lp-band .lp-band__art.elementor-widget {
		position: relative;
		width: min(650px, 100%);
		max-width: none;
		margin: 0 auto;
	}

	.lp-band .lp-band__art img {
		width: 100%;
	}

	.lp-band .lp-band__smoke,
	.lp-band .lp-band__pink {
		display: none;
	}

	.lp-menu--footer .lp-menu__list {
		flex-wrap: wrap;
		justify-content: center;
		gap: 12px 22px;
		margin-right: 0;
	}

	.lp-menu--footer li {
		margin: 0 !important;
	}

	.lp-tools__menu {
		display: inline-flex;
	}

	.lp-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	/* Product cards go full width; their photos keep a fixed height. */
	.lp-cards .lp-card.e-con {
		--width: 100%;
	}

	.lp-cards .lp-card.e-con .elementor-widget-image img {
		width: 100%;
		height: 240px;
		object-fit: cover;
	}

	.lp-cards .lp-note.e-con {
		align-self: center;
		margin: 8px 0;
	}

	.lp-posts {
		grid-template-columns: 1fr;
	}

	.lp-single__title {
		font-size: 38px;
		line-height: 44px;
	}

	.lp-overlay__search input[type="search"] {
		font-size: 24px;
	}
}
