/*
 * Green Cats design tokens, theme "Pădure".
 *
 * A token is a named value: a colour, a size, a font. Every other CSS file reads only
 * var(--gc-*), never a colour written out, so the look is changed here and nowhere else.
 *
 * The four CSS files, in the order base.html loads them:
 *   tokens.css      the values (this file)
 *   base.css        fonts and plain elements: body, headings, links, focus
 *   layout.css      the page shell: top bar, navigation, the main column, notices
 *   components.css  buttons, cards, badges, tables, form fields and the rest
 *
 * To add another theme later, copy the colour block into
 *   [data-theme="seara"] { ... }
 * and set data-theme on <html>.
 *
 * The contrast figures were measured with the WCAG formula; 4.5:1 is the minimum for text.
 */

:root {
  color-scheme: light;

  /* Surfaces */
  --gc-ground: #F5F3EC;        /* page background */
  --gc-header: #FAF8F3;        /* top bar */
  --gc-surface: #FFFFFF;       /* cards */
  --gc-chip: #EAE8DF;          /* quiet fills: empty days, the account button */
  --gc-line: #E3E0D6;          /* borders, dividers: decoration, not information */
  --gc-line-strong: #7D8379;   /* the edge of a form field: 3.9:1 on surface, 3.5:1 on ground */

  /* Text */
  --gc-ink: #1C1F1B;           /* body text: 15.0:1 on ground, 16.7:1 on surface */
  --gc-muted: #555A52;         /* secondary text: 6.4:1 on ground, 7.1:1 on surface, 5.8:1 on chip */
  --gc-link: #2A5F42;          /* 6.7:1 on ground, 7.5:1 on surface */

  /* Brand and actions */
  --gc-brand: #1F3D2C;         /* logo, the open page in the navigation */
  --gc-on-brand: #F3F5EF;      /* 10.9:1 on brand */
  --gc-accent: #2F6B4A;        /* primary buttons, focus ring: 5.7:1 on ground */
  --gc-on-accent: #FFFFFF;     /* 6.3:1 on accent */
  --gc-today: #1F3D2C;
  --gc-on-today: #F3F5EF;

  /* Health states. ok and late differ in lightness, not only hue. */
  --gc-ok: #74B58C;
  --gc-late: #B42318;
  --gc-none: #E1DED4;          /* no data */
  --gc-ok-soft: #E2EFE6;
  --gc-ok-soft-ink: #1F4A33;   /* 8.5:1 on ok-soft */
  --gc-late-soft: #FBE6E3;
  --gc-late-soft-ink: #8A1C12; /* 7.8:1 on late-soft */

  /* Needs attention, not overdue: missing documents, data to check */
  --gc-warn-soft: #FBF0D9;
  --gc-warn-soft-ink: #6B4706; /* 7.3:1 on warn-soft */
  --gc-warn-line: #E2C98F;

  /* Where an animal is: the small dot next to a status or a place */
  --gc-dot-foster: #2F6B4A;
  --gc-dot-shelter: #A07A1F;
  --gc-dot-other: #5B6B8C;     /* another place, an external case */
  --gc-dot-clinic: #B42318;

  /* Charts (Rapoarte). Validated for colour-blind separation; show values or a table. */
  --gc-series-1: #1E7048;      /* intakes */
  --gc-series-2: #E0913F;      /* adoptions */

  /* Monogram avatars for animals without a photo (the tone comes from the id) */
  --gc-avatar-ink: #2E3A31;    /* 8.9:1 or more on each of the six */
  --gc-avatar-0: #DDE8DF;
  --gc-avatar-1: #E8E4D6;
  --gc-avatar-2: #D9E4E6;
  --gc-avatar-3: #E6E0D2;
  --gc-avatar-4: #E2E8D5;
  --gc-avatar-5: #E4DDE6;

  /* Type. The font files are in /static/fonts/, declared in base.css. */
  --gc-font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --gc-font-display: "Fraunces", Georgia, serif;
  --gc-text-xs: 12px;          /* badges, table headings */
  --gc-text-sm: 13px;          /* hints, secondary lines */
  --gc-text-md: 14px;          /* buttons, navigation, tables */
  --gc-text-base: 16px;        /* body text and form fields */
  --gc-text-lead: 18px;        /* the sentence under a page title */
  --gc-title-page: clamp(30px, 6vw, 40px);   /* h1 */
  --gc-title-section: clamp(22px, 4vw, 28px); /* h2 */
  --gc-title-card: 22px;       /* the title of a card */
  --gc-title-name: 24px;       /* an animal's name on a card */

  /* Shape and size */
  --gc-radius-card: 22px;
  --gc-radius-tile: 18px;
  --gc-radius-field: 14px;
  --gc-radius-avatar: 24px;
  --gc-radius-pill: 999px;
  --gc-tap: 44px;              /* minimum touch target */
  --gc-page-width: 1240px;
  --gc-gutter: clamp(16px, 3vw, 40px); /* space left and right of the page */
  --gc-shadow-raised: 0 1px 2px rgba(28, 31, 27, 0.14);
  --gc-shadow-menu: 0 12px 32px rgba(28, 31, 27, 0.16);
}
