/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Remove stock GP margin bottom on last paragaphs in a container */
p:last-child:last-of-type {
	margin-bottom: 0;
}

/* Fluid Typography Scale */

h1, .fs-h1 {
	font-size: clamp(3rem, 2.7273rem + 1.0909vw, 3.6rem);
}

h2, .fs-h2 {
	font-size: clamp(2.25rem, 2.0455rem + 0.8182vw, 2.7rem);
}

h3, .fs-h3 {
	font-size: clamp(1.875rem, 1.7045rem + 0.6818vw, 2.25rem);
}

h4, .fs-h4 {
	font-size: clamp(1.5rem, 1.3636rem + 0.5455vw, 1.8rem);
}

h5, .fs-h5 {
	font-size: clamp(1.25rem, 1.1364rem + 0.4545vw, 1.5rem);
}

h6, .fs-h6 {
	font-size: clamp(1.125rem, 1.0227rem + 0.4091vw, 1.35rem);
}

p, .fs-p {
	font-size: clamp(1rem, 0.9472rem + 0.2222vw, 1.125rem);
}

/* Apply underline-from-left to GeneratePress nav menu links */
.main-nav .sf-menu > li > a {
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

.main-nav .sf-menu > li > a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 2px; /* adjust thickness */
  background-color: currentColor; /* or use a fixed color like #2098D1 */
  transition: right 0.3s ease-out;
  z-index: 1;
}

.main-nav .sf-menu > li > a:hover::before,
.main-nav .sf-menu > li > a:focus::before {
  right: 0;
}