/* x402reputation design tokens — Direction C "Assay" (v1.0, 2026-11-25).
   Source of truth: guide-x402reputation.md.
   Public styles use the approved Assay palette. */

@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-VariableFont.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/MartianMono-VariableFont.ttf") format("truetype"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  /* Core palette */
  --xr-deep: #0F2F2C;        /* Verdigris deep: hero field, app sidebar, primary light-theme CTA */
  --xr-deep-surface: #133935;/* Dark surface: cards in dark theme */
  --xr-deep-quiet: #18443F;  /* Dark quiet surface: inputs, subtle hover */
  --xr-bone: #EEECE5;        /* Bone: page background (light) / primary text (dark) */
  --xr-surface: #F8F7F3;     /* Paper: card and input surface (light) */
  --xr-surface-quiet: #E4E2D9;/* Quiet surface: secondary panels (light) */
  --xr-ink: #14211F;         /* Ink: primary text (light), 14.02:1 on Bone, 15.46:1 on Paper */
  --xr-muted: #5F6B68;       /* Muted slate: secondary text (light), 4.69:1 on Bone, 5.17:1 on Paper */
  --xr-muted-dark: #9AB0AA;  /* Muted verdigris: secondary text on Verdigris deep (6.26:1) */
  --xr-line: #D3D2C8;        /* Rule: borders and hairlines (light) */
  --xr-line-dark: rgba(238, 236, 229, 0.16);

  /* Brand & semantic status */
  --xr-brass: #C9A54C;       /* Brass: hallmark accent, dark-theme CTA fill (Ink text 7.08:1) */
  --xr-brass-text: #7D5E12;  /* Deep brass: small brass text on Bone (5.10:1) */
  --xr-patina: #267364;      /* Patina: grades AAA, AA, A (5.27:1 on Paper; white on Patina 5.65:1) */
  --xr-patina-dark: #4FB39E; /* Patina light: grades AAA, AA, A on dark surface (4.97:1) */
  --xr-ochre: #C9822B;       /* Ochre: cartouche stroke & fill for grades BBB, BB, B */
  --xr-ochre-text: #915912;  /* Deep ochre: small text on Paper (5.38:1) */
  --xr-ochre-dark: #E8A64B;  /* Ochre light: grades BBB, BB, B on dark surface (6.00:1) */
  --xr-seal: #B0125B;        /* Seal break: grade C & severe warning banner (white on Seal 6.81:1) */
  --xr-seal-dark: #F578AD;   /* Seal break light: grade C text/cartouche on dark surface (4.91:1) */
  --xr-white: #FFFFFF;

  /* Semantic tokens (light app default) */
  --color-bg: var(--xr-bone);
  --color-surface: var(--xr-surface);
  --color-surface-quiet: var(--xr-surface-quiet);
  --color-text: var(--xr-ink);
  --color-text-muted: var(--xr-muted);
  --color-line: var(--xr-line);
  --color-line-strong: var(--xr-ink);

  --color-hero-bg: var(--xr-deep);
  --color-hero-text: var(--xr-bone);
  --color-hero-muted: var(--xr-muted-dark);
  --color-hero-accent: var(--xr-brass);

  --color-cta-bg: var(--xr-deep);
  --color-cta-text: var(--xr-bone);
  --color-cta-accent-bg: var(--xr-brass);
  --color-cta-accent-text: var(--xr-deep);

  --color-grade-high: var(--xr-patina);
  --color-grade-mid-stroke: var(--xr-ochre);
  --color-grade-mid-text: var(--xr-ochre-text);
  --color-grade-low: var(--xr-seal);
  --color-severe-bg: var(--xr-seal);
  --color-severe-text: var(--xr-white);

  --color-focus: var(--xr-ink);
  --color-signature: rgba(20, 33, 31, 0.28); /* Umbrian r footer mark: muted tint of ink */

  /* Typography */
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, monospace;

  --text-xs: 0.75rem;    /* 12 */
  --text-sm: 0.875rem;   /* 14 */
  --text-base: 1rem;     /* 16 UI body */
  --text-md: 1.1875rem;  /* 19 marketing lead */
  --text-lg: 1.5rem;     /* 24 section heading */
  --text-xl: 2.125rem;   /* 34 card display */
  --text-2xl: 3rem;      /* 48 score number */
  --text-3xl: 4rem;      /* 64 hero display */
  --text-4xl: 5rem;      /* 80 hero display large */

  --leading-tight: 1.04;
  --leading-snug: 1.25;
  --leading-body: 1.5;
  --tracking-caps: 0.1em;
  --tracking-mono: -0.01em;

  /* Space (4 px base) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --content-max: 1180px;
  --gutter: clamp(16px, 4vw, 48px);

  /* Shape: square UI corners; hallmark cartouche uses clip-path */
  --radius-0: 0;
  --radius-sm: 2px;
  --cartouche-clip: polygon(14% 0, 86% 0, 100% 22%, 100% 78%, 86% 100%, 14% 100%, 0 78%, 0 22%);
  --border-1: 1px;
  --border-2: 1.5px;

  /* Shadows: minimal */
  --shadow-none: none;
  --shadow-1: 0 1px 2px rgba(20, 33, 31, 0.06);

  /* Motion */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* Signature */
  --signature-size: 12px;
}

[data-theme="dark"] {
  --color-bg: var(--xr-deep);
  --color-surface: var(--xr-deep-surface);
  --color-surface-quiet: var(--xr-deep-quiet);
  --color-text: var(--xr-bone);
  --color-text-muted: var(--xr-muted-dark);
  --color-line: var(--xr-line-dark);
  --color-line-strong: var(--xr-bone);

  --color-cta-bg: var(--xr-brass);
  --color-cta-text: var(--xr-deep);

  --color-grade-high: var(--xr-patina-dark);
  --color-grade-mid-stroke: var(--xr-ochre-dark);
  --color-grade-mid-text: var(--xr-ochre-dark);
  --color-grade-low: var(--xr-seal-dark);

  --color-focus: var(--xr-brass);
  --color-signature: rgba(238, 236, 229, 0.28); /* muted tint of Bone */
}
