/* DESIGN SYSTEM: High-Contrast / Modern / Accessible */

:root {
    /* Colors */
    --bg-primary: #0B0F14;
    --bg-secondary: #121821;
    --border-color: #1F2933;
    --text-primary: #E6EDF3;
    --text-secondary: #9FB0C0;
    --accent: #4DA3FF;
    --accent-hover: #7ebfff;
    
    /* Layout */
    --container-width: 900px;
    --section-padding: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid var(--border-color);
}

.bg-alt {
    background-color: var(--bg-secondary);
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
}

h2.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 48px;
    text-transform: uppercase;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    max-width: 65ch;
}

/* Navigation */
nav {
    padding: 24px 0;
    position: sticky;
    top: 0;
    background: rgba(11, 15, 20, 0.9);
    backdrop-filter: blur(10px);
    z-index: 50;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent);
    outline: none;
}

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: center;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.location-hint {
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-summary {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.headshot {
    width: 100%;
    height: auto;
    border-radius: 4px;
    filter: grayscale(20%);
    border: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-right: 12px;
    margin-bottom: 12px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* Projects & Entries */
.entry, .project-card {
    margin-bottom: 48px;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.entry-date {
    color: var(--accent);
    font-weight: 500;
}

.entry-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.tech-stack {
    color: var(--accent);
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

ul {
    padding-left: 20px;
    margin-top: 12px;
}

li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Contact */
.contact-section {
    text-align: center;
}

.contact-wrapper p {
    font-size: 1.5rem;
    margin: 0 auto 32px;
    color: var(--text-primary);
}

footer {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    font-size: 0.8rem;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .nav-links {
        display: none; /* Mobile simplicity */
    }
    
    .entry-header {
        flex-direction: column;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .btn:hover {
        transform: none;
    }
}