/*
Theme Name: Enfold Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating wil be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/
/* =========================
   THEME TWEAKS
========================= */
/* Typography wrapping */
/* Balance headings and elements with `.balance` class */
:is(h1, h2, h3, h4, h5, h6),
.balance {
    text-wrap: balance;
}

/* Use pretty wrapping for body text elements */
p,
blockquote,
li {
    text-wrap: pretty;
}

/* Remove bottom margin from final paragraph */
p:last-child:last-of-type,p:last-child {
    margin-bottom: 0px;
}



/* =========================
   STRETCH LINK (from Bootstrap)
   Source: https://youtu.be/HBriBrnRlQE?si=DLiSXEiBHt6lw91l
   Note: Only use ONE link per card or this breaks!
========================= */

.stretch-link {
    position: relative;
}

.stretch-link a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.stretch-link a:is(:focus-visible)::after {
    outline: 2px solid;
}

.stretch-link a:is(:hover, :focus) {
    outline: none;
}


/* =========================
   FLUID TYPOGRAPHY SCALE
   Source: https://theadminbar.com/simple-responsive-font-size-calculator/
========================= */

h1, .fs-h1,.fs-h1 h2, .fs-h1 h3  {
	font-size: clamp(3rem, 2.6591rem + 1.3636vi, 3.75rem);
}

h2, .fs-h2, .fs-h2 h1, .fs-h2 h3  {
	font-size: clamp(2.25rem, 1.9943rem + 1.0227vi, 2.8125rem);
}

h3, .fs-h3, .fs-h3 h1,.fs-h3 h2 {
	font-size: clamp(1.875rem, 1.6619rem + 0.8523vi, 2.3438rem);
}

h4, .fs-h4 {
	font-size: clamp(1.5rem, 1.3295rem + 0.6818vi, 1.875rem);
}

h5, .fs-h5 {
	font-size: clamp(1.25rem, 1.108rem + 0.5682vi, 1.5625rem);
}

h6, .fs-h6 {
	font-size: clamp(1.125rem, 0.9972rem + 0.5114vi, 1.4063rem);
}

p,li;
.fs-p {
    font-size: 1em;
}
