
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-sans-v4-latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/instrument-sans-v4-latin_latin-ext-500.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/instrument-sans-v4-latin_latin-ext-600.woff2") format("woff2");
}

body{
    border:0;
    padding: 0;
    margin: 0;
    background: #000;
    color: #fff;
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
    "wdth" 100;
    text-rendering: geometricPrecision;
}

::selection {
  color: black;
  background-color: #AAA9E8;
}


@media screen and (max-width:800px) {
   body{
    font-size: 18px;
   } 
   
}




.content{
    height: 100vh;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: stretch;
    gap: 0px;
}
.main{
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 140px;
    flex: 1 0 0;
    align-self: stretch;
}

.navigation{
    box-sizing: border-box;
    font-size: 0.9em;
    width: 100%;
    letter-spacing: -0.01em;
    padding: 1em 1.3em;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0px;
    z-index: 2;
    }

    .face{
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        background-image: url("img/face.png");
        background-size: cover;
        border-radius: 0.75em;
        margin-right: 0.2em;
    }
    .pin{
        display: inline-block;
        width: 1.2em;
        height: 1.2em;
        background-image: url("img/pin.svg");
        background-size: contain;
        background-repeat: no-repeat;
    }
    .nav-item{
        display: flex;
        flex-direction: row;
        gap: 0.3rem;
        align-items: center;
    }
.text-wrapper{
    text-align: center;

}
h1{
        margin-block: 0;
        font-size: 4em;
        font-weight: 500;
        letter-spacing: -0.02em;
        line-height: 1.1em;
        width: 100%;
        max-width: 20em;
        text-align: center;
}
.email-button-wrapper{
    position: relative;
    min-height: 4em;
    display: flex;
    align-items: center;
}
.email-button{
    display:inline-block;
    margin: 0;
    padding: 0.5em 0.6em;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.5em;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -0.3px;
    color: inherit;
    appearance: none;
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid rgba(209, 213, 219, 0.3);
    z-index: 1;
    transition: padding 0.3s ease-out;
}
.email-button:hover{
    padding: 0.7em 0.7em;
}
.email-button:focus-visible{
    outline: 2px solid #AAA9E8;
    outline-offset: 4px;
}
.cursor{
    box-sizing: border-box;
    background-color: #AAA9E8;
    color: black;
    border-radius: 1em;
    font-size: 0.8em;
    letter-spacing: -0.05em;
    padding: 0.2em 0.6em;
    z-index: 2;
    position: fixed;
    min-height: 1.2em;
    min-width: 1.2em;
    top: -2em;
    left: -2em;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: background-color 0.5s ease;
}
.cursor.active{
    background-color: aqua;
    transform: translate(0, -50%);
}
.cursor.clicked{
    background-color: #ccc;
    transform: translate(0, -50%);
}
.visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.canvas-container{
    position:absolute;
    display:flex;
    align-items: center;
    max-width:100vw;
    max-height:100vh;
    z-index: -1;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
canvas{
    padding: 0;
    margin: auto;
    display: block;
}


@media screen and (min-width:1800px) {
   body{
    font-size: 1.2vw;
   } 
   .navigation{
    font-size: 0.7em;
   }
}

@media (hover: hover) and (pointer: fine) {
  body,
  .email-button{
    cursor: none;
  }
}

@media screen and (max-width:1100px), (hover: none), (pointer: coarse) {
  .cursor{
    display:none;
  }
  body,
  .email-button{
    cursor: auto;
  }
}

@media screen and (max-width:600px) {
  h1{
    font-size: 2.5em;
   }
   .email-button{
    font-size: 1.2em;
   }
}

@media (prefers-reduced-motion: reduce) {
  .email-button{
    transition: none;
  }
}