/* ==========================================================================
   GeoKrishi Matsya Bazar - design tokens
   Values extracted verbatim from the prototype. See docs/07-design-system.md.
   ========================================================================== */

/* ---- fonts -------------------------------------------------------------
   Devanagari subsets are ~62-67 KB EACH, so only 400 and 600 are loaded;
   500 and 700 fall back to the nearest real weight. Latin carries the full
   range at ~13 KB a weight. unicode-range means an English-only page never
   downloads the Devanagari files at all.
   ------------------------------------------------------------------------ */

@font-face {
  font-family: 'Mukta'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/Mukta-400-devanagari.b786401020a1.woff2") format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0,
                 U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Mukta'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/Mukta-400-latin.afc380f56ddb.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: 'Mukta'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/Mukta-400-latin-ext.47f8ed665f2a.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: 'Mukta'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/Mukta-500-latin.0742895157f6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Mukta'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/Mukta-500-latin-ext.df51ae23685c.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+A720-A7FF;
}
@font-face {
  font-family: 'Mukta'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/Mukta-600-devanagari.b021445bfb7a.woff2") format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0,
                 U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Mukta'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/Mukta-600-latin.af92558794b3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Mukta'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/Mukta-600-latin-ext.b9fed2814804.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+A720-A7FF;
}
@font-face {
  font-family: 'Mukta'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/Mukta-700-latin.9b7e3ea2eb7d.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Mukta'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/Mukta-700-latin-ext.80b8a31a5887.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+A720-A7FF;
}

/* Wordmark and the मा logo tile only. One variable file covers 500-700. */
@font-face {
  font-family: 'Noto Serif Devanagari'; font-style: normal;
  font-weight: 500 700; font-display: swap;
  src: url("../fonts/Noto-Serif-Devanagari-variable-devanagari.9430a72db5ed.woff2") format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC,
                 U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: 'Noto Serif Devanagari'; font-style: normal;
  font-weight: 500 700; font-display: swap;
  src: url("../fonts/Noto-Serif-Devanagari-variable-latin.4dedd5d6f397.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

/* ---- tokens ------------------------------------------------------------ */

:root {
  /* brand */
  --brand:        #0E4A3F;
  --brand-deep:   #12574A;
  --brand-mid:    #4E9B84;
  --accent:       #C8552B;
  --sand:         #F0C078;

  /* surfaces */
  --page:         #FCFAF6;
  --page-alt:     #F6F1E8;
  --surface:      #FFFFFF;
  --hairline:     #F0EADE;

  /* text */
  --text:         #1E2A23;
  --text-muted:   #6E7B72;
  --text-faint:   #9AA69E;

  /* category tints */
  --input-tint:   #FDF0E4;
  --input-ink:    #C8552B;
  --output-tint:  #E4EFE8;
  --output-ink:   #12574A;

  /* status */
  --ok-bg:        #E4EFE8;  --ok-fg:      #12574A;
  --warn-bg:      #FDF0E4;  --warn-fg:    #C8552B;
  --review-bg:    #F3EEF9;  --review-fg:  #6B4E8F;
  --dead-bg:      #F2EFEA;  --dead-fg:    #8A8579;
  --draft-bg:     #F6F1E8;  --draft-fg:   #6E7B72;

  /* type */
  --font-ui:    'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-brand: 'Noto Serif Devanagari', Georgia, serif;

  /* radius */
  --radius-sm:  7px;
  --radius:     10px;
  --radius-lg:  14px;

  /* elevation */
  --shadow-sm:      0 1px 2px rgba(0,0,0,.12);
  --shadow-card:    0 6px 20px rgba(14,74,63,.10);
  --shadow-tab-in:  0 3px 12px rgba(200,85,43,.13);
  --shadow-tab-out: 0 3px 12px rgba(18,87,74,.13);

  /* spacing scale (4px base) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px;

  --header-h: 66px;
  --content-max: 1560px;
}
