@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #100E14;
    --panel: #1A1620;
    --panel-alt: #1F1926;
    --ink: #F2EEF7;
    --muted: #9C93AC;
    --line: #3A3145;
    --accent: #9D5CFF;
    --accent-soft: rgba(157, 92, 255, 0.35);
    --accent2: #E056FD;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
    * { transition: none !important; }
}


/* Vasak menüü */

nav {
    position: fixed;
    left: 0;
    top: 0;

    width: 190px;
    height: 100vh;

    background-color: var(--bg);
    border-right: 1px solid var(--line);

    padding: 40px 0;

    box-sizing: border-box;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    margin-bottom: 4px;
}

nav a {
    position: relative;
    display: block;

    padding: 10px 30px;

    color: var(--muted);
    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    transition: color 0.25s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 30px;
    bottom: 6px;

    width: 0;
    height: 1px;

    background-color: var(--accent);

    transition: width 0.25s ease;
}

nav a:hover {
    color: var(--ink);
}

nav a:hover::after {
    width: calc(100% - 60px);
}


/* Päis */

header {
    margin-left: 190px;

    padding: 80px 8% 50px;

    background-color: var(--bg);
    border-bottom: 1px solid var(--line);
}

h1 {
    margin: 0;

    font-family: 'Fraunces', serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: italic;
    font-size: 46px;
    line-height: 1.15;

    color: var(--ink);
}


/* Sisu */

main {
    margin-left: 190px;

    padding: 50px 8% 20px;
}


/* Sektsioonid — vahelduv stiil, aga sama värvipere */

section {
    background-color: var(--panel);

    padding: 32px;

    margin-bottom: 28px;

    border-radius: 16px;

    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

section:nth-of-type(odd) {
    border: 1px dashed var(--line);
}

section:nth-of-type(even) {
    background-color: var(--panel-alt);
    border: 1px solid var(--accent-soft);
}

section:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 16px 32px rgba(157, 92, 255, 0.14);
}


/* Pealkirjad */

h2 {
    margin-top: 0;
    margin-bottom: 14px;

    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 24px;

    color: var(--ink);
}


/* Tekst */

p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 15.5px;
}


/* Lingid — laotud ilusti laiali, mitte tihedalt üksteise otsa */

section div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;

    margin-top: 10px;
}

section a {
    display: inline-block;

    padding: 11px 22px;

    background-color: var(--accent);
    color: #FFFFFF;

    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;

    border-radius: 999px;

    transition: background-color 0.25s ease, transform 0.2s ease;
}

section a:hover {
    background-color: var(--accent2);
    transform: translateY(-1px);
}


/* Pildid */

img {
    max-width: 100%;

    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

img#erapilt {
    width: 150px;
    height: 150px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid var(--accent);
    box-shadow: none;
}


/* Video */

#video iframe {
    max-width: 100%;

    border: none;
    border-radius: 12px;
}


/* Muusika ja kaart */

#muusika,
#kaart {
    margin-top: 20px;
}


/* Jalus */

footer {
    margin-left: 190px;

    padding: 30px 8%;

    background-color: var(--bg);
    border-top: 1px solid var(--line);

    color: var(--muted);
    font-size: 13.5px;

    text-align: center;
}


/* Telefon */

@media (max-width: 700px) {

    nav {
        position: static;

        width: 100%;
        height: auto;

        padding: 20px 0;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    nav ul {
        display: flex;

        flex-wrap: wrap;

        gap: 4px;

        padding: 0 5%;
    }

    nav li {
        margin: 0;
    }

    nav a {
        padding: 8px 14px;
    }

    nav a::after {
        left: 14px;
    }

    header,
    main,
    footer {
        margin-left: 0;
    }

    header {
        padding: 50px 6% 35px;
    }

    h1 {
        font-size: 32px;
    }

    main {
        padding: 30px 5% 10px;
    }
}