/*
Theme Name:   SLFP Kadence Child
Theme URI:    https://sacredland.org
Description:  Child theme for sacredland.org, built on Kadence. Brand tokens and small style rules from the Madera Group style guide.
Author:       Adam Glickman
Template:     kadence
Version:      1.13.13
Requires PHP: 8.0
Text Domain:  slfp-kadence-child
*/

/* Brand tokens. Kadence's global palette (Customizer > Colors) holds the main
   colors; these variables cover the extras the palette has no slot for. */
:root {
	--slfp-terracotta:         #B4572F;
	--slfp-terracotta-hover:   #923F20;
	--slfp-terracotta-pressed: #7B341B;
	--slfp-deep-teal:          #0F4D4E;
	--slfp-deep-teal-hover:    #092F30;
	--slfp-deep-teal-pressed:  #061F20;
	--slfp-soft-sage:          #DEE7E1;
	--slfp-warm-cream:         #FFF8F0;
	--slfp-sand-yellow:        #F2D58B;
	--slfp-bright-turquoise:   #18B7B5;
	--slfp-gallery-charcoal:   #1A1A1A;
	--slfp-warm-charcoal:      #2B2421;
	--slfp-sage-link:          #B8CDBF;
	--slfp-sage-link-pressed:  #E9DFD0;
}

/* Primary button pressed state (default and hover are set in the Customizer). */
.button:active,
.wp-block-button__link:active,
button:active,
input[type="submit"]:active {
	background-color: var(--slfp-terracotta-pressed);
	border-color: var(--slfp-terracotta-pressed);
}

/* Terracotta outline button. In the block editor: Button > Advanced > Additional CSS class: is-style-slfp-outline */
.is-style-slfp-outline .wp-block-button__link,
.wp-block-button__link.is-style-slfp-outline {
	background-color: transparent;
	color: var(--slfp-terracotta);
	border: 2px solid var(--slfp-terracotta);
}
.is-style-slfp-outline .wp-block-button__link:hover,
.wp-block-button__link.is-style-slfp-outline:hover {
	background-color: var(--slfp-terracotta);
	color: #fff;
}
.is-style-slfp-outline .wp-block-button__link:active,
.wp-block-button__link.is-style-slfp-outline:active {
	background-color: var(--slfp-terracotta-hover);
	border-color: var(--slfp-terracotta-hover);
	color: #fff;
}

/* Cream outline button, for terracotta backgrounds. Class: is-style-slfp-cream */
.is-style-slfp-cream .wp-block-button__link,
.wp-block-button__link.is-style-slfp-cream {
	background-color: transparent;
	color: var(--slfp-warm-cream);
	border: 2px solid var(--slfp-warm-cream);
}
.is-style-slfp-cream .wp-block-button__link:hover,
.wp-block-button__link.is-style-slfp-cream:hover {
	background-color: var(--slfp-warm-cream);
	color: var(--slfp-terracotta);
}
.is-style-slfp-cream .wp-block-button__link:active,
.wp-block-button__link.is-style-slfp-cream:active {
	background-color: var(--slfp-sage-link-pressed);
	color: var(--slfp-terracotta);
}

/* Text links with arrow: deep teal on light backgrounds, sage on charcoal. */
.slfp-link-teal a,
a.slfp-link-teal {
	color: var(--slfp-deep-teal);
	text-decoration: underline;
	text-underline-offset: 4px;
	font-weight: 500;
}
.slfp-link-teal a:hover,  a.slfp-link-teal:hover  { color: var(--slfp-deep-teal-hover); }
.slfp-link-teal a:active, a.slfp-link-teal:active { color: var(--slfp-deep-teal-pressed); }

.slfp-link-sage a,
a.slfp-link-sage {
	color: var(--slfp-sage-link);
	text-decoration: underline;
	text-underline-offset: 4px;
	font-weight: 500;
}
.slfp-link-sage a:hover,  a.slfp-link-sage:hover  { color: var(--slfp-warm-cream); }
.slfp-link-sage a:active, a.slfp-link-sage:active { color: var(--slfp-sage-link-pressed); }

.slfp-link-teal a::after, a.slfp-link-teal::after,
.slfp-link-sage a::after, a.slfp-link-sage::after {
	content: " \2192";
	text-decoration: none;
	display: inline-block;
	margin-left: 6px;
}

/* White button with terracotta text (footer "Donate"). Block editor: Button > Styles > White */
.is-style-slfp-white .wp-block-button__link,
.wp-block-button__link.is-style-slfp-white {
	background-color: #FFFFFF;
	color: var(--slfp-terracotta);
	border: 0;
}
.is-style-slfp-white .wp-block-button__link:hover,
.wp-block-button__link.is-style-slfp-white:hover {
	background-color: var(--slfp-warm-cream);
	color: var(--slfp-terracotta-hover);
}

/* 1.7.5 Block editor: the same warm cream background as the published post and film pages. */
html,
body.block-editor-iframe__body,
.editor-styles-wrapper,
.editor-styles-wrapper .is-root-container,
.editor-styles-wrapper .editor-post-title,
.editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper,
.editor-styles-wrapper .editor-visual-editor__post-title-wrapper { background-color: #FFF8F0 !important; }
/* 1.9.3: not on inner block areas, so Cover and Row Layout background images show in the editor */
