@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap');

/* Custom properties */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'X';
  src: url('../fonts/dd.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --textColourPrimary: #F7F7F7;
  --textColourSecondary: #A8B3BE;
  --backgroundDark: #121417;
  --backgroundCard: #151515;
  --backgroundSecondary: hsla(214, 14%, 15%, 1);
  --backgroundTertiary: hsla(214, 14%, 20%, 1);
  --backgroundHover: hsla(214, 14%, 25%, 1);
  --backgroundModal: #0D0D0D;
  --borderColour: rgba(255, 255, 255, 0.08);
  --borderColourHover: rgba(255, 255, 255, 0.16);
  --image-border: 1px solid rgba(255, 255, 255, 0.1);
  --accentLink: #5ea9ff;
  --accentLinkHover: #add3ff;
  --tagBg: rgba(255, 90, 54, 0.1);
  --tagText: #ff7b5a;
  --tagBorder: rgba(255, 90, 54, 0.2);
  --cardHoverColor: #ff5a36;
  --selectionBg: #ff5a36;
  --selectionText: #ffffff;

  --fontSizeXL: 22px;
  --fontSizeL: 17px;
  --fontSizeM: 15px;
  --fontSizeS: 13px;

  --gradientText: linear-gradient(
    90deg,
    #ff8a00 0%,
    #ff0f67 51.56%,
    #ff00c7 100%
  );
  --gradientText2: linear-gradient(90deg, #27fff2, #e3f570);
}

html.theme-light {
  --textColourPrimary: #1A1A1A;
  --textColourSecondary: #5F6B7A;
  --backgroundDark: #F5F5F5;
  --backgroundCard: #FFFFFF;
  --backgroundSecondary: hsla(214, 14%, 93%, 1);
  --backgroundTertiary: hsla(214, 14%, 88%, 1);
  --backgroundHover: hsla(214, 14%, 83%, 1);
  --backgroundModal: rgba(0, 0, 0, 0.4);
  --borderColour: rgba(0, 0, 0, 0.1);
  --borderColourHover: rgba(0, 0, 0, 0.18);
  --image-border: 1px solid rgba(0, 0, 0, 0.1);
  --accentLink: #2563eb;
  --accentLinkHover: #1d4ed8;
  --tagBg: rgba(230, 74, 25, 0.06);
  --tagText: #d84315;
  --tagBorder: rgba(230, 74, 25, 0.12);
  --cardHoverColor: #e64a19;
  --selectionBg: #ff5a36;
  --selectionText: #1A1A1A;
}

/* Globals */

::selection {
  background-color: var(--selectionBg);
  color: var(--selectionText);
}

* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

*::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
}

.section-heading {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--textColourSecondary);
  margin-top: 96px;
  margin-bottom: 24px;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

p {
  margin-top: 0;
  margin-bottom: 8px;
}

body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  line-height: 1.7;
  color: var(--textColourSecondary);
  background: var(--backgroundDark);
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

strong,
b {
  font-weight: 500;
  color: var(--textColourPrimary);
}

/* HEADER  */
/* Layout */

.container {
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 600px;
}

.header,
.footer {
  padding-top: 1rem;
  padding-bottom: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 37.5rem) {
  body {
    font-size: 18px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header {
    padding-top: 2rem;
  }
}

/* Styles */

.footer {
  color: var(--textColourSecondary);
}

/* Typography */

a {
  text-decoration: none;
}

.header {
  font-weight: 600;
  font-size: clamp(1.2rem, 5vw, 1.56rem);
}

.footer {
  font-size: clamp(0.8rem, 5vw, 1.2rem);
  font-weight: 600;
}

.text-xl {
  font-size: var(--fontSizeXL);
  font-weight: 400;
}

.text-l {
  font-size: var(--fontSizeL);
  font-weight: 400;
}

.text-m {
  font-size: var(--fontSizeM);
  font-weight: 400;
}
.text-s {
  font-size: var(--fontSizeS);
  font-weight: 400;
}

.text-regular {
  font-weight: 400;
}

.text-bold {
  font-weight: 700;
}

.text-medium {
  font-weight: 500;
}
