* {
  margin: 0;
  padding: 0;
}

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  margin: 0;
  padding: 0;
  background-color: #181725;
  color: white;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

a {
  color: gold;
}

header {
  z-index: 10; 
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.5em 2em;
}

header.opaque {
  background: #0009;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 30px;
  font-weight: bold;
  color: gold;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1em;

  @media only screen and (max-width: 400px) {
    font-size: 0.9em;
/*     width: 50%; */
  }
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.hero {
  background-image: url('gem-background.jpg');
  background-size: cover;
  background-position: center;
  padding: 2rem;
  min-height: 100vh;
}

.hero .claim {
  text-align: left;
  max-width: 35ch;
  margin-top: 8vh;
  margin-left: 10vw;
  display: flex;
  flex-direction: column;
  gap: 1em;
  text-wrap-style: balance;

  @media only screen and (max-width: 400px) {
    position: absolute;
    bottom: 2rem;
    margin: 0;
  }
}

h1 {
  font-size: 36px;
  color: gold;
}

.content {
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.content p {
  max-width: 70ch;
  margin-inline: auto;
  text-wrap-style: balance;
}

#about {
  @media only screen and (min-width: 401px) {
    margin-top: -25vh;
  }
}

#services ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

#services ul li {
  position: relative;
  border-radius: 0.5em;
  border: 1px solid;
  padding: 1em 2em;
  width: 15em;

  &:nth-of-type(1)::after {
    content: '';
    position: absolute;
    top: -0.5em;
    left: 1em;
    width: 25px;
    height: 40px;
    background-image: url('gem-1.png');
  }

  &:nth-of-type(2)::after {
    content: '';
    position: absolute;
    right: 0.5em;
    width: 67px;
    height: 75px;
    background-image: url('gem-2.png');
  }

  &:nth-of-type(3)::after {
    content: '';
    position: absolute;
    left: 0.75em;
    bottom: -3.25em;
    width: 70px;
    height: 97px;
    background-image: url('gem-3.png');
  }
}

#other ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

#other ul li {
  position: relative;
  border-radius: 0.5em;
  border: 1px solid;
  padding: 1em 2em;

  @media only screen and (max-width: 400px) {
    width: 15em;
  }
}

footer {
  padding: 4rem;
}
