/* ============================================================================
   MONDO.CSS — the Oct 12 2026 brand skin (Mondo Rain's direction)
   ----------------------------------------------------------------------------
   One typeface (Commit Mono, Mondo's customised build, loaded by tokens.css),
   uppercase throughout, letter spacing 200 (0.2em) on titles/labels/buttons
   and 0.1em on body text, rounded pill chrome, no text underlines.

   COLOUR (Oct 18 2026): this file no longer declares any colour values.
   tokens.css owns the palette, including the indigo navy accent and the
   light/dark theme sets; this skin reads the tokens so it works in both
   themes. The acid yellow era ended here: do not reintroduce hex colours
   in this file.

   Accent usage rule (from tokens.css): --spark-accent for FILLS with
   --spark-accent-ink text; --spark-accent-marks for thin marks, small
   labels and text links, because deep navy sinks into black at small
   weights, so the dark theme brightens that one value.

   HOW IT WORKS: each page links this file at the END of <head>, AFTER its
   own <style> block, so equal-specificity rules here win the cascade. The
   class names it targets (.logo, .nav-links, .btn-auth, .footer-logo, ...)
   are the shared vocabulary every Spark page already uses, so one file
   reskins them all. Page-specific components keep their own CSS and pick
   the skin up through inheritance (font, caps) and the tokens.

   featured.html does NOT link this file: it carries the same system inline
   (it was the testbed). Keep the two in sync when the system changes.
   Relies on tokens.css for the palette, --font-commit, --track,
   --track-tight, --radius, --radius-pill.
   ========================================================================== */

/* === TOKENS ============================================================= */
:root {
    /* Components reading --accent follow the brand accent. */
    /* --accent is spent on focus rings, text accents and segs: thin
       marks, so it takes the marks value (azure on dark, navy on light). */
    --accent: var(--spark-accent-marks);

    /* One typeface: every component reading the two font tokens flips. */
    --font-sans: var(--font-commit, 'Commit Mono', 'Courier New', Courier, monospace);
    --font-mono: var(--font-commit, 'Commit Mono', 'Courier New', Courier, monospace);
}

/* === TYPE SYSTEM ======================================================== */
body {
    text-transform: uppercase;
    letter-spacing: var(--track-tight, 0.1em);
}
/* User-generated text keeps its own casing: chat bubbles, thread previews,
   feed captions and comments are people's words, not interface copy. */
.msg-bubble, .msg-bubble *,
.contact-msg-preview,
.cf-caption, .cf-cmt-text {
    text-transform: none;
    letter-spacing: normal;
}

/* === ICONS ============================================================== */
/* Mondo's icon set, served as a sprite from /icons/spark-icons.svg and
   coloured by currentColor. Size per use with width/height attributes. */
.spark-icon {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
    vertical-align: -0.18em;
    fill: currentColor;
}

/* === NAV ================================================================ */
nav {
    padding: 0.45rem 1.5rem;
    background: var(--bg);
}
/* The wordmark waits for the real face: nav.js adds .spark-font-ready to
   <html> once Commit Mono is usable (1.5s cap). Until then the logo is
   invisible rather than painted in a fallback. */
html:not(.spark-font-ready) .logo,
html:not(.spark-font-ready) .spark-float-btn { visibility: hidden; }
.logo {
    /* Pinned to the brand face: on profile pages the body font follows
       the owner's theme, and the Spark wordmark must not (Felix, Oct 13). */
    font-family: var(--font-commit, 'Commit Mono', 'Courier New', monospace);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: var(--text);
    margin-right: 32px;
}
.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: var(--track, 0.2em);
    text-transform: uppercase;
    margin-right: 24px;
    color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
/* Active state is the accent, never underlined. Marks value: it is small
   tracked text, the exact case the brighter dark-theme sibling exists for. */
.nav-links a.active {
    color: var(--spark-accent-marks);
    text-decoration: none;
}

/* Auth/name button: rounded outline pill, regular weight. */
.btn-auth {
    background-color: transparent;
    color: var(--spark-accent-marks);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: var(--track, 0.2em);
    padding: 0.35rem 1rem;
    border: 1px solid var(--spark-accent-border);
    border-radius: var(--radius-pill, 999px);
}
.btn-auth:hover {
    background-color: var(--spark-accent);
    border-color: var(--spark-accent);
    color: var(--spark-accent-ink);
}

.notif-dropdown {
    border-radius: var(--radius, 12px);
    overflow: hidden;
}

/* === BUTTONS AND PILLS ================================================== */
.btn-line, .btn-submit, .btn-google, .btn-hero, .btn-primary,
.seg, .filter-pill {
    border-radius: var(--radius-pill, 999px);
    letter-spacing: 0.15em;
}
/* join-page's email submit: outline pill in the accent, filled on hover. */
.btn-submit {
    background: transparent;
    color: var(--spark-accent-marks);
    border-color: var(--spark-accent-border);
    font-weight: 400;
}
.btn-submit:hover {
    background: var(--spark-accent);
    border-color: var(--spark-accent);
    color: var(--spark-accent-ink);
}

/* === DISPLAY TITLES: regular weight, tracked, never negative =========== */
.q-hero h1, .manifesto-title, .huge-title, .grant-banner-title,
.closing-cta h2, .pillar h2, .hero h1, .card-title, .form-title,
.block-head h2, .gallery-title {
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* === NO TEXT UNDERLINES ================================================= */
/* Prose and CTA links drop their underline rules; the accent marks them. */
.pillar-link, .team-contact a, .footer-link, .step a, .lead a {
    text-decoration: none;
    border-bottom: none;
    color: var(--spark-accent-marks);
}
.pillar-link:hover, .team-contact a:hover, .footer-link:hover, .step a:hover {
    color: var(--text);
}

/* === FOOTER ============================================================= */
.footer-logo {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    letter-spacing: var(--track, 0.2em);
}
.footer-links a {
    font-size: 0.75rem;
    letter-spacing: var(--track, 0.2em);
}