/* Woods & Co. — Design tokens
   Compiled from the Woods & Co. design system:
   fonts · colors · typography · spacing · elevation · base */

/* ---- Webfonts ----
   NOTE: Google Fonts substitutes. Replace with self-hosted brand fonts when available. */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Color tokens ----
   Palette: near-black onyx (Woods), warm bone/paper neutrals, warm ink,
   a single amber ember accent for leverage/emphasis. Restrained by design. */
:root {
  /* Onyx — primary brand */
  --onyx-950: #0A0E0F;
  --onyx-900: #111719;   /* primary */
  --onyx-800: #1B2428;
  --onyx-700: #26333A;
  --onyx-600: #33454D;
  --onyx-500: #4C626B;
  --onyx-400: #708891;
  --onyx-300: #9DB2BA;
  --onyx-200: #C6D3D7;
  --onyx-100: #E3EAEC;
  --onyx-050: #F1F5F5;

  /* Bone — warm paper neutrals */
  --bone-000: #FFFFFF;
  --bone-050: #FAF8F2;   /* app background */
  --bone-100: #F4F1E8;   /* surface tint */
  --bone-200: #EAE5D7;
  --bone-300: #DAD4C2;   /* hairline / border */
  --bone-400: #BDB6A0;

  /* Ink — cool near-black text scale */
  --ink-900: #14181A;
  --ink-800: #232A2C;
  --ink-700: #38403F;
  --ink-600: #464F4E;
  --ink-500: #667073;
  --ink-400: #8A9295;

  /* Ember — single warm accent */
  --ember-700: #8F5D18;
  --ember-600: #A96E1F;
  --ember-500: #C58225;  /* accent */
  --ember-300: #E0AE63;
  --ember-100: #F5E7CD;

  /* Semantic hues */
  --green-600: #2E7D53;
  --green-100: #E1F0E7;
  --amber-600: #B7791F;
  --amber-100: #F6EBCF;
  --red-600:   #A6402F;
  --red-100:   #F4E1DC;
  --blue-600:  #35617D;
  --blue-100:  #E0EAF0;

  /* ---- Semantic aliases ---- */
  --bg-app: var(--bone-050);
  --bg-inset: var(--bone-100);
  --surface-card: var(--bone-000);
  --surface-raised: var(--bone-000);
  --surface-dark: var(--onyx-900);

  --text-strong: var(--ink-900);
  --text-body: var(--ink-800);
  --text-muted: var(--ink-500);
  --text-faint: var(--ink-400);
  --text-on-dark: var(--bone-050);
  --text-on-dark-muted: var(--onyx-300);
  --text-accent: var(--ember-600);
  --text-brand: var(--onyx-900);

  --border-hairline: var(--bone-300);
  --border-strong: var(--bone-400);
  --border-brand: var(--onyx-900);

  --brand: var(--onyx-900);
  --brand-hover: var(--onyx-800);
  --brand-active: var(--onyx-950);
  --accent: var(--ember-500);
  --accent-hover: var(--ember-600);

  --focus-ring: color-mix(in srgb, var(--onyx-500) 55%, transparent);

  --success-fg: var(--green-600);
  --success-bg: var(--green-100);
  --warning-fg: var(--amber-600);
  --warning-bg: var(--amber-100);
  --danger-fg: var(--red-600);
  --danger-bg: var(--red-100);
  --info-fg: var(--blue-600);
  --info-bg: var(--blue-100);

  /* ---- Typography ---- */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 25px;
  --text-2xl: 32px;
  --text-3xl: 42px;
  --text-4xl: 56px;
  --text-5xl: 72px;
  --text-6xl: 92px;

  --leading-tight: 1.08;
  --leading-snug: 1.22;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

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

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---- Spacing, radius, sizing (4px base grid) ---- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 112px;
  --space-13: 160px;

  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  --container-narrow: 720px;
  --container-content: 1040px;
  --container-wide: 1280px;

  --control-h-sm: 32px;
  --control-h-md: 40px;
  --control-h-lg: 48px;

  /* ---- Elevation, motion ---- */
  --shadow-xs: 0 1px 2px rgba(17, 23, 25, 0.05);
  --shadow-sm: 0 1px 2px rgba(17, 23, 25, 0.05), 0 2px 6px rgba(17, 23, 25, 0.05);
  --shadow-md: 0 2px 4px rgba(17, 23, 25, 0.04), 0 8px 20px rgba(17, 23, 25, 0.07);
  --shadow-lg: 0 8px 16px rgba(17, 23, 25, 0.06), 0 24px 48px rgba(17, 23, 25, 0.10);
  --shadow-inset: inset 0 1px 2px rgba(17, 23, 25, 0.06);

  --border-width: 1px;
  --border-width-strong: 1.5px;

  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-med: 200ms;
  --dur-slow: 320ms;

  color-scheme: light;
  --link-color: var(--onyx-800);
  --link-hover: var(--onyx-950);
}
