/* =====================================================================
   CIVIC THEME  —  Step 1: foundation (palette + typography)
   ---------------------------------------------------------------------
   Additive override for Tappet. Loads AFTER tappet.css and only changes
   colors + fonts — no layout is touched yet. Remove the <link> to revert.

   INSTALL
     1. Save this file as:   tappet/static/css/civic-theme.css
     2. In templates/base_index.html, add this line immediately AFTER the
        existing tappet.css <link>:

          <link rel="stylesheet" href="{% static '/css/civic-theme.css' %}" />

     3. Hard-refresh (Cmd/Ctrl-Shift-R) to bust the CSS cache.
   ===================================================================== */

/* Fonts are loaded once by a <link> in templates/base_index.html
   (IBM Plex Sans, IBM Plex Mono, Newsreader). Use the --font-* tokens
   below; don't name a font family anywhere else. */

/* ---- Palette tokens -------------------------------------------------
   These override the :root custom properties in tappet.css. Because the
   app already draws from these variables, most colors update for free. */
:root {
    --bg-body: #f5f6f8;              /* app background            */
    --bg-secondary-color: #ffffff;  /* post / card surface       */

    --color-one: #1b1f26;           /* primary text (ink)        */
    --color-darkGrey: #3f454e;      /* secondary text            */
    --color-grey: #9aa0ab;          /* muted / meta text         */

    --color-primary: #566277;       /* accent (was gold) — muted slate */

    /* Buttons */
    --color-action: #566277;        /* primary action fill       */
    --color-submit: #566277;        /* submit fill               */
    --color-cancel: #ffffff;        /* cancel fill               */

    /* Status (softer, on-brand) */
    --color-success: #2f8f6b;
    --color-error:   #c0392b;
    --color-warning: #b6810b;
}

/* ---- Typography -----------------------------------------------------
   One set of font tokens for the whole site.
     --font-sans   body + UI            IBM Plex Sans
     --font-mono   labels, meta, code   IBM Plex Mono
     --font-brand  wordmark + headings  IBM Plex Mono
     --font-serif  post / event titles  Newsreader
   Fallbacks are the fonts built into each OS, so text keeps its shape
   if the web fonts fail to load. */
:root {
    --font-sans:  'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono:  'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-brand: var(--font-mono);

    /* chota framework hooks */
    --font-family-sans: var(--font-sans);
    --font-family-mono: var(--font-mono);
}

body {
    font-family: var(--font-sans);
    color: var(--color-one);
    background-color: var(--bg-body);
}

/* Form controls don't inherit font by default in every browser. */
button, input, select, textarea {
    font-family: inherit;
}

/* Wordmark + headings: Plex Mono, semibold, slightly tightened
   (monospace sets wide; a little negative tracking keeps it compact). */
h1, h2, h3 {
    font-family: var(--font-brand);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.brand {
    font-family: var(--font-brand);
    font-weight: 600;
    letter-spacing: -0.03em;
}

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

/* Post titles read as editorial (Newsreader serif). */
.post-title {
    font-family: var(--font-serif);
    font-weight: 600;
}

/* Links inherit ink, not browser blue. */
a { color: var(--color-one); }

/* Primary-action buttons: filled slate with white text.
   (--color-action / --color-submit are now slate, so set readable text.) */
.btn-action,
.btn-submit {
    color: #ffffff;
}
.btn-cancel {
    color: var(--color-darkGrey);
    border: 1px solid #d3d9e6;
}
