/* ==========================================================================
   HireArt Design System — Colors & Type foundations
   Sourced from @hireart/tokens (color/base.json, text/*.json, space/base.json,
   elevation/*.json, shape/radius.json, border/width.json, opacity/base.json).
   ========================================================================== */

/* ----- Webfonts -------------------------------------------------------- */
@font-face {
  font-family: "Euclid Circular A";
  src: url("fonts/euclid-circular-a-regular-web-xl.woff2") format("woff2"),
       url("fonts/euclid-circular-a-regular-web-xl.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Euclid Circular A";
  src: url("fonts/euclid-circular-a-regular-italic-web-xl.woff2") format("woff2"),
       url("fonts/euclid-circular-a-regular-italic-web-xl.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Euclid Circular A";
  src: url("fonts/euclid-circular-a-semibold-web-xl.woff2") format("woff2"),
       url("fonts/euclid-circular-a-semibold-web-xl.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Euclid Circular A";
  src: url("fonts/euclid-circular-a-bold-web-xl.woff2") format("woff2"),
       url("fonts/euclid-circular-a-bold-web-xl.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Degular";
  src: url("fonts/degular-bold.woff2") format("woff2"),
       url("fonts/degular-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Degular Display";
  src: url("fonts/degular-display-bold.woff2") format("woff2"),
       url("fonts/degular-display-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----- Design tokens --------------------------------------------------- */
:root {
  /* Neutral scale — the system's backbone. Do not introduce intermediate stops. */
  --neutral-10: #FDFDFD;
  --neutral-20: #EBEBEB;
  --neutral-30: #CCCCCC;
  --neutral-40: #B8B8B8;
  --neutral-50: #A3A3A3;
  --neutral-60: #818181;
  --neutral-70: #707070;
  --neutral-80: #525252;
  --neutral-90: #333333;
  --neutral-100: #141414;

  /* Named scales — 5 stops each (20/40/60/80/100). 60 = default. */
  --green-20: #ECFEF6;  --green-40: #8CF8C7;  --green-60: #0DD57B;  --green-80: #09864E;  --green-100: #054D2C;
  --blue-20:  #C5E8FC;  --blue-40:  #8BD0F9;  --blue-60:  #2EB2FF;  --blue-80:  #0972AE;  --blue-100:  #04334E;
  --red-20:   #FEDDD7;  --red-40:   #FD8972;  --red-60:   #FC5130;  --red-80:   #C92403;  --red-100:   #641202;
  --yellow-20:#FCEDC5;  --yellow-40:#F9D677;  --yellow-60:#F6C43C;  --yellow-80:#C39109;  --yellow-100:#614905;
  --purple-20:#DFDDF8;  --purple-40:#9F99EA;  --purple-60:#493ED8;  --purple-80:#271F98;  --purple-100:#110E44;

  /* Semantic color aliases */
  --fg-1: var(--neutral-100);          /* primary text (= text-dark) */
  --fg-2: var(--neutral-90);           /* secondary text */
  --fg-3: var(--neutral-60);           /* tertiary / meta text */
  --fg-disabled: color-mix(in srgb, var(--neutral-100) 48%, transparent);
  --fg-on-dark: var(--neutral-10);

  --bg-1: var(--neutral-10);           /* primary surface (~white) */
  --bg-2: #F7F7F7;                     /* tinted surface (derived, used in cards/pages) */
  --bg-3: var(--neutral-20);           /* divider-adjacent surface */
  --bg-dark: var(--neutral-100);

  --border-1: var(--neutral-100);      /* strong border (signature) */
  --border-2: var(--neutral-30);       /* hairline border */
  --border-3: var(--neutral-20);       /* subtle divider */

  --accent-primary: var(--green-60);   /* brand "do it" green */
  --accent-secondary: var(--purple-60);/* brand secondary */
  --accent-danger: var(--red-60);
  --accent-warning: var(--yellow-60);
  --accent-info: var(--blue-60);
  --accent-success: var(--green-60);

  /* Type families */
  --font-body:     "Euclid Circular A", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-headline: "Degular", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display:  "Degular Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:     ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type sizes */
  --text-60: 60px;
  --text-40: 40px;
  --text-24: 24px;
  --text-20: 20px;
  --text-18: 18px;
  --text-16: 16px;
  --text-14: 14px;
  --text-12: 12px;
  --text-11: 11px;
  --text-8:  8px;

  /* Type weights */
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line heights */
  --lh-1: 1;
  --lh-2: 1.1;
  --lh-3: 1.25;
  --lh-4: 1.5;
  --lh-5: 2;

  /* Spacing (4px grid) */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-36: 36px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-112: 112px;
  --space-128: 128px;

  /* Radii */
  --radius-none: 0;
  --radius-6:  6px;
  --radius-8:  8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-full: 100px;

  /* Border widths */
  --border-0: 0;
  --border-1w: 1px;
  --border-2w: 2px;
  --border-3w: 3px;
  --border-4w: 4px;

  /* Hard drop shadows — the signature "offset block" elevation */
  --shadow-sm: 4px 4px 0 0 var(--neutral-100);
  --shadow-md: 8px 8px 0 0 var(--neutral-100);
  --shadow-lg: 12px 12px 0 0 var(--neutral-100);
  --shadow-xl: 16px 16px 0 0 var(--neutral-100);
  --shadow-none: none;

  /* Button shadows — vertical-only, for the "press into surface" feel */
  --shadow-btn-sm: 0 2px 0 var(--neutral-100);
  --shadow-btn-md: 0 3px 0 var(--neutral-100);
  --shadow-btn-lg: 0 4px 0 var(--neutral-100);
  --shadow-btn-xl: 0 5px 0 var(--neutral-100);
}

/* ----- Semantic typography classes ------------------------------------ */
/* Mirrors the @hireart/component-library typography constants. */
.display-1 { font-family: var(--font-display);  font-size: var(--text-60); font-weight: 700; line-height: 1;     letter-spacing: 0.01em; }
.display-2 { font-family: var(--font-display);  font-size: var(--text-40); font-weight: 700; line-height: 1.1;   letter-spacing: 0.01em; }
.headline-1{ font-family: var(--font-headline); font-size: var(--text-24); font-weight: 700; line-height: 1.25;  letter-spacing: 0.01em; }
.title-1   { font-family: var(--font-body);     font-size: var(--text-20); font-weight: 400; line-height: 1.5; }
.title-2   { font-family: var(--font-body);     font-size: var(--text-18); font-weight: 400; line-height: 1.5; }
.subtitle-1{ font-family: var(--font-body);     font-size: var(--text-12); font-weight: 700; line-height: 2;    letter-spacing: 0.1em; text-transform: uppercase; }
.body-1    { font-family: var(--font-body);     font-size: var(--text-16); font-weight: 400; line-height: 1.5; }
.body-2    { font-family: var(--font-body);     font-size: var(--text-14); font-weight: 400; line-height: 1.5; }
.body-3    { font-family: var(--font-body);     font-size: var(--text-12); font-weight: 400; line-height: 1.5; }
.body-4    { font-family: var(--font-body);     font-size: var(--text-11); font-weight: 400; line-height: 1.5; }
.body-5    { font-family: var(--font-body);     font-size: var(--text-8);  font-weight: 400; line-height: 1.5; }

/* ----- Base ------------------------------------------------------------ */
html, body {
  font-family: var(--font-body);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
}
* { box-sizing: border-box; }
