@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --surface-light: #171717;
    --yellow: #ffbd00;
    --white: #f5f5f5;
    --muted: #a0a0a0;
    --border: #2a2a2a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--white);
    font-family: "IBM Plex Sans", sans-serif;
    text-align: left;
    padding: 0;
}

/* =========================
   HEADER
   ========================= */

.home-header {
    width: 100%;
    min-height: 82px;
    padding: 18px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidc-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-family: "Chakra Petch", sans-serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
}

.brand-university {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.4px;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.home-nav a {
    color: var(--white);
    text-decoration: none;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    transition: color 0.2s ease;
}

.home-nav a:hover {
    color: var(--yellow);
}

.uwm-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin: 0;
}

/* =========================
   HERO
   ========================= */

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 105px 6% 75px;
}

.hero-label {
    color: var(--yellow);
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-label::before {
    content: "> ";
}

.hero h1 {
    max-width: 900px;
    margin: 0 0 24px;
    color: var(--white);
    font-family: "Chakra Petch", sans-serif;
    font-size: clamp(48px, 7vw, 86px);
    line-height: 0.98;
    font-weight: 700;
    text-align: left;
    letter-spacing: -2px;
}

.hero-description {
    max-width: 700px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

/* =========================
   CARDS
   ========================= */

.home-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6% 80px;
}

.section-label {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.home-card {
    min-height: 290px;
    padding: 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease;
}

.home-card:hover {
    border-color: var(--yellow);
    background: var(--surface-light);
    transform: translateY(-4px);
}

.card-number {
    color: var(--yellow);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    margin-bottom: 22px;
}

.home-card h2 {
    color: var(--white);
    font-family: "Chakra Petch", sans-serif;
    font-size: 30px;
    font-weight: 600;
    text-align: left;
    margin: 0 0 14px;
}

.home-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    text-align: left;
}

.card-link {
    display: inline-block;
    margin-top: 150px;
    color: var(--yellow);
    text-decoration: none;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    font-weight: 500;
}

.card-link::after {
    content: "  →";
}

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

/* =========================
   VISITOR COUNT
   ========================= */

.visitor-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6% 55px;
}

.visitor-box {
    padding: 18px 22px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visitor-label {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#visitor-count {
    color: var(--yellow);
    font-family: "IBM Plex Mono", monospace;
    font-size: 15px;
}

/* =========================
   FOOTER
   ========================= */

.home-footer {
    margin-top: 60px;
    padding: 28px 6%;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.home-footer p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
    text-align: left;
}

.home-footer a {
    color: var(--yellow);
    text-decoration: none;
}

.home-footer a:hover {
    text-decoration: underline;
}

.footer-lab-link {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 800px) {

    .home-header {
        padding: 16px 5%;
        flex-wrap: wrap;
        gap: 18px;
    }

    .home-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
        padding-top: 8px;
    }

    .uwm-logo {
        height: 40px;
    }

    .hero {
        padding: 75px 5% 55px;
    }

    .hero h1 {
        font-size: clamp(42px, 12vw, 65px);
    }

    .hero-description {
        font-size: 16px;
    }

    .home-content {
        padding: 0 5% 60px;
    }

    .home-cards {
        grid-template-columns: 1fr;
    }

    .home-card {
        min-height: 250px;
    }

    .visitor-section {
        padding: 0 5% 45px;
    }

    .home-footer {
        padding: 25px 5%;
        flex-direction: column;
        align-items: flex-start;
    }
}
.home-cards .home-card {
    justify-content: flex-start;
}

.home-cards .card-link {
    margin-top: 60px;
}

/* Homepage cards */
body:not(.playground) .home-card .card-link {
    margin-top: 28px;
}

body.playground .home-cards .home-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

body.playground .home-cards .home-card > .card-link {
    margin-top: 60px !important;
}
body.playground .home-cards .home-card {
    min-height: 0;
    height: auto;
}

body.playground .home-cards .home-card > div {
    flex: none;
}

body.playground .home-cards .home-card > .card-link {
    display: block;
    margin-top: 80px !important;
}
