:root {
  --main-color: hsl(0, 0%, 25%);
  --main-color-light: hsl(60, 100%, 97%);
  --border-radius: 6px;
  --strong : 600;
  --font-size: 18px;
}

/* Override FA inverse from pure white to ivory */
.fa-inverse {
  color: var(--main-color-light)
}

* {
  box-sizing: border-box;
}

strong {
  font-weight: var(--strong);
}

.svg{
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: -1;
}

body {
  padding: 0;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: var(--font-size);
  line-height: 1.8;
  box-sizing: inherit;
  min-height: 100vh;
  width: 100vw;
  display: grid;
  place-items: center;
  color: var(--main-color);
  background: var(--main-color-light);
}

main {
  position: fixed;
  z-index: 2;
  height: 100vh;
  width: inherit;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

.page {
  position: relative;
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(22ch, 1fr));
  place-content: center;
  gap: calc(var(--font-size) /2 + 1.5625vw);
  padding: calc(var(--font-size) /2 + 1.5625vw);
}

a {
  font-weight: 400;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--main-color);
  transition: box-shadow 0.3s ease-in-out;
  box-shadow: 0px 0px 0px -6px var(--main-color);
}

a:link, a:visited, a:hover, a:active {
  color: var(--main-color);
}

a:hover {
  box-shadow: 0px 9px 0px -6px var(--main-color);
}

a.nav__link.nav__sc-links:hover {
  box-shadow: none;
}

a.nav__link.nav__sc-links:hover .nav__sc-links-text{
  box-shadow: 0px 9px 0px -6px var(--main-color);
}

a:focus-visible {
  outline: var(--border-radius) solid var(--main-color-light);
  border-radius: var(--border-radius);
  outline-offset: var(--border-radius);
}

.card-container {
  max-width: 55ch;
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--font-size) /2 + 1.5625vw);
  margin: auto;
}

.card {
  margin: auto;
  display: grid;
  flex: 1 1 0px;
  align-items: center;
  position: relative;
  z-index: 1;
  border-radius: var(--border-radius);
  padding: calc(var(--font-size) /2 + 1.5625vw);
  backdrop-filter: blur(8px); 
  box-shadow: 0px 10px 15px 10px rgba(0 ,0 ,0 ,0.15);
  background-color: rgba(228 ,228 ,228 ,0.10);
}

.card__header {
  position: relative;
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: var(--strong);
  margin: 1rem 0;
}

.card__content {
  transform: translateZ(-50px);
}

.card__text {
  display: inline;
}

.card__image {
  display: inline;
  margin-bottom: -100px;
  margin-left: -35px;
  width: 225px;
  height: auto;
  float: left;
  filter: drop-shadow(1px 2px 2px var(--main-color));
  shape-outside: polygon(54% 10%, 70% 40%, 80% 50%, 78% 100%, 0 100%);
}

.nav__sc-links {
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.2rem;
}

.nav__sc-links-text{
  transition: box-shadow 0.3s ease-in-out;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}