/* 
  Thorne Software - Minimal Dark Theme
  Typography: DM Sans (headings) + Newsreader (body accents)
  Colors: Deep charcoal with warm cream accents
*/

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0C0C0C;
    --bg-elevated: #161616;
    --bg-subtle: #1C1C1C;
    --text: #FAFAF9;
    --text-secondary: #A3A3A3;
    --text-muted: #737373;
    --accent: #E7E5E4;
    --accent-warm: #D6D3D1;
    --border: #262626;
    --border-subtle: #1F1F1F;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(12, 12, 12, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--text);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: -0.02em;
}

.logo-text {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 6rem;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.hero-desc {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 3rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    padding: 1rem 1.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* Section Label */
.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Work / Projects */
.work {
    padding: 8rem 2rem;
    border-top: 1px solid var(--border-subtle);
}

.work-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-subtle);
}

.work-item {
    background: var(--bg);
    padding: 2.5rem;
    transition: background 0.3s ease;
}

.work-item:hover {
    background: var(--bg-elevated);
}

.work-item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.work-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.work-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.work-link:hover {
    color: var(--text);
}

.work-item-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-placeholder {
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    color: var(--text-muted);
    margin: 0;
}

/* About */
.about {
    padding: 8rem 2rem;
    background: var(--bg-subtle);
}

.about-inner {
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-lead {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.about-content p {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-content a {
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.about-content a:hover {
    border-color: var(--text);
}

/* Contact */
.contact {
    padding: 8rem 2rem;
    border-top: 1px solid var(--border-subtle);
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-family: 'Newsreader', Georgia, serif;
}

.contact-email {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.25rem;
    transition: border-color 0.2s ease;
    display: inline-block;
}

.contact-email:hover {
    border-color: var(--text);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 0.5rem;
}

.contact-block h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.contact-block p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-block a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.contact-block a:hover {
    color: var(--text);
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .work-item-empty {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        color: var(--text);
    }
    
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 101;
    }
    
    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    .hero {
        padding: 7rem 1.5rem 4rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }
    
    .work, .about, .contact {
        padding: 5rem 1.5rem;
    }
    
    .work-item {
        padding: 2rem 1.5rem;
    }
    
    .contact-email {
        font-size: 1.25rem;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-label,
    .hero-title,
    .hero-desc,
    .hero-cta {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeUp 0.8s ease forwards;
    }
    
    .hero-label { animation-delay: 0.1s; }
    .hero-title { animation-delay: 0.2s; }
    .hero-desc { animation-delay: 0.3s; }
    .hero-cta { animation-delay: 0.4s; }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
