/* CAMPFIRE BRAND LAYER — loads after style.css.
   One place for colour, type and the shared nav/footer. */

:root {
    --char: #121010;
    --ash: #1c1816;
    --ash-2: #241f1c;
    --line: #34291f;
    --ember: #ff6a1a;
    --amber: #ffb347;
    --bone: #f2e9df;
    --smoke: #9a8f86;

    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

body {
    font-family: var(--font-body);
    background: var(--char);
    color: var(--bone);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.015em; }
code { font-family: var(--font-mono); }
::selection { background: var(--ember); color: var(--char); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

/* ---------- NAV ---------- */
.cf-nav {
    position: sticky; top: 0; z-index: 100;
    height: 70px;
    display: flex; align-items: center; gap: 32px;
    padding: 0 clamp(20px, 4vw, 48px);
    background: rgba(18, 16, 16, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.cf-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--bone); text-decoration: none;
    font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
}
.cf-brand img { display: block; }
.cf-links { display: flex; gap: 6px; margin-right: auto; }
.cf-links a {
    position: relative;
    padding: 8px 12px;
    color: var(--smoke); text-decoration: none; font-size: 14px; font-weight: 500;
    border-radius: 6px;
    transition: color .15s;
}
.cf-links a:hover { color: var(--bone); }
.cf-links a.is-active { color: var(--bone); }
.cf-links a.is-active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
    height: 2px; background: var(--ember); border-radius: 2px;
}
.cf-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cf-links + .cf-actions { margin-left: 0; }
.cf-join {
    padding: 10px 18px;
    background: var(--ember); color: var(--char);
    border: 0; border-radius: 8px;
    font: 600 14px var(--font-body);
    cursor: pointer;
    transition: background .15s;
}
.cf-join:hover { background: var(--amber); }
.cf-menu-toggle {
    display: none;
    background: none; border: 1px solid var(--line); border-radius: 8px;
    color: var(--bone); font-size: 18px; padding: 6px 12px; cursor: pointer;
}
.cf-nav .member-nav-button { color: var(--bone); }

@media (max-width: 900px) {
    .cf-nav { gap: 12px; }
    .cf-menu-toggle { display: block; margin-left: auto; order: 3; }
    .cf-actions { order: 2; }
    .cf-links {
        display: none;
        position: absolute; top: 70px; left: 0; right: 0;
        flex-direction: column; gap: 0; margin: 0;
        padding: 8px 20px 16px;
        background: var(--char); border-bottom: 1px solid var(--line);
    }
    .cf-links.mobile-menu-open { display: flex; }
    .cf-links a { padding: 14px 4px; border-bottom: 1px solid var(--ash-2); border-radius: 0; }
    .cf-links a.is-active::after { display: none; }
    .cf-nav #nav-member-name { display: none; }
}

/* ---------- FOOTER ---------- */
.cf-footer {
    margin-top: 80px;
    padding: 56px clamp(20px, 4vw, 48px) 28px;
    background: var(--ash);
    border-top: 1px solid var(--line);
}
.cf-footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.cf-footer-brand p { max-width: 38ch; margin: 16px 0 0; color: var(--smoke); line-height: 1.6; font-size: 14px; }
.cf-footer h4 { margin: 0 0 14px; font-size: 14px; color: var(--bone); }
.cf-footer nav { display: flex; flex-direction: column; gap: 10px; }
.cf-footer nav a { color: var(--smoke); text-decoration: none; font-size: 14px; }
.cf-footer nav a:hover { color: var(--amber); }
.cf-footer-base {
    max-width: 1200px; margin: 40px auto 0; padding-top: 20px;
    border-top: 1px solid var(--line);
}
.cf-footer-base p { margin: 0; color: var(--smoke); font-size: 13px; line-height: 1.6; }
@media (max-width: 700px) {
    .cf-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- LESS EMOJI ---------- */
/* Retire decorative emoji drawn by the old stylesheet */
#log-of-the-day .log-label::before,
#live-fire .live-fire-card::before { content: none !important; }

/* Five-dot rating (replaces the log emoji) */
.logs, .big-rating, .metric-rating, .index-rating-logs, #log-token-rating-icons {
    color: var(--ember);
    letter-spacing: 0.18em;
    font-family: var(--font-body);
}

/* Brand mark in the login popup and community sidebar */
.campfire-auth-flame img, .dashboard-brand img { display: block; margin: 0 auto; }
.dashboard-brand img { margin: 0; }

/* Letter fallback when a project has no logo image */
.project-icon:empty { display: none; }
.project-icon:not(:empty):not(.project-token-image):not(:has(img)) {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--ash-2); color: var(--amber);
    font: 700 18px var(--font-display);
}
