@import url("./vars/font.css");
@import url("./vars/color.css");
@import url("./vars/spacing.css");

html {
  scroll-behavior: smooth;
  background-color: var(--background);
}

main {
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-content-section);
  overflow: clip;
}

* {
  margin: 0px;
  padding: 0px;
  border: none;
  background: none;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 0.5em;
}

body {
  position: relative;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--foreground);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.p-sm {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-foreground);
}

span {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
}

/* Scale site */
/* 2000px */
@media only screen and (min-width: 125rem) {
  html,
  body {
    font-size: 105%;
  }
}

/* 2400px */
@media only screen and (min-width: 150rem) {
  html,
  body {
    font-size: 110%;
  }
}

/* 2800px */
@media only screen and (min-width: 175rem) {
  html,
  body {
    font-size: 115%;
  }
}

/* 3200px */
@media only screen and (min-width: 200rem) {
  html,
  body {
    font-size: 120%;
  }
}

/* 3600px */
@media only screen and (min-width: 225rem) {
  html,
  body {
    font-size: 125%;
  }
}
