@font-face {
  font-family: "Neue Power";
  src: url("/media/fonts/NeuePower-Ultra.ttf") format("truetype");
}

@font-face {
  font-family: "Outfit";
  src: url("/media/fonts/Outfit-VariableFont_wght.ttf") format("truetype");
}

:root {
  /* Branding colors */
  --primary-color: #0000ff;

  /* Neutral colors */
  --neutral-950: #121212;
  --neutral-50: #fdfdfd;

  --neutral-950-hover: #2a2a2a;

  /* Accent colors */
  --success: #60f28e;

  /* Styling */
  --border-radius: 15px;

  /* Spacing */
  --space-tiny: 0.3125rem; /* 5px */
  --space-gutter: 0.3125rem; /* 5px */
  --space-inner: 0.625rem; /* 10px */
  --space-sides: 0.9375rem; /* 15px (mobile default) */
  --space-medium: 2rem; /* 32px */
  --space-sections: 3.75rem; /* 60px (mobile default) */

  @media (min-width: 768px) {
    --space-tiny: 0.625rem; /* 10px */
    --space-gutter: 0.9375rem; /* 15px */
    --space-inner: 1.25rem; /* 20px */
    --space-sides: 3rem; /* 48px */
    --space-medium: 5rem; /* 80x */
    --space-sections: 9.375rem; /* 150px */
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--neutral-50);
}

.main-logo {
  font-family: "Helvetica Neue", sans-serif;
  font-weight: bold;
  font-size: 45px;
  color: var(--neutral-950);
  text-decoration: none;
  letter-spacing: -6%;
}

/* Typography */
h1,
h2,
h3 {
  font-family: "Neue Power", sans-serif;
  color: var(--neutral-950);
  letter-spacing: 2%;
  font-weight: 500;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: clamp(2rem, 4.5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  line-height: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: clamp(1.5rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--neutral-950);
}

p {
  opacity: 0.8;
  text-wrap: pretty;

  b {
    position: relative;
    font-weight: 500;
    transition: 0.3s ease-in-out;

    &:hover {
      background-color: var(--primary-color);
      color: var(--neutral-50);
    }
  }
}

body {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  /* line-height: 1.5; */
  line-height: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -2%;

  overflow-x: hidden;
}

/* Global styling */
/* header, */
footer,
/* nav, */
section {
  padding: 0 var(--space-sides);
}

ul {
  list-style: none;
  line-height: 2;

  li {
    position: relative;
    width: fit-content;

    &::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 2px;
      border-radius: 4px;
      background-color: var(--neutral-950);
      bottom: 3px;
      left: 0;
      transform-origin: right;
      transform: scaleX(0);
      transition: transform 0.3s ease-in-out;
    }

    &:hover::before {
      transform-origin: left;
      transform: scaleX(1);
    }
  }
}

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

.medium {
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.featured-half-img,
.project-cover,
.single-project-cover,
.single-project-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);

  @media (min-width: 768px) {
    height: 400px;
  }
}

.magnetic {
  display: inline-block;
}
