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

/* Fonts */
@font-face {
    font-family: "Geist";
    src: url("https://cdn.jsdelivr.net/npm/@vercel/style-guide@6/fonts/GeistVF.woff") format("woff");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist Pixel Square";
    src: url("https://cdn.jsdelivr.net/npm/geist@1.7.0/dist/fonts/geist-pixel/GeistPixel-Square.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist Mono";
    src: url("https://cdn.jsdelivr.net/npm/geist@1.7.0/dist/fonts/geist-mono/GeistMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist Mono";
    src: url("https://cdn.jsdelivr.net/npm/geist@1.7.0/dist/fonts/geist-mono/GeistMono-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design System */
:root {
    /* Colors */
    --background: #faf8f5;
    --foreground: #2d2520;
    --border: #e8e3dc;
    --accent: #8b7355;
    --muted: #a89580;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 4rem;    /* 64px */
    
    /* Layout */
    --max-width: 28rem;   /* 448px - tighter, more focused */
    --gutter: var(--space-md);
}

html {
    font-size: 16px;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Grid Layout */
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    padding: 0 var(--gutter);
}

/* Header */
.header {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding-top: var(--space-xl);
    padding-bottom: 1.125rem;
}

.header-logo {
    width: 32px;
    height: 32px;
    display: block;
    margin-bottom: var(--space-sm);
    cursor: pointer;
}

.logo-cursor {
    transform-origin: center;
    opacity: 1;
}

.name {
    font-family: "Geist Pixel Square", monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--foreground);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.name::after {
    content: '|';
    display: inline-block;
    margin-left: 0.25rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Main Content */
main {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

/* Bio */
.bio {
    margin-bottom: var(--space-xl);
}

.bio p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--foreground);
    margin: 0;
}

.bio p + p {
    margin-top: var(--space-sm);
}

.bio a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.bio a:hover {
    border-bottom-color: var(--accent);
}

/* Skills Section */
.skills-section {
    margin-bottom: var(--space-xl);
}

.skills-title {
    font-family: "Geist Pixel Square", monospace;
    font-size: 1rem;
    font-weight: bold;
    color: var(--foreground);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.2;
}

/* Skills Tags */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: "Geist Mono", monospace;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--foreground);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 2rem;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.skill-tag.active {
    background-color: var(--foreground);
    color: var(--background);
    border-color: var(--foreground);
}

/* Footer */
.footer {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-lg);
}

.footer p {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.footer-logo {
    display: inline-block;
    color: var(--muted);
    flex-shrink: 0;
    cursor: pointer;
}

/* CTA Button */
.cta-button {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--foreground);
    color: var(--background);
    text-decoration: none;
    border-radius: 50%;
    margin-top: var(--space-md);
}

.cta-button.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 640px) {
    :root {
        --gutter: var(--space-md);
    }
    
    .header {
        padding-top: var(--space-lg);
    }
    
    .name {
        font-size: 1.25rem;
    }
    
    .bio p {
        font-size: 0.875rem;
    }
    
    .skills-title {
        font-size: 0.875rem;
    }
    
    .skill-tag {
        font-size: 0.8125rem;
        padding: 0.375rem 0.875rem;
    }
    
    .footer {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-lg);
    }
    
    /* Fixed button on mobile */
    .cta-button {
        position: fixed;
        bottom: var(--space-sm);
        right: var(--space-sm);
        margin-top: 0;
        z-index: 1000;
    }
}

@media (min-width: 641px) {
    :root {
        --gutter: var(--space-lg);
    }
    
    /* Static button under pills on desktop */
    .cta-button {
        margin-top: var(--space-lg);
    }
}

/* Blue Screen Easter Egg */
.bsod-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    padding: var(--space-md);
}

.bsod-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Blue screen wrapper with rounded corners */
.bsod-screen {
    background: #1e90ff;
    border-radius: 32px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* CRT Scanlines */
.bsod-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 1;
}

/* CRT Vignette */
.bsod-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.bsod-content {
    text-align: center;
    color: #ffffff;
    font-family: "Geist Pixel Square", monospace;
    padding: 2rem;
    width: 100%;
    height: 100%;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bsod-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    opacity: 0.9;
    padding: 16px;
    overflow: visible;
}

.bsod-icon svg {
    animation: crt-drift 2s ease-in-out infinite;
}

@keyframes crt-drift {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(0.5px, -0.3px);
    }
    50% {
        transform: translate(-0.3px, 0.5px);
    }
    75% {
        transform: translate(0.3px, 0.3px);
    }
}

.bsod-cursor {
    transform-origin: center;
    opacity: 0;
}

.bsod-cursor.animate {
    animation: bsod-cursor-land 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bsod-cursor-land {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    60% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bsod-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
    max-width: 600px;
}

.bsod-title::after {
    content: '|';
    display: inline-block;
    margin-left: 0.25rem;
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.bsod-subtext {
    font-family: "Geist Mono", monospace;
    font-size: 0.875rem;
    opacity: 0.7;
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
}

@media (max-width: 640px) {
    .bsod-icon svg {
        width: 64px;
        height: 64px;
    }
    
    .bsod-title {
        font-size: 1.25rem;
    }
    
    .bsod-subtext {
        font-size: 0.75rem;
    }
}


