@import url('/css/keplerworks-tokens.css');

/* Base layout for public pages using diagram-phase1 + keplerworks-deep-space (nav, typography reset).
   Load after site-nav.css / site-footer.css and before keplerworks-space.css + diagram-phase1.css.
   Palette: keplerworks-tokens.css + docs/DESIGN-TOKENS.md */

* {
    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: 66px;
    min-height: 66px;
    max-height: 66px;
    overflow: hidden;
    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: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.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;
}
