/* ============================================================
   Half Mile Games — Shared Stylesheet
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Navigation
   ============================================================ */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    border-bottom: 1px solid #e8e8e8;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
}

nav ul a:hover {
    opacity: 0.5;
}

nav ul a.active {
    border-bottom-color: #1a1a1a;
}

/* ============================================================
   Main Content
   ============================================================ */

main {
    flex: 1;
}

/* ============================================================
   Page Header (used on inner pages)
   ============================================================ */

.page-header {
    padding: 4rem 3rem 3rem;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ============================================================
   Section utility
   ============================================================ */

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 1.5rem;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
    border-top: 1px solid #e8e8e8;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: auto;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
    background: #1a1a1a;
    color: #ffffff;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-copy {
    font-size: 0.75rem;
    color: #bbb;
    letter-spacing: 0.05em;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 680px) {
    nav {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    .page-header {
        padding: 3rem 1.5rem 2rem;
    }

    footer {
        padding: 2rem 1.5rem;
    }
}
