/* =============================================================
   XPRINTA — Colors & Type  (2026 brand guide)
   Primary color: TARAWERA. Mango & White support.
   Typeface: Inter — Light 300 / Regular 400 / SemiBold 600.
   Import this file at the top of every Xprinta HTML deliverable.
   ============================================================= */

/* Inter from Google Fonts CDN.
   We also declared self-hosted TTFs in /fonts for offline/handoff use,
   but the preview host has trouble serving them, so CDN is primary. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Inter:ital,wght@1,300;1,400;1,600&display=swap');

/* Self-hosted fallback (same Inter files, for production handoff) */
@font-face { font-family: "Inter"; src: url("./fonts/Inter-Light.ttf") format("truetype");
             font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/Inter-LightItalic.ttf") format("truetype");
             font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/Inter-Regular.ttf") format("truetype");
             font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/Inter-Italic.ttf") format("truetype");
             font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/Inter-Medium.ttf") format("truetype");
             font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/Inter-SemiBold.ttf") format("truetype");
             font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/Inter-SemiBoldItalic.ttf") format("truetype");
             font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("./fonts/Inter-Bold.ttf") format("truetype");
             font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* ---------- Named brand colors (verbatim) ---------- */
  --tarawera:        #24394b;   /* PRIMARY · AAA contrast */
  --mad-for-mango:   #f5a105;   /* Supporting · accent */
  --white-as-heaven: #fefefe;   /* Page surface */

  /* ---------- Tarawera (ink) scale ---------- */
  --ink-50:  #f3f5f7;
  --ink-100: #e2e8ed;
  --ink-200: #c1cdd6;
  --ink-300: #92a5b3;
  --ink-400: #5f7787;
  --ink-500: #3b546a;
  --ink-600: #24394b;
  --ink-700: #1b2c3a;
  --ink-800: #131f29;
  --ink-900: #0a1118;

  /* ---------- Mango scale ---------- */
  --mango-50:  #fff6e3;
  --mango-100: #ffe9b8;
  --mango-200: #fdd37b;
  --mango-300: #f9bc41;
  --mango-400: #f5a105;
  --mango-500: #d88a03;
  --mango-600: #b07002;
  --mango-700: #835202;

  /* ---------- Gradient stops ---------- */
  --grad-mango-a: #F5A105;   --grad-mango-b: #F2C784;
  --grad-dark-a:  #24394B;   --grad-dark-b:  #0F1920;
  --grad-silver-a:#24394B;   --grad-silver-b:#A1AAB2;
  --grad-paper-a: #FEFEFE;   --grad-paper-b: #6D6D6D;
  --gradient-mango:  linear-gradient(135deg, var(--grad-mango-a)  0%, var(--grad-mango-b)  100%);
  --gradient-dark:   linear-gradient(135deg, var(--grad-dark-a)   0%, var(--grad-dark-b)   100%);
  --gradient-silver: linear-gradient(135deg, var(--grad-silver-a) 0%, var(--grad-silver-b) 100%);
  --gradient-paper:  linear-gradient(135deg, var(--grad-paper-a)  0%, var(--grad-paper-b)  100%);

  /* ---------- Semantic tokens ---------- */
  --fg-1: var(--tarawera);
  --fg-2: #4a5b6b;
  --fg-3: #7a8a98;
  --fg-muted: #a6b2bd;
  --fg-on-brand: #ffffff;
  --fg-on-dark:  var(--white-as-heaven);
  --bg:          var(--white-as-heaven);
  --bg-elevated: #ffffff;
  --bg-sunken:   #f6f7f9;
  --bg-dark:     var(--tarawera);
  --bg-accent:   var(--mad-for-mango);
  --border-1: #e4e8ec;
  --border-2: #cfd6dd;
  --border-strong: var(--tarawera);
  --success: #3ba676;
  --warning: var(--mad-for-mango);
  --danger:  #d64545;
  --info:    #3a7bd5;

  /* ---------- Typography ---------- */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fw-light: 300; --fw-regular: 400; --fw-medium: 500;
  --fw-semibold: 600; --fw-bold: 700;

  /* Major Third scale (1.25) */
  --fs-h1: 3.052rem; --fs-h2: 2.441rem; --fs-h3: 1.953rem;
  --fs-h4: 1.563rem; --fs-h5: 1.25rem;
  --fs-body: 1rem; --fs-caption: 0.8rem; --fs-small: 0.64rem;

  --lh-tight: 1.12; --lh-snug: 1.25; --lh-normal: 1.5; --lh-loose: 1.7;
  --tracking-tight: -0.015em; --tracking-normal: 0;
  --tracking-wide: 0.04em; --tracking-caps: 0.08em;

  /* ---------- Spacing (4px base) ---------- */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem;
  --space-4: 1rem;   --space-5: 1.5rem; --space-6: 2rem;
  --space-7: 3rem;   --space-8: 4rem;   --space-9: 6rem;

  /* ---------- Radii ---------- */
  --radius-xs: 4px;  --radius-sm: 6px;  --radius-md: 10px;
  --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-xs: 0 1px 2px rgba(36,57,75,.06);
  --shadow-sm: 0 2px 6px rgba(36,57,75,.08);
  --shadow-md: 0 6px 18px rgba(36,57,75,.10);
  --shadow-lg: 0 16px 40px rgba(36,57,75,.14);
  --shadow-mango: 0 10px 30px rgba(245,161,5,.30);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms; --dur-base: 200ms; --dur-slow: 320ms;

  --focus-ring: 0 0 0 3px rgba(245,161,5,.35);
}

/* Force Inter against any host-injected :root override (e.g. Open Sans). */
html body, html body * {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}
html body code, html body .mono, html body pre, html body kbd, html body samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}

html, body {
  font-size: 16px;
  color: var(--fg-1);
  background: var(--bg);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,.h1 { font-weight: 600; font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); color: var(--fg-1); margin: 0 0 var(--space-5); }
h2,.h2 { font-weight: 600; font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); color: var(--fg-1); margin: 0 0 var(--space-4); }
h3,.h3 { font-weight: 600; font-size: var(--fs-h3); line-height: var(--lh-snug); color: var(--fg-1); margin: 0 0 var(--space-4); }
h4,.h4 { font-weight: 600; font-size: var(--fs-h4); line-height: var(--lh-snug); color: var(--fg-1); margin: 0 0 var(--space-3); }
h5,.h5 { font-weight: 600; font-size: var(--fs-h5); line-height: var(--lh-snug); color: var(--fg-1); margin: 0 0 var(--space-3); }
p,.body  { font-weight: 400; font-size: var(--fs-body); line-height: var(--lh-normal); color: var(--fg-1); margin: 0 0 var(--space-4); }
.lede    { font-weight: 300; font-size: 1.25rem; line-height: var(--lh-normal); color: var(--fg-2); }
.caption { font-weight: 400; font-size: var(--fs-caption); line-height: var(--lh-normal); color: var(--fg-3); }
.small   { font-weight: 400; font-size: var(--fs-small); line-height: var(--lh-normal); color: var(--fg-3); }
.eyebrow { font-weight: 600; font-size: var(--fs-caption); line-height: 1; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--mad-for-mango); }
code,.mono { font-size: 0.9em; line-height: 1.5; background: var(--bg-sunken); padding: 0.1em 0.35em; border-radius: var(--radius-xs); color: var(--ink-700); }
a { color: var(--mad-for-mango); text-decoration: none; }
a:hover { color: var(--mango-500); text-decoration: underline; }
::selection { background: var(--mango-200); color: var(--tarawera); }
*:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
