/* ============================================================
   Fertex theme. Direction card:
   Base: clinical, re-tuned as a "soil data sheet" (mono labels from tech).
   Palette from the subject: chalk paper ground, humus and peat inks,
   dry loam band, topsoil ink field, chlorophyll accent, lime and
   potash-rust colour fields.
   Type: Geologica (display + body, variable, has Cyrillic),
   IBM Plex Mono for labels, figures and rates. Self-hosted.
   Layout concept: a fertiliser bag label and an agronomist's data sheet;
   facts set as labelled rows, rates in tables, nothing in cards.
   Signature move: the N P K analysis panel printed like a bag label,
   and a mono "spec strip" on every article.
   ============================================================ */

@font-face {
  font-family: "Geologica"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geologica-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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/plex-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/plex-mono-latin-500.woff2") format("woff2");
}

:root {
  --font-display: "Geologica", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geologica", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --w-display: 650;
  --tr-display: -0.03em;
  --tr-h2: -0.025em;
  --lh-display: 0.98;
  --radius: 4px;
  --radius-sm: 3px;
  --radius-button: 3px;
  --case-eyebrow: uppercase;
  --tr-eyebrow: 0.1em;
  --bg: #f6f3ec;          /* chalk paper */
  --surface: #fffdf8;     /* sample bag */
  --surface-2: #ebe5d7;   /* dry loam */
  --ink: #1f1a14;         /* humus */
  --muted-strong: #463c31;/* peat */
  --muted: #5e5346;       /* subsoil */
  --line: #ddd3c1;        /* sieve */
  --line-strong: #bfb39d; /* fence wire */
  --ink-field: #2a2119;   /* wet topsoil */
  --on-ink: #f3eee3;      /* lime dust */
  --on-ink-muted: #cfc4b1;/* straw */
  --accent: #3d7a28;      /* chlorophyll */
  --accent-fill: #356b22; /* chlorophyll, deep */
  --accent-on-fill: #ffffff;
  --accent-text: #2f6320; /* leaf vein */
  --accent-soft: #e3ecd6; /* young leaf */
  --field-1: #e2e6c4;     /* lime-washed field */
  --field-1-ink: #1f1a14;
  --field-2: #efdcc9;     /* potash rust */
  --field-2-ink: #1f1a14;
  --field-3: #2a2119;     /* wet topsoil */
  --field-3-ink: #f3eee3;
  color-scheme: light dark;
}

@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130f;
    --surface: #1e1914;
    --surface-2: #241e18;
    --ink: #efe9dd;
    --muted-strong: #d3c9b8;
    --muted: #ab9f8c;
    --line: rgba(239, 233, 221, 0.12);
    --line-strong: rgba(239, 233, 221, 0.26);
    --ink-field: #0f0c09;
    --on-ink: #efe9dd;
    --on-ink-muted: #b9ad99;
    --accent: #8cc66a;
    --accent-fill: #8cc66a;
    --accent-on-fill: #14200d;
    --accent-text: #9fd27f;
    --accent-soft: rgba(140, 198, 106, 0.14);
    --field-1: #2b2f1a;
    --field-1-ink: #efe9dd;
    --field-2: #35261a;
    --field-2-ink: #efe9dd;
    --field-3: #0f0c09;
    --field-3-ink: #efe9dd;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --bg: #17130f;
    --surface: #1e1914;
    --surface-2: #241e18;
    --ink: #efe9dd;
    --muted-strong: #d3c9b8;
    --muted: #ab9f8c;
    --line: rgba(239, 233, 221, 0.12);
    --line-strong: rgba(239, 233, 221, 0.26);
    --ink-field: #0f0c09;
    --on-ink: #efe9dd;
    --on-ink-muted: #b9ad99;
    --accent: #8cc66a;
    --accent-fill: #8cc66a;
    --accent-on-fill: #14200d;
    --accent-text: #9fd27f;
    --accent-soft: rgba(140, 198, 106, 0.14);
    --field-1: #2b2f1a;
    --field-1-ink: #efe9dd;
    --field-2: #35261a;
    --field-2-ink: #efe9dd;
    --field-3: #0f0c09;
    --field-3-ink: #efe9dd;
  }
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] { color-scheme: dark; }
}
