:root {
    --pico-font-family:
        system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
        "Helvetica Neue", Arial, sans-serif;
}

li::before {
    content: "";
}

main {
    min-height: 85vh;
}

footer {
    margin: 0.5rem 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-desktop {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-desktop a {
    text-decoration: none;
    font-weight: 600;
}

nav details.nav-mobile {
    display: none;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    nav details.nav-mobile {
        display: block;
    }
}

.hero {
    padding-top: 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--pico-secondary);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.contact {
    margin: 1.5rem 0;
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section p {
    margin-bottom: 1rem;
}

.experience-card h3 {
    margin-bottom: 0.25rem;
}

.period {
    color: var(--pico-secondary);
    font-size: 0.9em;
    margin-bottom: 0.5rem;
}

.role {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.experience-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.experience-card li {
    margin-bottom: 0.25rem;
}

.experience-card .tech {
    color: var(--pico-secondary);
    font-size: 0.85em;
    margin-top: 0.75rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9em;
}

.post-card,
.project-card,
.service-card {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--pico-card-background-color);
}

.post-card h2 a,
.project-card h2 a,
.service-card h2 a {
    text-decoration: none;
    color: inherit;
}

.post-card h2 a:hover,
.project-card h2 a:hover,
.service-card h2 a:hover {
    color: var(--pico-primary);
}

.project-links {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.project-links a {
    margin-right: 0.4rem;
}

.tech-stack mark {
    display: inline-block;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}

.price {
    font-size: 1.2em;
    color: var(--pico-primary);
}

.post-date {
    margin-bottom: 1rem;
}

.cover-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

#top-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
}

#top-loading-bar::after {
    content: '';
    display: block;
    width: 30%;
    height: 100%;
    background: #3b82f6;
    border-radius: 2px;
    animation: loading-slide 1.5s ease-in-out infinite;
}

#top-loading-bar.htmx-request {
    opacity: 1;
}

@keyframes loading-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(433%); }
}
