/* ==========================================================
   FirstByte Labs
   Version: 0.1.0
   ========================================================== */

/* ---------- Variables ---------- */

:root {

    --bg: #f8fafc;
    --surface: #ffffff;

    --text: #0f172a;
    --muted: #64748b;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;

    --border: #e2e8f0;

    --success: #16a34a;

    --shadow:
        0 4px 20px rgba(15,23,42,.05);

    --radius: 14px;

    --content-width: 1120px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {

    scroll-behavior: smooth;

}

body {

    margin: 0;

    background: var(--bg);

    color: var(--text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.7;

    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;

}

/* ---------- Typography ---------- */

h1,
h2,
h3 {

    margin-top: 0;

    font-weight: 700;

    line-height: 1.2;

}

h1 {

    font-size: clamp(2.4rem,5vw,4rem);

}

h2 {

    margin-bottom: 2rem;

    font-size: 2rem;

}

p {

    margin: 0;

}

.lead {

    max-width: 760px;

    margin-top: 1.5rem;

    color: var(--muted);

    font-size: 1.2rem;

    margin-inline: auto;

}

/* ---------- Layout ---------- */

.container {

    width: min(100% - 48px, var(--content-width));

    margin-inline: auto;

}

section {

    padding: 5rem 0;

}

/* ---------- Header ---------- */

.site-header {

    position: sticky;

    top: 0;

    z-index: 100;

    backdrop-filter: blur(12px);

    background:
        rgba(248,250,252,.88);

    border-bottom:
        1px solid var(--border);

}

.site-header .container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 74px;

}

/* ---------- Brand ---------- */

.brand {

    display: flex;

    align-items: center;

    gap: .8rem;

    text-decoration: none;

    color: inherit;

    font-weight: 700;

}

.brand img {

    width: 40px;

    height: 40px;

}

/* ---------- Navigation ---------- */

.site-nav {

    display: flex;

    gap: 2rem;

}

.site-nav a {

    color: var(--muted);

    text-decoration: none;

    transition: color .2s;

}

.site-nav a:hover {

    color: var(--accent);

}

/* ---------- Hero ---------- */

.hero {

    padding-top: 8rem;

    padding-bottom: 6rem;

    text-align: center;

}

.hero h1 {

    max-width: 780px;

    margin-inline: auto;

}

.hero::after {

    content: "";

    display: block;

    width: 120px;

    height: 4px;

    margin-top: 2rem;

    border-radius: 999px;

    background: var(--accent);

}

/* ---------- Focus ---------- */

.focus {

    padding-top: 0;

    padding-bottom: 4rem;

}

.focus-list {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: .9rem;

    margin: 0;

    padding: 0;

    list-style: none;

}

.focus-list li {

    padding: .55rem 1rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 999px;

    color: var(--muted);

    font-size: .95rem;

    font-weight: 500;

    transition:
        border-color .2s,
        color .2s,
        transform .2s;

}

.focus-list li:hover {

    color: var(--accent);

    border-color: var(--accent);

    transform: translateY(-2px);

}

/* ---------- Cards ---------- */

.cards {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(260px,1fr));

    gap: 2rem;

}

.card {

    padding: 2rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition:
        transform .2s,
        box-shadow .2s;

}

.card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(15,23,42,.08);

}

.card h3 {

    margin-bottom: 1rem;

}

.card p {

    color: var(--muted);

}

/* ---------- News ---------- */

#news-list {

    display: grid;

    gap: 1rem;

}

/* ---------- Status ---------- */

#status-box {

    display: inline-flex;

    align-items: center;

    gap: .6rem;

    padding:
        .8rem 1.2rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 999px;

    font-weight: 600;

}

#status-box::before {

    content: "";

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: var(--success);

}

/* ---------- Footer ---------- */

footer {

    padding: 3rem 0;

    border-top: 1px solid var(--border);

    color: var(--muted);

    text-align: center;

}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {

    .site-header .container {

        flex-direction: column;

        justify-content: center;

        gap: 1rem;

        padding: 1rem 0;

    }

    .site-nav {

        gap: 1.2rem;

        flex-wrap: wrap;

        justify-content: center;

    }

    section {

        padding: 4rem 0;

    }

}
/* ---------- News ---------- */

.news-item {

    padding: 1.4rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.news-item time {

    display: block;

    margin-bottom: .6rem;

    color: var(--muted);

    font-size: .9rem;

}

.news-item h3 {

    margin-bottom: .8rem;

}

.muted {

    color: var(--muted);

}

.warning {

    color: #b45309;

}

.warning::before {

    background: #f59e0b !important;

}
#status-box {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
}

#status-box small {
    color: var(--muted);
    font-size: .8rem;
}

a {

    color: var(--accent);

    text-decoration: none;

}

a:hover {

    color: var(--accent-hover);

}