/* BARPLUS design tokens — CONVERSION.md 5.5 */

:root {
  /* Palette: aged academic paper, as on the product covers. Maroon is the
     only accent; text is near-black. No shadows. */
  --paper: #F2EDE0;       /* the page ground, under a fine grain */
  --paper-light: #F8F4EA; /* cards, inputs, text on maroon: a fresher sheet */
  --paper-deep: #ECE4D1;  /* the home hero's sheet, with the charred edge */
  --ink: #1A1A1A;         /* headings, body text, the wordmark */
  --maroon: #7A1F2E;      /* the plus, buttons, links, prices, rules, the countdown */
  --maroon-tint: #ECDDD5; /* only "Available on" badges, hover, the /manage/ header */
  --rule: #DCD3BF;        /* card borders */

  /* Greys of --ink, for quieter text; no hue of their own. Ratios are on
     --paper / --paper-deep / --maroon-tint. Measured on the grain's single
     darkest speck, --ink-faint is still 5.97:1 and --maroon 8.1:1. */
  --ink-soft: #4A4A48;    /* 7.6 / 7.0 / 6.7 */
  --ink-faint: #555552;   /* 6.4 / 5.9 / 5.7 */
  /* --maroon is 8.7:1 on --paper and --paper-light on it 9.3:1, so links,
     prices and button text all clear AA. */

  /* Paper grain: tiny SVG noise (static/img/paper-grain.svg, about 0.5 KB),
     tiled. A file, not an inline data URI: collectstatic rewrites url()s
     inside inline SVGs and breaks them.
     On average 1.7% darker than the ground in luminance; its darkest
     speck 7%. Strengthen it only after re-measuring text on it. */
  --grain: url("../img/paper-grain.22ff90620b6b.svg");

  --focus: var(--maroon);

  /* Type */
  /* Heavy condensed grotesque, uppercase, as on the covers. */
  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --text-base: 1.0625rem; /* 17px; 16px on phones (base.css) */
  --measure: 68ch;        /* keeps line length under 75 characters */

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Shape: square-ish, hairline borders */
  --radius: 2px;
  --border: 1px solid var(--rule);
  --hairline: 1px solid var(--maroon);
}
