/* Covalent Medical — design tokens
   Transcribed from the Covalent Bond Book. Load after covalent-fonts.css.
   Every grey is Warm Ivory at reduced alpha composited over Graphite —
   no new hues, and no gradients anywhere in this system. */
:root{
  /* the brand — three colours, taken from the logo artwork */
  --cv-graphite:#1A1C20;    /* the ground */
  --cv-brass:#AE8864;       /* the accent, and the mark */
  --cv-ivory:#F4F1EA;       /* primary text on dark; the light ground */

  /* functional surfaces — ivory at alpha over graphite */
  --cv-surface:#1C1C1E;     /* ivory 4%  — cards, raised bands */
  --cv-charcoal:#232528;    /* card and panel fill, secondary ground */
  --cv-field:#232324;       /* ivory 7%  — inputs, hover */
  --cv-slate:#292B2E;       /* raised / hover surface */
  --cv-disabled:#2B2B2D;    /* ivory 10% — disabled surfaces */
  --cv-secondary:#9E9D9A;   /* ivory 62% — secondary text, captions */
  --cv-brass-dim:#826850;   /* de-emphasised labels, unemphasised data */
  --cv-brass-deep:#765B30;  /* brass 70% */

  /* light ground — graphite and brass at alpha over ivory */
  --cv-white:#FFFFFF;           /* raised surface on ivory — cards, panels. NOT a page ground */
  --cv-ivory-surface:#EBE9E2;   /* graphite 4% — recessed card fill */
  --cv-ivory-field:#E5E2DC;     /* graphite 7% */
  --cv-ivory-secondary:#636363; /* secondary text on light — 5.33:1 ivory, 4.95 surface, 4.65 field */
  --cv-brass-on-light:#7A5822;  /* small text and accents on ivory — 5.7:1 */
  --cv-brass-on-light-deep:#5A411A;
  --cv-brass-dim-on-light:#77551F;  /* de-emphasised brass on ivory — 6.0:1 */

  /* hairlines */
  --cv-line:rgba(174,136,100,.12);
  --cv-line-hover:rgba(174,136,100,.32);
  --cv-line-neutral:rgba(244,241,234,.08);
  --cv-line-light:#DAD7D2;      /* graphite 12% over ivory, for print */
  --cv-line-brass-light:#E8DFD3;/* brass at low alpha over ivory */

  /* gradients — the only two in the system */
  --cv-scrim:linear-gradient(to top,#1A1C20 0%,transparent 60%);

  /* glow — screen only; never in an exported artefact */
  --cv-glow-brass:0 0 40px rgba(174,136,100,.18),0 0 100px rgba(174,136,100,.08);
  --cv-glow-brass-strong:0 0 24px rgba(174,136,100,.35),0 0 80px rgba(174,136,100,.15);
  --cv-shadow-overlay:0 24px 64px rgba(0,0,0,.6);

  /* type */
  --cv-font-display:'Cormorant Garamond','Times New Roman',serif;
  --cv-font-body:'Avenir Next','Avenir Next LT Pro','Avenir',-apple-system,'Segoe UI',sans-serif;
  /* product names — same family as body, set in Light, uppercase, tracked */
  --cv-font-product:'Avenir Next','Avenir Next LT Pro','Avenir',-apple-system,'Segoe UI',sans-serif;

  /* type scale — THREE LEVELS plus two labels. Use these, never a loose value:
     colour is consistent across assets because it is tokenised; type was not,
     which is how one microsite ended up with 18 distinct sizes. */
  --cv-text-hero:clamp(2.5rem,7.2vw,5.75rem);   /* headline, on a hero      */
  --cv-text-headline:clamp(1.75rem,3.2vw,2.6rem);/* headline, on a section  */
  --cv-text-sub:clamp(1.15rem,1.8vw,1.45rem);   /* subheadline             */
  --cv-text-body:.9375rem;                       /* body, captions, UI      */
  --cv-text-eyebrow:.6875rem;                    /* label, not a level      */
  --cv-text-micro:.625rem;                       /* label, not a level      */

  /* line-height and tracking travel with the size */
  --cv-lh-hero:1.02;  --cv-lh-headline:1.14;  --cv-lh-sub:1.45;  --cv-lh-body:1.7;
  --cv-track-hero:.055em; --cv-track-headline:.03em; --cv-track-body:.012em;
  --cv-track-eyebrow:.26em; --cv-track-micro:.22em;

  /* print equivalents — pt, for anything paginated */
  --cv-pt-cover:36pt; --cv-pt-headline:26pt; --cv-pt-sub:18pt;
  --cv-pt-body:11pt;  --cv-pt-caption:9pt;   --cv-pt-label:8pt;

  /* layout constants — the other thing that drifts between assets */
  --cv-container:1280px;
  --cv-container-read:880px;
  --cv-measure:64ch;
  --cv-section:clamp(80px,11vw,168px);
  --cv-gutter:clamp(24px,5vw,80px);

  /* radii — 2px on every control; nothing is a pill */
  --cv-radius:2px;

  /* motion */
  --cv-ease:cubic-bezier(.22,.61,.36,1);
  --cv-ease-in:cubic-bezier(.55,.06,.68,.19);
  --cv-ease-soft:cubic-bezier(.4,0,.2,1);
  --cv-ease-glide:cubic-bezier(.16,1,.3,1);
  --cv-dur-instant:120ms; --cv-dur-fast:240ms; --cv-dur-base:360ms;
  --cv-dur-slow:560ms; --cv-dur-reveal:800ms;

  /* space — 4px base */
  --cv-space-1:4px;  --cv-space-2:8px;   --cv-space-3:16px;  --cv-space-4:24px;
  --cv-space-5:32px; --cv-space-6:40px;  --cv-space-7:56px;  --cv-space-8:72px;
  --cv-space-9:96px; --cv-space-10:120px;--cv-space-11:160px;--cv-space-12:200px;
}
