@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Cormorant+SC:wght@300;400;500;600;700&display=swap");

@font-face {
    font-family: Copperplate;
    src: url(assets/copperplate.otf);
}

:root {
    --bg: black;
    --txt: white;
    --actlight: #fefae0;
    --actdark: #283618;
}

html {
    font-family: Cormorant Garamond;
}

body {
    margin: 0;
    background-color: var(--bg);
}

p {
    font-family: Cormorant Garamond;
    font-feature-settings:
        "liga" 1,
        "clig" 1,
        "hlig" 1,
        "dlig" 1;
    -moz-font-feature-settings:
        "liga" 1,
        "clig" 1,
        "hlig" 1,
        "dlig" 1;
    -webkit-font-feature-settings:
        "liga" 1,
        "clig" 1,
        "hlig" 1,
        "dlig" 1;
    text-indent: 2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    text-align: justify;
}

h1 {
    font-family: Copperplate;
    font-weight: 500;
    margin-bottom: -0.5em;
    color: var(--actlight);
}

h2 {
    font-family: Cormorant SC;
    font-weight: 500;
    border-bottom: 1px solid var(--actlight);
    margin-bottom: 1em;
    margin-top: 3em;
    color: var(--actlight);
}

h3 {
    font-family: Cormorant SC;
    font-weight: 300;
    font-style: italic;
    color: var(--txt);
}

h3 {
    font-family: Cormorant Garamond;
    font-feature-settings:
        "liga" 1,
        "clig" 1,
        "hlig" 1,
        "dlig" 1;
    -moz-font-feature-settings:
        "liga" 1,
        "clig" 1,
        "hlig" 1,
        "dlig" 1;
    -webkit-font-feature-settings:
        "liga" 1,
        "clig" 1,
        "hlig" 1,
        "dlig" 1;
    font-weight: 500;
    margin-top: 2em;
    margin-bottom: -0.5em;
}

header {
    max-width: 70em;
    height: 10em;
    margin: 0;
    margin-top: 3em;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    color: var(--txt);
    z-index: 3;
}

header a {
    text-decoration: none;
    color: var(--txt);
    margin: 0;
}
header p {
    text-indent: 0;
}

.lang-switcher {
    font-family: Cormorant Garmond;
    color: var(--txt);
    display: flex;
    gap: 0.3rem;
    align-items: center;
    font-size: 0.9rem;
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: Cormorant Garmond;
    color: var(--txt);
    font-style: italic;
    opacity: 0.5;
    transition: 0.5s;
}

.lang-switcher button:active {
    opacity: 1;
}

.lang-switcher button:hover {
    opacity: 1;
}
.main {
    max-width: 50em;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 1em;
    margin-top: -3em;
    color: var(--txt);
    z-index: 3;
}

.main > div {
    width: 100%;
    margin-bottom: 7.5em;
}

a {
    color: var(--txt);
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    font-family: Cormorant Garamond;
    position: relative;
    padding-left: 25px;
    margin-top: 20px;
}

li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--txt);
    font-family: Cormorant Garamond;
}

.proj::before {
    content: "☞";
    position: absolute;
    left: 0;
    color: var(--txt);
    font-family: Cormorant Garamond;
}

.ornament {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 15em;
    margin-top: 5em;
    margin-bottom: 5em;
    z-index: 3;
}

/* Blob Animation*/

#blob {
    background-color: white;
    height: 34vmax;
    aspect-ratio: 1;
    position: fixed;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    border-radius: 50%;
    background: linear-gradient(to right, rgb(223, 114, 31), rgb(183, 42, 3));
    animation: rotate 20s infinite;
    opacity: 0.8;
}

#blur {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    backdrop-filter: blur(12vmax);
}

/* PROJECT SPECIFIC */

header.proj-hder {
    max-width: 50em;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 1em;
}

header.proj-hder h1 {
    font-family: Cormorant SC;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    font-weight: 400;
    font-size: 23px;
    text-align: center;
    color: var(--txt);
}

#blob-proj {
    background-color: white;
    height: 34vmax;
    aspect-ratio: 1;
    position: fixed;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    border-radius: 50%;
    background: linear-gradient(to right, #5946b9, #081b77);
    animation: rotate 20s infinite;
    opacity: 0.8;
}

.return {
    font-style: italic;
    margin-top: 0.5em;
    color: var(--txt);
    text-decoration: none;
    transition-duration: 0.3s;
}

.return:hover {
    color: #5946b9;
}

img {
    max-width: 40em;
    width: 90%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-top: -3em;
    padding-bottom: 3em;
}

/* BUTTONS */

.btn {
    all: unset;
    cursor: pointer;
    display: inline-block;
    padding-top: 0.6em;
    padding-bottom: 0.6em;
    padding-left: 2em;
    padding-right: 2em;
    margin-right: 1em;
    margin-top: 0.1em;
    margin-bottom: 0.1em;
    transition: 0.7s;
    border-width: 2px;
    border-style: solid;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.primary {
    background-color: var(--actlight);
    border-color: var(--actlight);
    color: var(--bg);
}

.primary:hover {
    background-color: rgba(255, 255, 255, 0);
    color: var(--actlight);
}

/* ANIMATIONS */

.hidden {
    opacity: 1;
    transform: none;
}

.js-enabled.hidden {
    opacity: 0;
    transition: 2.5s;
    transform: translateY(25%);
}
.js-enabled.show {
    opacity: 1;
    transition: 2.5s;
    transform: translateY(0%);
}

@keyframes rotate {
    from {
        rotate: 0deg;
    }

    50% {
        scale: 1 1.5;
    }

    to {
        rotate: 360deg;
    }
}

@keyframes appear {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(0vw);
    }
}

/* PROGRESS BAR */

.pg-container {
    width: 100%;
    height: 2em;
    padding: 4px;
    border: 2px solid white;
    position: relative;
    display: block;
    margin-top: 1em;
}

.pg-filler {
    width: calc(var(--pg, 0) * 1%);
    min-width: 0%;
    height: 100%;
    background-color: white;
}
