/*
 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
*/

:root {
  font-size: 100%;
}

@font-face {
    font-family: 'Amsterdam Serif';
    src: url('fonts/AMSTERDAMSERIF-Oblique.woff2') format('woff2'),
         url('fonts/AMSTERDAMSERIF-Oblique.woff') format('woff');
    font-style: oblique;
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Amsterdam Serif';
    src: url('fonts/AMSTERDAMSERIF-Regular.woff2') format('woff2'),
         url('fonts/AMSTERDAMSERIF-Regular.woff') format('woff');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Amsterdam Serif', serif;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 20s linear infinite!important;
}

h1 {
  font-size: clamp(2.5rem, 1.93rem + 2.85vw, 3.25rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 1.83rem + 1.88vw, 2.625rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.625rem, 1.38rem + 1.25vw, 2.125rem);
  line-height: 1.2;
}

h4 {
  font-size: clamp(1.375rem, 1.22rem + 0.75vw, 1.75rem);
  line-height: 1.3;
}

h5 {
  font-size: clamp(1.125rem, 1.00rem + 0.63vw, 1.375rem);
  line-height: 1.4;
}

h6 {
  font-size: clamp(1rem, 0.94rem + 0.31vw, 1.125rem);
  line-height: 1.4;
}

p {
  opacity: 0.8;
  line-height: 1.6;
}

/* FADE UP ANIM STYLES */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* END FADE UP */

/* WIGGLE HOVER JS STYLES */

/* Wiggle Hover Animation */
.wiggle-hover {
    cursor: pointer;
    
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.wiggle-hover.wiggling {
    animation: wiggle 0.35s ease-in-out;
}

/* END WIGGLE HOVER */

