/* VARIABLES */

:root {
  /* fonts */
  --header-font: "Bebas Neue", sans-serif;
  --body-font: "Source Sans 3", sans-serif;

  /* typography */
  --header-letter-spacing: 0.1rem;
  --body-letter-spacing: 0.05rem;

  /* spacing */

  /* colors */
  --white: hsl(45, 100%, 98.43%);
  --black: hsl(0, 0%, 8.24%);
  --grey: hsl(0, 0%, 47.45%);
  --light-grey: hsl(0, 0%, 89%);
  --dark-blue: hsl(214.5, 100%, 15.69%);
  --medium-blue: hsl(214.03, 44.37%, 29.61%);
  --light-blue: hsl(213.96, 23.77%, 43.73%);
  --img-overlay: hsla(214.5, 100%, 15.69%, 0.45);
}

/* == BROWSER RESETS == */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  border: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

.logo img {
  width: auto;
  height: auto;
}

/* == GLOBAL BODY STYLES == */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  font-family: var(--body-font);
  letter-spacing: var(--body-letter-spacing);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
}

/* == TYPOGRAPHY ==*/

h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
  font-family: var(--header-font);
  letter-spacing: var(--header-letter-spacing);
}

h1 {
  font-size: clamp(2.5rem, 2vw + 1.5rem, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 1vw + 0.5rem, 2.25rem);
}

h3 {
  font-size: clamp(1.175rem, 1vw + 0.5rem, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  overflow-wrap: break-word;
  margin-bottom: 1em;
}

i {
  margin: 0.25em 0;
  color: var(--dark-blue);
}

.text-lg {
  font-size: clamp(2rem, 1.5vw + 1.5rem, 2.75rem);
}

/* == UTILITY CLASSES == */

.light {
  color: var(--white);
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.full-height {
  min-height: 100vh;
}

.section-heading {
  overflow-x: clip;
  word-break: break-all;
  margin-top: 3em;
  margin-bottom: 1em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.6rem 0.85rem;
  background-color: var(--dark-blue);
  color: var(--white);
  text-decoration: none;
  font-family: var(--header-font);
  letter-spacing: var(--header-letter-spacing);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
}

/* == COMPONENTS == */

.btn {
  padding-top: 1em;
  padding-bottom: 0.75em;
  padding-left: 1.25em;
  padding-right: 1.25em;
  margin: 1em 0;
  width: fit-content;
  color: var(--white);
  font-family: var(--header-font);
  letter-spacing: var(--header-letter-spacing);
  font-size: 1.125rem;
  font-weight: bold;
  background-color: var(--dark-blue);
  text-decoration: none;
}

.btn:hover {
  color: var(--light-grey);
  background-color: var(--medium-blue);
}

.btn-light {
  color: var(--dark-blue);
  background-color: var(--white);
}

.btn-light:hover {
  color: var(--white);
  background-color: var(--light-blue);
}

a {
  color: var(--dark-blue);
}

a:hover {
  color: var(--light-blue);
}

a:visited {
  color: var(--medium-blue);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.accordion:focus-visible,
.dropbtn:focus-visible {
  outline: 3px solid var(--light-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}