:root {
  --size-15: 0.25rem;
  --size-25: 0.375rem;
  --size-50: 0.5rem;
  --size-100: 0.625rem;
  --size-200: 0.875rem;
  --size-300: 1rem;
  --size-400: 1.125rem;
  --size-500: 1.375rem;
  --size-600: 1.75rem;
  --size-700: 2.25rem;
  --size-800: 2.5rem;
  --size-900: 3rem;

  --ff-primary: "Roboto Flex", sans-serif;
  --ff-accent: "Stalemate", cursive;

  --fw-thin: 100;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-semibold: 500;
  --fw-bold: 700;
  --fw-black: 900;

  --clr-black: hsla(0, 0%, 10%, 1);
  --clr-white: hsla(0, 0%, 90%, 1);

  --clr-fg-primary: hsla(0, 0%, 90%, 1);
  --clr-bg-primary: hsla(209, 100%, 31%, 1);
  --clr-accent: hsla(209, 100%, 81%, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --clr-accent: hsla(13, 96%, 43%, 1);
  --clr-fg-primary: hsla(0, 0%, 80%, 1);
  --clr-bg-primary: hsla(0, 0%, 10%, 1);


  img {
    opacity: 70%;
  }
}

/* #region CSS RESET */

/* Source of Modern CSS reset */
/* https://github.com/Andy-set-studio/modern-css-reset */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* #endregion CSS RESET */

body {
  color: var(--clr-fg-primary);
  background-color: var(--clr-bg-primary);
  font-family: var(--ff-primary);
  font-size: var(--size-400);
  font-weight: var(--fw-regular);
  line-height: 1.5;
}

.container {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
}

.grid {
    display: grid;
    gap: 1rem;
    grid-template-rows: 4fr 1fr;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
}

.flex {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.logo {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  justify-items: center;
  padding-top: 4rem;

  & img {
    width: 60%;
    min-width: 100px;
    max-width: 500px;
  }
}

.services > ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2rem;
  justify-content: center;
  align-items: baseline;
  padding-top: 4em;

  & li {
    text-wrap: nowrap;
  }
}

.contact {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  justify-items: center;
  padding-top: 2em;

  & a {
    color: var(--clr-fg-primary);
    text-decoration: none;
  }

  & a:hover,
  & a:focus {
    color: var(--clr-accent);
  }
}