:root {
  --bg-main: hsl(223, 51%, 10%);
  --bg-card: #0A101F;
  --border-card: hsl(223, 51%, 14%);
  --text-main: hsl(223, 51%, 90%);
  --text-accent: hsl(54, 88%, 78%);
  --border-radius: 4px;
  --gap: 1rem;
  --shadow: #F8F4BB;
  --max-width: 1024px;
}

* {
  box-sizing: border-box;
}

/* --------- Mobile ----------  */

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Alan Sans", sans-serif;
  font-size: 1rem;
  font-weight: 375;
  color: var(--text-main);
  background:var(--bg-main);
}


/* --------- Desktop ----------  */
/* .page {
  // background-color: aquamarine; 
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
} */

.page {
  /* background-color: aquamarine;  */
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
} 


.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: var(--gap);
}

.navigation {
  width: min(700px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  /* animation: rise 500ms ease-out; */
  display: flex;
  flex-direction: row;
  align-items:end;
}

.navigation p {
  margin: 0 0.5rem;
}

.navigation a {
  margin: 0 0.5rem;
}

.card {
  width: min(700px, 100%);
  backdrop-filter: blur(6px);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius);
  padding: 2rem;
  /* box-shadow: 5px 5px 10px  rgb(6, 20, 49, 0.1); */
  /* animation: rise 700ms ease-out; */
}

.card--image {
  padding: 0;
  min-height: 128px;
  width: 100%;
}

.card--image img {
  display: block;
  min-height: 64px;
  width: 100%;
  border-radius: var(--border-radius);
}

#aboutImg {
  min-width: 25%;
  width: 100%;
  border-radius: var(--border-radius);
}


.info {
  display: flex;
  flex-direction: column;
  max-width: var(--max-width);
  gap: var(--gap);
}
.card--intro {
  width: 100%;
}
.card--work {
  width: 100%;
}

h1 {
  margin: 0 0 1rem;
  font-size: 2.25rem;
  font-weight: 400;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 400;
}

ul {
    list-style: '✦  ';
    padding-left: 1.2rem;
    color: var(--text-accent);
    gap: 24px;
}



a, 
a:visited {
  color: var(--text-accent);
  text-decoration: none;
  background-color: transparent;

}

a:hover {
  background-color: var(--text-accent);
  color: var(--bg-card);
  text-decoration: none;
  transition: background-color 100ms ease, color 100ms ease;
}
a:focus-visible {
  filter: brightness(1.1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: scale(0.95  ,0.95);
  }
  to {
    opacity: 1;
    transform: scale(1,1);
  }
}



@media (min-width: 1024px) {  

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: var(--max-width);
    gap: var(--gap);
  } 

  .navigation {
    width: var(--max-width);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    /* animation: rise 500ms ease-out; */
    display: flex;
    flex-direction: row;
    align-items:end;
  }

  .navigation p {
    margin: 0 0.25rem;
  }

  .navigation a {
    margin: 0 0.5rem;
    /* background-color: aqua; */
  }

  .info {
    /* background-color: yellowgreen; */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: center;
    gap: var(--gap);
  }
  .page {
    /* background-color: aquamarine;  */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }

  .card--image {
    padding: 0;
    min-height: 128px;
    width: 100%;
  }

  .card--image img {
    /* display: none; */
    display: block;
    min-height: 128px;
    width: 100%;
    border-radius: var(--border-radius);
  }

  .about-image {
    /* background-color: red; */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 1 1 30%;
    border-radius: var(--border-radius);
    padding-top: 4rem;
  }

  #aboutImg {
    width: 100%;
    /*  background-color: turquoise; */
  }
  .card--intro {
    grid-column : span 2;
    width: 100%;
  }

  .card--work {
    grid-column: span 1;
    height: 100%;
    align-items: start;
  }

  .card--about {
    grid-column: span 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
  }

  .about-text {
    width: 90%;
    padding-right: var(--gap);
  }

}
