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

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

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  line-height: 1.5;
  font-family: 'AkkuratLL', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-y:scroll;
  color: $color-dark1;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none;
}

a,
a:visited {
  color: $text-default-fg;
  text-decoration: none;
}

/* 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 {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

h1, .heading1 {
  font-size: 3rem;
  line-height: 3.5rem;
  color: $heading-default-fg;
  font-weight: 900;
}

.pretitle {
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 1.1px;
  line-height: 32px;
  color: $color-grey1;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  padding: 15px 16px;
  border: 1px solid $border-default-color;
  border-radius: $default-radius;
  font-size: 1.125rem;
  line-height: 1.5rem;
  color: $input-fg;

  &::placeholder {
    color: $input-placeholder-fg;
  }

  &.input--large {
    padding: 19px 16px;
  }
}

.field {
  label {
    display: block;
    font-weight: 700;
    padding: 8px 0;
  }
}

// Resets button styles
button,
input[type="button"] {
  background: none;
  padding: 0;
  border: none;
  cursor: pointer;

  &:focus {
    outline: none;
  }
}

.close-btn {
  border: none;
  background: transparent;
  height: 22px;
  width: 22px;
  padding: 0;
  position: absolute;
  cursor: pointer;

  &:focus {
    outline: none;
  }

  &::before, &::after {
    content: ' ';
    position: absolute;
    display: block;
    height: 2px;
    width: 22px;
    transform: rotate(45deg);
    background-color: $color-dark1;
  }

  &::after {
    transform: rotate(-45deg);
  }
}
