/* ============================================
   BASE.CSS — Shared styles for The Quiet Loud
   ============================================ */

/* ── DESIGN TOKENS ── */
:root {
    --cream: #f7f2eb;
    --warm: #ede5d8;
    --gold: #c9a96e;
    --dark: #1e1c1a;
    --mid: #6b6158;
    --light: #a89e92;
}

/* ── RESET ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--dark);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    cursor: none;
    min-height: 100vh;
}

/* ── CUSTOM CURSOR ── */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.25s ease;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

/* ── GRAIN OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
}

/* ── NAV — PUBLIC (fixed, blend mode) ── */
nav {
    padding: 28px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    position: sticky;
    top: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(30, 28, 26, 0.06);
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a,
.nav-links .drop-button {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--dark);
}

/* ── DROPDOWN ── */
.drop-button {
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

.drop-button:hover {
    color: var(--dark);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    z-index: 1000;
    border-radius: 4px;
}

.dropdown-content li a {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
    text-decoration: none;
    padding: 12px 16px;
    transition: color 0.3s, background 0.3s;
}

.dropdown-content li a:hover {
    color: var(--dark);
    background-color: var(--warm);
}

/* ── HAMBURGER ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--dark);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── FOOTER ── */
footer {
    padding: 40px 48px;
    border-top: 1px solid rgba(30, 28, 26, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.footer-note {
    font-size: 0.78rem;
    color: var(--light);
    font-style: italic;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    nav {
        padding: 20px 24px;
        position: sticky;
        top: 0;
        background: var(--cream);
        border-bottom: 1px solid rgba(30, 28, 26, 0.06);
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        border-top: 1px solid rgba(30, 28, 26, 0.08);
        border-bottom: 1px solid rgba(30, 28, 26, 0.08);
        padding: 16px 24px;
        z-index: 150;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(30, 28, 26, 0.06);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    footer {
        padding: 28px 24px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}