@font-face {
    font-family: "Playfair";
    src: url("../fonts/Playfair-VariableFont_opsz,wdth,wght.ttf");
}

@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/PlayfairDisplay-Regular.ttf");
    font-weight: 400;
}

@font-face {
    font-family: "Playfair Display SC";
    src: url("../fonts/PlayfairDisplaySC-Regular.ttf");
    font-weight: 400;
}

@font-face {
    font-family: "Cutive Mono";
    src: url("../fonts/CutiveMono-Regular.ttf");
    font-weight: 400;
}

html {
    background: #1b1b1b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    background: linear-gradient(135deg, #ecbba1 0%, #e8ddd7 80%);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25vh;
    flex-basis: 100%;
    flex-grow: 1;
    isolation: isolate;
    position: relative;
}

.background-waves {
    position: absolute;
    z-index: -1;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.background-waves div {
    opacity: .6;
    position: absolute;
    left: min(-70vw, -85vh);
    top: min(-40vw, -40vh);
    background: radial-gradient(circle, #002231, #085a6a 40%, #00a8b1c9 56%, #ffffff 60%, #ffffff75 65%, #ffffff0f 75%);
    width: max(140vw, 140vh);
    height: max(140vw, 140vh);
    margin-left: -150px;
    margin-top: -150px;
    transform-origin: 50% 46%;
    border-radius: 43%;
}

.background-waves svg {
    position: absolute;
    right: 2vw;
    top: 50vh;
    width: 22vw;
}

.background-waves svg:nth-of-type(1) {
    filter: blur(2px);
    opacity: 0.8;
    right: 6vw;
    transform: scaleX(1.1) scaleY(1);
    animation: wobble-shadow 12s 3s ease-in-out infinite;
}

.background-waves svg:nth-of-type(2) {
    animation: wobble-bottom 12s 3s ease-in-out infinite;
}

.background-waves svg:nth-of-type(3) {
    scale: 0.9;
    rotate: 15deg;
    animation: wobble-top 12s 3s ease-in-out infinite;
}

@keyframes wobble-top {
  0% {
    transform: skew(0deg, 0deg) translateX(0px) scaleX(1) scaleY(1);
  }
  20% {
    transform: skew(-6deg, 6deg) translateX(5.5px) translateY(-3.5px) scaleX(0.95) scaleY(0.97);
  }
  40% {
    transform: skew(5deg, -5deg) translateX(-4.5px) translateY(2.5px) scaleX(1) scaleY(1);
  }
  60% {
    transform: skew(-4deg, 4deg) translateX(4.5px) translateY(-2.5px) scaleX(0.97) scaleY(0.99);
  }
  80% {
    transform: skew(3deg, -3deg) translateX(-2.5px) translateY(1.5px) scaleX(1) scaleY(1);
  }
  90% {
    transform: skew(0deg, 0deg) translateX(0px) translateY(0px) scaleX(1) scaleY(1);
  }
}

@keyframes wobble-bottom {
  0% {
    transform: skew(0deg, 0deg) translateX(0px) scaleX(1) scaleY(1);
  }
  20% {
    transform: skew(-4deg, 4deg) translateX(4.5px) translateY(-2.5px) scaleX(0.96) scaleY(0.98);
  }
  40% {
    transform: skew(3deg, -3deg) translateX(-3.5px) translateY(1.5px) scaleX(1) scaleY(1);
  }
  60% {
    transform: skew(-2deg, 2deg) translateX(3.5px) translateY(-1.5px) scaleX(0.98) scaleY(0.99);
  }
  80% {
    transform: skew(1deg, -1deg) translateX(-1.5px) translateY(0.5px) scaleX(1) scaleY(1);
  }
  90% {
    transform: skew(0deg, 0deg) translateX(0px) translateY(0px) scaleX(1) scaleY(1);
  }
}

@keyframes wobble-shadow {
  0% {
    transform: skew(0deg, 0deg) translateX(0px) scaleX(1.1) scaleY(1);
  }
  20% {
    transform: skew(-4deg, 4deg) translateX(5px) translateY(-3px) scaleX(1.06) scaleY(0.98);
  }
  40% {
    transform: skew(3deg, -3deg) translateX(-4px) translateY(2px) scaleX(1.1) scaleY(1);
  }
  60% {
    transform: skew(-2deg, 2deg) translateX(4px) translateY(-2px) scaleX(1.08) scaleY(0.99);
  }
  80% {
    transform: skew(1deg, -1deg) translateX(-2px) translateY(1px) scaleX(1.1) scaleY(1);
  }
  90% {
    transform: skew(0deg, 0deg) translateX(0px) translateY(0px) scaleX(1.1) scaleY(1);
  }
}

.background-waves .one {
    animation: drift 17000ms infinite linear;
}

.background-waves .two {
    animation: drift 19000ms 0.2s infinite linear;
}

.background-waves .three {
    animation: drift 18000ms 0.3s infinite linear;
}

.background-waves .four {
    animation: drift 20000ms 0.4s infinite linear;
}

.background-waves:after {
    content: '';
    display: block;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
    transform: translate3d(0, 0, 0);
}

@keyframes drift {
    from { transform: rotate(0deg); }
    from { transform: rotate(360deg); }
}

header {
    display: flex;
    padding: 10px 7%;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    margin: 0 10%;
    flex-grow: 1;
}

footer {
    display: flex;
    padding: 30px 7%;
    background: #1b1b1b;
}

footer div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

footer div:nth-child(2) {
    align-items: flex-end;
}

footer p {
    font-family: 'Cutive Mono';
    font-weight: 400;
    font-size: 0.8em;
    color: white;
    margin: 0.6em 0;
}

footer a {
    color: white;
    text-underline-offset: 0.3em;
}

.copy {
    font-size: 1.2em;
}

h1 {
    font-family: "Playfair Display SC";
    font-weight: 400;
    font-size: 1em;
    letter-spacing: 0.06em;
}

main p, main .social h3 {
    font-family: 'Playfair';
    font-weight: 300;
    font-size: 1.6em;
    margin: 1em 0;
    animation: fadeIn 3s 0.5s both;
}

header h1 a {
    color: #1b1b1b;
    text-decoration: none;
}

h2 {
    font-family: "Playfair Display";
    font-weight: 400;
    font-size: 3.6em;
    color: #1b1b1b;
    animation: fadeIn 3s;
}

main .social {
    display: inline-flex;
    align-items: center;
    margin-bottom: 45px;
    text-indent: 0.2em;
}

main .social ul {
    display: inline-flex;
    gap: 30px;
    list-style: none;
}

main .social li {
    display: inline-flex;
}

main .social a {
    display: inline-flex;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

main .social a:hover,
main .social a:focus {
    transform: scale(1.1);
}

main .social svg {
    width: 60px;
    border-radius: 50%;
    fill: #1b1b1b;
    fill-rule: evenodd;
    clip-rule: evenodd;
    animation: popInBounce 0.6s 1s both;
}

main .social ul li:nth-of-type(2) svg {
    animation-delay: 1.5s;
}

main .social ul li:nth-of-type(3) svg {
    animation-delay: 2s;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes popInBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@media screen and (max-width: 1024px) {
    h2 {
        font-size: 3em;
    }

}

@media screen and (max-width: 768px) {
    h2 {
        font-size: 2.6em;
    }

    main .social {
        flex-direction: column;
        align-items: flex-start;
    }

    main .social ul {
        padding: 0;
    }

}

@media screen and (max-width: 640px) {
    h2 {
        font-size: 2em;
    }

}

@media screen and (max-width: 480px) {
    footer {
        flex-direction: column;
    }

    footer div:nth-child(2) {
        align-items: flex-start;
    }

}

@media screen and (max-width: 320px) {
    footer {
        flex-direction: column;
    }

    footer div:nth-child(2) {
        align-items: flex-start;
    }

}
