/**
 * PPP Global Styles 
 * Add this to your WordPress theme's main stylesheet
 */

/* ==========================================================================
   Google Fonts Import
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Dancing+Script:wght@400;500;600;700&family=Jost:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Base Setup & Admin Bar Suppression
   ========================================================================== */

html.wp-toolbar {
	margin-top: 0 !important;
	padding-top: 0 !important;
}


body.ppp-full-screen {
	margin: 0;
	padding: 0;
	background: #000;
}

/* Hide PageLayer's full-screen overlays that conflict with PPP design */
.page-id-116::before,
.page-id-116::after {
	display: none !important;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.ppp-wrap {
	--lib-text: #ffffff;
	--lib-secondary-text: #f0e9dd;
	--lib-btn-bg: #f0e9dd;
	--lib-btn-text: #1a1a1a;
	--lib-accent-bg: #a0513f;
	--lib-accent-text: #e9b76d;
	--lib-overlay: 0.55;
	--lib-overlay-color: #0a0a08;
	--lib-font-title: 'Bodoni Moda', Georgia, serif;
	--lib-font-tagline: 'Dancing Script', cursive;
	--lib-font-body: 'Montserrat', sans-serif;
	--lib-radius: 6px;

	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 0;
	background: #000;
	position: relative;
}

/* Blurred, halftone side background */
.ppp-side-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	filter: blur(55px) saturate(1.15) brightness(0.55);
	transform: scale(1.25);
	pointer-events: none;
}

.ppp-side-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(0, 0, 0, 0.95) 1px, transparent 1.6px);
	background-size: 5px 5px;
	mix-blend-mode: multiply;
	opacity: 0.55;
}

.ppp-card {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 520px;
	overflow: hidden;
	background: #14140f;
	color: var(--lib-text) !important;
	box-sizing: border-box;
}

/* Desktop max-width with !important to beat theme overrides */
@media (min-width: 700px) {
	.ppp-card {
		max-width: 960px !important;
		box-shadow: 0 0 90px rgba(0, 0, 0, 0.5);
	}
}

.ppp-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.ppp-bg-overlay {
	position: absolute;
	inset: 0;
	background: var(--lib-overlay-color);
	opacity: var(--lib-overlay);
	z-index: 1;
}

.ppp-content {
	position: relative;
	z-index: 2;
	padding: 12vh 80px 25vh;
	text-align: center;
	box-sizing: border-box;
}

/* Constrain main content width to match form fields/buttons */
.ppp-main-content {
	max-width: 460px;
	margin: 0 auto 42px;
	box-sizing: border-box;
	text-align: center;
}

.ppp-main-content p {
	font-family: var(--lib-font-body) !important;
	font-size: 0.95rem !important;
	line-height: 1.5 !important;
	color: var(--lib-secondary-text) !important;
	margin: 10px !important;
}

.ppp-main-content p em {
	font-family: var(--lib-font-tagline) !important;
	font-size: 1.96rem !important;
	font-style: italic;
	line-height: 0.8 !important;
	color: var(--lib-accent-text) !important;
	margin: 15px !important;
	display: inline-block;
	transform: rotate(-2.5deg);
	transform-origin: center;
}

@media (max-width: 480px) {
	.ppp-content {
		padding: 8vh 55px 30vh;
	}

	.ppp-card {
		max-width: 100% !important;
	}
}

/* ==========================================================================
   Typography
   ========================================================================== */

.ppp-intro-subtitle {
	font-family: var(--lib-font-body) !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.24em !important;
	text-transform: uppercase !important;
	font-weight: 500 !important;
	margin: 0 0 20px !important;
	opacity: 0.85;
	color: var(--lib-secondary-text) !important;
}

.ppp-title {
	font-family: var(--lib-font-title) !important;
	font-weight: 800 !important;
	font-size: clamp(1.1rem, 2.5vw, 1.8rem) !important;
	line-height: 1.05 !important;
	letter-spacing: 0.06em !important;
	font-variation-settings: "opsz" 96 !important;
	text-transform: uppercase !important;
	color: var(--lib-secondary-text) !important;
	opacity: 0.7;
	max-width: clamp(192px, 26.4vw, 360px) !important;
	margin: 0 auto 32px auto !important;
	text-align: center !important;
	display: block !important;
	word-break: break-word !important;
}

.ppp-title--large {
	font-size: clamp(4rem, 16vw, 7.5rem) !important;
	margin: 0 0 48px !important;
	color: var(--lib-text) !important;
	opacity: 1;
	line-height: 0.88 !important;
}

/* Make first h2 in main content the large focal title */
.ppp-main-content h2:first-of-type {
	font-family: var(--lib-font-title) !important;
	font-weight: 900 !important;
	font-size: clamp(5.5rem, 22vw, 9.5rem) !important;
	line-height: 0.88 !important;
	letter-spacing: -0.01em !important;
	text-transform: uppercase !important;
	margin: 0 0 48px !important;
	color: var(--lib-text) !important;
}

/* MailerLite form title as large focal title */
.ppp-main-content .mailerlite-form-title h3 {
	font-family: var(--lib-font-title) !important;
	font-weight: 900 !important;
	font-size: clamp(4rem, 16vw, 7.5rem) !important;
	line-height: 0.88 !important;
	letter-spacing: -0.01em !important;
	text-transform: uppercase !important;
	margin: 0 0 35px !important;
	color: var(--lib-text) !important;
}

/* Centered rule under the small top title, ~half the title text width (em scales with the title size) */
.ppp-title:not(.ppp-title--large)::after {
	content: "";
	display: block;
	width: 5em;
	height: 1px;
	margin: 20px auto 0;
	background: var(--lib-secondary-text);
	opacity: 0.6;
}

/* MailerLite form styling (from Link In Bio design system) */
.ppp-main-content .mailerlite-form-field label {
	font-family: var(--lib-font-body) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: var(--lib-secondary-text) !important;
	margin-bottom: 6px !important;
	display: block !important;
	text-align: left !important;
}

.ppp-main-content .mailerlite-form-field input {
	width: 100% !important;
	box-sizing: border-box !important;
	background: var(--lib-btn-bg) !important;
	color: var(--lib-btn-text) !important;
	font-family: var(--lib-font-body) !important;
	font-size: 15px !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 14px 18px !important;
	box-shadow: none !important;
	margin-bottom: 16px !important;
}

.ppp-main-content .mailerlite-form-field input::placeholder {
	color: #6b6b6b !important;
}

.ppp-main-content .mailerlite-subscribe-submit {
	width: 100% !important;
	background: var(--lib-accent-bg) !important;
	color: var(--lib-secondary-text) !important;
	font-family: var(--lib-font-title) !important;
	font-weight: 600 !important;
	font-size: 18px !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 16px 20px !important;
	cursor: pointer !important;
	box-shadow: none !important;
	transition: background-color 0.2s ease !important;
}

.ppp-main-content .mailerlite-subscribe-submit:hover {
	background: var(--lib-btn-bg) !important;
	color: var(--lib-btn-text) !important;
}

.ppp-subtitle {
	font-family: var(--lib-font-body) !important;
	font-size: 0.8rem !important;
	letter-spacing: 0.24em !important;
	text-transform: uppercase !important;
	font-weight: 500 !important;
	margin: 0 0 34px !important;
	opacity: 0.85;
	color: var(--lib-secondary-text) !important;
}

.ppp-tagline {
	font-family: var(--lib-font-tagline) !important;
	font-size: 1.6rem !important;
	font-weight: 500 !important;
	margin: 0 0 40px !important;
	position: relative;
	padding-bottom: 20px;
	color: var(--lib-secondary-text) !important;
}

.ppp-tagline::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 44px;
	height: 1px;
	background: currentColor;
	opacity: 0.5;
}

/* ==========================================================================
   Links & Buttons
   ========================================================================== */

.ppp-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 42px;
}

.ppp-link-btn {
	display: flex !important;
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 15px 20px !important;
	color: var(--lib-site-btn-text, var(--lib-btn-text)) !important;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--lib-radius) !important;
	text-decoration: none !important;
	text-align: left;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	font-family: var(--lib-font-body) !important;
	font-weight: 600 !important;

	/* Solid fill from the Link In Bio plugin's "Button Background" color. */
	background: var(--lib-site-btn-bg, var(--lib-btn-bg)) !important;
}

.ppp-link-btn:hover {
	color: var(--lib-accent-text) !important;
	border-color: transparent;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
	transform: translateY(-1px);
	background: var(--lib-accent-bg);
	background: color-mix(in srgb, var(--lib-accent-bg) 96%, transparent) !important;
}

.ppp-link-btn.ppp-link-btn--highlight {
	color: var(--lib-accent-text) !important;
	border: 1px solid rgba(255, 255, 255, 0.32);
	background: var(--lib-hl-bg, var(--lib-accent-bg)) !important;
}

.ppp-link-btn.ppp-link-btn--highlight:hover {
	color: var(--lib-btn-text) !important;
	border-color: transparent;
	background: var(--lib-btn-bg);
	background: color-mix(in srgb, var(--lib-btn-bg) 96%, transparent) !important;
}

.ppp-link-icon {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.07);
	transition: background-color 0.2s ease;
}

.ppp-link-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ppp-link-text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.ppp-link-title {
	font-family: var(--lib-font-title) !important;
	font-weight: 600 !important;
	font-size: 1.15rem !important;
	letter-spacing: -0.01em !important;
	text-transform: uppercase !important;
	color: inherit !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ppp-link-subtitle {
	font-family: var(--lib-font-body) !important;
	font-size: 0.72rem !important;
	letter-spacing: 0.02em;
	opacity: 0.7;
	color: inherit !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ppp-link-arrow {
	flex: 0 0 auto;
	font-size: 1.3rem;
	opacity: 0.4;
	line-height: 1;
	transition: opacity 0.2s ease;
}

.ppp-link-btn:hover .ppp-link-arrow {
	opacity: 0.85;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ppp-footer {
	display: none !important;
}

.ppp-footer-line1 {
	font-family: var(--lib-font-tagline) !important;
	font-size: 1.15rem !important;
	margin: 0 0 12px !important;
	color: var(--lib-secondary-text) !important;
}

/* Footer tagline: slightly smaller on mobile so it stays on one line */
@media (max-width: 600px) {
	.ppp-footer-line1 {
		white-space: nowrap;
		font-size: min(1.05rem, calc((100vw - 80px) / 21)) !important;
	}
}


.ppp-footer-line2 {
	font-family: var(--lib-font-body) !important;
	font-size: 0.68rem !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	opacity: 0.65;
	margin: 0 !important;
	color: var(--lib-secondary-text) !important;
}

/* Footer line 2: stays on one line on mobile */
@media (max-width: 600px) {
	.ppp-footer-line2 {
		white-space: nowrap;
		letter-spacing: 0.15em !important;
		font-size: min(0.68rem, calc((100vw - 80px) / 31)) !important;
	}
}

/* ==========================================================================
   Mobile Adjustments
   ========================================================================== */

@media (max-width: 480px) {
	.ppp-wrap {
		align-items: stretch;
	}

	.ppp-card {
		min-height: 100vh;
	}

	.ppp-title {
		font-size: clamp(1.1rem, 2.5vw, .5rem) !important;
		max-width: clamp(190px, 14vw, 120px) !important;
	}

	.ppp-main-content h2:first-of-type,
	.ppp-main-content .mailerlite-form-title h3 {
		font-size: clamp( 32vw, 7rem) !important;
	}

	.ppp-links {
		gap: 10px;
	}
}

/* ==========================================================================
   Mobile: less headspace above the small title, tighter form so the CTA fits on screen
   ========================================================================== */
@media (max-width: 480px) {
	.ppp-content {
		padding-top: 40px !important;
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	.ppp-title {
		margin-bottom: 16px !important;
	}

	.ppp-title:not(.ppp-title--large)::after {
		margin-top: 20px;
	}

	.ppp-main-content .mailerlite-form-title h3 {
		margin-bottom: 12px !important;
		font-size: 21vw !important;
		width: min-content !important; /* always one word per line */
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.ppp-main-content p {
		margin: 6px 10px !important;
	}

	.ppp-main-content p em {
		margin: 8px !important;
	}

	.ppp-main-content .mailerlite-form-field input {
		margin-bottom: 8px !important;
	}

	.ppp-main-content .mailerlite-form-field {
		margin-bottom: 4px !important;
	}

	/* Slightly narrower form (fields + button) */
	.ppp-main-content .mailerlite-form-inputs {
		padding-left: 36px !important;
		padding-right: 36px !important;
		box-sizing: border-box;
	}
}

/* Mobile: small-text optical size for Bodoni Moda so thin strokes stay visible (esp. iOS) */
@media (max-width: 480px) {
	.ppp-wrap,
	.ppp-wrap *,
	.ppp-wrap .ppp-title {
		font-variation-settings: "opsz" 11 !important;
	}
}

/* CTA: solid fill from the Link In Bio plugin's "Highlighted Button" colors */
.ppp-main-content .mailerlite-subscribe-submit {
	background: var(--lib-hl-bg, var(--lib-accent-bg)) !important;
	color: var(--lib-hl-text, var(--lib-secondary-text)) !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

/* PPP LIST title: subtle white-to-tan gradient + 2px drop shadow underneath */
.ppp-main-content .mailerlite-form-title h3 {
	background: linear-gradient(180deg, #ffffff 25%, #efe0c4 100%);
	background-size: 100% 1lh; /* one gradient per line */
	background-repeat: repeat-y;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent !important;
	filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.45));
}

/* MailerLite thank-you message: script font, light tan, larger */
.ppp-main-content .mailerlite-form-response,
.ppp-main-content .mailerlite-form-response h4,
.ppp-main-content .mailerlite-form-response p,
.ppp-main-content .mailerlite-form-response span {
	font-family: var(--lib-font-tagline, 'Dancing Script', cursive) !important;
	font-weight: 600 !important;
	color: #efe0c4 !important;
	text-align: center !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.ppp-main-content .mailerlite-form-response h4,
.ppp-main-content .mailerlite-form-response p {
	margin: 0 !important;
	line-height: 1.2 !important;
}

.ppp-main-content .mailerlite-form-response span {
	font-size: 2.4rem !important;
}

@media (max-width: 600px) {
	.ppp-main-content .mailerlite-form-response span {
		font-size: 2rem !important;
	}
}

/* Mobile: tighter buttons with less space between them (matches Link In Bio) */
@media (max-width: 600px) {
	.ppp-main-content .mailerlite-subscribe-submit {
		padding: 9px 16px !important;
		line-height: 1.1 !important;
	}

	.ppp-wrap .ppp-links {
		gap: 5px;
	}

	.ppp-wrap .ppp-link-btn {
		padding: 6px 14px !important;
		gap: 12px;
	}

	.ppp-wrap .ppp-link-text {
		gap: 0;
	}

	.ppp-wrap .ppp-link-title {
		line-height: 1 !important;
	}

	.ppp-wrap .ppp-link-subtitle {
		line-height: 1.2 !important;
	}
}

/* Carry-over from Link In Bio (round 2):
   - whole-pixel line heights/heights so spacing between stacked elements
     renders evenly (fractional heights made some gaps look 1px off)
   - no resting shadow on the CTA, matching the Link In Bio buttons */
.ppp-main-content .mailerlite-subscribe-submit {
	box-shadow: none !important;
	line-height: 22px !important;
}

.ppp-main-content .mailerlite-form-field label {
	line-height: 18px !important;
}

.ppp-main-content .mailerlite-form-field input {
	height: 44px !important;
	line-height: 20px !important;
}

.ppp-main-content .mailerlite-form-description p {
	line-height: 23px !important;
}

.ppp-wrap .ppp-link-title {
	line-height: 28px !important;
}

.ppp-wrap .ppp-link-subtitle {
	line-height: 15px !important;
}

@media (max-width: 600px) {
	/* CTA stays on one line on small phones instead of wrapping */
	.ppp-main-content .mailerlite-subscribe-submit {
		white-space: nowrap !important;
		font-size: clamp(13px, 4.2vw, 18px) !important;
		letter-spacing: 0.05em !important;
	}

	.ppp-wrap .ppp-link-title {
		line-height: 24px !important;
	}

	.ppp-wrap .ppp-link-subtitle {
		line-height: 14px !important;
	}
}

@media (max-width: 480px) {
	/* Two-line uppercase intro ("Don't let Instagram / decide…"):
	   tightly stacked, like the Link In Bio subtitle */
	.ppp-main-content .mailerlite-form-description p:first-child {
		line-height: 18px !important;
	}
}

/* Mobile: smaller intro paragraph above the fields, slightly smaller script line */
@media (max-width: 600px) {
	.ppp-main-content .mailerlite-form-description p:not(:first-child) {
		font-size: 13.5px !important;
		line-height: 20px !important;
	}

	.ppp-main-content .mailerlite-form-description p em {
		font-size: 27px !important;
		line-height: 23px !important;
	}
}

/* Mobile: size the background to the screen (not the full scroll height),
   so it zooms out only until it covers the screen */
@media (max-width: 480px) {
	.ppp-bg {
		position: fixed;
		inset: 0;
		height: 100lvh;
	}
}
