/*
Theme Name: Blocksy Child - Epilator Authority
Theme URI: https://epilatorauthority.com
Description: Child theme of Blocksy for Epilator Authority, built on the NeuroPractical lavender design language (lilac and sage, Fraunces headings, Mulish body, self-hosted). Adds a bold editorial home layout, task-guide components, printable and tool boxes. No third-party requests.
Author: Epilator Authority
Template: blocksy
Version: 1.0.2
Text Domain: blocksy-child-ea
*/

/* ---------- Design tokens (same as neuropractical.com) ---------- */
html:root {
	--np-bg: #F6F3FB;
	--np-surface: #FFFFFF;
	--np-tint: #EDE7F7;
	--np-ink: #2B2340;
	--np-text: #3D3452;
	--np-muted: #5F5675;
	--np-primary: #6A4C9C;
	--np-primary-dark: #553A84;
	--np-lilac: #D9CCF0;
	--np-lilac-deep: #B79FE0;
	--np-sage: #C9DCC2;
	--np-sage-deep: #8FB486;
	--np-line: #E2DAF0;
	--np-head: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--np-body: "Mulish", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--np-radius: 18px;
	--np-radius-sm: 12px;

	--theme-palette-color-1: #6A4C9C;
	--theme-palette-color-2: #553A84;
	--theme-palette-color-3: #3D3452;
	--theme-palette-color-4: #2B2340;
	--theme-palette-color-5: #E2DAF0;
	--theme-palette-color-6: #EDE7F7;
	--theme-palette-color-7: #F6F3FB;
	--theme-palette-color-8: #FFFFFF;
	--theme-font-family: var(--np-body);
	--theme-button-border-radius: 999px;
	--theme-text-color: var(--np-text);
	--theme-link-initial-color: var(--np-primary);
	--theme-link-hover-color: var(--np-primary-dark);
	--theme-headings-color: var(--np-ink);
}

/* ---------- Base ---------- */
body {
	background-color: var(--np-bg);
	color: var(--np-text);
	font-family: var(--np-body);
	font-size: 18px;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.site-title, .entry-title, .page-title, .wp-block-post-title {
	font-family: var(--np-head) !important;
	color: var(--np-ink);
	font-weight: 600;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); line-height: 1.18; }
h3 { font-size: 1.4rem; line-height: 1.28; }
.entry-content p, .entry-content li { max-width: 68ch; }
a { color: var(--np-primary); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--np-primary-dark); }
::selection { background: var(--np-lilac); color: var(--np-ink); }
:focus-visible { outline: 3px solid var(--np-primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header: floating, frosted, brand wordmark ---------- */
#header, header#header { background: transparent; }
#header [data-row] { background: rgba(246, 243, 251, 0.82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--np-line); }
#header .site-title, #header .site-title a {
	font-family: var(--np-head) !important;
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
	color: var(--np-ink);
}
#header .site-title a::before {
	content: "";
	display: inline-block;
	width: 0.62em; height: 0.62em;
	margin-right: 0.45em;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, var(--np-lilac-deep), var(--np-primary));
	vertical-align: 0.02em;
	box-shadow: 0.55em 0.2em 0 -0.12em var(--np-sage-deep);
}
#header .menu a, #header .ct-menu-link { font-family: var(--np-body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--np-ink); }
#header .menu a:hover { color: var(--np-primary); }

/* ---------- Buttons ---------- */
.wp-block-button__link, .wp-element-button, button.ct-button, .ct-button {
	font-family: var(--np-body);
	font-weight: 800;
	letter-spacing: 0.01em;
	border-radius: 999px;
	padding: 0.85em 1.7em;
	background-color: var(--np-primary);
	color: #fff;
	box-shadow: 0 8px 22px -10px rgba(106, 76, 156, 0.75);
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.wp-block-button__link:hover, .wp-element-button:hover { background-color: var(--np-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(85, 58, 132, 0.85); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--np-primary); border: 2px solid var(--np-primary); box-shadow: none; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--np-tint); }
.wp-block-button.is-style-sage > .wp-block-button__link { background: var(--np-sage); color: var(--np-ink); box-shadow: none; }

/* ---------- Home: hero ---------- */
.np-hide-title .hero-section, .home .hero-section, .page-id-567 .hero-section { display: none; }
.ea-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(60% 80% at 85% 10%, rgba(183, 159, 224, 0.55), transparent 60%),
		radial-gradient(45% 60% at 8% 95%, rgba(201, 220, 194, 0.75), transparent 62%),
		var(--np-tint);
	border-radius: 0 0 56px 56px;
	padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 130px);
}
.ea-hero::before {   /* dotted lilac field */
	content: "";
	position: absolute; z-index: -1;
	right: -60px; top: 36px;
	width: min(42vw, 420px); aspect-ratio: 1;
	border-radius: 64px;
	background: radial-gradient(circle, var(--np-lilac-deep) 3px, transparent 3.5px) 0 0 / 22px 22px;
	opacity: 0.6;
	transform: rotate(8deg);
}
.ea-hero::after {    /* sage orb */
	content: "";
	position: absolute; z-index: -1;
	left: -90px; bottom: -110px;
	width: 300px; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #E6F1E2, var(--np-sage) 60%, transparent 62%);
	opacity: 0.9;
}
.ea-hero h1 {
	font-size: clamp(2.8rem, 8vw, 5.6rem);
	line-height: 0.98;
	letter-spacing: -0.035em;
	max-width: 14ch;
	margin: 0 0 0.35em;
}
.ea-hero h1 em {
	font-style: italic;
	font-weight: 500;
	color: var(--np-primary);
	background: linear-gradient(transparent 62%, rgba(201, 220, 194, 0.95) 62% 92%, transparent 92%);
	padding: 0 0.06em;
}
.ea-hero .ea-lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--np-text); max-width: 46ch; }
.ea-hero .wp-block-buttons { margin-top: 28px; }
.ea-eyebrow, .np-eyebrow {
	display: inline-block;
	font-size: 0.78rem; font-weight: 800;
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--np-primary-dark);
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--np-line);
	padding: 6px 14px; border-radius: 999px;
	margin-bottom: 1.1em;
}
.ea-sticker {   /* tilted "stickers" in the hero */
	display: inline-block;
	background: var(--np-surface);
	border: 1.5px solid var(--np-ink);
	border-radius: 999px;
	padding: 7px 16px;
	font-weight: 800; font-size: 0.9rem; color: var(--np-ink);
	box-shadow: 4px 4px 0 var(--np-lilac-deep);
	transform: rotate(-2deg);
	margin: 0 10px 10px 0;
}
.ea-sticker:nth-child(2) { transform: rotate(1.6deg); box-shadow: 4px 4px 0 var(--np-sage-deep); }
.ea-sticker:nth-child(3) { transform: rotate(-1deg); }

/* ---------- Sections and cards ---------- */
.np-lead { font-size: 1.15rem; color: var(--np-muted); }
.np-section, .ea-section { padding-top: clamp(44px, 7vw, 84px); padding-bottom: clamp(16px, 3vw, 32px); }
.np-band, .ea-band {
	background: var(--np-surface);
	border-radius: 40px;
	padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px);
	margin-top: clamp(40px, 6vw, 80px);
}
.ea-band.is-dark { background: var(--np-ink); color: #E7E0F4; }
.ea-band.is-dark h2, .ea-band.is-dark h3 { color: #fff; }
.ea-band.is-dark a { color: var(--np-lilac); }

.np-card, .ea-card {
	position: relative;
	background: var(--np-surface);
	border: 1.5px solid var(--np-line);
	border-radius: var(--np-radius);
	padding: 26px;
	height: 100%;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.np-band .np-card, .ea-band .ea-card { background: var(--np-bg); }
a.np-card, .np-card:hover, .ea-card:hover { border-color: var(--np-lilac-deep); transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(85, 58, 132, 0.55); }
.np-card h3, .ea-card h3 { margin-top: 0; }
.np-card p:last-child, .ea-card p:last-child { margin-bottom: 0; }
.np-card .np-dot, .ea-card .np-dot {
	width: 52px; height: 52px; border-radius: 50%;
	margin: 0 0 16px;
	background: var(--np-lilac);
	box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.45);
}
.np-card .np-dot.is-sage { background: var(--np-sage); }
.np-card .np-dot.is-deep { background: var(--np-lilac-deep); }
.ea-num { font-family: var(--np-head); font-size: 3rem; line-height: 1; color: var(--np-lilac-deep); font-weight: 600; margin: 0 0 6px; }

ul.np-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: none; }
ul.np-chips li { background: var(--np-surface); border: 1.5px solid var(--np-line); border-radius: 999px; padding: 7px 18px; font-size: 0.95rem; font-weight: 700; margin: 0; }

/* Query-loop post cards */
.np-posts .wp-block-post, .ea-posts .wp-block-post {
	background: var(--np-surface);
	border: 1.5px solid var(--np-line);
	border-radius: var(--np-radius);
	padding: 22px;
	display: flex; flex-direction: column; gap: 8px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.np-posts .wp-block-post:hover, .ea-posts .wp-block-post:hover { transform: translateY(-4px); border-color: var(--np-lilac-deep); box-shadow: 0 18px 36px -22px rgba(85, 58, 132, 0.55); }
.np-posts .wp-block-post-title, .ea-posts .wp-block-post-title { font-size: 1.22rem; margin: 0; }
.np-posts .wp-block-post-title a, .ea-posts .wp-block-post-title a { text-decoration: none; color: var(--np-ink); }
.np-posts .wp-block-post-title a:hover, .ea-posts .wp-block-post-title a:hover { color: var(--np-primary); }
.np-posts .wp-block-post-excerpt, .ea-posts .wp-block-post-excerpt { color: var(--np-muted); font-size: 0.98rem; }
.np-posts .wp-block-post-excerpt__excerpt, .ea-posts .wp-block-post-excerpt__excerpt { margin: 0; }
.np-posts .wp-block-post-featured-image img, .ea-posts .wp-block-post-featured-image img { border-radius: var(--np-radius-sm); }

/* ---------- Notes, boxes, quick answer (shared with NeuroPractical) ---------- */
.np-note, .ea-disclosure, .ea-assumptions, .ea-fineprint {
	border-left: 4px solid var(--np-sage-deep);
	background: var(--np-surface);
	padding: 14px 18px;
	border-radius: 0 var(--np-radius-sm) var(--np-radius-sm) 0;
	font-size: 0.95rem; color: var(--np-muted);
}
.ea-fineprint { background: transparent; border: 0; padding: 0; font-size: 0.85rem; }
.np-placeholder { background: #FFF6D6; outline: 1px dashed #B58A00; padding: 2px 6px; }
.np-quick {
	background: var(--np-tint);
	border-radius: var(--np-radius);
	padding: 24px 28px;
	border: 1.5px solid var(--np-line);
}
.np-quick h2 { font-size: 1.3rem; margin-top: 0; }
.np-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.95rem; color: var(--np-muted); }
.np-facts strong { color: var(--np-ink); }
.np-box {
	border-radius: var(--np-radius);
	padding: 22px 26px;
	border: 1.5px solid var(--np-line);
	background: var(--np-surface);
}
.np-box.is-sensory { border-top: 6px solid var(--np-sage); }
.np-box.is-ef { border-top: 6px solid var(--np-lilac-deep); }
.np-box h2 { font-size: 1.35rem; margin-top: 0; }
.single-post .entry-content ol > li { margin-bottom: 0.5em; }

/* Tables */
.entry-content table, .wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.97rem; border: 1.5px solid var(--np-line); border-radius: var(--np-radius-sm); overflow: hidden; background: var(--np-surface); }
.entry-content th { background: var(--np-tint); color: var(--np-ink); text-align: left; font-weight: 800; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--np-line); vertical-align: top; }
.entry-content tr:last-child td { border-bottom: 0; }

/* ---------- Email signup / content upgrade ---------- */
.ea-upgrade {
	position: relative;
	background: var(--np-ink);
	color: #E7E0F4;
	border-radius: 28px;
	padding: clamp(26px, 4vw, 44px);
	margin: 2.2rem 0;
	overflow: hidden;
	isolation: isolate;
}
.ea-upgrade::before { content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 220px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--np-primary) 0, transparent 68%); opacity: 0.85; }
.ea-upgrade h2, .ea-upgrade h3 { color: #fff; margin-top: 0; }
.ea-upgrade a { color: var(--np-lilac); }
.ea-upgrade input[type=email], .ea-upgrade input[type=text] { border-radius: 999px; border: 0; padding: 0.85em 1.2em; min-height: 48px; }
.ea-upgrade .ea-fineprint { color: #CBBFE3; }
.ea-upgrade button, .ea-upgrade input[type=submit] { background: var(--np-sage); color: var(--np-ink); border-radius: 999px; font-weight: 800; border: 0; min-height: 48px; padding: 0 1.6em; }

/* ---------- Printable grid and tools ---------- */
.ea-printable-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ea-tool { background: var(--np-surface); border: 1.5px solid var(--np-line); border-radius: var(--np-radius); padding: clamp(18px, 3vw, 30px); margin: 1.6rem 0; }
.ea-tool h3 { margin-top: 0; }

/* ---------- Footer ---------- */
#footer, footer#footer { background: var(--np-ink); color: #CBBFE3; }
#footer a { color: var(--np-lilac); }
#footer a:hover { color: #fff; }
#footer .widget-title, #footer h2, #footer h3 { color: #fff; font-family: var(--np-head) !important; }

/* ---------- Single posts: reading comfort ---------- */
.single-post .entry-header .page-title, .single-post .entry-title { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.single-post .entry-content > p:first-of-type { font-size: 1.14rem; color: var(--np-text); }
.entry-content blockquote { border-left: 4px solid var(--np-lilac-deep); background: var(--np-tint); padding: 16px 22px; border-radius: 0 var(--np-radius-sm) var(--np-radius-sm) 0; font-family: var(--np-head); font-size: 1.15rem; }
.entry-content img { border-radius: var(--np-radius-sm); }

/* ---------- Home layout alignment ---------- */
.ea-hero > .wp-block-group, .ea-section.wp-block-group { max-width: 1100px; margin-left: auto; margin-right: auto; }
.ea-hero > .wp-block-group { padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }
.ea-hero .wp-block-group > * { margin-left: 0 !important; margin-right: 0 !important; }
.ea-hero h1 { max-width: 13ch; }
.ea-section { padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }
.ea-eyebrow, .np-eyebrow { width: fit-content; max-width: 100%; }
.ea-hero + .ea-section { margin-top: 0; }
.home .ct-container-full, .page-id-567 .ct-container-full { padding-top: 0 !important; }
.home #header [data-row] { border-bottom-color: transparent; }
@media (max-width: 700px) {
	.entry-content table, .wp-block-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 600px) {
	body { font-size: 17px; }
	.ea-hero { border-radius: 0 0 32px 32px; }
	.ea-hero::before { width: 190px; right: -80px; top: auto; bottom: 10px; }
	.np-band, .ea-band { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
	#header, #footer, .ea-upgrade { display: none !important; }
	body { background: #fff; }
}
