/* design tokens for hourglass. the look was designed for this app alone (catalog record, roll:
   West African wax print x linocut). light is the record's palette, sampled from the 1825 Leiden
   adinkra cloth (rose cotton, bark ink) and a wax print (indigo). dark is the indigo-dyed cloth of
   the same print. every text pair is measured in AGENTS.md; do not swap a value without re-measuring. */

@font-face {
  font-family: "Sankofa Display";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/sankofa-display-latin-400-normal.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: "Chivo Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/chivo-mono-latin-wght-normal.woff2") format("woff2-variations");
  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;

  /* the record's six roles */
  --bg: #dcc0bb;          /* aged rose cotton, 1825 cloth */
  --surface: #f1dcd8;     /* the pale unstamped cotton */
  --ink: #291b1a;         /* bark ink (adinkra aduro) */
  --muted: #594b4a;       /* bark ink thinned over the rose */
  --accent: #354260;      /* wax-print indigo */
  --accent-ink: #f1dcd8;

  /* derived, each measured in AGENTS.md */
  --focus: #354260;       /* 5.86:1 on bg, 7.61:1 on surface */
  --stamp: #291b1a;       /* the linocut block the wordmark is cut from */
  --stamp-ink: #f1dcd8;   /* the cut letters, 12.61:1 on the block */
  --rule: rgb(89 75 74 / 0.2); /* comb-ruled lines on the cloth ground */
  --chamber: #f1dcd8;     /* the glass interior */
  --sand-1: #6f3631;      /* madder, 7.1:1 on the chamber */
  --sand-2: #354260;      /* indigo, 7.61:1 on the chamber */
  --sand-3: #8a7451;      /* old gold, 3.4:1 on the chamber */
  --glow: #e0c78f;        /* wax-print mustard, the completion glow */
  --alert: #6f3631;       /* madder marks a notice with a rule, never as text: 7.1:1 on surface */

  /* type */
  --font-display: "Sankofa Display", "Chivo Mono Variable", ui-monospace, monospace;
  --font-body: "Chivo Mono Variable", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* shape: square-cut like a lino block */
  --radius: 2px;
  --line: 1px;

  /* density: tight */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --tap: 44px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1d2643;          /* the darkest indigo of the wax print */
  --surface: #354260;     /* the print's middle indigo */
  --ink: #f1dcd8;         /* pale cotton, 11.32:1 on bg, 7.61:1 on surface */
  --muted: #c5cfdc;       /* the print's pale indigo #a1b0c4 lifted toward its white #dadbd2: 5.0:1 on the card over the palest sand */
  --accent: #e0c78f;      /* wax-print mustard, 9.03:1 on bg, 6.07:1 on surface */
  --accent-ink: #1d2643;
  --focus: #e0c78f;
  --stamp: #f1dcd8;
  --stamp-ink: #1d2643;
  --rule: rgb(161 176 196 / 0.16);
  --chamber: #354260;
  --sand-1: #e0c78f;      /* mustard, 6.07:1 on the chamber */
  --sand-2: #e4941a;      /* bark-dye orange (Ntonso), 4.07:1 on the chamber */
  --sand-3: #dcc0bb;      /* rose cotton, 5.86:1 on the chamber */
  --glow: #e0c78f;
  --alert: #e4941a;       /* bark-dye orange rule, 4.07:1 on surface */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1d2643;
    --surface: #354260;
    --ink: #f1dcd8;
    --muted: #c5cfdc;
    --accent: #e0c78f;
    --accent-ink: #1d2643;
    --focus: #e0c78f;
    --stamp: #f1dcd8;
    --stamp-ink: #1d2643;
    --rule: rgb(161 176 196 / 0.16);
    --chamber: #354260;
    --sand-1: #e0c78f;
    --sand-2: #e4941a;
    --sand-3: #dcc0bb;
    --glow: #e0c78f;
    --alert: #e4941a;
  }
}
