@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@700&display=swap');

:root {
    --bg: #000000;
    --fg: #ffffff;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    color: var(--fg);
    font-family: 'Syncopate', sans-serif;
    overflow: hidden;
    cursor: none;
    transition: background-color 0.1s, color 0.1s;
}

body.inverted {
    --bg: #ffffff;
    --fg: #000000;
}

.wrapper {
    padding: 40px;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--fg);
    padding-bottom: 20px;
}

.logo {
    font-size: 2rem;
    letter-spacing: -2px;
}

nav a {
    color: var(--fg);
    text-decoration: none;
    margin-left: 40px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 8rem;
    line-height: 0.9;
    margin: 0;
    text-transform: uppercase;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

h1:hover {
    transform: skewX(-10deg) scale(1.05);
    text-shadow: 10px 10px 0px rgba(128, 128, 128, 0.5);
}

.cursor-dot {
    width: 20px;
    height: 20px;
    background-color: var(--fg);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s;
}

.cursor-dot.active {
    width: 60px;
    height: 60px;
}

.block-reveal {
    position: fixed;
    top: 0;
    left: 50%;
    width: 0;
    height: 100vh;
    background: var(--fg);
    mix-blend-mode: difference;
    pointer-events: none;
    transition: width 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateX(-50%);
    z-index: 100;
}

body.interacting .block-reveal {
    width: 100vw;
}
