/* Expand Habits — layout details that theme.json can't express.
   Colors and fonts come from theme.json presets, so changing them in
   Appearance → Editor → Styles updates everything here too. */

:root {
	--eh-radius: 20px;
	--eh-section-space: clamp(4rem, 9vw, 7rem);
}

/* Remove gaps between stacked full-width sections */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block: 0; }

/* Dark backgrounds: readable link colors */
.has-ink-background-color a:not(.wp-element-button),
.has-charcoal-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--sun); }
.has-ink-background-color a:not(.wp-element-button):hover { color: var(--wp--preset--color--white); }

/* Small helpers */
.eh-small { font-size: 0.875rem; opacity: 0.85; }
.eh-eyebrow {
	display: inline-block;
	margin: 0;
	padding: 0.45rem 1rem;
	border: 1.5px solid currentColor;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sun);
	border-color: var(--wp--preset--color--slate);
}
.eh-eyebrow-light { color: var(--wp--preset--color--rust); border: 0; padding: 0; }
.eh-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--mist); max-width: 640px; line-height: 1.5; }
.eh-lead-dark { font-size: 1.125rem; color: var(--wp--preset--color--slate); max-width: 640px; }

/* Header */
.eh-header { padding-top: 1.1rem; padding-bottom: 1.1rem; }
.eh-header-inner { gap: 1rem; }
.eh-site-title a { color: inherit !important; text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; }
.eh-site-title a::before {
	content: "";
	width: 34px; height: 34px; flex: none;
	border-radius: 10px;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0E12' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20 L12 12 L16 16 L21 8'/%3E%3Cpath d='M15 8 H21 V14'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.eh-nav a { color: var(--wp--preset--color--mist) !important; text-decoration: none; }
.eh-nav a:hover { color: var(--wp--preset--color--white) !important; }
.eh-nav .eh-nav-cta > a,
.eh-nav .eh-nav-cta .wp-block-navigation-item__content {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink) !important;
	padding: 0.6rem 1.15rem;
	border-radius: 999px;
	font-weight: 700;
}

/* Hero */
.eh-hero { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.eh-hero > * + * { margin-block-start: 1.75rem; }
.eh-display {
	font-size: var(--wp--preset--font-size--display) !important;
	line-height: 0.95 !important;
	letter-spacing: -0.04em !important;
	max-width: 1000px;
}

/* Sections */
.eh-section { padding-top: var(--eh-section-space); padding-bottom: var(--eh-section-space); }
.eh-section-title { font-size: var(--wp--preset--font-size--xx-large) !important; line-height: 1 !important; max-width: 780px; }
.eh-cta { text-align: center; }
.eh-cta .eh-section-title, .eh-cta .eh-lead { margin-inline: auto; }
.eh-cta .wp-block-buttons { justify-content: center; }

/* Category cards */
.eh-card-grid { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.eh-card {
	position: relative;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: var(--eh-radius);
	padding: 1.75rem;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.eh-card > * { margin: 0; }
.eh-card > * + * { margin-top: 0.75rem; }
.eh-card p { color: var(--wp--preset--color--slate); }
.eh-card-num { font-family: var(--wp--preset--font-family--heading); font-weight: 700; letter-spacing: 0.06em; color: var(--wp--preset--color--rust) !important; }
.eh-card-title { font-size: 1.6rem !important; }
.eh-card-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.eh-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--eh-radius); }
.eh-card-cta { font-weight: 700; color: var(--wp--preset--color--ink) !important; }
.eh-card:hover, .eh-card:focus-within { background: var(--wp--preset--color--ink); transform: translateY(-3px); }
.eh-card:hover *, .eh-card:focus-within * { color: var(--wp--preset--color--white) !important; }
.eh-card:hover .eh-card-num, .eh-card:focus-within .eh-card-num { color: var(--wp--preset--color--sun) !important; }
.eh-card-title a:focus-visible { outline: none; }
.eh-card:focus-within { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }

/* How it works */
.eh-how .eh-section-title { margin-bottom: 2.5rem; }
.eh-step { border-radius: var(--eh-radius); padding: 2rem; }
.eh-step > * { margin: 0; }
.eh-step > * + * { margin-top: 0.85rem; }
.eh-step p:not(.eh-step-num) { color: var(--wp--preset--color--mist); }
.eh-step-num { font-family: var(--wp--preset--font-family--heading); font-size: 4rem; font-weight: 700; line-height: 1; color: var(--wp--preset--color--sun); }

/* Why */
.eh-why { gap: clamp(2rem, 5vw, 4rem); }
.eh-benefit {
	position: relative;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 16px;
	padding: 1.4rem 1.4rem 1.4rem 4.2rem;
}
.eh-benefit + .eh-benefit { margin-top: 1rem; }
.eh-benefit > * { margin: 0; }
.eh-benefit > * + * { margin-top: 0.35rem; }
.eh-benefit h3 { font-family: var(--wp--preset--font-family--body); font-size: 1.2rem; letter-spacing: 0; }
.eh-benefit p { color: var(--wp--preset--color--slate); }
.eh-benefit::before {
	content: "";
	position: absolute; left: 1.4rem; top: 1.4rem;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0E12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12 L10 17 L19 7'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Footer */
.eh-footer { padding-top: 2.5rem; padding-bottom: 2.5rem; border-top: 1px solid #2A2A33; }
.eh-footer .eh-site-title a { color: var(--wp--preset--color--white) !important; }
.eh-footer-nav a { color: var(--wp--preset--color--mist) !important; text-decoration: none; }
.eh-footer-note { margin-top: 1.5rem; }

/* Tool + category page hero */
.eh-page-hero { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.eh-page-hero > * + * { margin-block-start: 1.25rem; }
.eh-page-hero .wp-block-post-excerpt__excerpt,
.eh-page-hero .wp-block-term-description { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--mist); max-width: 720px; line-height: 1.5; }
.eh-page-hero .wp-block-post-terms a,
.eh-breadcrumb a { color: var(--wp--preset--color--sun); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }

/* Tool review body */
.eh-tool-body { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.eh-tool-section { margin-block: 0; }
.eh-tool-section + .eh-tool-section { margin-top: 2.75rem; }
.eh-tool-section h2 { margin-bottom: 0.75rem; }
.eh-tool-section h3 { margin-top: 1.75rem; margin-bottom: 0.25rem; }
.eh-tool-section li { margin-bottom: 0.5rem; }
.eh-tool-cta {
	margin-top: 3.5rem !important;
	border-radius: var(--eh-radius);
	padding: clamp(1.75rem, 4vw, 3rem) !important;
}
.eh-tool-cta h2 { color: var(--wp--preset--color--white); }
.eh-tool-cta p:not(.eh-small) { color: var(--wp--preset--color--mist); font-size: 1.125rem; }
.eh-tool-cta .eh-small { color: #A9A9B4; opacity: 1; }

/* Tool cards on category / all-tools pages */
.eh-tool-grid { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.eh-tool-card {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: var(--eh-radius);
	padding: 1.75rem;
}
.eh-tool-card > * { margin: 0; }
.eh-tool-card > * + * { margin-top: 0.75rem; }
.eh-tool-card .wp-block-post-title { font-size: 1.5rem; }
.eh-tool-card .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.eh-tool-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--eh-radius); }
.eh-tool-card .wp-block-post-excerpt__excerpt { color: var(--wp--preset--color--slate); }
.eh-tool-card .wp-block-read-more { font-weight: 700; color: var(--wp--preset--color--rust); }
.eh-tool-card .wp-block-post-terms { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; position: relative; z-index: 1; }
.eh-tool-card:hover, .eh-tool-card:focus-within { border-color: var(--wp--preset--color--accent); box-shadow: 6px 6px 0 var(--wp--preset--color--ink); }

/* Keep the editor canvas close to the front end */
.editor-styles-wrapper .eh-card-title a::after,
.editor-styles-wrapper .eh-tool-card .wp-block-post-title a::after { display: none; }

/* Contact page */
.eh-contact-card {
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: var(--eh-radius);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	margin-bottom: 3rem;
}
.eh-contact-card > * { margin: 0; }
.eh-contact-card > * + * { margin-top: 1rem; }
.eh-contact-label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--rust); }
.eh-contact-email {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.25rem, 4vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
	user-select: all;
}
.eh-copy-email .wp-block-button__link { min-width: 14rem; text-align: center; }
.eh-copy-status { display: block; width: 100%; margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--wp--preset--color--slate); }
.eh-contact .eh-small { color: var(--wp--preset--color--slate); opacity: 1; }
