/* ============================================
   2 Friends — Base Styles
   Reset, @font-face, typography, global styles
   ============================================ */

/* — Reset — */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-body-sm);
  line-height: var(--lh-body);
  color: var(--color-purple);
  background-color: var(--color-bg-page);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

input,
textarea {
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  outline: none;
  width: 100%;
}

/* — @font-face — */
@font-face {
  font-family: 'Marvin';
  src: url('../fonts/marvin-display.woff2') format('woff2'),
       url('../fonts/marvin-display.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* — Typography — */
.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  font-weight: var(--weight-regular);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display-xl);
  color: var(--color-orange);
}

.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-display-lg);
  font-weight: var(--weight-regular);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display-lg);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-heading-lg);
  font-weight: var(--weight-bold);
  line-height: var(--lh-body);
  text-transform: uppercase;
  color: var(--color-purple);
}

.heading-xl {
  font-family: var(--font-body);
  font-size: var(--text-heading-xl);
  font-weight: var(--weight-bold);
  line-height: var(--lh-body);
}

/* — Container — */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

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