/* Parametrig — Layout + Navigation */

/* Grid Layout */
.layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 4vw;
    min-height: 100vh;
}

/* Navigation */
nav {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    position: sticky;
    top: 2vw;
    height: fit-content;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    background: transparent;
}

.nav-group {
    margin-bottom: 2.5rem;
}

.nav-label {
    color: var(--muted-foreground);
    margin-bottom: 0.4rem;
    display: block;
}

.nav-mobilebar {
    display: none;
    align-items: center;
    justify-content: space-between;
}

.nav-toggle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-transform: lowercase;
    color: var(--fg);
}

.nav-toggle:hover {
    color: var(--brand);
}

.nav-menu {
    display: block;
}

nav a,
summary,
.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    cursor: pointer;
    display: block;
    transition: var(--transition-accent);
}

/* Disabled links */
nav a.disabled,
.disabled {
    color: var(--muted-foreground) !important;
    cursor: not-allowed;
    text-decoration: none;
    pointer-events: none;
    opacity: 0.6;
}

nav a.repo-link,
nav a.email-link,
.dropdown a {
    color: var(--fg);
}

nav a:hover,
summary:hover,
.nav-link:hover {
    color: var(--brand);
}

/* Caret and Toggle Text Rotation */
details>summary .ph-caret-down {
    display: none;
}

.nav-section-title::after,
.nav-label::after {
    content: " [+]";
    color: var(--muted-foreground);
    margin-left: 8px;
    font-family: var(--font-mono);
}

.profile-summary::after {
    content: none;
}

/* Suppress the nav-label [+] on profile — we use .profile-name::after instead */
.user-profile-plate .nav-label::after {
    content: none !important;
}

.user-profile-plate .profile-name::after {
    content: " [+]";
    color: var(--muted-foreground);
    font-family: var(--font-mono);
    font-weight: 400;
    margin-left: 8px;
}

details[open]>.nav-section-title::after,
details[open]>.nav-label::after {
    content: " [-]";
}

details[open]>.profile-summary::after {
    content: none;
}

.user-profile-plate details[open] .profile-name::after {
    content: " [-]";
}

/* Resources Dropdown */
details summary {
    list-style: none;
    outline: none;
    cursor: pointer;
}

details summary::-webkit-details-marker {
    display: none;
}

.dropdown {
    padding-left: 12px;
    margin-top: 4px;
    border-left: 1px solid var(--border);
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Page Heading — clickable for accent cycling */
h1 {
    font-size: clamp(3rem, 12vw, 14rem);
    line-height: 0.75;
    letter-spacing: -1.4vw;
    font-weight: 700;
    margin-bottom: 6vh;
    width: 100%;
    text-align: right;
    color: var(--brand);
    cursor: pointer;
    transition: var(--transition-accent);
    user-select: none;
    -webkit-user-select: none;
}

h1:hover {
    opacity: 0.8;
}

.content-body {
    max-width: 700px;
    width: 100%;
}

/* Icon Row */
.icon-row {
    display: flex;
    gap: 1.2rem;
    margin-top: 3rem;
    align-items: center;
}

.icon-row a {
    transition: var(--transition-accent);
    color: var(--fg);
}

.icon-row a:hover {
    color: var(--brand);
    text-decoration: none;
}

.icon-row svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    vertical-align: middle;
}

/* Accent Dot — single cycling picker in nav footer */
.accent-dots {
    margin-top: 1.5rem;
}

.accent-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid var(--border);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.accent-dot:hover {
    transform: scale(1.3);
}

/* MOBILE / TABLET */
@media (max-width: 850px) {
    .layout {
        grid-template-columns: 1fr;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 4vw;
        display: block;
        background: var(--bg);
    }

    nav.nav-hidden {
        transform: translateY(-100%);
    }

    .nav-mobilebar {
        display: flex;
    }

    .nav-menu {
        display: none;
        margin-top: 1rem;
    }

    nav.menu-open .nav-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .nav-group {
        margin-bottom: 0;
    }

    .icon-row {
        margin-top: 0;
        justify-content: flex-end;
    }

    .accent-dots {
        margin-top: 0.5rem;
    }

    h1 {
        text-align: left;
        font-size: 20vw;
        margin-top: 25vh;
    }
}