/* Shared styles for the homepage and member profile pages. */
:root {
    color-scheme: dark;
    --background: #0b1220;
    --surface: #111c2e;
    --surface-light: #17253a;
    --text: #eef4ff;
    --muted: #9aabc2;
    --blue: #56a6ff;
    --blue-light: #9bcaff;
    --border: #25364d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--blue-light);
}

.site-header,
.site-footer {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header {
    min-height: 82px;
    border-bottom: 1px solid var(--border);
}

.brand {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.brand span {
    color: var(--blue);
}

.header-label,
.version {
    color: var(--muted);
    font-size: 0.85rem;
}

main {
    flex: 1;
}

.hero,
.team-section,
.profile-page {
    width: min(960px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    padding: 104px 0 112px;
}

.eyebrow,
.card-role {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(2.7rem, 7vw, 5rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

h1 span {
    color: var(--blue);
}

.intro {
    max-width: 620px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.1rem;
}

.button {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    padding: 11px 17px;
    border: 1px solid var(--blue);
    border-radius: 6px;
    background: var(--blue);
    color: #07111f;
    font-weight: 700;
    text-decoration: none;
}

.button:hover {
    background: var(--blue-light);
}

.team-section {
    padding-bottom: 96px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading h2,
.profile-page h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.04em;
}

.section-note,
.card-description,
.profile-intro {
    color: var(--muted);
}

.section-note {
    margin-bottom: 5px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.member-card,
.profile-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.member-card {
    display: block;
    color: var(--text);
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease;
}

.member-card:hover,
.member-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--blue);
}

.member-card h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--surface-light);
    color: var(--blue-light);
    font-size: 1.2rem;
    font-weight: 700;
}

.text-link {
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover,
.back-link:hover {
    color: #fff;
}

.site-footer {
    min-height: 76px;
    border-top: 1px solid var(--border);
    gap: 16px;
}

/* Profile template styles */
.profile-page {
    max-width: 760px;
    padding: 72px 0 96px;
}

.profile-card {
    margin-top: 28px;
    background: var(--surface);
}

.profile-role {
    margin: 8px 0 20px;
    color: var(--blue-light);
}

.profile-card h2 {
    margin: 26px 0 10px;
    font-size: 1.15rem;
}

.profile-card h2:first-child {
    margin-top: 0;
}

.profile-section + .profile-section {
    margin-top: 28px;
}

.profile-section p:last-child {
    margin-bottom: 0;
}

.skills-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .site-header,
    .site-footer {
        width: calc(100% - 32px);
    }

    .header-label {
        max-width: 130px;
        text-align: right;
    }

    .hero,
    .team-section,
    .profile-page {
        width: calc(100% - 32px);
    }

    .hero {
        padding: 76px 0 82px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        padding: 16px 0;
    }

    .motto,
    .version {
        margin-bottom: 0;
    }
}
