/* ======================
   GLOBAL
====================== */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    font-family: Arial, sans-serif;
    color: #1f2937;

    background:
        radial-gradient(circle at top left,
            rgba(59, 130, 246, 0.08),
            transparent 40%),
        #f8fafc;
}

main {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 80px;
}

/* ======================
   HERO
====================== */

.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero h1 {
    margin: 0;
    font-size: clamp(52px, 10vw, 92px);
    letter-spacing: -4px;
}

.tagline {
    max-width: 650px;
    margin: 20px auto 0;

    color: #64748b;

    font-size: 22px;
    line-height: 1.6;
}

/* ======================
   SECTIONS
====================== */

.about,
.projects {
    margin-bottom: 28px;

    padding: 32px;

    background: white;

    border: 1px solid #e5e7eb;
    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.04);
}

.about h2,
.projects h2 {
    margin-top: 0;
    margin-bottom: 16px;

    font-size: 28px;
    letter-spacing: -1px;
}

.about p {
    margin: 0;

    color: #64748b;
    line-height: 1.8;
}

/* ======================
   PROJECTS
====================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.project-card {
    display: block;

    padding: 24px;

    text-decoration: none;

    background: #f8fafc;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);

    border-color: #3b82f6;

    box-shadow:
        0 12px 24px rgba(59, 130, 246, 0.08);
}

.project-card h3 {
    margin: 0 0 10px;

    color: #111827;
}

.project-card p {
    margin: 0;

    color: #64748b;
}

/* ======================
   MOBILE
====================== */

@media (max-width: 768px) {

    .hero {
        padding: 80px 0 50px;
    }

    .tagline {
        font-size: 18px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .about,
    .projects {
        padding: 24px;
    }
}

/* ======================
   404 PAGE
====================== */

.error-page {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

.error-card {
    width: min(500px, 100%);
    padding: 40px;

    text-align: center;

    background: white;

    border: 1px solid #e5e7eb;
    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.error-card h1 {
    margin: 0 0 16px;

    font-size: 72px;
    letter-spacing: -2px;
}

.error-card p {
    margin-bottom: 24px;

    color: #64748b;
}

.error-card a {
    color: #1f2937;
    text-decoration: none;
}