*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html {
    line-height: 1;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

main, canvas {
    height: 100%;
    width: 100%;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: inherit;
    font-size: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ol, ul {
    list-style: none;
}

:root {
    --pad: max(20px, 4vmin);
    --fs-text: 12px;
    --c-bg: hsl(0, 0%, 90%);
    --c-text: hsl(0, 0%, 10%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --c-bg: hsl(0, 0%, 5%);
        --c-text: hsl(0, 0%, 95%);
    }
}

@media (min-width: 800px) {
    :root {
        --fs-text: 13px;
    }
}

@font-face {
    font-family: "Chakra Petch";
    font-weight: 600;
    src: url("/assets/fonts/ChakraPetch-SemiBold.woff2") format("woff2");
}

html, body {
    height: 100%;
}

body {
    background-color: var(--c-bg);
    font-size: var(--fs-text);
    font-family: "Chakra Petch";
    font-weight: 600;
    font-feature-settings: "palt";
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
}

#Page {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--c-bg);
    color: #fff;
    white-space: nowrap;
    transition: background-color .9s cubic-bezier(0.1, 0.4, 0.2, 1);
}

#Background {
    position: fixed;
    z-index: 1;
    left: var(--pad);
    right: var(--pad);
    top: var(--pad);
    bottom: var(--pad);
    pointer-events: none;
}

.frame {
    position: fixed;
    z-index: 10;
    left: var(--pad);
    right: var(--pad);
    top: var(--pad);
    bottom: var(--pad);
    mix-blend-mode: color-dodge;
    pointer-events: none;
}

.frameLine {
    position: absolute;
    background-color: #fff;
    opacity: .5;
}

.frameLine-left, .frameLine-right {
    width: 1px;
    height: 100%;
}

.frameLine-top, .frameLine-bottom {
    width: 100%;
    height: 1px;
}

.frameLine-left { left: 0; }
.frameLine-right { right: 0; }
.frameLine-top { top: 0; }
.frameLine-bottom { bottom: 0; }

.theme {
    position: fixed;
    z-index: 10;
    left: calc(var(--pad) - .15em);
    bottom: var(--pad);
    transform-origin: left bottom;
    transform: rotate(-90deg);
    white-space: nowrap;
    mix-blend-mode: difference;
    display: flex;
    column-gap: 15px;
    cursor: pointer;
}

.themeColors {
    display: flex;
    column-gap: 15px;
}

.themeButton {
    display: flex;
    column-gap: 3px;
    font-weight: 400;
    text-transform: uppercase;
}

.themeButton ._box::before {
    content: "□"
}

.themeButton.is-selected ._box::before {
    content: "■"
}

.siteHeader {
    position: fixed;
    z-index: 10;
    left: calc(var(--pad) * 2);
    top: calc(var(--pad) * 2);
    mix-blend-mode: difference;
}

.title {
    margin: -0.1em 0 0 -0.04em;
    font-weight: 200;
    font-size: 30px;
    pointer-events: none;
    color: hsl(324, 100%, 60%);
    text-shadow: 
        0 0 3px rgba(255, 20, 147, 0.5),
        0 0 5px rgba(255, 20, 147, 0.3);
}

.underTitle {
    margin-top: 5px;
    font-weight: 400;
    pointer-events: none;
}

@media (min-width: 1280px) {
    .title { font-size: 60px; }
    .underTitle { font-size: 30px; }
}

.nav {
    margin-top: 50px;
    font-size: 13px;
}

.nav ol {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.nav ol li {
    position: relative;
    height: 24px;
}

.pageCurrent,
.pageOption {
    position: absolute;
    left: 0;
    top: 0;
}

.pageCurrent {
    font-size: 18px;
    pointer-events: none;
    color: hsl(324, 100%, 60%);
    text-shadow: 
        0 0 3px rgba(255, 20, 147, 0.5),
        0 0 5px rgba(255, 20, 147, 0.3);
    transition: opacity 0.4s cubic-bezier(0.1, 0.4, 0.2, 1);
    opacity: 0;
}

.pageOption {
    font-size: 15px;
    color: inherit;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.1, 0.4, 0.2, 1);
}

.nav ol li.selected .pageCurrent {
    opacity: 1;
}

.nav ol li.selected .pageOption {
    display: none;
}

.nav ol li:not(.selected) .pageCurrent {
    opacity: 0;
}

.nav ol li:not(.selected) .pageOption {
    opacity: 1;
}

@media (hover: hover) {
    .nav ol li:hover .pageOption {
        opacity: 0.25;
    }
}

.content {
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    mix-blend-mode: difference;
}

.contentInner {
    position: relative;
    min-height: 100%;
}

.linkButton {
    transition: all 0.4s cubic-bezier(0.1, 0.4, 0.2, 1);
}

.linkButton:hover {
    color: hsl(324, 100%, 60%);
    text-shadow: 
        0 0 3px rgba(255, 20, 147, 0.5),
        0 0 5px rgba(255, 20, 147, 0.3);
}

.home {
    position: absolute;
    bottom: calc(var(--pad) * 2);
    right: calc(var(--pad) * 2);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
}

.quote-container {
    position: relative;
}

@keyframes slide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}

.quote {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.word {
    display: inline-block;
    font-size: 2em;
    color: hsl(324, 100%, 60%);
    text-shadow: 0 0 3px rgba(255, 20, 147, 0.5), 0 0 5px rgba(255, 20, 147, 0.3);
    position: relative;
    animation-duration: 5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.word.align-left {
    text-align: left;
    animation-name: slide-right;
}

.word.align-right {
    text-align: right;
    animation-name: slide-left;
}

.word.align-center {
    text-align: center;
    animation-name: slide-center-smooth;
}

@keyframes slide-center-smooth {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

@keyframes slide-right {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slide-left {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
    }
    100% {
        transform: translateX(0);
    }
}

.projects {
    padding: calc(var(--pad) * 2 + 96px) calc(var(--pad) * 2);
    text-align: right;
    white-space: nowrap;
}

@media (min-width: 1280px) {
    .projects {
        padding: calc(var(--pad) * 2 + 115px) calc(var(--pad) * 2);
    }
}

.projectList {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    row-gap: 30px;
}

@media (min-width: 1280px) {
    .projectItem {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-start;
        align-items: baseline;
        column-gap: 15px;
    }
}

.projectTitle {
    font-weight: 200;
    font-size: 7vw;
    text-align: right;
}

@media (min-width: 800px) {
    .projectTitle {
        font-size: 60px;
    }
}

.projectTag {
    margin-top: 5px;
}

.contact {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--pad) * 2);
}

.contactMessage {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: calc(var(--pad) * 1);
}

.contactLink {
    text-decoration: underline;
    transition: color 0.3s ease;
}