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

body {
    font-family: Arial, sans-serif;
    background: #eaf2f8;
    color: #0f172a;
    min-height: 100vh;
}

a {
    color: inherit;
}

main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    padding: 1rem 0;
}

.site-nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-logo {
    text-decoration: none;
    font-weight: 700;
    color: #0f172a;
}

.site-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-nav-links a {
    text-decoration: none;
    color: #334155;
    font-size: 0.9rem;
}

.site-nav-links a:hover,
.site-logo:hover,
.content-item a:hover {
    color: #0f6fae;
}

.portfolio-page {
    background: #ffffff;
    border-radius: 22px;
    padding: 2rem 1.25rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

/* Home hero */
.hero {
    display: grid;
    gap: 2rem;
}

.eyebrow {
    color: #0f6fae;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2rem, 5.8vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 0.9rem;
}

.hero h2 {
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    line-height: 1.2;
    color: #12385a;
    margin-bottom: 1rem;
}

.lead {
    max-width: 760px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 1rem;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-facts span {
    background: #eaf2f8;
    color: #12385a;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-side {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 1.25rem;
}

.side-label {
    color: #0f6fae;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.side-title {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
}

/* Generic page sections */
.section {
    display: grid;
    gap: 0.85rem;
}

.section h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #0f172a;
}

/* Projects */
.project-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.project-card {
    display: grid;
    gap: 1.15rem;
    padding: 1.35rem;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    background: #f8fafc;
}

.project-label {
    margin-bottom: 0.5rem;
    color: #0f6fae;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-card h2 {
    margin-bottom: 0.65rem;
    color: #12385a;
    font-size: 1.35rem;
}

.project-card p {
    color: #334155;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-meta span {
    border-radius: 999px;
    background: #eaf2f8;
    color: #12385a;
    padding: 0.42rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.project-section h3 {
    margin-bottom: 0.55rem;
    color: #0f172a;
    font-size: 0.95rem;
}

.project-section ul {
    padding-left: 1.1rem;
    color: #334155;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-links,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.project-links {
    margin-top: 0.15rem;
}

.quick-links {
    margin-top: 1.5rem;
}

.project-links a,
.quick-links a {
    border-radius: 999px;
    background: #12385a;
    color: #ffffff;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.project-links a:nth-child(2),
.quick-links a:nth-child(2),
.quick-links a:nth-child(3) {
    background: #eaf2f8;
    color: #12385a;
}

.project-links a:hover,
.quick-links a:hover {
    transform: translateY(-1px);
}

/* Compact content pages: home summary, about, tech, contact */
.home-summary {
    margin-top: 1.75rem;
}

.content-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 820px;
}

.content-item {
    padding-top: 1rem;
    border-top: 1px solid #dbeafe;
}

.content-item h2 {
    margin-bottom: 0.35rem;
    color: #12385a;
    font-size: 1rem;
}

.content-item p {
    color: #334155;
    line-height: 1.6;
    font-size: 0.95rem;
}

.content-item a {
    color: #12385a;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.site-footer {
    text-align: center;
    padding: 1.6rem 1rem;
    color: #64748b;
    font-size: 0.85rem;
}

.site-footer a {
    color: #12385a;
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover {
    color: #0f6fae;
}

@media (min-width: 768px) {
    main,
    .site-nav {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .site-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .portfolio-page {
        padding: 3rem 3.5rem;
        border-radius: 28px;
    }

    .hero {
        grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.75fr);
        align-items: center;
    }
}

@media (min-width: 900px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

@media (max-width: 520px) {
    .site-nav-links {
        gap: 0.75rem;
    }

    .site-nav-links a {
        font-size: 0.85rem;
    }

    .portfolio-page {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 12vw, 2.6rem);
    }

    .hero h2 {
        font-size: 1.1rem;
    }
}