@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,340;0,9..144,440;0,9..144,560;1,9..144,440&display=swap');

/* ---------- Tokens ----------
   Reuses the site's own color-scheme variables (assets/css/schemes/pnd.css)
   so this page always matches the header/footer, in both light and dark mode. */

.team-page {
    --ink: rgb(var(--color-neutral-900));
    --muted: rgb(var(--color-neutral-500));
    --rule: rgb(var(--color-neutral-300));
    --frame: rgb(var(--color-neutral-100));
    --accent: rgb(var(--color-primary-600));

    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem 6rem;

    color: var(--ink);
}

html.dark .team-page {
    --ink: rgb(var(--color-neutral));
    --muted: rgb(var(--color-neutral-400));
    --rule: rgb(var(--color-neutral-700));
    --frame: rgb(var(--color-neutral-700));
    --accent: rgb(var(--color-primary-400));
}

html {
    scroll-behavior: smooth;
}


/* ---------- Logo ---------- */

.team-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.team-logo img {
    width: min(280px, 70vw);
    height: auto;
}

.team-logo-caption {
    font-family: 'Fraunces', Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 440;
    font-size: 1.1rem;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: pre-line;
    color: var(--ink);
}


/* ---------- Section labels ---------- */

.news-section h2 {
    text-align: center;

    font-family: 'Fraunces', Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 440;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    margin-bottom: 3rem;
}


/* ---------- Team grid ---------- */

.team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2.5rem;
    margin-bottom: 1rem;
}

.member {
    text-align: center;
}

.member img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    filter: grayscale(0.15) contrast(1.03);

    transition: transform 0.6s ease, filter 0.6s ease;
}

.member:hover img {
    transform: scale(1.02);
    filter: grayscale(0) contrast(1.05);
}

.member-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.member-link h3,
.member-activity-link {
    font-family: 'Fraunces', Georgia, serif;
    font-optical-sizing: auto;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.member-link h3 {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 1rem;
    min-height: 3rem;

    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--ink);
}

.member-activity-link {
    display: block;
    margin-top: 1rem;

    font-weight: 400;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;

    transition: color 0.3s ease;
}

.member-activity-link:hover {
    color: var(--accent);
}


/* ---------- Modal ---------- */

.member-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(10, 8, 6, .88);
    backdrop-filter: blur(8px);
    z-index: 9999;
    padding: 2rem;
}

.member-modal.open {
    display: flex;
}

.member-modal-content {
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: 350px 1fr;
    align-items: start;
    gap: 2rem;
    padding: 2rem;
    position: relative;
    color: rgb(var(--color-neutral-50));
}

#modal-image {
    width: 100%;
    display: block;
}

.modal-info {
    display: block;
}

#modal-name {
    margin-top: 0;

    font-family: 'Fraunces', Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 2rem;
    letter-spacing: 0.02em;
}

#modal-bio {
    margin-top: 0;
    line-height: 1.8;
}

#modal-website {
    display: inline-block;
    margin-top: 1rem;
}

#modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    color: inherit;
    font-size: 2rem;
    cursor: pointer;
}


/* ---------- Manifesto ---------- */

.manifesto-content {
    display: block;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;

    color: white !important;
    padding: 2rem;
    position: relative;
}

.manifesto-content h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;

    font-family: 'Fraunces', Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.manifesto-content h2,
.manifesto-content h3,
.manifesto-content p,
.manifesto-content li {
    color: white !important;
}

.manifesto-text {
    line-height: 1.8;
}

.manifesto-text p {
    margin: 0 0 1rem;
}

.manifesto-text h3 {
    text-align: center;
    margin: 2rem 0 1rem;

    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 440;
}

.manifesto-text ol {
    margin: 1rem 0 1rem 2rem;
    padding-left: 1.5rem;
}

.manifesto-text li {
    display: list-item;
    margin-bottom: 0.2rem;
}

.manifesto-text > ol {
    list-style-type: decimal !important;
}

.manifesto-text > ol > li > ol {
    list-style-type: lower-alpha !important;
}

.manifesto-text > ol > li > ol > li > ol {
    list-style-type: lower-roman !important;
}

#manifesto-close {
    position: absolute;
    top: 15px;
    right: 20px;

    background: none;
    border: none;
    color: white !important;

    font-size: 2rem;
    cursor: pointer;
}


/* ---------- News section ---------- */

.news-section {
    max-width: 1200px;
    margin: 7rem auto 0;
    padding: 0 2rem;
}

#news {
    scroll-margin-top: 100px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2.5rem;
}

.news-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    color: inherit;

    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    display: block;
    background: var(--frame);

    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.02);
}

.news-card-content {
    padding: 1.2rem 0 0;
    border-top: 1px solid var(--rule);
}

.news-card-content h3 {
    margin: 0 0 0.4rem;

    font-family: 'Fraunces', Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 1.2rem;
}

.news-card-content time {
    font-family: Georgia, 'Fraunces', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--muted);
}

.news-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.person-badge {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 999px;
}


/* ---------- Supporters page ---------- */

.supporters-page {
    padding-top: 4rem;
}

.supporters-title {
    text-align: center;

    font-family: 'Fraunces', Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 440;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    margin: 0 0 3rem;
}

.supporters-intro {
    max-width: 640px;
    margin: 0 auto 3rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
}

.supporters-intro p {
    margin-bottom: 1rem;
}

.supporters-directory {
    display: flex;
    flex-direction: column;
    max-width: 760px;
    margin: 0 auto;
}

.supporter {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--rule);
}

.supporter:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.supporter-compact {
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
}

.supporter-compact:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.supporter-compact .supporter-info h3 {
    margin: 0;
}

.supporter-photo {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(0.15) contrast(1.03);
}

.supporter-info h3 {
    margin: 0 0 0.4rem;

    font-family: 'Fraunces', Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.supporter-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.supporter-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.6rem;
}

.supporter-links a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.supporter-links a:hover {
    color: var(--accent);
}


/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .team {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .team-page {
        padding: 1rem 1rem 4rem;
    }

    .team {
        grid-template-columns: 1fr;
    }

    .news-section {
        padding: 0 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-section h2 {
        font-size: 1.2rem;
    }

    .supporters-title {
        font-size: 1.2rem;
    }

    .supporter {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}
