@font-face {
    font-family: Manuscript;
    src: url(../fonts/manuscript.woff);
}
@font-face {
    font-family: Comic Sans;
    src: url(../fonts/comicsans.woff);
}
@font-face {
    font-family: Bahnschrift;
    src: url(../fonts/bahnschrift.woff);
}

/* ===============================
   THEME VARIABLES
================================ */

/* DARK (default) */
:root {
    --bg-header: #0f0f10;
    --bg-submenu: #18181b;
    --bg-hover: #1f1f23;

    --text-main: #e5e5e5;
    --text-muted: #c7c7cc;

    --border: #2a2a2e;
}

/* LIGHT */
body.light {
    --bg-header: #ffffff;
    --bg-submenu: #ffffff;
    --bg-hover: #f1f5f9;

    --text-main: #222;
    --text-muted: #555;

    --border: #e5e7eb;
}

body{
    font-family: "Segoe UI"   ;
}

/* ===============================
   HEADER BASE
================================ */

.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.header-flex {
    display: flex;
    font-family: "Inter","Segoe UI", sans-serif;
    justify-content: space-between;
    align-items: center;
}

/* ===============================
   TITLE
================================ */

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}

/* ===============================
   HAMBURGER
================================ */

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* ===============================
   NAV (DESKTOP)
================================ */

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link,
.submenu-toggle {
    font-size: 0.95rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
}

/* ===============================
   SUBMENU DESKTOP
================================ */

.nav-item {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-submenu);
    min-width: 160px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 100;
}

.submenu a {
    display: block;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.submenu a:hover {
    background: var(--bg-hover);
}

/* Hover dropdown (desktop only) */
@media (min-width: 791px) {
    .nav-item:hover .submenu {
        display: block;
    }
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 790px) {

    .nav-item {
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        z-index: 100;
        gap: 0;
        background: var(--bg-header);
        border-top: 1px solid var(--border);
    }

    .site-nav.show {
        display: flex;
    }

    .nav-link,
    .submenu-toggle {
        padding: 10px 16px;
        width: 100%;
        text-align: left;
        font-size: 0.95rem;
        color: var(--text-main);
    }

    .nav-item,
    .site-nav > a {
        border-bottom: 1px solid var(--border);
    }

    /* SUBMENU MOBILE */
    .submenu {
        position: static;
        border: none;
        box-shadow: none;
        padding: 0;
        background: var(--bg-submenu);
    }

    .submenu a {
        padding: 8px 24px;
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    .submenu.open {
        display: block;
    }
}

/* ===============================
   RIGHT SIDE
================================ */

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* SITE ICON */
.site-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
    filter: grayscale(100%);
}

body.light .site-icon {
    filter: none;
}

/* THEME TOGGLE */
.theme-toggle {
    margin-left:10px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 1.1rem;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    transform: scale(1.05);
}

/* ===============================
   RESET BUTTON
================================ */

button {
    margin: 0;
    padding: 0;
}

.no-underline,
.no-underline:hover,
.no-underline:focus,
.no-underline:active {
    color: inherit;
    text-decoration: none;
}
