
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    cursor: none; 
}


@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
}


.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}


section {
    padding-block: var(--space-4xl);
}

@media (min-width: 768px) {
    section {
        padding-block: var(--space-5xl);
    }
}




h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
}

h1 {
    font-size: var(--text-hero);
    line-height: var(--leading-none);
    font-weight: var(--weight-extrabold);
}

h2 {
    font-size: var(--text-5xl);
    line-height: var(--leading-tight);
}

h3 {
    font-size: var(--text-3xl);
    line-height: var(--leading-snug);
}

h4 {
    font-size: var(--text-2xl);
    line-height: var(--leading-snug);
}

h5 {
    font-size: var(--text-xl);
    line-height: var(--leading-normal);
}

h6 {
    font-size: var(--text-lg);
    line-height: var(--leading-normal);
}


p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

p + p {
    margin-top: var(--space-md);
}


.lead {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
}


.small {
    font-size: var(--text-sm);
}


a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--color-primary);
}


strong, b {
    font-weight: var(--weight-semibold);
}


em, i {
    font-style: italic;
}


ul, ol {
    list-style: none;
}


.section-header {
    margin-bottom: var(--space-3xl);
}

.section-header--center {
    text-align: center;
}

.section-title {
    font-size: var(--text-5xl);
    font-weight: var(--weight-extrabold);
    line-height: var(--leading-none);
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
}


.section-title span:nth-child(1) { color: var(--color-cream); }
.section-title span:nth-child(2) { color: var(--color-primary); }


.projects .section-title span:nth-child(1) { color: var(--color-sage); }
.projects .section-title span:nth-child(2) { color: var(--color-cream); }


.about .section-title span:nth-child(1) { color: var(--color-lilac); }
.about .section-title span:nth-child(2) { color: var(--color-cream); }


.contact .section-title span:nth-child(1) { color: var(--color-cream); }
.contact .section-title span:nth-child(2) { color: var(--color-coral); }

.section-title--large {
    font-size: var(--text-6xl);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
}

.section-header--center .section-subtitle {
    margin-inline: auto;
}




.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--color-primary); }


.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }


.font-light { font-weight: var(--weight-light); }
.font-regular { font-weight: var(--weight-regular); }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }


.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }



.footer__retro-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 12px;
    background: var(--color-cream);
    border: 2px solid var(--color-dark);
    border-radius: 0;
    box-shadow: 
        2px 2px 0 0 var(--color-dark),
        inset -1px -1px 0 0 rgba(0, 0, 0, 0.3),
        inset 1px 1px 0 0 rgba(255, 255, 255, 0.8);
    color: var(--color-dark);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    position: relative;
    margin-top: var(--space-xs);
}

.footer__retro-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 0, 0, 0.03) 1px,
        rgba(0, 0, 0, 0.03) 2px
    );
    pointer-events: none;
}

.footer__retro-btn:hover {
    background: var(--color-dark);
    color: var(--color-cream);
    box-shadow: 
        2px 2px 0 0 var(--color-primary),
        inset 1px 1px 0 0 rgba(255, 255, 255, 0.2),
        inset -1px -1px 0 0 rgba(0, 0, 0, 0.5);
    transform: translate(-1px, -1px);
}

.footer__retro-btn:active {
    box-shadow: 
        1px 1px 0 0 var(--color-dark),
        inset 2px 2px 0 0 rgba(0, 0, 0, 0.3);
    transform: translate(1px, 1px);
}

.footer__retro-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__retro-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
}

.footer__retro-text {
    line-height: 1;
    position: relative;
    z-index: 1;
}
