/* Note below that you can find min and max */
/* values for width and weight */
@font-face {
  font-family: 'Okay Variable';
  src: url('../fonts/okay/Okay-VF-Roman-Latin1.woff2') format('woff2-variations');
  font-display: swap;
  font-stretch: 333% 999%;
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: 'Okay Variable';
  src: url('../fonts/okay/Okay-VF-Italic-Latin1.woff2') format('woff2-variations');
  font-display: swap;
  font-stretch: 333% 999%;
  font-style: italic;
  font-weight: normal;
}

/* Note below that you can find min and max */
/* values for width and weight */
@font-face {
  font-family: 'Recursive Variable';
  src: url('../fonts/recursive/recursive-prop_xprn_weight_slnt_ital--2019_08_26.woff2') format('woff2-variations');
  font-display: swap;
  font-style: oblique 0deg 15deg;
  font-weight: 300 900;
}


body {
  font-family: "Recursive Variable";
}

:root {
  /* font stack variables */
  --font-stack-sans-vf: "Recursive Variable", Helvetica, arial, sans-serif;
  --font-stack-display-vf: "Okay Variable", Helvetica, arial, sans-serif;
  
  /* assign font stacks for headings and text */
  --font-stack-heading: var(--font-stack-display-vf);
  --font-stack-body: var(--font-stack-sans-vf);

  /* breakpoint variables */
  --bp-small: 25;
  --bp-medium: 45;
  --bp-large: 55;
  --bp-xlarge: 65;
  
  /* color variables */
  
  --blue-dark: #313161;
  --blue-lightest: #e1f1ff;

  --text-color: var(--blue-dark);
  --background-color: var(--blue-lightest);
  
  /* set px value sizes */
  /* initial px value for text */
  --rem-px: 16;

  /* EDIT HERE to set px value sizes */
  --p-size-s-px: 16;
  --p-size-l-px: 24;
  --h1-size-s-px: 40;
  --h1-size-l-px: 72;
  --h2-size-s-px: 28;
  --h2-size-l-px: 40;

  /* set scale values */
  
  /* calcs to create em/rem values for the formulas */
  --p-size-min: calc( var(--p-size-s-px) / var(--rem-px) );
  --p-size-max: calc( var(--p-size-l-px) / var(--rem-px) );
  --p-lh-min: 1.3;
  --p-lh-max: 1.6;
  
  --p-wdth: var(--p-wdth-min);
  
  /* static values to set across breakpoint range */
  --p-wdth-min: 100;
  --p-wdth-max: 100;
  --p-wght-min: 375;
  --p-wght-max: 400;

  /* default starting scale value */
  --p-wdth: var(--p-wdth-min);
  --p-wght: var(--p-wght-min);
  --p-PROP: 1; /* bool: 0 or 1 */
  --p-XPRN: 0; /* range: 0 to 1 */
  --p-ital: 0; /* bool: 0 or 1 */
  --p-slnt: 0; /* range: 0 to -15 */

   /* calcs to create rem values for the formulas */
  --h1-size-min: calc( var(--h1-size-s-px) / var(--rem-px) );
  --h1-size-max: calc( var(--h1-size-l-px) / var(--rem-px) );
  --h1-lh-min: 0.9;
  --h1-lh-max: 1.1;
  
    /* static values to set across breakpoint range */
  --h1-wdth-min: 333;
  --h1-wdth-max: 999;
  --h1-wght-min: 400;
  --h1-wght-max: 400;
  --h1-xtnd-min: 0;
  --h1-xtnd-max: 999;

  /* default starting scale value */
  --h1-wdth: var(--h1-wdth-min);
  --h1-wght: var(--h1-wght-min);
  --h1-xtnd: var(--h1-xtnd-min);

  /* calcs to create rem values for the formulas */
  --h2-size-min: calc( var(--h2-size-s-px) / var(--rem-px) );
  --h2-size-max: calc( var(--h2-size-l-px) / var(--rem-px) );
  --h2-lh-min: 1.05;
  --h2-lh-max: 1.1;
  
    /* static values to set across breakpoint range */
  --h2-wdth-min: 333;
  --h2-wdth-max: 700;
  --h2-wght-min: 600;
  --h2-wght-max: 700;
  --h2-XPRN-min: 0;
  --h2-XPRN-max: 1;
  --h2-slnt-min: -15;
  --h2-slnt-max: 0;

  /* default starting scale value */
  --h2-wdth: var(--h2-wdth-min);
  --h2-wght: var(--h2-wght-min);
  --h2-PROP: 1; /* bool: 0 or 1 */
  --h2-XPRN: var(--h2-XPRN-min); /* range: 0 to 1 */
  --h2-ital: 1; /* bool: 0 or 1 */
  --h2-slnt: -15; /* range: 0 to -15 */
}

  html {
    box-sizing: border-box;
  }
  *, *:before, *:after {
    box-sizing: inherit;
  }
  
  
body {
  background-color: var(--background-color);
  color: var(--text-color);
}

h1 {
  font-family: var(--font-stack-heading);
  /* set low-end scale values for smallest screens */
  font-size: calc( var(--h1-size-min) * 1rem);
  font-stretch: calc( var(--h1-wdth) * 1%);
  font-weight: var(--h1-wght);
  line-height: var(--h1-lh-min); 
  margin: 1rem 0;
  font-variation-settings: "xtnd" var(--h1-xtnd);
}
  @media screen and (min-width: 25em) {
    h1 {
      /* use formula to scale from low value to high between breakpoints */
      line-height: calc(( var(--h1-lh-min) * 1em ) + ( var(--h1-lh-max) - var(--h1-lh-min) ) * ((100vw - ( var(--bp-small) * 1em )) / ( var(--bp-xlarge) - var(--bp-small) )));
      font-size: calc(( var(--h1-size-min) * 1em ) + ( var(--h1-size-max) - var(--h1-size-min) ) * ((100vw - ( var(--bp-small) * 1em )) / ( var(--bp-xlarge) - var(--bp-small) ))); 
    } 
  }
  @media screen and (min-width: 65em) {
    h1 {
      /* set high end values to cap scale for largest screens */
      font-size: calc( var(--h1-size-max) * 1em);
      font-stretch: calc( var(--h1-wdth-max) * 1%);
      font-weight: var(--h1-wght-max); 
      line-height: var(--h1-lh-max); 
    }
  }

h2 {
  font-family: var(--font-stack-body);
  /* set low-end scale values for smallest screens */
  font-size: calc( var(--h2-size-min) * 1rem);
  font-stretch: calc( var(--h2-wdth) * 1%);
  font-weight: var(--h2-wght);
  line-height: var(--h2-lh-min); 
  margin: 1rem 0;
  font-variation-settings: "ital" var(--h2-ital), "slnt" var(--h2-slnt), "PROP" var(--h2-PROP), "XPRN" var(--h2-XPRN);
}
  @media screen and (min-width: 25em) {
    h2 {
      /* use formula to scale from low value to high between breakpoints */
      line-height: calc(( var(--h2-lh-min) * 1em ) + ( var(--h2-lh-max) - var(--h2-lh-min) ) * ((100vw - ( var(--bp-small) * 1em )) / ( var(--bp-xlarge) - var(--bp-small) )));
      font-size: calc(( var(--h2-size-min) * 1em ) + ( var(--h2-size-max) - var(--h2-size-min) ) * ((100vw - ( var(--bp-small) * 1em )) / ( var(--bp-xlarge) - var(--bp-small) ))); 
    } 
  }
  @media screen and (min-width: 65em) {
    h2 {
      /* set high end values to cap scale for largest screens */
      font-size: calc( var(--h2-size-max) * 1em);
      font-stretch: calc( var(--h2-wdth-max) * 1%);
      font-weight: var(--h2-wght-max);
      line-height: var(--h2-lh-max);
    } 
  }


p {
  font-family: var(--font-stack-body);
  /* set low-end scale values for smallest screens */
  font-size: calc( var(--p-size-min) * 1rem);
  font-stretch: calc( var(--p-wdth) * 1%);
  font-weight: var(--p-wght);
  line-height: var(--p-lh-min); 
  font-variation-settings: "ital" var(--p-ital), "slnt" var(--p-slnt), "PROP" var(--p-PROP), "XPRN" var(--p-XPRN);
}
  @media screen and (min-width: 25em) {
    p {
      /* use formula to scale from low value to high between breakpoints */
      line-height: calc(( var(--p-lh-min) * 1em ) + ( var(--p-lh-max) - var(--p-lh-min) ) * ((100vw - ( var(--bp-small) * 1em )) / ( var(--bp-xlarge) - var(--bp-small) )));
      font-size: calc(( var(--p-size-min) * 1em ) + ( var(--p-size-max) - var(--p-size-min) ) * ((100vw - ( var(--bp-small) * 1em )) / ( var(--bp-xlarge) - var(--bp-small) )));
    }
  }
  @media (min-width: 65em) {
    p {
      /* set high end values to cap scale for largest screens */
      font-size: calc( var(--p-size-max) * 1em);
      line-height: var(--p-lh-max);
    }
  }

* + p {
  margin-top: 1em; 
} 
    
a {
  --p-PROP: 0;
  --p-slnt: -15;
  font-variation-settings: "ital" var(--p-ital), "slnt" var(--p-slnt), "PROP" var(--p-PROP), "XPRN" var(--p-XPRN);
}
.content-container {
  margin: 2rem auto;
  max-width: 98vw;
}
  @media (min-width: 45em) {
    .content-container {
      max-width: 40rem; 
    }
  }
  @media (min-width: 55em) {
    .content-container {
      max-width: 42rem; 
    }
  }
  @media (min-width: 65em) {
    .content-container {
      max-width: 46rem; 
    }
  }
