/* Value.IO — Design Tokens
   Source of truth. Every surface in the system references these. */

@font-face {
  font-family: 'AmpleSoft Pro';
  src: url('../fonts/AmpleSoftPro-Thin.woff2') format('woff2');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AmpleSoft Pro';
  src: url('../fonts/AmpleSoftPro-ExtraLight.woff2') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AmpleSoft Pro';
  src: url('../fonts/AmpleSoftPro-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AmpleSoft Pro';
  src: url('../fonts/AmpleSoftPro-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AmpleSoft Pro';
  src: url('../fonts/AmpleSoftPro-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AmpleSoft Pro';
  src: url('../fonts/AmpleSoftPro-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* ——— Brand color ——— */
  --vio-red:        #CC242C;
  --vio-red-dark:   #A9171E;
  --vio-red-deep:   #7A0F14;
  --vio-ink:        #231F20;   /* Headings */
  --vio-body:       #515050;   /* Body copy */
  --vio-mute:       #8A8788;   /* Tertiary */
  --vio-hairline:   #EDE9E9;   /* Borders */
  --vio-surface:    #FFFFFF;   /* Primary surface */
  --vio-paper:      #FAF7F6;   /* Warm off-white */
  --vio-paper-raised:#FCFAFA;  /* Paper one notch lighter — page-hero canvas */
  --vio-tint-6:     rgba(204, 36, 44, 0.06);
  --vio-tint-10:    rgba(204, 36, 44, 0.10);
  --vio-tint-18:    rgba(204, 36, 44, 0.18);

  /* Semantic (finance surfaces stay white; these live inside components) */
  --vio-ok:         #0F7A5A;
  --vio-ok-tint:    rgba(15, 122, 90, 0.08);
  --vio-warn:       #B46B00;
  --vio-warn-tint:  rgba(180, 107, 0, 0.08);
  --vio-danger:     var(--vio-red);
  --vio-danger-tint:var(--vio-tint-10);

  /* Dark surface (reserved for portal / code contexts only) */
  --vio-dark:         #14100F;
  --vio-dark-raised:  #1D1818;
  --vio-dark-line:    #2A2322;
  --vio-dark-text:    #F4EFEE;
  --vio-dark-mute:    #938C8B;

  /* ——— Type ——— */
  --vio-font-display: 'AmpleSoft Pro', 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --vio-font-body:    'Poppins', ui-sans-serif, system-ui, sans-serif;
  --vio-font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Fluid scale (rem) */
  --vio-text-xs:   0.75rem;   /* 12 */
  --vio-text-sm:   0.8125rem; /* 13 */
  --vio-text-base: 0.9375rem; /* 15 */
  --vio-text-md:   1rem;      /* 16 */
  --vio-text-lg:   1.125rem;  /* 18 */
  --vio-text-xl:   1.375rem;  /* 22 */
  --vio-text-2xl:  1.75rem;   /* 28 */
  --vio-text-3xl:  2.25rem;   /* 36 */
  --vio-text-4xl:  3rem;      /* 48 */
  --vio-text-5xl:  4rem;      /* 64 */
  --vio-text-6xl:  5.5rem;    /* 88 */

  /* ——— Space (4pt) ——— */
  --vio-s-1: 4px;
  --vio-s-2: 8px;
  --vio-s-3: 12px;
  --vio-s-4: 16px;
  --vio-s-5: 24px;
  --vio-s-6: 32px;
  --vio-s-7: 48px;
  --vio-s-8: 64px;
  --vio-s-9: 96px;
  --vio-s-10:128px;

  /* ——— Radius ——— */
  --vio-r-xs: 4px;
  --vio-r-sm: 8px;
  --vio-r-md: 12px;
  --vio-r-lg: 16px;
  --vio-r-xl: 24px;
  --vio-r-pill: 999px;

  /* ——— Elevation ——— */
  --vio-shadow-1: 0 1px 2px rgba(35, 31, 32, 0.04), 0 0 0 1px var(--vio-hairline);
  --vio-shadow-2: 0 4px 16px rgba(35, 31, 32, 0.04), 0 0 0 1px var(--vio-hairline);
  --vio-shadow-3: 0px 11px 48px rgba(0, 0, 0, 0.05);       /* site token */
  --vio-shadow-red: 0 8px 32px rgba(204, 36, 44, 0.18);

  /* ——— Motion ——— */
  --vio-dur-1: 120ms;
  --vio-dur-2: 220ms;
  --vio-dur-3: 360ms;
  --vio-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* ——— Signature gradients ——— */
  --vio-rule: linear-gradient(90deg, rgba(204,36,44,0) 0%, #CC242C 50%, rgba(204,36,44,0) 100%);
  --vio-rule-soft: linear-gradient(90deg, rgba(204,36,44,0) 0%, rgba(204,36,44,0.45) 50%, rgba(204,36,44,0) 100%);
  --vio-glow: radial-gradient(50% 50% at 50% 50%, rgba(204,36,44,0.22) 0%, rgba(204,36,44,0) 70%);
}

/* ——— Base ——— */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--vio-font-body);
  font-size: var(--vio-text-md);
  line-height: 1.55;
  color: var(--vio-body);
  background: var(--vio-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: var(--vio-font-display);
  color: var(--vio-ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--vio-text-5xl); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; }
h2 { font-size: var(--vio-text-3xl); line-height: 1.1; letter-spacing: -0.018em; }
h3 { font-size: var(--vio-text-xl); line-height: 1.25; }
p  { text-wrap: pretty; }
code, pre, .mono { font-family: var(--vio-font-mono); font-size: 0.92em; }
a { color: var(--vio-red); text-decoration: none; }
a:hover { color: var(--vio-red-dark); }

::selection { background: var(--vio-tint-18); color: var(--vio-ink); }
