:root {
    font-family: Space Grotesk, system-ui, Helvetica, Arial, sans-serif;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.01rem;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --text: #ffffff;
    --bg: #000000;
    color: var(--text);
    background: var(--bg);
    --selection-bg: #444444;
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

*::-webkit-scrollbar {
    display: none;
}

::selection {
    background: var(--selection-bg);
}

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overscroll-behavior: none;
    overflow: hidden;
}

body {
    font-family: Space Grotesk, system-ui, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    height: 100vh;
    height: 100dvh;
    width: 100%;
    position: relative;

    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

a:focus-visible {
    outline: 1px var(--text) solid;
    outline-offset: 6px;
    border-radius: 1px;
}

/* SVG Background */
.background {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    height: 100vh;
    height: 100dvh;
    width: 45%;
    overflow: visible;
    pointer-events: none;
}

.background > path {
    stroke: #ffffff4d;
    stroke-width: 2;
    fill: none;
}

@media screen and (max-width: 950px) {
    .background {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        overflow: visible;
        left: 0;
        right: 0;
    }
    
    .background > path {
        stroke: #fff3;
        stroke-width: 2;
        fill: none;
    }
    
    .navbar {
        padding: 15px 20px;
    }
    
    .navbar-content {
        padding: 0;
    }
    
    .main-content {
        padding: 15px 20px;
    }
    
    .footer-full {
        padding: 15px 20px;
    }
    
    .text {
        font-size: 14px !important;
    }
    
    .project-links {
        font-size: 14px !important;
    }
    
    .other-links {
        font-size: 14px !important;
    }
}

/* Navbar */
.navbar {
    position: relative;
    width: 100%;
    z-index: 1000;
    padding: 20px;
    flex-shrink: 0;
}

.navbar-content {
    max-width: calc(1200px - 40px);
    margin: 0 auto;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    width: 35px;
    height: auto;
    display: block;
}

/* Main Content - Centered Vertically */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 20px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.content-center {
    max-width: calc(1200px - 40px);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.text {
    max-width: 516px;
    font-size: clamp(14px, 2.5vw, 20px);
    margin-bottom: clamp(20px, 3vw, 40px);
}

.text p {
    line-height: 130%;
    margin: 0;
    margin-bottom: 0;
}

.text p:not(:last-child) {
    margin-bottom: clamp(0.5em, 2vw, 1em);
}

.text p:last-child {
    margin-block-end: 0;
}

.project-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 24px);
    font-size: clamp(12px, 2vw, 16px);
    margin-top: 0;
    margin-bottom: 0;
}

.project-links > a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

p {
    line-height: 130%;
}

a {
    line-height: 100%;
}

a:active {
    outline: 2px var(--text) dotted;
    outline-offset: 5px;
    text-decoration: none;
}

@media (hover: hover) {
    a:hover {
        outline: 2px var(--text) dotted;
        outline-offset: 5px;
        text-decoration: none;
    }
}

/* Footer - Full Width */
.footer-full {
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.other-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 24px);
    font-size: clamp(12px, 2vw, 16px);
    max-width: calc(1200px - 40px);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

@media screen and (max-width: 550px) {
    .project-links,
    .other-links {
        gap: 12px;
    }
    
    .navbar {
        padding: 12px 15px;
    }
    
    .navbar-content {
        padding: 0;
    }
    
    .main-content {
        padding: 12px 15px;
    }
    
    .content-center {
        padding: 0;
    }
    
    .footer-full {
        padding: 12px 15px;
    }
    
    .other-links {
        padding: 0;
    }
    
    .text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .project-links {
        font-size: 14px;
    }
    
    .other-links {
        font-size: 14px;
    }
}
