/* ================================================================
 *  demo-factory-1.css — Framo theme for the Factory & Manufacturing demo
 *
 *  The colors, fonts and layout settings of the Factory & Manufacturing demo
 *  (Framo Manufacturing, contract metal manufacturer in Grand Rapids, Michigan):
 *  an industrial red for the actions, steel-black for the header, the bands
 *  and the footer, a concrete ground, a steel grey for meta and a signal
 *  white for marks on the steel-black.
 *  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 — self-hosted. Barlow Condensed sets the
   uppercase headings, Inter the body, JetBrains Mono the code/meta text.
   This local stylesheet is generated from the Google Fonts CSS and lives in
   assets/fonts/ next to its woff2 files. This @import must stay the first
   rule in the file. */
@import url("../../fonts/barlow-condensed_inter_jetbrains-mono-d0affc69.css");

/* 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:    #d42a20;   /* main color: industrial red for buttons, links and focus; labels on it are white */
    --color-secondary-base:  black;   /* second col xor: steel-black for the nav bar, the bands and the footer; the dark scheme takes its hue */
    --color-tertiary-base:   #eeeeeb;   /* third color: concrete, the page and soft fills */
    --color-quaternary-base: #5b636b;   /* fourth color: steel, for meta */
    --color-accent-base:     #fafaf8;   /* attention color: signal white, for marks on the steel-black */

    /* Readable text (-ink), text on each fill (on-) and hover are derived
       from the seeds. */
    --color-on-primary: #fff;   /* labels on the brand fill: white (a preset picks its own) */

    /* ------------------------------------------------------------
     *  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 */
    --color-text-soft:   oklch(from var(--color-secondary-base) 0.44 calc(c * 0.6) h);   /* secondary text: the ink softened */
    --color-text-muted:  oklch(from var(--color-quaternary-base) 0.52 c h);   /* meta text */
    --color-bg:          var(--color-tertiary-base);   /* page background */
    --color-bg-soft:     oklch(from var(--color-tertiary-base) calc(l - 0.035) calc(c * 1.3) h);   /* a step deeper */
    --color-bg-muted:    oklch(from var(--color-tertiary-base) calc(l - 0.06) calc(c * 1.6) h);   /* hover fills */
    --color-border:      oklch(from var(--color-tertiary-base) calc(l - 0.08) calc(c * 1.6) h);   /* lines and borders */
    --color-border-soft: oklch(from var(--color-tertiary-base) calc(l - 0.05) calc(c * 1.4) h);   /* the faintest rules */
    --color-dark:        var(--color-secondary-base);   /* dark sections and dark buttons */
    /* Brand-coloured text on light grounds: the red deepened so a small label or link reads on concrete (the seed is about 4.3:1) */
    --color-primary-ink: oklch(from var(--color-primary-base) min(l, 0.5) c h);

    /* ------------------------------------------------------------
     *  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: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;   /* headings, tags 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;
    --btn-font-weight:    600;                     /* 500–700 */
    --btn-letter-spacing: 0.01em;                  /* button tracking */
    --btn-text-transform: none;                    /* or uppercase: buttons in capitals */

    /* ------------------------------------------------------------
     *  SHAPE
     * ------------------------------------------------------------ */
    --radius-scale:        0;     /* corner rounding: 0 square · 0.5 subtle · 1 · 1.5 round */
    --btn-radius-override: 0px;     /* one shape for every button: 0px square · 0.5rem rounded · 9999px pill */

    /* ------------------------------------------------------------
     *  LAYOUT
     * ------------------------------------------------------------ */
    --container-max: 1440px;   /* widest content column (1140px, 1280px, 1320px, 1440px …) */
    --section-y-scale: 1.15; /* space between sections: 0.75 compact · 1 · 1.25 spacious */
}
