/* 
   Gabriel Brănescu — Personal Site
   Minimal, text-forward, warm
*/

:root {
    --text: #1a1a1a;
    --text-secondary: #4a4a4a;
    --background: #faf9f7;
    --link: #1a1a1a;
    --link-hover: #6b5c4d;
    --border: #e0ddd8;
    --portrait-shadow: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #e8e6e3;
        --text-secondary: #a8a5a0;
        --background: #1a1917;
        --link: #e8e6e3;
        --link-hover: #c9b99a;
        --border: #2e2c29;
        --portrait-shadow: rgba(0, 0, 0, 0.3);
    }
}

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

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Charter', 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

/* Intro */
.intro {
    margin-bottom: 4rem;
}

.portrait-container {
    margin-bottom: 2rem;
}

.portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(20%);
    box-shadow: 0 2px 20px var(--portrait-shadow);
}

.hello p {
    margin-bottom: 0.75rem;
}

.hello p:first-child {
    font-size: 1.25rem;
    font-weight: 600;
}

.hello p:last-child {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Sections */
.work {
    margin-bottom: 3rem;
}

.work h2 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.work ul {
    list-style: none;
}

.work li {
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.work li .description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.work a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

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

footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

footer a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.15s ease;
}

footer a:hover {
    border-color: var(--link-hover);
}

/* Responsive */
@media (max-width: 480px) {
    html {
        font-size: 16px;
    }
    
    main {
        padding: 3rem 1.25rem 4rem;
    }
    
    .portrait {
        width: 100px;
        height: 100px;
    }
}
