@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --text-light: #888888;
    --line-color: #eeeeee;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-logo: 'Inter', sans-serif;
    /* Univers alternative */
    /* Occasional use for contrast */

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --spacing-xxl: 16rem;
    /* John Pawson style extreme spacing */

    --container-width: 1440px;
    --header-height: 100px;
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
        --spacing-xxl: 8rem;
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
}

p {
    margin-bottom: var(--spacing-md);
    max-width: 60ch;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    white-space: pre-wrap;
    /* Preserves newlines from the text files */
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

/* Navigation */
header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    padding: 0 var(--spacing-md);
}

.logo {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-color);
}

nav a.active {
    border-bottom: 1px solid var(--text-color);
}

/* Utilities */
.mt-xl {
    margin-top: var(--spacing-xl);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.py-xxl {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

.text-center {
    text-align: center;
}

.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Cursor */
/* Custom Cursor */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
        /* Hide default cursor only on non-touch */
    }

    a,
    button,
    input,
    textarea,
    .masonry-item img {
        cursor: none;
        /* Ensure it stays hidden on interactive elements */
    }

    #custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background-color: var(--text-color);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border 0.3s ease, opacity 0.2s;
        mix-blend-mode: difference;
        opacity: 0.5;
        /* Default faded state */
        display: block;
    }

    #custom-cursor.moving {
        opacity: 1;
        /* Darker/Fully visible when moving */
        background-color: #ffffff;
        /* White source = Black result on white bg (Darker) */
    }

    #custom-cursor.hover {
        width: 40px;
        height: 40px;
        background-color: transparent;
        border: 1px solid var(--text-color);
        opacity: 1;
        /* Always visible when hovering */
    }
}

/* Mobile Navigation Adjustments */
@media (max-width: 768px) {
    nav ul {
        gap: var(--spacing-sm);
    }

    nav a {
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* Ensure lightbox cursor interactions work */
.lightbox {
    cursor: none;
}

/* Image Wrappers */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aspect-ratio-square {
    aspect-ratio: 1 / 1;
}

.aspect-ratio-landscape {
    aspect-ratio: 16 / 9;
}