@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;600&display=swap');

/* ── Retainly brand fonts ─────────────────────────────────────────── */
@font-face {
  font-family: 'Matter Light';
  src: url('/assets/fonts/Matter-Light.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Matter Regular';
  src: url('/assets/fonts/Matter-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'SeasonMix Regular';
  src: url('/assets/fonts/SeasonMix-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'SeasonSerif Regular';
  src: url('/assets/fonts/SeasonSerif-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* ── shadcn base tokens — Retainly warm palette ─────────────────── */
  --background: #f9f1e8;            /* Ivory */
  --foreground: #1e2820;            /* Ink */
  --card: #ffffff;
  --card-foreground: #1e2820;
  --popover: #ffffff;
  --popover-foreground: #1e2820;
  --primary: #D99E3A;              /* Honey */
  --primary-foreground: #1e2820;   /* Ink text on Honey */
  --secondary: #ece4d6;            /* warm sand surface */
  --secondary-foreground: #1e2820;
  --muted: #ece4d6;
  --muted-foreground: #7a7268;     /* warm gray */
  --accent: #efe7da;               /* subtle hover tint (NOT brand) */
  --accent-foreground: #1e2820;
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --border: #e3d9c9;
  --input: #e3d9c9;
  --ring: #c4a774;
  --success: #425441;
  --warning: #c4a774;
  --chart-1: #c4a774;
  --chart-2: #425441;
  --chart-3: #8a9e8c;
  --chart-4: #c8b89a;
  --chart-5: #7a7268;

  /* ── sidebar (Ink) ──────────────────────────────────────────────── */
  --sidebar: #1e2820;
  --sidebar-foreground: #d9d2c4;
  --sidebar-primary: #c4a774;
  --sidebar-primary-foreground: #1e2820;
  --sidebar-accent: #2a352c;
  --sidebar-accent-foreground: #f9f1e8;
  --sidebar-border: #313d33;
  --sidebar-ring: #c4a774;

  /* ── Retainly named brand tokens ────────────────────────────────── */
  --honey: #c4a774;
  --ink: #1e2820;
  --ivory: #f9f1e8;
  --evergreen: #425441;
  --sage: #8a9e8c;
  --dune: #c8b89a;
  /* Slate-blue for employee identity — reads as "internal team" against the
     evergreen used for external contractors. */
  --harbor: #3f5871;

  /* ── surface hierarchy ──────────────────────────────────────────── */
  --background-secondary: #efe7da;
  --surface-hover:   color-mix(in srgb, var(--foreground) 4%,  var(--card));
  --surface-active:  color-mix(in srgb, var(--foreground) 8%,  var(--card));
  --surface-elevated: #ffffff;

  /* ── border hierarchy ───────────────────────────────────────────── */
  --border-subtle: #ece4d6;
  --border-muted: #e7ddce;
  --border-strong: #cabfa9;

  /* ── text hierarchy ─────────────────────────────────────────────── */
  --foreground-secondary: #4a4b40;

  /* ── primary depth ──────────────────────────────────────────────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 16%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 10%, var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 6%,  var(--background));

  /* ── focus ring ─────────────────────────────────────────────────── */
  --focus-ring: color-mix(in srgb, var(--primary) 40%, transparent);

  /* ── error ──────────────────────────────────────────────────────── */
  --error: oklch(0.577 0.245 27.325);
  --error-foreground: oklch(0.985 0 0);

  /* ── radius ─────────────────────────────────────────────────────── */
  --radius: 0.25rem;
  --radius-none: 0rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.5rem;
  --radius-full: 9999px;

  /* ── typography ─────────────────────────────────────────────────── */
  --font-display: 'SeasonSerif Regular', ui-serif, Georgia, serif;
  --font-sans: 'Matter Regular', ui-sans-serif, system-ui, sans-serif;
  --font-ui: 'SeasonMix Regular', ui-sans-serif, system-ui, sans-serif;
  --font-light: 'Matter Light', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  /* Handwriting face for typed client signatures in the signing portal. */
  --font-signature: 'Dancing Script', ui-serif, cursive;
  --font-weight-display: 400;
  --line-height-display: 1.1;
  --tracking-display: -0.01em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ────────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 3px rgba(30, 40, 32, 0.08);
  --shadow-md: 0 4px 14px rgba(30, 40, 32, 0.10);
  --shadow-lg: 0 14px 40px rgba(30, 40, 32, 0.14);

  /* ── motion ─────────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
  /* iOS-feel curves: a quick settle for UI, a drawer curve for sheets. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* ── spacing ────────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  /* This app is warm-light by brand. Keep dark aligned to Ink surfaces. */
  --background: #1a231c;
  --foreground: #f9f1e8;
  --card: #222d24;
  --card-foreground: #f9f1e8;
  --popover: #222d24;
  --popover-foreground: #f9f1e8;
  --primary: #c4a774;
  --primary-foreground: #1e2820;
  --secondary: #2a352c;
  --secondary-foreground: #f9f1e8;
  --muted: #2a352c;
  --muted-foreground: #a49b8c;
  --accent: #2a352c;
  --accent-foreground: #f9f1e8;
  --border: #313d33;
  --input: #313d33;
  --ring: #c4a774;
  --background-secondary: #1e2820;
  --surface-elevated: #26312a;
  --border-subtle: #2a352c;
  --border-muted: #313d33;
  --border-strong: #3d4a3f;
  --foreground-secondary: #cabfa9;
  --primary-tint: color-mix(in srgb, var(--primary) 10%, var(--background));
  --focus-ring: color-mix(in srgb, var(--primary) 45%, transparent);
  --error: oklch(0.704 0.191 22.216);
  --error-foreground: oklch(0.985 0 0);
}

/* Stencil Tweaks */
/* /Stencil Tweaks */