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

/* Accessibility */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #1a1a2e;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    z-index: 200;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 3px solid #2a6cb8;
    outline-offset: 2px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

html {
    margin: 0;
    padding: 0;
    background: #f5c518;
}

/* Hero */

.hero {
    background: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}

.hero-text {
    flex: 1;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.party-logo {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #2d5016;
}

.candidate-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.slogan {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 1.5rem;
}

.candidate-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.candidate-number {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f5c518;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.election-info {
    font-size: 1rem;
    color: #555;
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    max-width: 50%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    max-height: 600px;
}

/* Themes */

.themes {
    background: #f8f4ed;
    padding: 2.5rem 2rem;
    text-align: center;
}

.themes h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

.themes-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.theme-card {
    background: #ffffff;
    padding: 1.5rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #e8e4dc;
}

.theme-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.theme-card:nth-child(1) .theme-icon {
    color: #e6a817;
}

.theme-card:nth-child(2) .theme-icon {
    color: #4a8c3f;
}

.theme-card:nth-child(3) .theme-icon {
    color: #2a6cb8;
}

.theme-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.theme-card p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
}

/* Footer */

.footer {
    background: #f5c518;
    color: #ffffff;
    padding: 0;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact p {
    font-size: 0.9rem;
    color: #ccc;
}

.contact a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
}

.contact a:hover {
    text-decoration-color: #ffffff;
}

.social {
    display: flex;
    gap: 0.8rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-slogan {
    text-align: right;
}

.handwritten {
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.4;
}

.handwritten-underline {
    border-bottom: 3px solid #f5c518;
    padding-bottom: 4px;
}

.footer-dark {
    background: #1a1a2e;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.ekosivu-stamp {
    width: 90px;
    height: auto;
}

.footer-bottom {
    background: #f5c518;
    padding: 1rem 2rem;
    font-size: 0.85rem;
    color: #1a1a2e;
    font-weight: 600;
}

.footer-bottom-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vaalit-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.vaalit-logo span {
    color: #6b5a1e;
}

/* Responsive - Tablet */

@media (max-width: 1024px) {
    .hero-text {
        padding: 2rem 1.5rem;
    }

    .themes-grid {
        gap: 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* Responsive - Mobile */

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .candidate-number {
        margin: 0 auto 1rem;
    }

    .hero-image {
        max-width: 100%;
        order: -1;
        max-height: 350px;
        overflow: hidden;
    }

    .hero-image img {
        max-height: 350px;
        object-position: top center;
    }

    .themes {
        padding: 2rem 1rem;
    }

    .themes-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .theme-card h3 {
        font-size: 1.5rem;
    }

    .footer-dark {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social {
        justify-content: center;
    }

    .footer-slogan {
        text-align: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .handwritten {
        font-size: 1.1rem;
    }
}

/* Responsive - Small mobile */

@media (max-width: 480px) {
    .hero-text {
        padding: 1.5rem 1rem;
    }

    .candidate-name {
        font-size: 2.2rem;
    }

    .slogan {
        font-size: 1rem;
    }

    .candidate-desc {
        font-size: 0.9rem;
    }

    .candidate-number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .themes h2 {
        font-size: 1.5rem;
    }

    .theme-card h3 {
        font-size: 1.3rem;
    }

    .theme-card p {
        font-size: 1rem;
    }

    .contact h2 {
        font-size: 1.3rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}
