/* ================================================================
 *  demo-software-dev-1.css — Bitwisely theme (from Framo's Software Development demo)
 *
 *  The colors, fonts and layout settings of the Software Development demo
 *  (Framo Labs, a software engineering and cloud consultancy).
 *   *  Its pages load this file after the template's own CSS, so a value set
 *  here wins. Each brand color generates its own scale of tints and
 *  shades — change one line, the whole palette follows.
 *
 *  Your own CSS goes in custom.css, which loads after this file.
 * ================================================================ */

/* Body, heading and code fonts (Google Fonts). Change a family here, then
   name it in --font-sans / --font-heading below. Keep JetBrains Mono in
   the URL: code blocks use it (--font-mono). This @import must stay the
   first rule in the file. Pages preload this URL on their own (the build
   reads it from here).
   Inter throughout: 600 leads, 300 for the quiet half of a headline, the
   true italic (600) for one marked word. Mono only for real code. */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400;1,14..32,500;1,14..32,600&family=JetBrains+Mono:wght@400;500&display=swap");

/* Dark scheme: take ONE of these two lines out of this comment.
@import url("../dark.css");                                     the whole site dark
@import url("../dark.css") (prefers-color-scheme: dark);        dark when the visitor's system is
*/

:root {

    /* ------------------------------------------------------------
     *  BRAND COLORS
     * ------------------------------------------------------------ */
    --color-primary-base:    #5b46ff;   /* main color: electric violet for buttons, links and focus; labels on it are white (5.6:1) */
    --color-secondary-base:  #0b0a1f;   /* second color: ink for the bands, the menu and the footer; the dark scheme takes its hue */
    --color-tertiary-base:   #f5f5fb;   /* third color: cool white, the page and soft fills */
    --color-quaternary-base: #5f6082;   /* fourth color: slate, for meta and small marks */
    --color-accent-base:     #35e6b4;   /* attention color: mint (a lit bit), for connectors and live nodes */

    /* Readable text (-ink), text on each fill (on-) and hover are derived
       from the seeds. */

    /* ------------------------------------------------------------
     *  NEUTRALS
     *  Tinted by the seeds above, so a Style Switcher preset retints them
     *  too. A plain hex here fixes one for good.
     * ------------------------------------------------------------ */
    --color-text:      var(--color-secondary-base);   /* headings and body text (#0b0a1f) */
    --color-text-soft: oklch(from var(--color-tertiary-base) 0.438 calc(c * 7.424) calc(h - 0.5));   /* secondary text (#46526a) */
    --color-bg:        var(--color-tertiary-base);   /* page background (#f5f5fb) */
    --color-bg-soft:   oklch(from var(--color-quaternary-base) 0.9481 calc(c * 0.257) calc(h + 1.5));   /* a step deeper (#eaeef5) */
    --color-border:    oklch(from var(--color-quaternary-base) 0.9111 calc(c * 0.375) calc(h + 0.4));   /* lines and borders (#dce2ec) */
    /* Labels on the primary: white (the demo's choice), dark only on a very light primary */
    --color-on-primary: oklch(from var(--color-primary-base) clamp(0.2, (0.75 - l) * 1000, 1) 0 0);
    --color-dark:      var(--color-secondary-base);   /* dark sections and dark buttons (#0b0a1f) */

    /* ------------------------------------------------------------
     *  TYPOGRAPHY
     * ------------------------------------------------------------ */
    --text-scale: 1;   /* text size, spacing follows: 0.875 = 14px · 1 = 16px · 1.125 = 18px */

    --font-sans:    'Inter', system-ui, sans-serif;   /* body text */
    --font-heading: 'Inter', system-ui, sans-serif;   /* headings and figures */
    --font-serif:   'Instrument Serif', Georgia, 'Times New Roman', serif;   /* italic accents */
    --font-tertiary: 'Urbanist', system-ui, sans-serif;   /* display accents (unused so far) */

    /* Stylesheets of the accent fonts, fetched only on pages that use them.
       Change a family above and its URL here together. Set one to "" to
       load nothing, e.g. when that font is a system font. */
    --font-serif-src:    "https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap";
    --font-tertiary-src: "https://fonts.googleapis.com/css2?family=Urbanist:wght@500;600;700;800;900&display=swap";

    /* Headings and buttons */
    --heading-weight:     600;
    --heading-tracking:   -0.025em;
    --btn-font-weight:    600;                     /* 500–700 */
    --btn-letter-spacing: 0;                       /* button tracking */
    --btn-text-transform: none;                    /* or uppercase: buttons in capitals */

    /* ------------------------------------------------------------
     *  SHAPE
     * ------------------------------------------------------------ */
    --radius-scale:        0.5;     /* corner rounding: 0 square · 0.5 subtle · 1 · 1.5 round */
    --btn-radius-override: 0.375rem;/* one shape for every button: 0px square · 0.5rem rounded · 9999px pill */

    /* ------------------------------------------------------------
     *  LAYOUT
     * ------------------------------------------------------------ */
    --container-max: 1360px;   /* widest content column (1140px, 1280px, 1320px, 1440px …) */
    --section-y-scale: 1.2;   /* space between sections: 0.75 compact · 1 · 1.25 spacious */
}
