// ========================================
// base settings
// ========================================

html {
  font-size: $font-size-default;
  color: map-get($colors, text);
  container-type: inline-size;
  scroll-behavior: smooth;
}

body {
  font-family: $font-family-base;
  font-weight: $font-weight-base;
  letter-spacing: $letter-spacing-base;
  line-height: $line-height-base;
  background: map-get($colors, white);
  color: map-get($colors, text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: $font-family-base;
  font-weight: 400;
  line-height: $line-height-display;
  letter-spacing: $letter-spacing-display;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  &:hover {
    opacity: 0.7;
  }
  &:before,
  &:after {
    transition: 0.4s;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 2px solid map-get($colors, accent);
  outline-offset: 2px;
}

input:not(
    [type='checkbox'],
    [type='radio'],
    [type='file'],
    [type='hidden'],
    [type='submit'],
    [type='reset'],
    [type='button'],
    [type='image']
  ),
select,
textarea {
  width: 100%;
  padding: 1em;
  border: 0;
  border-radius: 5px;
  @include mq-up('s') {
    padding: 2em;
  }
}

select {
  max-width: 320px;
}

button {
  border: none;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  @include font(15);
  line-height: 2;
}

hr {
  border-color: #e5e5e5;
}
