/*------ External font links ------*/

/*------ Local font links ------*/

/* fraunces-900 - latin */
@font-face {
   font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
   font-family: 'Fraunces';
   font-style: normal;
   font-weight: 900;
   src: url('../assets/fonts/fraunces-v31-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
 }

 /* barlow-600 - latin */
@font-face {
   font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
   font-family: 'Barlow';
   font-style: normal;
   font-weight: 600;
   src: url('../assets/fonts/barlow-v12-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
 }

/*============================== 2. Custom CSS Properties ==============================*/

:root {
  /*------ Color variables ------*/

  /* Neutral */
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --gray-light: hsl(0, 0%, 96.1%);
  --gray: hsl(0, 0%, 80%);
  --gray-dark: hsl(0, 0%, 29%);

  /* Main Colors */
  --primary: hsl(211.1, 100%, 50%);
  --secondary: hsl(208.2, 13.6%, 45.7%);
  --success: hsl(133.7, 76%, 40.6%);
  --danger: hsl(354.3, 75.9%, 53.5%);
  --warning: hsl(45, 98%, 51%);
  --info: hsl(188.2, 87.5%, 40.6%);

  /* Color palette (all the colors specific to your project) */
  --gray-blue: hsl(212, 27%, 19%);
  --soft-gray: hsl(232, 10%, 55%);
  --yellow--min: hsl(51, 100%, 49%);
  --soft--orange: hsl(7, 99%, 70%);
  --green-tree: #144137;
  --didark-blue: #052c3bd6;



  /* Background */
  --background-light: hsl(0, 0%, 100%);
  --background-dark: hsl(210, 18.8%, 22.7%);

  /* Text */
  --text-light: hsl(0, 0%, 100%);
  --text-dark: hsl(210, 19.5%, 14.5%);
  --text-gray: hsl(232, 10%, 55%);

  /*------ Font variables ------*/
  --text-font: "Barlow", sans-serif;
  --subTitle-font: "Fraunces", sans-serif;
  --title-font: "Fraunces", sans-serif;

  /*------ Text size variables ------*/
  --fs-3xs: 0.625rem;
  --fs-2xs: 0.75rem;
  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 1.87rem;
  --fs-4xl: clamp(1.9rem, 4.5vw + 1rem, 4rem);

  /*------ Border radius variables ------*/
  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Spacing variables */
  --spacing-2xs: 0.25rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-lg: 2rem;
  --spacing-fluid: 5vw;
}

/*- Media Queries for larger screens, adjusting text sizes -*/

@media (min-width: 51.875em) {
  :root {
    --fs-xs: 0.9375rem;
    --fs-sm: 1rem;
    --fs-md: 1.25rem;
    --fs-lg: 1.5rem;
    --fs-xl: 2rem;
    --fs-2xl: 2.25rem;
    --fs-3xl: 2.75rem;
    --fs-4xl: clamp(3rem, 5vw + 1rem, 5rem);
  }
}

@media (min-width: 64em) {
  :root {
    --fs-xs: 1rem;
    --fs-sm: 1.125rem;
    --fs-md: 1.5rem;
    --fs-lg: 2rem;
    --fs-xl: 2.5rem;
    --fs-2xl: 3rem;
    --fs-3xl: 3.5rem;
    --fs-4xl: clamp(5rem, 6vw + 1rem, 7rem);
  }
}

* Font size utilities */
.fs-xs {
  font-size: var(--fs-xs);
}
.fs-sm {
  font-size: var(--fs-sm);
}
.fs-md {
  font-size: var(--fs-md);
}
.fs-lg {
  font-size: var(--fs-lg);
}
.fs-xl {
  font-size: var(--fs-xl);
}
.fs-2xl {
  font-size: var(--fs-2xl);
}

/* Background color utilities */
.bg-white {
  background-color: var(--white);
}
.bg-black {
  background-color: var(--black);
}
.bg-primary {
  background-color: var(--primary);
}
.bg-secondary {
  background-color: var(--secondary);
}
.bg-success {
  background-color: var(--success);
}
.bg-danger {
  background-color: var(--danger);
}
.bg-warning {
  background-color: var(--warning);
}
.bg-info {
  background-color: var(--info);
}

/* Text color utilities */
.text-white {
  color: var(--white);
}
.text-black {
  color: var(--black);
}
.text-primary {
  color: var(--primary);
}
.text-secondary {
  color: var(--secondary);
}
.text-success {
  color: var(--success);
}
.text-danger {
  color: var(--danger);
}
.text-warning {
  color: var(--warning);
}
.text-info {
  color: var(--info);
}

/* Display utilities */
.flex {
  display: flex;
}

.grid {
  display: grid;
  gap: var(--gap, 1rem);
}

.d-block {
  display: block;
}

.d-none {
  display: none;
}

.flow > *:where(:not(:first-child)) {
  margin-top: var(--flow-space, 1rem);
}

/* Conatainer */
.container {
  padding-inline: 2em;
  margin-inline: auto;
  max-width: 80rem;
}

.grid-container {
  text-align: center;
  display: grid;
  place-items: center;
  padding-inline: 1rem;
}

.grid-container * {
  max-width: 50ch;
}

/* Width utilities */
.w-full {
  width: 100%;
}
.w-auto {
  width: auto;
}

/* Height utilities */
.h-full {
  height: 100%;
}
.h-auto {
  height: auto;
}

/* title and subtitle */
h1, h2 {
  font-family: var(--title-font);
  font-weight: 900;
}