/**
 * Letters From Haven — global styles (all pages)
 * Pairs with GeneratePress parent theme.
 */

:root {
	--lfh-cream: #fff8f0;
	--lfh-soft-pink: #f4c2c2;
	--lfh-blush: #f9e4e4;
	--lfh-lavender: #e6d7f1;
	--lfh-soft-yellow: #fff3cd;
	--lfh-mint: #d4edda;
	--lfh-sky: #d6eaf8;
	--lfh-warm-brown: #8b6f5e;
	--lfh-dark-brown: #5d4037;
	--lfh-coral: #e8836b;
	--lfh-deep-coral: #d4654e;
	--lfh-text-dark: #4a3728;
	--lfh-text-soft: #7a6555;
	--lfh-envelope-tan: #d2b48c;
	--lfh-stamp-red: #c0392b;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background-color: var(--lfh-cream);
	color: var(--lfh-text-dark);
	overflow-x: hidden;
}

/* Subtle paper texture (same as mock) */
body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 9999;
}

/* ----- GeneratePress header ----- */
.site-header {
	background-color: var(--lfh-cream);
	border-bottom: 1px dashed var(--lfh-soft-pink);
	box-shadow: 0 2px 12px rgba(93, 64, 55, 0.06);
}

.inside-header {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.site-header .main-title a,
.site-header .site-title a,
.site-branding .main-title a {
	font-family: "Caveat", cursive;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	color: var(--lfh-dark-brown) !important;
	text-decoration: none;
}

.site-header .main-title a:hover,
.site-header .site-title a:hover {
	color: var(--lfh-coral) !important;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle {
	font-family: "Quicksand", sans-serif;
	font-weight: 600;
	color: var(--lfh-text-dark) !important;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
	color: var(--lfh-coral) !important;
}

/* Checkout after menu ul in .main-nav — flex + margin-left: auto keeps it on the right */
.main-navigation .main-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 0.75rem;
	row-gap: 0.35rem;
}

.main-navigation .main-nav > ul {
	flex: 0 1 auto;
}

.main-navigation .lfh-nav-checkout-wrap {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: auto;
}

.main-navigation .lfh-nav-checkout-wrap .lfh-nav-checkout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.35rem 1.1rem;
	border-radius: 999px;
	font-weight: 600;
	font-family: "Quicksand", sans-serif;
	text-decoration: none;
	color: #fff !important;
	background: var(--lfh-coral);
	border: 2px solid var(--lfh-deep-coral);
	box-shadow: 0 2px 0 var(--lfh-deep-coral);
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.main-navigation .lfh-nav-checkout__icon {
	display: inline-flex;
	line-height: 0;
}

.main-navigation .lfh-nav-checkout__icon svg {
	display: block;
	width: 1.15em;
	height: 1.15em;
}

.main-navigation .lfh-nav-checkout-wrap .lfh-nav-checkout:hover {
	background: var(--lfh-deep-coral);
	color: #fff !important;
	transform: translateY(1px);
	box-shadow: 0 1px 0 var(--lfh-deep-coral);
}

/* ----- Main content area (posts, pages) ----- */
.site-content .content-area,
.one-container .site-content {
	padding-top: 0;
	padding-bottom: 3rem;
}

.entry-header .entry-title,
.page-header .page-title {
	font-family: "Caveat", cursive;
	font-weight: 700;
	color: var(--lfh-dark-brown);
}

.entry-content,
.entry-summary {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--lfh-text-soft);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: "Caveat", cursive;
	color: var(--lfh-dark-brown);
	font-weight: 700;
}

.entry-content a,
.comment-content a,
.widget a {
	color: var(--lfh-coral);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content a:hover,
.widget a:hover {
	color: var(--lfh-deep-coral);
}

.entry-meta,
.post-navigation,
.paging-navigation {
	color: var(--lfh-text-soft);
	font-size: 0.9rem;
}

/* Buttons (blocks + common GP) */
.wp-block-button__link,
.button,
a.button,
button[type="submit"] {
	font-family: "Quicksand", sans-serif;
	font-weight: 700;
	border-radius: 50px;
}

.wp-block-button__link:not(.has-background),
.button:not(.has-background),
a.button {
	background-color: var(--lfh-coral) !important;
	color: #fff !important;
}

.wp-block-button__link:not(.has-background):hover,
.button:not(.has-background):hover {
	background-color: var(--lfh-deep-coral) !important;
	color: #fff !important;
}

/* ----- GeneratePress footer ----- */
.site-footer,
.site-info {
	background-color: var(--lfh-dark-brown) !important;
	color: var(--lfh-cream) !important;
	border-top: none;
}

.site-footer .inside-site-info,
.site-info .inside-site-info {
	padding-top: 2rem;
	padding-bottom: 2rem;
	text-align: center;
}

.site-footer a,
.site-info a {
	color: var(--lfh-blush) !important;
}

.site-footer a:hover,
.site-info a:hover {
	color: #fff !important;
}

.lfh-footer-links {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
}

.lfh-footer-links__sep {
	opacity: 0.55;
	padding: 0 0.15em;
}

.footer-widgets {
	background-color: var(--lfh-warm-brown);
	color: var(--lfh-cream);
}

.footer-widgets .widget-title {
	font-family: "Caveat", cursive;
	color: var(--lfh-cream);
}

.footer-widgets a {
	color: var(--lfh-blush);
}

/* ----- Letters home layout: full-bleed sections (hero, bands) ----- */
body.lfh-letters-home-layout .site-content {
	padding-top: 0;
}

body.lfh-letters-home-layout .content-area,
body.lfh-letters-home-layout #primary {
	max-width: none;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

body.lfh-letters-home-layout .site-main,
body.lfh-letters-home-layout #main {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

body.lfh-letters-home-layout .inside-article,
body.lfh-letters-home-layout .entry-content {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	margin: 0;
}

body.lfh-letters-home-layout .lfh-home {
	width: 100%;
	max-width: 100%;
	/*
	 * Avoid overflow-x: hidden — it pairs with overflow-y: visible to compute as "auto"
	 * and clips vertically, which cuts off the envelope flap in .whats-inside.
	 */
	overflow: visible;
}
