:root {
    --bg-dark: #1a1b3a;
    --bg-light: #f4f5fb;
    --accent: #7c6cff;
    --accent-hover: #5f52e0;
    --text-dark: #1b1b1b;
    --text-light: #ffffff;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem /* height of fixed nav */;
}

/* Fake backdrop for dialog (no JS needed) */
body:has(.template-dialog)::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
}

.template-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    max-width: 520px;
    padding: 2rem 2.5rem;
    border: none;
    background: #ff7a7a;
    color: #fff;
    text-align: center;
    font-weight: 600;
    z-index: 1000;

    p {
        margin-bottom: 0.8rem;
        line-height: 1.4;
    }
}

/* Fixed header + nav */
.page-header {
    width: 100%;
    z-index: 900;
    background: linear-gradient(135deg, var(--accent), #4f8cff);
    color: var(--text-light);
    text-align: center;
    padding: calc(5rem + 4rem) 0 5rem;

    .project-name {
        font-size: 2.4rem;
        margin-bottom: 0.5rem;
    }

    .project-tagline {
        font-size: 1.1rem;
        font-weight: normal;
        padding: 0 2rem;
    }
}

.main-nav {
    position: fixed;
    height: 4rem;
    top: 0;
    background: rgba(26, 27, 58, 0.95);
    width: 100%;
    align-content: center;

    ul {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 1.8rem;
        padding: 0.7rem 1rem;
        max-width: 1200px;
        margin: auto;
    }

    a {
        color: var(--text-light);
        text-decoration: none;
        font-weight: 600;

        &:hover {
            color: var(--accent);
        }
    }
}

.main-content {
    max-width: 900px;
    margin: auto;
    padding: 2rem 2rem 4rem;
}

.section {
    margin-bottom: 3.5rem;

    h3 {
        color: var(--accent);
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    h4 {
        margin-bottom: 1rem;
    }

    p {
        line-height: 1.7;
        color: var(--text-dark);
        margin-bottom: 1rem;
    }
}

/* Opt-out highlight */
.opt-out {
    background: var(--bg-light);
    padding: 2.5rem;
    border-left: 5px solid var(--accent);
}

.btn-opt-out {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.6rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;

    &:hover {
        background: var(--accent-hover);
    }
}

.people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;

    .person {
        background: var(--bg-light);
        padding: 1.5rem;
        border-radius: 8px;

        h4 {
            margin-bottom: 0.4rem;
        }

        .email {
            margin-top: 0.6rem;
            font-weight: 600;
            color: var(--accent);
            word-break: break-all;
        }
    }
}

footer {
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 1.2rem;
}
