/**
 * LoveMsgs Core - "Sanctuary" page components (0.5.0).
 *
 * Scoped styles for content that is authored as native WordPress blocks
 * (editable in the block editor) but needs the Sanctuary look:
 *   .lm-kit          shared Kit letters form (all three signup locations)
 *   .lm-home         homepage sections (hero, passage, wheel, letters, ...)
 *   .lm-welcome      /welcome/ post-confirmation page
 *   .lm-prose        long-form pages/articles (About, "When they go silent")
 *
 * Every selector is prefixed with one of those classes, so nothing here can
 * restyle the theme, other plugins or other pages. Visual values are taken
 * from the V4.4 reference build (LoveMsgsHomepageV4.4Implemented.html) and
 * mapped onto the shared tokens in core.css where a token exists.
 */

/* ---------- Shared Kit letters form ---------- */

.lm-kit, .lm-kit *, .lm-kit *::before, .lm-kit *::after { box-sizing: border-box; }
.lm-kit { max-width: 560px; font-family: var(--lm-font-body); color: var(--lm-text-on-dark); }
.lm-kit--center { margin-left: auto; margin-right: auto; text-align: center; }
.lm-kit-frame { position: absolute; width: 0; height: 0; border: 0; visibility: hidden; }
.lm-kit-form { margin: 0; }
.lm-kit-label { display: block; margin: 0 0 0.45rem; font-size: 0.85rem; letter-spacing: 0.02em; color: #d4bbc7; text-align: left; }
.lm-kit--center .lm-kit-label { text-align: center; }
.lm-kit-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lm-kit-email {
	flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 14px 20px;
	border-radius: 40px; border: 1px solid rgba(244, 185, 198, 0.35);
	background: rgba(255, 255, 255, 0.06); color: #f6ece6; font: inherit; font-size: 1rem;
}
.lm-kit-email::placeholder { color: #b99cad; opacity: 1; }
.lm-kit-email[aria-invalid='true'] { border-color: #f4b9c6; box-shadow: 0 0 0 2px rgba(244, 185, 198, 0.35); }
.lm-kit-submit {
	flex: 0 0 auto; min-height: 52px; padding: 14px 28px; border: 0; border-radius: 40px; cursor: pointer;
	font: inherit; font-size: 0.95rem; font-weight: 600; color: #1a0a18;
	background: linear-gradient(180deg, #f4d3b4, #e9c894);
	box-shadow: 0 16px 38px -14px rgba(233, 200, 148, 0.6);
}
.lm-kit-submit:disabled { opacity: 0.7; cursor: progress; }
.lm-kit :is(a, button, input):focus-visible { outline: 2px solid var(--lm-accent); outline-offset: 3px; box-shadow: none; }
.lm-kit-field-error { margin: 0.6rem 0 0; font-size: 0.85rem; color: #f4b9c6; text-align: left; }
.lm-kit-note p { margin: 0.7rem 0 0; font-size: 0.8rem; line-height: 1.55; color: #b99cad; }
.lm-kit-note a, .lm-kit-confirm a { color: var(--lm-accent); text-decoration: underline; text-underline-offset: 3px; }
.lm-kit-confirm {
	display: flex; gap: 14px; align-items: flex-start; margin-top: 0.5rem; padding: 18px 22px; border-radius: 18px;
	background: rgba(233, 200, 148, 0.12); border: 1px solid rgba(233, 200, 148, 0.3); color: #f1dfe7; line-height: 1.55; text-align: left;
}
.lm-kit-confirm p { margin: 0; }
.lm-kit-confirm-mark { font-size: 1.3rem; color: var(--lm-accent); }
.lm-kit-error {
	margin-top: 0.8rem; padding: 14px 18px; border-radius: 14px; background: rgba(244, 185, 198, 0.12);
	border: 1px solid rgba(244, 185, 198, 0.34); color: #f1dfe7; font-size: 0.85rem; line-height: 1.5; text-align: left;
}
.lm-kit [hidden] { display: none !important; }
@media (max-width: 520px) {
	.lm-kit-row { flex-direction: column; }
	.lm-kit-email { flex: 0 0 auto; width: 100%; }
	.lm-kit-submit { width: 100%; }
}

/* ---------- Homepage ---------- */

.lm-home, .lm-home *, .lm-home *::before, .lm-home *::after { box-sizing: border-box; }
.lm-welcome, .lm-welcome * { box-sizing: border-box; }
.lm-home {
	--lm-home-max: 1100px;
	position: relative;
	color: var(--lm-text-on-dark);
	font-family: var(--lm-font-body);
	background: radial-gradient(120% 70% at 50% -8%, #3a153a 0%, #2a0f28 30%, #1a0a18 60%, #120710 100%);
	overflow-x: clip;
}
.lm-home :is(h1, h2, h3) { font-family: var(--lm-font-display); font-weight: 500; }
.lm-home a { color: inherit; }
.lm-home :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--lm-accent); outline-offset: 4px; }
.lm-home section[id], .lm-home [id='passage'], .lm-home [id='wheel'], .lm-home [id='letters'] { scroll-margin-top: 96px; }

.lm-home .lm-label, .lm-home .lm-kicker {
	font-family: var(--lm-font-mono); text-transform: uppercase; color: #c79bb0;
}
.lm-home .lm-kicker { font-size: 12px; letter-spacing: 0.34em; margin: 0 0 26px; }
.lm-home .lm-label { font-size: 11px; letter-spacing: 0.3em; margin: 0 0 14px; }

/* Hero */
.lm-home .lm-home-hero {
	position: relative; isolation: isolate; text-align: center;
	padding: clamp(70px, 12vw, 150px) 24px clamp(50px, 7vw, 90px); margin: 0;
}
.lm-home .lm-home-hero::before {
	content: ''; position: absolute; inset: 0 0 auto; height: min(1040px, 100%); z-index: -1; pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(18, 7, 16, 0.12) 0%, rgba(18, 7, 16, 0.08) 50%, rgba(18, 7, 16, 0.6) 82%, rgba(18, 7, 16, 0.95) 94%, #120710 100%),
		url('/wp-content/uploads/2026/06/hero-bg.png') center top / cover no-repeat;
}
.lm-home .lm-home-hero > * { max-width: 880px; margin-left: auto; margin-right: auto; }
.lm-home .lm-home-hero h1 { font-size: clamp(40px, 8vw, 88px); line-height: 1.04; color: #f6ece6; margin: 0 auto; }
.lm-home .lm-home-hero h1 em { color: var(--lm-accent); font-style: italic; }
.lm-home .lm-hero-copy { max-width: 560px; margin: 28px auto 0; font-size: clamp(16px, 2.4vw, 19px); line-height: 1.65; color: #cdb3bf; }
.lm-home .lm-brand-line { max-width: 560px; margin: 18px auto 0; font-size: 13px; line-height: 1.55; color: #b99cad; }
.lm-home .lm-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.lm-home .lm-actions .wp-block-button__link, .lm-home .lm-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 15px 32px;
	border-radius: 40px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease;
}
.lm-home .is-style-lm-gold .wp-block-button__link, .lm-home .lm-btn-gold {
	color: #1a0a18; background: linear-gradient(180deg, #f4d3b4, #e9c894); box-shadow: 0 16px 38px -14px rgba(233, 200, 148, 0.6); border: 0;
}
.lm-home .is-style-lm-ghost .wp-block-button__link, .lm-home .lm-btn-ghost {
	color: #f1dfe7; background: transparent; border: 1px solid rgba(244, 185, 198, 0.32);
}
.lm-home .lm-actions .wp-block-button__link:hover { transform: translateY(-2px); }

/* The passage */
.lm-home .lm-home-passage { max-width: var(--lm-home-max); margin: 0 auto; padding: clamp(44px, 7vw, 88px) 24px; }
.lm-home .lm-home-passage-intro { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.lm-home .lm-home-passage-intro h2 { font-size: clamp(32px, 5.5vw, 58px); line-height: 1.08; color: #f6ece6; margin: 0; }
.lm-home .lm-home-passage-intro p:not(.lm-label) { margin: 20px auto 0; color: #cdb3bf; font-size: clamp(16px, 2vw, 18px); line-height: 1.75; }
.lm-home .lm-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lm-home .lm-card {
	padding: 26px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(244, 185, 198, 0.14);
}
.lm-home .lm-card h3 { color: var(--lm-accent); font-size: 25px; line-height: 1.15; margin: 0 0 10px; }
.lm-home .lm-card p { color: #cdb3bf; font-size: 15px; line-height: 1.65; margin: 0; }
.lm-home .lm-note {
	max-width: 760px; margin: 24px auto 0; padding: 18px 22px; border-radius: 16px; text-align: center;
	color: #cdb3bf; background: rgba(233, 200, 148, 0.07); border: 1px solid rgba(233, 200, 148, 0.2); font-size: 13px; line-height: 1.65;
}
.lm-home .lm-note a, .lm-home .lm-inline-link { color: var(--lm-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Wheel section */
.lm-home .lm-home-wheel { max-width: var(--lm-home-max); margin: 0 auto; padding: clamp(30px, 5vw, 60px) 24px; text-align: center; }
.lm-home .lm-home-wheel h2 { font-size: clamp(32px, 5vw, 52px); color: #f6ece6; margin: 0; }
.lm-home .lm-ornament { color: var(--lm-accent); letter-spacing: 0.4em; margin: 0 0 12px; }
.lm-home .lm-home-wheel .lm-section-sub { max-width: 560px; margin: 16px auto 0; color: #d4bbc7; line-height: 1.65; }

/* Breath divider */
.lm-home .lm-breath { max-width: 600px; margin: 0 auto; padding: 56px 24px 8px; text-align: center; }
.lm-home .lm-breath::before { content: ''; display: block; width: 1px; height: 56px; margin: 0 auto 22px; background: linear-gradient(to bottom, rgba(244, 185, 198, 0), rgba(233, 200, 148, 0.5)); }
.lm-home .lm-breath p { font-family: var(--lm-font-display); font-style: italic; font-size: 19px; line-height: 1.75; color: #cdb3bf; margin: 0; }

/* Letters */
.lm-home .lm-home-letters { max-width: var(--lm-home-max); margin: clamp(40px, 7vw, 100px) auto; padding: 0 24px; }
.lm-home .lm-letter-card {
	position: relative; overflow: hidden; border-radius: 30px; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
	background: linear-gradient(155deg, #4a1d3e 0%, #2a0f28 55%, #1d0c1a 100%); border: 1px solid rgba(233, 200, 148, 0.22);
}
.lm-home .lm-letter-card > * { position: relative; max-width: 600px; }
.lm-home .lm-letter-card h2 { font-size: clamp(30px, 5vw, 54px); line-height: 1.08; color: #f6ece6; margin: 0; }
.lm-home .lm-letter-card p { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: #d4bbc7; }
.lm-home .lm-letter-card .lm-letter-blurb { font-family: var(--lm-font-display); font-style: italic; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5; color: #e2b9c8; margin-bottom: 24px; }
.lm-home .lm-letter-card .lm-label { color: var(--lm-accent); }

/* Manifesto */
.lm-home .lm-manifesto { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 84px) 24px; text-align: center; }
.lm-home .lm-manifesto > p:first-of-type { font-family: var(--lm-font-display); font-weight: 500; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.3; color: #f6ece6; margin: 0; }
.lm-home .lm-manifesto-lines { margin-top: 30px; font-family: var(--lm-font-display); font-style: italic; font-size: clamp(18px, 2.6vw, 22px); color: #cdb3bf; line-height: 1.6; }
.lm-home .lm-manifesto-lines strong { font-weight: 400; color: var(--lm-accent); }

/* Reading cards + tools */
.lm-home .lm-home-read, .lm-home .lm-home-tools { max-width: var(--lm-home-max); margin: 0 auto; padding: 0 24px clamp(40px, 6vw, 72px); }
.lm-home .lm-home-read > .lm-label, .lm-home .lm-home-tools > .lm-label { text-align: center; margin-bottom: 22px; }
.lm-home .lm-home-tools h2 { text-align: center; font-size: clamp(28px, 4.2vw, 42px); color: #f6ece6; margin: 0 0 24px; }
.lm-home .lm-link-card { position: relative; transition: border-color 0.2s ease, transform 0.2s ease; }
.lm-home .lm-link-card:hover, .lm-home .lm-link-card:focus-within { border-color: rgba(233, 200, 148, 0.45); transform: translateY(-2px); }
.lm-home .lm-link-card h3 { color: #f6ece6; font-size: 26px; }
.lm-home .lm-link-card h3 a { text-decoration: none; }
.lm-home .lm-link-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }
.lm-home .lm-link-card .lm-label { color: #c9a9e8; letter-spacing: 0.14em; margin-bottom: 12px; }
.lm-home .lm-link-card--begin { background: rgba(233, 200, 148, 0.07); border-color: rgba(233, 200, 148, 0.22); }
.lm-home .lm-link-card--begin .lm-label { color: var(--lm-accent); }

@media (max-width: 760px) {
	.lm-home .lm-card-grid { grid-template-columns: 1fr; }
}

/* ---------- /welcome/ ----------
 * The original page's look (light lavender card on a purple celestial sky),
 * re-implemented with every selector scoped to .lm-welcome. The original
 * pasted HTML styled body/html/h1/*, .card, .footer, .tiles etc. globally,
 * which broke the theme on phones - see CHANGELOG 0.5.0. */
.lm-welcome, .lm-welcome * { box-sizing: border-box; }
.lm-welcome {
	position: relative; isolation: isolate; overflow: hidden;
	padding: clamp(32px, 7vw, 64px) 16px clamp(48px, 8vw, 72px);
	background: linear-gradient(160deg, #2e2257 0%, #4a3a7a 45%, #6b4e9e 100%);
	font-family: var(--lm-font-body); color: #3d3357;
}
.lm-welcome::before, .lm-welcome::after {
	content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(50px);
}
.lm-welcome::before { top: -10%; left: -10%; width: 60%; height: 60%; background: radial-gradient(circle, rgba(184, 154, 217, 0.35) 0%, transparent 70%); }
.lm-welcome::after { bottom: -15%; right: -10%; width: 65%; height: 65%; background: radial-gradient(circle, rgba(231, 166, 200, 0.22) 0%, transparent 70%); }
.lm-welcome .lm-welcome-card {
	position: relative; max-width: 580px; margin: 0 auto; text-align: center;
	background: linear-gradient(135deg, rgba(250, 247, 253, 0.97), rgba(245, 238, 252, 0.97));
	border: 1px solid rgba(184, 154, 217, 0.5); border-radius: 28px;
	box-shadow: 0 30px 80px rgba(20, 12, 45, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7);
	padding: 50px 38px 38px;
}
.lm-welcome .lm-welcome-moon { font-size: 2.6rem; line-height: 1; margin: 0 0 10px; }
.lm-welcome .lm-ornament { color: #9b6fc9; letter-spacing: 0.4em; font-size: 0.95rem; margin: 0 0 14px; }
.lm-welcome h1 {
	font-family: var(--lm-font-display); color: #2e2440 !important; font-size: 2.3rem; font-weight: 600; line-height: 1.25; margin: 0 0 16px;
}
.lm-welcome .lm-welcome-lede { font-size: 1.05rem; line-height: 1.6; color: #5d5278 !important; max-width: 460px; margin: 0 auto 28px; }
.lm-welcome .lm-welcome-lede strong { color: #6b4e9e; }
.lm-welcome .lm-welcome-timing {
	display: inline-block; max-width: 100%; margin: 0 0 30px; padding: 10px 20px;
	background: rgba(107, 78, 158, 0.07); border: 1px solid rgba(184, 154, 217, 0.4); border-radius: 999px;
	font-size: 0.92rem; font-weight: 500; line-height: 1.45; color: #4a3a7a !important;
}
.lm-welcome .lm-welcome-timing::before {
	content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px; border-radius: 50%;
	background: #9b6fc9; box-shadow: 0 0 0 4px rgba(155, 111, 201, 0.18);
}
.lm-welcome .lm-welcome-deliverability {
	background: #fff; border: 1px dashed rgba(107, 78, 158, 0.3); border-radius: 14px; padding: 18px 20px; margin: 0 0 30px; text-align: left;
}
.lm-welcome .lm-welcome-deliverability p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #5d5278 !important; }
.lm-welcome .lm-welcome-deliverability strong { color: #6b4e9e; }
.lm-welcome .lm-email-address {
	background: rgba(107, 78, 158, 0.08); color: #2e2257; padding: 2px 7px; border-radius: 5px; font-size: 0.86rem;
	overflow-wrap: anywhere; word-break: break-word;
}
.lm-welcome .lm-welcome-footer {
	margin: 0; padding-top: 22px; border-top: 1px solid rgba(184, 154, 217, 0.3);
	font-size: 0.8rem; line-height: 1.55; font-style: italic; color: #8a7da6 !important;
}
.lm-welcome .lm-welcome-home { margin: 16px 0 0; }
.lm-welcome .lm-welcome-home a { font-size: 0.95rem; font-weight: 600; color: #6b4e9e; text-decoration: none; }
.lm-welcome .lm-welcome-home a:hover, .lm-welcome .lm-welcome-home a:focus-visible { text-decoration: underline; }
.lm-welcome a:focus-visible { outline: 2px solid #6b4e9e; outline-offset: 3px; }
@media (max-width: 520px) {
	.lm-welcome .lm-welcome-card { padding: 40px 22px 30px; border-radius: 22px; }
	.lm-welcome h1 { font-size: 1.9rem; }
}

/* ---------- Long-form prose (About, articles) ---------- */

.lm-prose { max-width: 720px; margin-left: auto; margin-right: auto; }
.lm-prose .lm-kicker { font-family: var(--lm-font-mono); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: #c79bb0; }
.lm-prose .lm-callout {
	margin: 28px 0; padding: 20px 24px; border-radius: 16px; background: rgba(233, 200, 148, 0.07);
	border: 1px solid rgba(233, 200, 148, 0.22);
}
.lm-prose .lm-callout p { margin: 0; }
.lm-prose a { color: var(--lm-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Homepage additions */
.lm-home .lm-card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }
.lm-home .lm-more-link { margin-top: 18px !important; font-size: 14px !important; }
.lm-home h2.lm-label { font-weight: 400; text-align: center; }
@media (max-width: 760px) {
	.lm-home .lm-card-grid--two { grid-template-columns: 1fr; }
}
