/* ═══════════════════════════════════════════════════════════════════════════
   Murmuration — start page styles
   Dark theme with accent blue, designed for a technical/space aesthetic.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg: #0d1117;
    --bg-alt: #161b22;
    --surface: #1c2128;
    --border: #30363d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --accent-dim: #1f6feb;
    --success: #3fb950;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: url("img/hero.jpeg") center/cover no-repeat;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    width: 100%;
    padding: 3rem 2rem;
    background: linear-gradient(transparent, rgba(13, 17, 23, 0.85) 40%, var(--bg));
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.hero .tagline {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.hero .sub {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ─── Sections ─────────────────────────────────────────────────────────────── */

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section.alt {
    background: var(--bg-alt);
    max-width: 100%;
}

.section.alt > h2,
.section.alt > p,
.section.alt > .cards {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.section > p {
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 1.5rem;
}

/* ─── Images ───────────────────────────────────────────────────────────────── */

.img-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.img-full {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* ─── Cards ────────────────────────────────────────────────────────────────── */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    transition: border-color 0.2s, transform 0.15s;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.card-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.card-link:hover {
    border-color: var(--accent-dim);
    transform: translateY(-2px);
    text-decoration: none;
}

.card-link:hover h3 {
    color: var(--accent);
}

/* ─── MLP badge ────────────────────────────────────────────────────────────── */

.mlp-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.8rem;
    background: var(--accent-dim);
    color: var(--text);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .tagline { font-size: 1rem; }
    .cards { grid-template-columns: 1fr; }
}
