/* Minimal professional near-black theme */

:root {
    --bg: #11110f;
    --surface: #191916;
    --border: #2b2b27;
    --text: #ddd9d0;
    --text-muted: #918d86;
    --accent: #f0ece2;
    --accent-hover: #fffaf0;
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", Times, serif;
    --font-mono: "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

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

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

/* Main content */
main {
    flex: 1;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
    padding: 1.75rem 2rem 4rem;
}

/* Home hero */
.hero {
    padding: 1.25rem 0 3rem;
}

.hero-name {
    font-family: var(--font-mono);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.35rem;
    letter-spacing: 0;
}

.hero-identity {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 2.1rem;
}

.hero-avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hero-meta span {
    font-size: 1.03rem;
    color: var(--text-muted);
    line-height: 1.45;
    font-weight: 500;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: 1.28rem;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.4;
}

.hero-bio {
    color: var(--text);
    max-width: 620px;
}

.hero-bio p {
    margin-bottom: 1.35rem;
    line-height: 1.75;
    font-size: 1.08rem;
}

.find-me {
    margin-top: 1.65rem;
    color: var(--text);
}

.find-me a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-color: #5b5952;
    transition: text-decoration-color 0.15s, color 0.15s;
}

.find-me a:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

/* Page header */
.page-header {
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
}

/* Sections / Cards */
.section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
}

/* Experience items */
.experience-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.experience-item:first-child {
    padding-top: 0;
}

.experience-header {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.experience-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.experience-company {
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--accent);
}

.experience-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.experience-role {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.experience-separator {
    color: var(--text-muted);
}

.experience-points {
    list-style: none;
    padding-left: 0;
}

.experience-points li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.48rem;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.65;
}

.experience-points li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.experience-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tech-tag {
    font-size: 0.78rem;
    color: var(--text);
    background: var(--surface);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    border: 1px solid var(--border);
}

.experience-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-color: #5b5952;
    transition: text-decoration-color 0.15s, color 0.15s;
}

.experience-link:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

.experience-note {
    font-size: 0.96rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-top: 0.5rem;
    max-width: 620px;
}

/* Project items */
.project-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.project-item:first-child {
    padding-top: 0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-color: #5b5952;
    font-family: var(--font-mono);
    transition: color 0.15s, text-decoration-color 0.15s;
}

.project-links a:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

.project-subtitle {
    font-size: 0.94rem;
    color: var(--text);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.project-description {
    font-size: 0.96rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    max-width: 650px;
    line-height: 1.65;
}

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

.skill-category h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.skill-list li {
    font-size: 0.92rem;
    color: var(--text);
}

/* Contact */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: color 0.15s;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    min-width: 80px;
    text-transform: uppercase;
}

.contact-link-value {
    font-size: 0.95rem;
    font-weight: 400;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

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

/* Responsive */
@media (max-width: 640px) {
    html {
        font-size: 17px;
    }

    main {
        padding: 0.9rem 1.2rem 3rem;
    }

    .hero {
        padding: 0.9rem 0 1.5rem;
    }

    .hero-name {
        font-size: 1rem;
        margin-bottom: 1.1rem;
    }

    .hero-identity {
        gap: 0.9rem;
        margin-bottom: 1.75rem;
    }

    .hero-avatar {
        width: 52px;
        height: 52px;
    }

    .hero-meta span {
        font-size: 0.95rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
        margin-bottom: 1.65rem;
    }

    .hero-bio p {
        font-size: 1rem;
        margin-bottom: 1.1rem;
    }

    .page-header {
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .experience-item,
    .project-item {
        padding: 1.75rem 0;
    }

    .experience-header {
        flex-direction: column;
        gap: 0.2rem;
        margin-bottom: 1rem;
    }

    .experience-title {
        flex-direction: column;
        gap: 0.15rem;
    }

    .experience-separator {
        display: none;
    }

    .experience-company,
    .project-title {
        font-size: 1rem;
    }

    .experience-duration {
        font-size: 0.72rem;
    }

    .experience-role {
        font-size: 0.86rem;
    }

    .experience-points li {
        padding-left: 1rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .experience-tags {
        margin-top: 1.1rem;
    }

    .project-links a {
        font-size: 0.85rem;
        padding: 0.15rem 0;
    }

    .project-subtitle {
        font-size: 0.88rem;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.55rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .contact-link {
        padding: 1.1rem 0;
        gap: 0.4rem;
        flex-direction: column;
    }

    .contact-link-label {
        font-size: 0.72rem;
    }

    .contact-link-value {
        font-size: 0.92rem;
    }

    footer {
        padding: 1.25rem 1rem;
        gap: 0.4rem;
        text-align: center;
        flex-direction: column;
    }
}

@media (max-width: 380px) {
    .hero-name {
        font-size: 0.95rem;
    }
}
