:root {
    --bg: #eef4fb;
    --surface: #ffffff;
    --ink: #0f2340;
    --muted: #5a6f8c;
    --accent: #1f6fd1;
    --hero: #0d3b73;
    --hero-2: #1a5aa8;
    --line: #d3e0f0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1626;
        --surface: #12223a;
        --ink: #e3ecf8;
        --muted: #91a6c3;
        --accent: #6aaeff;
        --hero: #0a2a52;
        --hero-2: #12437f;
        --line: #213654;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.55;
}

/* Päis */
.hero {
    background: linear-gradient(160deg, var(--hero) 0%, var(--hero-2) 100%);
    color: #fff;
    padding: 3.5rem 1.5rem 5rem;
}

.hero__inner {
    max-width: 52rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero__group {
    margin: 0.6rem 0 0;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 0.9rem;
    color: #d6e6ff;
}

.hero__img {
    width: 14rem;
    max-width: 40%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 18px 40px rgba(3, 20, 45, 0.45);
    transform: rotate(2deg);
}

/* Sisu */
.content {
    max-width: 52rem;
    margin: -2.5rem auto 0;
    padding: 0 1.5rem 4rem;
}

nav {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 50, 100, 0.10);
}

h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.works {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.works a {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.15s, transform 0.15s;
}

.works a:hover {
    background: var(--bg);
    transform: translateX(4px);
}

.works a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.works__title {
    font-weight: 600;
    color: var(--accent);
}

.works__desc {
    font-size: 0.92rem;
    color: var(--muted);
}

/* Telefon */
@media (max-width: 34rem) {
    .hero__inner {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .hero__img {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .works a {
        transition: none;
    }
}