/* The style rules that are the same on every page of the site. Each page links this file from its shared head
 * block, before its own <style> block, so a rule of a page comes later and wins over a rule here with the same
 * weight. A rule moves here only when all the pages carry it; the rules of one page stay in that page. */

:root {
    color-scheme: dark;
    --bg-deep: #020c1b;
    --bg-light: #0a192f;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --accent: #64ffda;   /* Electric Cyan */
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Keyboard access --- */
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    background: var(--accent);
    color: var(--bg-deep);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-300%);
}

.skip-link:focus {
    transform: none;
}

/* --- Navigation --- */
.brand img {
    height: 3.5rem;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- Footer --- */
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3.5rem;
}

.footer-brand img {
    height: 3.5rem;
    width: auto;
    margin-bottom: 1.2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 320px;
    line-height: 1.5;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-col a,
.footer-col span {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 0.7rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
