/* haskeller.net - Consultancy Professional Grid */
/* Palette: #fafafa, #ffffff, #1a1a1a, #7c3aed, #ede9fe, #f5f3ff, #737373, #e5e5e5 */
/* Typography: "Inter" (Google Fonts), "Source Code Pro" (Google Fonts) */
/* Using a single font family throughout creates maximum typographic consistency */
/* for a professional network. Display at medium weight, small labels below. */
/* Purple accent line below the heading. subtitle: "The Haskell Developer Network." */
/* Professional entry. thin purple accent line. family:** Inter. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fafafa;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
}

/* ===== HERO (0-100vh) ===== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fafafa;
}

.hero-inner {
    text-align: center;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lambda-mark {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: #7c3aed;
    font-weight: 600;
    line-height: 1;
}

.brand {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1rem;
    color: #737373;
    margin-top: 0.75rem;
    font-weight: 400;
}

.accent-line {
    width: 60px;
    height: 3px;
    background: #7c3aed;
    margin: 1.25rem auto 0;
    border-radius: 2px;
}

/* ===== SECTION HEADING ===== */

.section-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

/* ===== COMMUNITY (100-260vh) ===== */

.community {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

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

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

.profile-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s, background 0.2s, border-left-width 0.2s, border-left-color 0.2s, transform 0.2s;
    position: relative;
}

.profile-card:hover {
    border-color: #7c3aed;
    background: #f5f3ff;
    transform: translateY(-2px);
}

.profile-card:hover .avatar {
    background: #7c3aed;
}

.profile-card:hover .avatar .avatar-initial {
    color: #ffffff;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: background 0.2s;
}

.avatar-initial {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: #7c3aed;
    transition: color 0.2s;
    user-select: none;
}

.profile-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.1rem;
}

.profile-role {
    font-size: 0.75rem;
    color: #7c3aed;
    margin-bottom: 0.6rem;
    font-weight: 400;
    text-transform: lowercase;
}

.profile-desc {
    font-size: 0.85rem;
    color: #737373;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.profile-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background: #f5f3ff;
    border: 1px solid #ede9fe;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-size: 0;
}

.tag code {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: #7c3aed;
    font-weight: 400;
}

/* ===== ACTIVITY (260-340vh) ===== */

.activity {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

.feed-list {
    display: flex;
    flex-direction: column;
}

.feed-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ede9fe;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-initial {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.6rem;
    color: #7c3aed;
    user-select: none;
}

.feed-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: baseline;
    flex: 1;
}

.feed-name {
    font-size: 0;
}

.feed-name code {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    font-weight: 400;
    color: #7c3aed;
}

.feed-action {
    font-size: 0.85rem;
    color: #1a1a1a;
}

.feed-time {
    font-size: 0.75rem;
    color: #737373;
    margin-left: auto;
    white-space: nowrap;
}

/* ===== NETWORK (340vh+) ===== */

.network {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: #fafafa;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 80px;
}

.stat-num {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: #1a1a1a;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.network-divider {
    width: 40px;
    height: 2px;
    background: #e5e5e5;
    margin: 0 auto 2.5rem;
}

.network-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.network-lambda {
    font-size: 2.5rem;
    color: #7c3aed;
    line-height: 1;
}

.network-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #1a1a1a;
}

.network-brand {
    font-size: 0.75rem;
    color: #737373;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ===== ANIMATIONS ===== */

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-inner {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.15s;
}

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

.stat-num.counting {
    transition: color 0.2s;
    color: #7c3aed;
}

.stat-num.counted {
    transition: color 0.4s;
    color: #1a1a1a;
}

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fafafa;
}

::-webkit-scrollbar-thumb {
    background: #e5e5e5;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #737373;
}
