
/* ---------------------------------
   Home Page Layout
--------------------------------- */

.home-page {
    width: min(100% - 48px, 1200px);

    margin: 0 auto;

    padding: 60px 0 100px;
}


/* ---------------------------------
   Introduction Section
--------------------------------- */

.home-hero {
    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    align-items: center;

    gap: 60px;

    padding: 60px;

    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: 20px;
}


/* ---------------------------------
   Introduction Text
--------------------------------- */

.hero-content {
    min-width: 0;
}

.section-label {
    display: inline-block;

    margin-bottom: 20px;

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.15em;

    color: var(--brand);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);

    line-height: 1.1;

    letter-spacing: -0.04em;

    color: var(--text);
}

.hero-tagline {
    margin-top: 24px;

    font-size: 1.25rem;
    font-weight: 600;

    color: var(--accent);
}

.hero-description {
    max-width: 550px;

    margin-top: 18px;

    font-size: 1rem;

    line-height: 1.8;

    color: var(--muted-text);
}


/* ---------------------------------
   Introduction Buttons
--------------------------------- */

.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 32px;
}

.hero-button {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 8px;

    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
}

.hero-button-primary {
    background-color: var(--brand);

    color: white;
}

.hero-button-primary:hover {
    background-color: var(--accent);
}

.hero-button-secondary {
    background-color: transparent;

    color: var(--brand);

    border: 1px solid var(--brand);
}

.hero-button-secondary:hover {
    background-color: var(--brand-hover);
}


/* ---------------------------------
   Profile Image
--------------------------------- */

.hero-image {
    width: 100%;
    max-width: 320px;

    justify-self: center;
}

.hero-image img {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 5;

    object-fit: cover;

    border-radius: 16px;

    border: 3px solid var(--brand);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}


/* ---------------------------------
   Responsive Layout
--------------------------------- */

@media (max-width: 800px) {

    .home-page {
        width: min(100% - 32px, 1200px);

        padding-top: 32px;
    }

    .home-hero {
        grid-template-columns: 1fr;

        gap: 40px;

        padding: 32px 24px;
    }

    .hero-image {
        max-width: 280px;
    }

}

@media (max-width: 450px) {

    .hero-actions {
        flex-direction: column;
    }

    .hero-button {
        text-align: center;
    }

}


/* ---------------------------------
   Homepage Content Sections
--------------------------------- */

.latest-section {
    margin-top: 32px;

    padding: 32px;

    background-color: var(--surface);

    border: 1px solid var(--border);
    border-radius: 20px;
}


/* ---------------------------------
   Section Header
--------------------------------- */

.latest-section-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 24px;
}

.latest-section-header .section-label {
    margin-bottom: 8px;
}

.latest-section-header h2 {
    font-size: clamp(1.7rem, 4vw, 2.3rem);

    line-height: 1.2;

    color: var(--text);
}

.section-description {
    margin-top: 8px;

    font-size: 0.9rem;

    color: var(--muted-text);
}


/* ---------------------------------
   View All Link
--------------------------------- */

.section-link {
    flex-shrink: 0;

    padding: 10px 18px;

    border: 1px solid var(--brand);
    border-radius: 999px;

    color: var(--brand);

    font-size: 0.9rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.section-link:hover {
    background-color: var(--brand);

    color: white;
}


/* ---------------------------------
   Mobile Section Layout
--------------------------------- */

@media (max-width: 600px) {

    .latest-section {
        padding: 24px 16px;
    }

    .latest-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

}