/* Base layout for public pages using diagram-phase1 + moonshop-deep-space (nav, typography reset).
   Load after site-nav.css / site-footer.css and before moonshop-space.css + diagram-phase1.css. */

:root {
    --ink: #0a0f1a;
    --chalk: #f8f7f4;
    --accent: #d94432;
    --accent-light: #e8604f;
    --accent-pale: #fdecea;
    --slate: #3d4f5f;
    --mist: #e9ecef;
    --concrete: #6c757d;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--chalk);
    color: var(--ink);
    line-height: 1.5;
}

a {
    color: inherit;
}

/* ── NAV (Phase 1 pages: diagram-phase1.css reskins after this) ── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    background: white;
    border-bottom: 1px solid var(--mist);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    color: var(--ink);
}

.logo-mark {
    height: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--slate);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
    background: transparent;
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
    background: transparent;
}
