﻿:root {
    /* colors */
    --primary-color: #ff0000;
    --secondary-color: #111111;
    --background-color: #000000;
    --text-color: #ffffff;
    --muted-text-color: rgba(255, 255, 255, 0.8);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --surface-subtle: rgba(255, 255, 255, 0.03);
    --hover-primary: rgba(255, 0, 0, 0.07);

    /* fonts */
    --font-primary: 'Climate Crisis';
    --font-secondary: 'Cormorant Garamond';
    --font-body: 'Nunito Sans';

    /* font sizes */
    --font-size-xs: clamp(0.5rem, 1.2vw, 1.1rem);
    --font-size-sm: clamp(0.7rem, 2.5vw, 1.5rem);
    --font-size-md: clamp(1rem, 4vw, 3rem);
    --font-size-lg-alt-mobile: clamp(1.2rem, 4vw, 4rem);
    --font-size-lg-alt: clamp(1.2rem, 6vw, 6rem);
    --font-size-lg: clamp(2rem, 8vw, 6rem);

    /* spacing */
    --space-xs: clamp(0.3rem, 1vw, 1rem);
    --space-sm: clamp(0.7rem, 3vw, 2rem);
    --space-md: clamp(0.9rem, 5vw, 3rem);
    --space-lg: clamp(1.5rem, 5vw, 4rem);

    /* layout */
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 10px;
    --max-width: 1000px;
    --border-width: 2px;

    /* line heights */
    --lh-sm: 1.1;
    --lh-md: 1.8;
}

/* global */
html {
    overscroll-behavior: none;
    scrollbar-color: var(--primary-color) var(--background-color);
    scrollbar-width: thin;
    overflow-x: hidden;
    background-color: var(--secondary-color);
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    margin: 0;
    font-family: var(--font-body), sans-serif;
    color: var(--text-color);
    background: linear-gradient(180deg, var(--secondary-color), var(--background-color));
    line-height: 1.6;
    overflow-wrap: break-word;
}

header {
    background-color: var(--secondary-color);
    padding: var(--space-xs) 0;
}

.nav {
    display: flex;
    justify-content: center;
}

.nav__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: 0;
    margin: var(--space-sm);
}

.nav__item {
    text-transform: uppercase;
}

.nav__link {
    font-size: var(--font-size-sm);
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
    color: var(--primary-color);
}

main {
    flex: 1;
    padding: 0 var(--space-md);
}

.page-header {
    text-align: center;
    padding: var(--space-lg) var(--space-md) var(--space-sm);
}

.page-header__title {
    font-family: var(--font-primary), sans-serif;
    font-size: var(--font-size-lg-alt-mobile);
    color: var(--primary-color);
    text-transform: uppercase;
    margin: 0 0 var(--space-xs);
    line-height: var(--lh-sm);
}

.page-header__subtitle {
    font-family: var(--font-secondary), serif;
    font-size: var(--font-size-sm);
    color: var(--muted-text-color);
    margin: 0;
}

footer {
    background-color: var(--secondary-color);
    text-align: center;
    padding: var(--space-xs) 0;
    margin-top: var(--space-sm);
}

.footer__text {
    font-size: var(--font-size-xs);
    color: var(--muted-text-color);
}

/* index */
.body--index {
    background:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        linear-gradient(rgba(255, 255, 0, 0.2), rgba(255, 255, 0, 0.2)), /* viva los pollos hermanos! */
        url('../assets/images/index-bg.png') no-repeat fixed center;
    background-size: cover;
}

.main--index {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-sm);
    padding: var(--space-md);
}

.hero__title {
    font-family: var(--font-primary), sans-serif;
    font-size: var(--font-size-lg);
    font-weight: 900;
    color: var(--primary-color);
    text-transform: uppercase;
    margin: 0;
    line-height: var(--lh-sm);
}

.hero__subtitle {
    font-family: var(--font-secondary), serif;
    font-size: var(--font-size-md);
    color: var(--text-color);
    margin: 0;
}

.hero__image {
    width: clamp(16rem, 25vw, 25rem);
    height: auto;
    border: var(--border-width) solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    flex-shrink: 0;
    max-width: 100%;
}

.members-group,
.achievements-group,
.contact-group,
.history-article,
.team-section {
    max-width: var(--max-width);
    margin: 0 auto var(--space-sm);
    padding: var(--space-sm);
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
}

.members-group__title,
.achievements-group__title,
.contact-group__title,
.history-article__title,
.team-section__title {
    font-family: var(--font-secondary), serif;
    font-size: var(--font-size-sm);
    color: var(--text-color);
    text-transform: uppercase;
    margin: 0 0 var(--space-xs);
    padding-bottom: var(--space-xs);
    border-bottom: var(--border-width) solid var(--primary-color);
}

.members-group__description,
.achievements-group__description {
    font-size: var(--font-size-sm);
    color: var(--muted-text-color);
    margin: 0 0 var(--space-sm);
}

.team-section {
    margin-bottom: var(--space-sm);
}

.team-section__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
}

.team-section__logo {
    width: clamp(5rem, 10vw, 9rem);
    height: auto;
    border-radius: var(--border-radius-sm);
    align-self: center;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    font-size: var(--font-size-xs);
}

.member-table__header {
    text-align: left;
    padding: var(--space-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    border-bottom: var(--border-width) solid var(--primary-color);
}

.member-table__row {
    transition: background-color 0.2s ease;
}

.member-table__row:hover {
    background-color: var(--hover-primary);
}

.member-table__cell {
    padding: var(--space-xs);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-color);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list__item {
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.2s ease;
}

.contact-list__item:hover {
    background-color: var(--hover-primary);
}

.contact-list__link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-list__icon {
    width: 1.4em;
    text-align: center;
    color: var(--muted-text-color);
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.contact-list__link:hover,
.contact-list__link:hover .contact-list__icon {
    color: var(--primary-color);
}

.era-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-xs) 0 0;
    margin: 0;
}

.era-list__item {
    font-family: var(--font-secondary), serif;
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    background-color: var(--surface-subtle);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.era-list__item:hover {
    background-color: var(--hover-primary);
    border-color: var(--primary-color);
}

.era-list__link {
    display: block;
    padding: var(--space-xs);
    color: var(--primary-color);
    text-decoration: none;
}

.history-article__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
    padding-bottom: var(--space-xs);
    border-bottom: var(--border-width) solid var(--primary-color);
}

.history-article__title {
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.history-article__logo {
    width: clamp(2.5rem, 5vw, 4rem);
    height: auto;
    flex-shrink: 0;
}

.history-article__logo--invert {
    filter: invert(1);
}

.history-article__body {
    font-size: var(--font-size-sm);
    color: var(--muted-text-color);
    line-height: var(--lh-md);
    margin: 0;
}

.history-article__body + .history-article__body {
    margin-top: var(--space-xs);
}

@media (min-width: 1000px) {
    .hero {
        flex-direction: row;
        text-align: right;
    }

    .page-header__title {
        font-size: var(--font-size-lg-alt);
    }

    .team-section__content {
        flex-direction: row;
        align-items: start;
    }

    .team-section__logo {
        align-self: start;
    }
}
