:root {
    --black: #0a0a0a;
    --white: #f5f5f0;
    --gray: #6b6b6b;
    --gray-light: #d4d4d0;
    --font-display: "Cormorant", Georgia, serif;
    --font-body: "Karla", system-ui, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

.hero {
    background-color: var(--black);
    color: var(--white);
    padding: 5rem 2rem 0;
}

.hero-inner {
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.hero-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.hero-meta a {
    color: var(--gray-light);
    border-bottom-color: transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.hero-meta a:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

.hero-meta .divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gray);
    flex-shrink: 0;
}

.hero-rule {
    max-width: 860px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(to right, var(--gray) 0%, transparent 100%);
}

main {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.about p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray);
    max-width: 680px;
}

.section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 2.5rem;
}

.entry {
    margin-bottom: 2.5rem;
}

.entry:last-child {
    margin-bottom: 0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.entry-role {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.entry-company {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.15rem;
}

.entry-date {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    white-space: nowrap;
    padding-top: 0.15rem;
}

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

.entry-list li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem;
    color: #3a3a3a;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.entry-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gray-light);
}

.project-card {
    display: flex;
    gap: 1.5rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    text-decoration: none;
    border-color: var(--black);
    box-shadow: 4px 4px 0 var(--black);
}

.project-card-image {
    width: 180px;
    min-height: 180px;
    flex-shrink: 0;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-body {
    padding: 1.25rem 1.25rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.project-card-link {
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.project-card-desc {
    font-size: 0.85rem;
    color: #3a3a3a;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.project-tech span {
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    background: var(--black);
    color: var(--white);
    border-radius: 2px;
    letter-spacing: 0.02em;
}

.skills-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-row {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
}

.skill-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    min-width: 90px;
    flex-shrink: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tags span {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--gray-light);
    border-radius: 2px;
    color: var(--black);
    transition: background-color 0.25s ease, border-color 0.25s ease;
    cursor: default;
}

.skill-tags span:hover {
    background-color: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.footer {
    background-color: var(--black);
    color: var(--white);
    margin-top: 2rem;
    display: flex;
    justify-content: space-around;
    padding: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.anim {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-1 { animation-delay: 0.1s; }
.anim-2 { animation-delay: 0.2s; }
.anim-3 { animation-delay: 0.35s; }
.anim-4 { animation-delay: 0.45s; }
.anim-5 { animation-delay: 0.55s; }
.anim-6 { animation-delay: 0.65s; }
.anim-7 { animation-delay: 0.75s; }
.anim-8 { animation-delay: 0.85s; }
.anim-9 { animation-delay: 0.95s; }
.anim-10 { animation-delay: 1.05s; }

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

@media (max-width: 640px) {
    .hero {
        padding: 3rem 1.25rem 0;
    }

    .hero-inner {
        padding-bottom: 2.5rem;
    }

    .hero-name {
        font-size: clamp(2.8rem, 14vw, 4.5rem);
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .hero-meta .divider {
        display: none;
    }

    main {
        padding: 0 1.25rem;
    }

    .entry-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .skill-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .skill-label {
        min-width: unset;
    }

    .project-card {
        flex-direction: column;
        gap: 0;
    }

    .project-card-image {
        width: 100%;
        min-height: 160px;
        max-height: 200px;
    }

    .project-card-body {
        padding: 1.25rem;
    }

}
