/* ==========================================================================
   Theme of the iv-automation company site: warm graphite with yellow, taken from the logo (circuit traces, JetBrains Mono). Only the tokens (colours, heading typeface, hero strip) of
   site.css are replaced, so the layout and every component stay the same as on the product sites (the same approach as the product themes). Loaded by
   _IvLayout. Yellow is the button and accent colour; links and small headings use a dark amber because yellow is too light as text on white.
   Light is the base; the dark rules come from the visitor's setting or an explicit data-theme.
   ========================================================================== */

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono/JetBrainsMono-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
:root[data-product="iv"] {
    /* the logo's typeface for headings (self-hosted, SIL OFL 1.1); no decorative circuit strips, the logo carries the circuit */
    --font-heading: "JetBrains Mono", var(--font-mono);
    --heading-tracking: -.035em;
    --h1-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.3rem);

    --bg: #ffffff;
    --bg-alt: #faf8f1;
    --surface: #ffffff;
    --surface-2: #fdfcf7;
    --text: #1c1917;
    --text-strong: #0c0a09;
    --muted: #57534e;
    --border: #e7e5e4;
    --border-strong: #d6d3d1;

    --brand-900: #1c1917;
    --brand: #8a6a00;
    --brand-strong: #6b5200;
    --brand-soft: #fff4c2;
    --accent: #e6ae00;
    --accent-text: #6b5200;
    --on-brand: #ffffff;

    --btn-bg: #ffc400;
    --btn-bg-hover: #e6ae00;
    --btn-fg: #1c1917;

    --focus: #b88700;
    --info-bg: #fffaeb;

    --hero-from: #fff4c2;
    --hero-to: #ffffff;
    --header-bg: rgba(255, 255, 255, .92);
    --footer-bg: #1c1917;
    --footer-text: #d6d3d1;
    --footer-link: #ffffff;
    --shadow: 0 1px 2px rgba(28, 25, 23, .08), 0 6px 18px rgba(28, 25, 23, .08);
    --cta-to: #6b5200;

    --ill-bg: #fffaeb;
    --ill-panel: #ffffff;
    --ill-line: #1c1917;
    --ill-brand: #e6ae00;
    --ill-light: #ffe27a;
    --ill-mute: #d6d3d1;
    --ill-text: #1c1917;
}

@media (prefers-color-scheme: dark) {
  :root[data-product="iv"]:not([data-theme="light"]) {
    --bg: #1c1917;
    --bg-alt: #231f1d;
    --surface: #292524;
    --surface-2: #211e1c;
    --text: #f5f5f4;
    --text-strong: #ffffff;
    --muted: #a8a29e;
    --border: #44403c;
    --border-strong: #57534e;

    --brand: #ffc400;
    --brand-strong: #ffd54a;
    --brand-soft: #3d2f00;
    --accent: #ffc400;
    --accent-text: #ffd54a;

    --btn-bg: #ffc400;
    --btn-bg-hover: #ffd54a;
    --btn-fg: #1c1917;

    --focus: #ffd54a;
    --info-bg: #292524;

    --hero-from: #292524;
    --hero-to: #1c1917;
    --header-bg: rgba(28, 25, 23, .92);
    --footer-bg: #0c0a09;
    --footer-text: #a8a29e;
    --footer-link: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 18px rgba(0, 0, 0, .4);
    --cta-to: #5c4500;

    --ill-bg: #292524;
    --ill-panel: #211e1c;
    --ill-line: #f5f5f4;
    --ill-brand: #ffc400;
    --ill-light: #6b5200;
    --ill-mute: #57534e;
    --ill-text: #f5f5f4;
  }
}

:root[data-product="iv"][data-theme="dark"] {
    --bg: #1c1917;
    --bg-alt: #231f1d;
    --surface: #292524;
    --surface-2: #211e1c;
    --text: #f5f5f4;
    --text-strong: #ffffff;
    --muted: #a8a29e;
    --border: #44403c;
    --border-strong: #57534e;

    --brand: #ffc400;
    --brand-strong: #ffd54a;
    --brand-soft: #3d2f00;
    --accent: #ffc400;
    --accent-text: #ffd54a;

    --btn-bg: #ffc400;
    --btn-bg-hover: #ffd54a;
    --btn-fg: #1c1917;

    --focus: #ffd54a;
    --info-bg: #292524;

    --hero-from: #292524;
    --hero-to: #1c1917;
    --header-bg: rgba(28, 25, 23, .92);
    --footer-bg: #0c0a09;
    --footer-text: #a8a29e;
    --footer-link: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 18px rgba(0, 0, 0, .4);
    --cta-to: #5c4500;

    --ill-bg: #292524;
    --ill-panel: #211e1c;
    --ill-line: #f5f5f4;
    --ill-brand: #ffc400;
    --ill-light: #6b5200;
    --ill-mute: #57534e;
    --ill-text: #f5f5f4;
}

:root[data-product="iv"][data-theme="light"] {
    --bg: #ffffff;
    --bg-alt: #faf8f1;
    --surface: #ffffff;
    --surface-2: #fdfcf7;
    --text: #1c1917;
    --text-strong: #0c0a09;
    --muted: #57534e;
    --border: #e7e5e4;
    --border-strong: #d6d3d1;

    --brand-900: #1c1917;
    --brand: #8a6a00;
    --brand-strong: #6b5200;
    --brand-soft: #fff4c2;
    --accent: #e6ae00;
    --accent-text: #6b5200;
    --on-brand: #ffffff;

    --btn-bg: #ffc400;
    --btn-bg-hover: #e6ae00;
    --btn-fg: #1c1917;

    --focus: #b88700;
    --info-bg: #fffaeb;

    --hero-from: #fff4c2;
    --hero-to: #ffffff;
    --header-bg: rgba(255, 255, 255, .92);
    --footer-bg: #1c1917;
    --footer-text: #d6d3d1;
    --footer-link: #ffffff;
    --shadow: 0 1px 2px rgba(28, 25, 23, .08), 0 6px 18px rgba(28, 25, 23, .08);
    --cta-to: #6b5200;

    --ill-bg: #fffaeb;
    --ill-panel: #ffffff;
    --ill-line: #1c1917;
    --ill-brand: #e6ae00;
    --ill-light: #ffe27a;
    --ill-mute: #d6d3d1;
    --ill-text: #1c1917;
}