/* ============================================
   concengine.net - Scandinavian Functional Design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    color: #2c2c2c;
    background-color: #faf9f6;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 16px;
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin-bottom: 8px;
}

code {
    font-family: 'Inconsolata', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 400;
    background-color: #f0ede6;
    padding: 1px 5px;
    border-radius: 3px;
}

a {
    color: #3d7c98;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Tapered Divider --- */
.tapered-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4cdc0 20%, #d4cdc0 80%, transparent);
    margin: 0;
}

.divider-thin {
    margin: 24px 0;
}

/* --- Hero Section --- */
#hero {
    padding: 120px 24px 80px;
    text-align: center;
    background-color: #faf9f6;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #8a8378;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.hero-title {
    color: #2c2c2c;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.15rem;
    color: #8a8378;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.hero-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #3d7c98;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.hero-link:hover {
    border-bottom-color: #3d7c98;
    text-decoration: none;
}

/* --- Main Content Grid --- */
#contribution-grid {
    padding: 64px 24px;
}

.grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    max-width: 1080px;
    margin: 0 auto;
}

/* --- Section Headings --- */
.section-heading {
    color: #2c2c2c;
    padding-bottom: 12px;
    border-bottom: 1px solid #d4cdc0;
    margin-bottom: 24px;
}

.section-heading-centered {
    text-align: center;
    border-bottom: none;
}

.subsection-heading {
    font-size: 0.85rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: #8a8378;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section-intro {
    color: #8a8378;
    margin-bottom: 32px;
    font-size: 1rem;
}

/* --- Scroll Margin for Anchor Nav --- */
#getting-started,
#contribute,
#roadmap {
    scroll-margin-top: 80px;
}

/* --- Documentation Cards --- */
.doc-card {
    background-color: #f0ede6;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 24px;
}

.doc-card-title {
    color: #2c2c2c;
}

.doc-card-text {
    color: #2c2c2c;
    margin-bottom: 16px;
}

.code-block {
    background-color: #2c2c2c;
    color: #faf9f6;
    padding: 16px 20px;
    border-radius: 6px;
    overflow-x: auto;
    line-height: 1.6;
}

.code-block code {
    background: none;
    padding: 0;
    color: #faf9f6;
    font-size: 0.85rem;
}

.contribute-list {
    padding-left: 20px;
    color: #2c2c2c;
}

.contribute-list li {
    margin-bottom: 8px;
}

.feature-list {
    padding-left: 20px;
    color: #2c2c2c;
}

.feature-list li {
    margin-bottom: 6px;
}

/* --- Activity Feed --- */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.activity-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background-color: #d4cdc0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    color: #2c2c2c;
    line-height: 1;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.55rem;
}

.activity-details {
    flex: 1;
}

.activity-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #2c2c2c;
    margin-bottom: 2px;
}

.activity-meta {
    font-size: 0.85rem;
    color: #8a8378;
    line-height: 1.4;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 0.78rem;
    color: #8a8378;
    display: block;
}

/* --- Contributors Row --- */
.contributors-section {
    margin-bottom: 8px;
}

.contributors-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.contributor-count {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    color: #8a8378;
    margin-left: 4px;
}

/* --- Stats Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background-color: #f0ede6;
    border-radius: 6px;
}

.stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #2c2c2c;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.78rem;
    color: #8a8378;
    margin-top: 2px;
}

/* --- Roadmap Section --- */
#roadmap {
    padding: 64px 24px;
    background-color: #faf9f6;
}

.roadmap-container {
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-intro {
    text-align: center;
    color: #8a8378;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #d4cdc0;
    transform: translateX(-50%);
}

.timeline-entry {
    position: relative;
    width: 50%;
    padding: 0 0 40px;
}

.timeline-left {
    padding-right: 40px;
    margin-left: 0;
}

.timeline-right {
    padding-left: 40px;
    margin-left: 50%;
}

/* Timeline dots */
.timeline-entry::after {
    content: '';
    position: absolute;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d4cdc0;
    border: 2px solid #faf9f6;
}

.timeline-left::after {
    right: -5px;
}

.timeline-right::after {
    left: -5px;
}

.timeline-card {
    background-color: #f0ede6;
    padding: 24px;
    border-radius: 8px;
}

.timeline-date {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: #8a8378;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 6px;
}

.timeline-title {
    color: #2c2c2c;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.92rem;
    color: #2c2c2c;
    margin-bottom: 12px;
    line-height: 1.65;
}

/* --- Status Badges --- */
.badge {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-shipped {
    background-color: #5a9a6e;
    color: white;
}

.badge-progress {
    background-color: #c4883a;
    color: white;
}

.badge-planned {
    background-color: #d4cdc0;
    color: #2c2c2c;
}

/* --- Principles Section --- */
#principles {
    padding: 64px 24px;
    background-color: #faf9f6;
}

.principles-container {
    max-width: 900px;
    margin: 0 auto;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 32px;
}

.principle-item {
    padding: 20px;
}

.principle-title {
    color: #2c2c2c;
    margin-bottom: 12px;
}

.principle-text {
    color: #8a8378;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Release Card --- */
.release-section {
    margin-bottom: 8px;
}

.release-card {
    background-color: #f0ede6;
    padding: 20px;
    border-radius: 8px;
}

.release-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.release-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #2c2c2c;
}

.release-notes {
    font-size: 0.92rem;
    color: #2c2c2c;
    line-height: 1.65;
}

/* --- Channel List --- */
.channel-list {
    list-style: none;
    padding-left: 0;
}

.channel-list li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.channel-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #2c2c2c;
}

.channel-desc {
    font-size: 0.9rem;
    color: #8a8378;
}

/* --- Doc Card Text Muted --- */
.doc-card-text-muted {
    color: #8a8378;
    font-style: italic;
}

/* --- Footer --- */
#site-footer {
    padding: 48px 24px;
    text-align: center;
    background-color: #f0ede6;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    font-size: 0.92rem;
    color: #8a8378;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #3d7c98;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.82rem;
    color: #8a8378;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    #hero {
        padding: 80px 20px 60px;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-entry {
        width: 100%;
        padding-left: 48px;
        padding-right: 0;
    }

    .timeline-left {
        padding-right: 0;
        margin-left: 0;
    }

    .timeline-right {
        padding-left: 48px;
        margin-left: 0;
    }

    .timeline-entry::after {
        left: 11px;
        right: auto;
    }

    .hero-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

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

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .channel-list li {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .doc-card {
        padding: 20px;
    }

    .timeline-card {
        padding: 18px;
    }
}
