/* =========================================================================
   Localizy Design System — Type & Colors
   Based on LOCALIZY_DA brand guidelines.
   ========================================================================= */

/* ---------- Fonts ------------------------------------------------------- */

/* Clash Display — variable font covers the full 200–700 weight range */
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Variable.ttf") format("truetype-variations");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("fonts/WorkSans-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("fonts/WorkSans-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------ */

:root {
  /* ---- Brand palette ---- */
  --lz-navy-deep:   #233142;  /* darkest navy — backgrounds, footer */
  --lz-navy:        #31445E;  /* core navy — primary text on light */
  --lz-lavender:    #9699CE;  /* signature lavender (Shadow's fur) */
  --lz-lavender-soft:#BABBDE;  /* secondary lavender — surfaces, accents */
  --lz-red:         #DC5B5B;  /* muted red */
  --lz-red-bright:  #FF6B6B;  /* CTA red — primary action */

  /* ---- Neutrals ---- */
  --lz-white:       #FFFFFF;
  --lz-bg:          #F5F5FA;  /* off-white app/page background */
  --lz-contrast:    #3C3C3B;  /* near-black, slightly warm */
  --lz-ink:         #151515;  /* sticker outline ink */

  /* ---- Derived greys ---- */
  --lz-grey-50:     #F8F8FC;
  --lz-grey-100:    #EFEFF6;
  --lz-grey-200:    #E2E2EE;
  --lz-grey-300:    #C8C8DA;
  --lz-grey-400:    #9C9CB4;
  --lz-grey-500:    #6E6E86;
  --lz-grey-600:    #4F4F66;

  /* ---- Semantic ---- */
  --lz-success:     #4FB286;
  --lz-warning:     #F4B860;
  --lz-danger:      var(--lz-red-bright);
  --lz-info:        var(--lz-lavender);

  /* ---- Foreground / Background semantic ---- */
  --fg-1:           var(--lz-navy);          /* primary text */
  --fg-2:           var(--lz-grey-500);      /* secondary text */
  --fg-3:           var(--lz-grey-400);      /* tertiary / placeholder */
  --fg-inverse:     var(--lz-white);
  --bg-1:           var(--lz-white);         /* card / surface */
  --bg-2:           var(--lz-bg);            /* page */
  --bg-3:           var(--lz-grey-100);      /* subtle fills */
  --bg-dark:        var(--lz-navy-deep);
  --border-1:       var(--lz-grey-200);
  --border-2:       var(--lz-grey-300);

  /* ---- Type families ---- */
  --font-display:   "Clash Display", "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:      "Work Sans", "Inter", system-ui, sans-serif;
  --font-mono:      ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* ---- Type scale (display = Clash, body = Work Sans) ---- */
  --display-2xl:    clamp(56px, 7vw, 96px);   /* hero */
  --display-xl:     clamp(44px, 5.5vw, 72px); /* section hero */
  --display-lg:     40px;                     /* h1 */
  --display-md:     32px;                     /* h2 */
  --display-sm:     24px;                     /* h3 */
  --text-xl:        20px;                     /* lead body */
  --text-lg:        18px;                     /* large body */
  --text-md:        16px;                     /* body */
  --text-sm:        14px;                     /* meta / labels */
  --text-xs:        12px;                     /* micro */

  --leading-tight:  1.08;
  --leading-snug:   1.2;
  --leading-normal: 1.45;
  --leading-relaxed:1.6;

  --tracking-tight: -0.02em;
  --tracking-snug:  -0.01em;
  --tracking-normal:0;
  --tracking-wide:  0.04em;

  /* ---- Radii ---- */
  --radius-xs:      6px;
  --radius-sm:      8px;
  --radius-md:      12px;   /* canonical card radius from brand guidelines */
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-pill:    9999px;

  /* ---- Spacing scale (4px base) ---- */
  --space-0:        0;
  --space-1:        4px;
  --space-2:        8px;
  --space-3:        12px;
  --space-4:        16px;
  --space-5:        20px;
  --space-6:        24px;
  --space-8:        32px;
  --space-10:       40px;
  --space-12:       48px;
  --space-16:       64px;
  --space-20:       80px;
  --space-24:       96px;

  /* ---- Shadows (soft, low-key — Localizy uses card lift, not drama) ---- */
  --shadow-xs:      0 1px 2px rgba(35,49,66,0.06);
  --shadow-sm:      0 2px 6px rgba(35,49,66,0.06), 0 1px 2px rgba(35,49,66,0.04);
  --shadow-md:      0 8px 24px rgba(35,49,66,0.08), 0 2px 4px rgba(35,49,66,0.04);
  --shadow-lg:      0 16px 40px rgba(35,49,66,0.12), 0 4px 8px rgba(35,49,66,0.06);
  --shadow-pop:     0 24px 60px rgba(35,49,66,0.18);

  /* sticker-style outline — for sticker SVGs / "outline" elements */
  --outline-sticker:2px solid var(--lz-ink);

  /* ---- Motion ---- */
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:       120ms;
  --dur-base:       180ms;
  --dur-slow:       320ms;
}

/* ---------- Element defaults ------------------------------------------- */

html { font-family: var(--font-body); color: var(--fg-1); background: var(--bg-2); }

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--lz-navy);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--display-lg); }
h2 { font-size: var(--display-md); }
h3 { font-size: var(--display-sm); }
h4 { font-size: var(--text-xl); font-weight: 500; }
h5 { font-size: var(--text-lg); font-weight: 500; }

p  { margin: 0; color: var(--fg-1); text-wrap: pretty; }

a  { color: var(--lz-red-bright); text-decoration: none; transition: color var(--dur-base) var(--ease-out); }
a:hover { color: var(--lz-red); }

code, pre, kbd {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* ---------- Utility classes ------------------------------------------- */

.lz-display { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--tracking-tight); }
.lz-body    { font-family: var(--font-body);    font-weight: 400; }
.lz-eyebrow { font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--lz-red-bright); }
.lz-meta    { color: var(--fg-2); font-size: var(--text-sm); }

.lz-card    { background: var(--bg-1); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.lz-surface { background: var(--bg-2); }
