:root {
    --brand-color: rgb(190, 80, 55);
}

main img {
    margin-bottom: 1.5rem;
}

/* HERO */
.hero {
    height: 100vh;
    background: url('/images/hero-desktop.png') center/cover no-repeat;
    position: relative;
    transition: opacity 0.4s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;

    justify-content: center;  /* vertical centering */
    align-items: center;      /* horizontal centering */

    text-align: center;
    color: white;
}
.hero-overlay h1 {
    font-weight: 200;
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
}

.hero-overlay h2 {
    font-weight: 300;
    font-size: clamp(1.1rem, 2.2vw, 1.8rem);
}
.hero-divider {
    width: 220px;
    height: 3px !important;
    border: none;

    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,1) 25%,
        rgba(255,255,255,1) 75%,
        transparent 100%
    );
}

/* overlay layer */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* adjust darkness here */
}

/* END HERO */

/* header always in brand.color...
.site-header {
    background-color: var(--brand-color)!important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}*/
.site-header {
    background:
    linear-gradient(
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.45)
    ),
    url('/images/header-small.png');

    background-position: center;
    background-size: cover;
}

/* ...except this situation */
body.home .site-header:not(.scrolled) {
    background: transparent !important;
}

.site-footer {
    background-color: var(--brand-color);
}

.content {
    padding: 0 2.5rem;
    background: rgba(255,255,255,1);
}

.logo {
    height: 50px;   /* adjust: 24–40px typical */
    width: auto;
}

.img-responsive {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.content-divider {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.5);
    margin: 2.5rem auto;
    width: 100%;
}

ul {
    display: inline-block;
    text-align: left;
}

.rss-link {
    color: white-80;
    margin-right: 0.75rem;
}
.ananke-socials img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(1);
}
/* hover effect */
.social-link:hover .social-icon {
    opacity: 1;
    color: white-80;
}


/* Language switcher */

.language-switcher {
    opacity: 0.65;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.language-switcher a {
    padding: 2px 6px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
}

.language-switcher:hover {
    opacity: 1;
}
/* End Language switcher */

/* offset for the header height */
body.page main {
    padding-top: 3rem; /* adjust to your header height */
}

/* Use full page width */
.measure-wide,
.measure,
.measure-wide-l {
    max-width: 100% !important;
}

/* =========================
 *  Codefile shortcode
 *  ========================= */
.codefile {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #1e1e1e;
}

.codefile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--brand-color);
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.codefile button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
}

.codefile button:hover {
    background: rgba(255,255,255,0.35);
}

#lightbox {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.9);
display: none;
align-items: center;
justify-content: center;
z-index: 9999;
}

#lightbox img {
max-width: 90%;
max-height: 90%;
}

#lightbox.active {
display: flex;
cursor: zoom-out;
}

/* =========================================================
 * NAVIGATION
 * ========================================================= */

/* ---------------------------------------------------------
 * HEADER BAR
 * Main top navigation container
 * --------------------------------------------------------- */

.site-header {
    background-color: var(--brand-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

/* Homepage hero overlay state */
body.home .site-header:not(.scrolled) {
    background: transparent !important;
}

/* ---------------------------------------------------------
 * NAV LAYOUT
 * Horizontal alignment of logo + menu
 * --------------------------------------------------------- */

.nav {
    width: 100%;
    padding: 0.8rem 1.5rem;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* Right side wrapper */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ---------------------------------------------------------
 * LOGO
 * Site logo + title
 * --------------------------------------------------------- */

.logo {
    height: 50px;
    width: auto;
}

.nav-logo img {
    height: 40px;
}

/* ---------------------------------------------------------
 * MAIN MENU
 * Top-level navigation items
 * --------------------------------------------------------- */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.2rem;

    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;

    color: white;
    text-decoration: none;
    font-weight: 400;
}

.nav-link:hover {
    color: rgba(255,255,255,0.8);
}

/* Small dropdown arrow */
.caret {
    font-size: 0.7em;
    line-height: 1;
    background: rgba(255,255,255,0.1);
}

/* ---------------------------------------------------------
 * DROPDOWN MENU
 * Floating submenu below "More"
 * --------------------------------------------------------- */

/* Anchor positioning */
li.relative {
    position: relative;
}

/* Hidden by default */
li.relative > .dropdown {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 120px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(4px);

    transition:
    opacity 0.2s ease,
    transform 0.2s ease;

    z-index: 999;

    /* Visual appearance */
    background: #FFFFFF;

    padding: 0.5rem;

    border-radius: 12px;

    box-shadow:
    0 8px 30px rgba(0,0,0,0.12),
    0 2px 8px rgba(0,0,0,0.08);

    border: 1px solid rgba(0,0,0,0.06);

    backdrop-filter: blur(12px);
}

/* Show on hover */
li.relative:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}

/* Dropdown list items */
.dropdown li {
    list-style: none;
}

/* Dropdown links */
.dropdown a {
    display: flex;
    align-items: center;

    padding: 0.3rem 1rem;

    border-radius: 12px;

    color: #888A8D  ;
    text-decoration: none;
    white-space: nowrap;

    transition:
    background 0.18s ease,
    color 0.18s ease;
}

/* Hover effect */
.dropdown a:hover {
    background: rgba(0,0,0,0.05);
    color: #8D8E90;
}

/* ---------------------------------------------------------
 * HAMBURGER BUTTON
 * Mobile navigation toggle
 * --------------------------------------------------------- */

.nav-toggle {
    display: none;

    margin-left: auto;

    font-size: 1.8rem;

    background: none;
    border: none;

    color: white;

    cursor: pointer;
}

/* =========================================================
 * MOBILE NAVIGATION
 * ========================================================= */

@media (max-width: 768px) {

    /* Needed for absolute menu positioning */
    .nav-inner {
        position: relative;
    }

    /* Show hamburger icon */
    .nav-toggle {
        display: block;
    }

    /* Mobile dropdown panel */
    .nav-menu {
        display: none;

        position: absolute;

        top: 100%;
        right: 0;

        flex-direction: column;
        align-items: flex-start;

        padding: 0.5rem;

        background: #FFFFFF;

        border-radius: 18px;

        box-shadow:
        0 8px 30px rgba(0,0,0,0.12),
        0 2px 8px rgba(0,0,0,0.08);

        border: 1px solid rgba(0,0,0,0.06);

        backdrop-filter: blur(12px);

        z-index: 9999;
    }

    /* Open state via JS */
    .nav-menu.open {
        display: block;
    }

    /* Stack menu items vertically */
    .nav-menu ul.nav {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Mobile hero image */
    .hero {
        background: url('/images/hero-mobile.png') center/cover no-repeat;
    }

    /* Overwrite horizontal menu item settings which won't work for white backgound in hamburger menu */
    @media (max-width: 768px) {
        .nav-menu a.white-90,
        .nav-menu a.hover-white,
        .nav-menu a {
            color: #888A8D !important;
        }
    }
    /* End: Overwrite horizontal menu item settings */
}
