/* ==========================================================================
   Fort Collins Plastics - design tokens
   Direction: "The Material". Neutral ground, colour comes from real stock.
   Brand navy #284080 sampled directly from the FCP mountain wordmark.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/archivo-400_800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/archivo-400_800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/plexmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/plexmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  /* --- brand ------------------------------------------------------------ */
  --navy: #284080;          /* exact wordmark navy */
  --navy-deep: #182858;     /* wordmark shadow navy */

  /* --- surfaces: cool paper, the blue-white of acrylic masking film ------ */
  --paper: #f4f5f7;
  --paper-raised: #ffffff;
  --paper-sunk: #e9ebef;

  /* --- ink -------------------------------------------------------------- */
  --ink: #0e1730;
  --ink-2: #40495e;         /* secondary copy, 7.0:1 on --paper */
  --ink-3: #5d6678;         /* meta / captions, 4.9:1 on --paper */

  /* --- lines ------------------------------------------------------------ */
  --rule: #ccd1da;
  --rule-strong: #a8b0bf;
  --control-border: #788398; /* distinguish fields on both light and dark surfaces */

  /* --- the single UI accent. Locked. ------------------------------------ */
  --accent: var(--navy);
  --accent-ink: #ffffff;    /* text on accent, 8.6:1 */
  --accent-hover: #1d306a;

  /* --- chrome (nav + footer) -------------------------------------------- */
  --chrome: #131c33;
  --chrome-ink: #e8eaf0;
  --chrome-ink-dim: #9aa3ba;
  --chrome-rule: #2a3450;

  /* --- focus ------------------------------------------------------------ */
  --focus: #3d5fc0;

  /* --- status. Semantic only, never used as decoration. ----------------- */
  --ok: #1c6b4b;
  --ok-bg: #e7f2ec;
  --err: #a3271b;
  --err-bg: #fbeae7;

  /* --- type ------------------------------------------------------------- */
  --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- weights: Geometr415 has exactly two faces ------------------------- */
  --w-light: 400;
  --w-medium: 600;

  /* --- one heading scale for every page ---------------------------------- */
  --type-hero: clamp(3.25rem, 6.6vw, 6rem);        /* every hero H1 */
  --type-page: clamp(2.5rem, 4.4vw, 4.25rem);      /* Fun Builds, 404, legal H1 */
  --type-statement: clamp(3rem, 6.2vw, 5.75rem);   /* at most two per page */
  --type-section: clamp(2.1rem, 4vw, 3.75rem);     /* section H2, .t-h2 */
  --type-sub: clamp(1.4rem, 2.1vw, 2.1rem);        /* H3, interior band H2 */

  /* --- measure ---------------------------------------------------------- */
  --page: 1760px;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  /* --- rhythm ----------------------------------------------------------- */
  --section-y: clamp(2.5rem, 4vw, 4rem);
  --section-compact: clamp(1.5rem, 2.5vw, 2.5rem);
  --layout-gap: clamp(1.5rem, 3vw, 3rem);
  --content-gap: clamp(1rem, 2vw, 2rem);

  /* --- softer interface shapes; physical stock keeps its own geometry --- */
  --radius-small: 8px;
  --radius-control: 12px;
  --radius-panel: 16px;
  --radius-photo: 24px;
  --radius: var(--radius-control);

  /* --- motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 180ms;
  --slow: 620ms;
}

/* --------------------------------------------------------------------------
   Material colours. These are CONTENT, not decoration: each one is the real
   colour of the stock as it sits on the rack. They are the fallback shown in
   a material tile until Kent's photography lands in the same slot.
   -------------------------------------------------------------------------- */
:root {
  --m-acrylic-clear: #dfe9ee;
  --m-acrylic-edge: #6fb3a8;   /* the green-cyan glow on a freshly cut edge */
  --m-acrylic-color: #b4361f;  /* the standard 2157 red off the rack */
  --m-polycarb: #e2e0d5;
  --m-hdpe: #eceff0;           /* milky natural */
  --m-uhmw: #e4e6e2;
  --m-black: #22242a;          /* matte black HDPE / UHMW / ABS */
  --m-acetal: #e8e3d6;         /* natural Delrin off-white */
  --m-nylon: #ddd0b6;          /* natural cream */
  --m-phenolic: #6a4a32;       /* canvas brown */
  --m-mirror: #c5cbd2;
  --m-pvc: #f0f1ee;            /* expanded PVC flat white */
  --m-styrene: #f2f3f3;
  --m-coroplast: #d8dde0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1524;
    --paper-raised: #161d30;
    --paper-sunk: #0a0f1b;

    --ink: #e9ecf3;
    --ink-2: #b3bbcd;         /* 8.9:1 on --paper */
    --ink-3: #8b93a8;         /* 5.4:1 on --paper */

    --rule: #2a3247;
    --rule-strong: #3d4760;

    /* navy lifted so it stays the brand hue but clears AA on a dark ground */
    --accent: #6d8ee0;
    --accent-ink: #0b1020;    /* 9.1:1 */
    --accent-hover: #8aa5e9;

    --chrome: #0a0f1b;
    --chrome-ink: #e9ecf3;
    --chrome-ink-dim: #8b93a8;

    --focus: #8aa5e9;

    --ok: #6cc79b;
    --ok-bg: #12241c;
    --err: #ef8878;
    --err-bg: #2a1512;

    /* materials read slightly deeper against a dark ground */
    --m-acrylic-clear: #2c3f4a;
    --m-hdpe: #c9ced1;
    --m-uhmw: #c2c6c2;
    --m-pvc: #ccd0cd;
    --m-styrene: #ced1d1;
    --m-polycarb: #bfbdb2;
    --m-acetal: #c6c1b4;
    --m-mirror: #9aa2ab;
    --m-coroplast: #b4babe;
  }
}

/* BRAND FONT: START (generated by scripts/configure-brand-font.py) */
@font-face {
  font-family: "Geometr415";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/brand/geometr415-light.woff2") format("woff2");
}

@font-face {
  font-family: "Geometr415";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/brand/geometr415-light-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Geometr415";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/brand/geometr415-medium.woff2") format("woff2");
}

@font-face {
  font-family: "Geometr415";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/brand/geometr415-medium-italic.woff2") format("woff2");
}

:root {
  --sans: "Geometr415", 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-synthesis: none;
}
/* BRAND FONT: END */
