/* Shared by every page: design tokens, fonts, nav, footer. Page stylesheets load after this. */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); }

:root {
    --ink: #15171c;
    --ink-2: #3d424b;
    --muted: #5a606b;
    --faint: #8a8f98;
    --bg: #f7f6f3;
    --card: #ffffff;
    --line: #e3e1dc;
    --line-2: #eceae5;
    --line-3: #f0eee9;
    --action: #1f5fbf;              /* buttons and links only, never status */
    --good: #2e7d4f;
    --good-bg: #e8f3ec;
    --warn: #a86a0c;
    --warn-bg: #f8efdd;
    --bad: #b8372b;
    --bad-bg: #f8e6e3;
    --neutral-bg: #eceae5;
    --dark: #15171c;
    --dark-line: #33363d;
    --dark-text: #c4c1ba;
    --r-sm: 5px;
    --r-md: 7px;
    --r-lg: 10px;
    --r-xl: 14px;
    --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
    font-family: inherit;
}

code, kbd, pre, samp {
    font-family: var(--font-mono);
}

.eyebrow {
    font: 500 12px/1.4 var(--font-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 246, 243, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.nav-logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.nav-logo-text {
    font: 600 19px var(--font-mono);
    letter-spacing: -.02em;
    color: var(--ink);
}

.logo-bracket {
    color: var(--action);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 480px;
    gap: 6px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.nav-links a {
    color: var(--ink-2);
    text-decoration: none;
}

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

.nav-links .nav-links-signin {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: none;
    margin-left: auto;
    white-space: nowrap;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-signin {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}

.nav-signin:hover {
    color: var(--action);
}

.nav-active {
    color: var(--ink) !important;
    font-weight: 600;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.nav-username {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.nav-signout {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.nav-signout:hover {
    color: var(--ink);
}

.nav-cta {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--ink);
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    color: #fff;
    background: var(--action);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 4px;
}

.nav-hamburger span,
.nav-hamburger span::before,
.nav-hamburger span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
}

.nav-hamburger span {
    position: relative;
}

.nav-hamburger span::before,
.nav-hamburger span::after {
    content: '';
    position: absolute;
}

.nav-hamburger span::before { top: -6px; }
.nav-hamburger span::after { top: 6px; }

.nav-hamburger.active span { background: transparent; }
.nav-hamburger.active span::before { top: 0; transform: rotate(45deg); }
.nav-hamburger.active span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
    .nav-container {
        position: relative;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .nav-hamburger {
        display: block;
        order: 3;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 16px;
        padding: 16px 24px;
        font-size: 15px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px -16px rgba(21, 23, 28, .25);
    }

    .nav-links.nav-open {
        display: flex;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 12px 16px;
        gap: 8px;
    }

    .nav-links {
        padding: 16px;
    }

    /* The sign-in link moves into the menu so the logo and CTA fit on one row. */
    .nav-links .nav-links-signin {
        display: block;
    }

    .nav-auth {
        display: none;
    }

    .nav-cta {
        padding: 8px 12px;
    }
}

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

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

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