/* AIDealFinds design tokens.
   Concept: "Is your light on?" A main street at dusk. Night ink and dusk blue
   carry the hero, header and footer; reading sections are white with cool
   light bands; porch-light amber always means "found / readable". Two bright
   hues (blue, teal) add a few confident color sections. Agent feeds use the
   terminal tokens (--term-*).
   Single deliberate look (no dark-mode flip): every surface sets its own colors. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Palette (SPEC section 7) */
  --ink: #0D1524;          /* night ink */
  --dusk: #1E2A44;         /* dusk blue */
  --dusk-2: #2A3858;       /* lifted dusk for borders on night */
  --amber: #FFB627;        /* porch light: the "found" accent */
  --amber-soft: #FFE2A3;
  --amber-ink: #7A4D00;    /* amber family dark enough for text on white and tints (AA) */
  --bg: #FFFFFF;           /* page background for reading */
  --bg-alt: #F6F8FB;       /* alternating light band (cool neutral) */
  --mist: #EEF2F7;         /* quiet fills on white */
  --cream: var(--bg-alt);  /* legacy name: quiet fill / alt band */
  --paper: #FFFFFF;        /* card surface */
  --sand: #E3E8EF;         /* hairlines and quiet fills */
  --line-strong: #7F8BA2;  /* form control borders (3:1 on white) */
  --slate: #3B4660;        /* body text */
  --slate-2: #5A6580;      /* secondary text (AA on white and --bg-alt) */
  --green: #2FBF71;        /* pass fill */
  --green-ink: #17663B;    /* pass text on light */
  --coral: #E5533D;        /* fail fill */
  --coral-ink: #A8321F;    /* fail text on light */
  --warn: #E89B12;
  --warn-ink: #7A4D00;
  --night-text: #E9EDF5;   /* body text on night */
  --night-muted: #A9B4CA;  /* secondary text on night (AA on ink and dusk) */

  /* Bright hues: at most these two plus amber, site-wide. */
  --blue: #1F5BD6;         /* shopper band: white text 5.9:1 */
  --blue-ink: #1D4ED8;     /* blue text on white / tint */
  --blue-tint: #E6EEFF;
  --on-blue-muted: #E6EEFF;/* secondary text on --blue */
  --teal: #14B8A6;         /* chip fill with ink text 7.3:1 */
  --teal-ink: #0F766E;     /* teal text on white / tint */
  --teal-tint: #DDF7F3;
  --amber-tint: #FFF4DB;

  /* Terminal (agent feeds): near-black green panel, phosphor text. */
  --term-bg: #07130D;
  --term-bar: #0C1E15;
  --term-line: rgba(61, 255, 143, 0.16);
  --term-text: #3DFF8F;    /* 14:1 on --term-bg */
  --term-soft: #9BE7BC;    /* 13:1 */
  --term-dim: #6FAE8A;     /* 7.3:1, timestamps */
  --term-found: var(--amber);
  --font-term: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;

  /* Type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.3rem + 2.2vw, 2.875rem);
  --fs-hero: clamp(2.05rem, 1.1rem + 3.7vw, 4.1rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --header-h: 64px;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 20px rgba(16, 24, 40, 0.07);
  --shadow-2: 0 2px 6px rgba(16, 24, 40, 0.07), 0 18px 40px rgba(16, 24, 40, 0.13);
  --glow-amber: 0 0 0 1px rgba(255, 182, 39, 0.35), 0 10px 40px rgba(255, 182, 39, 0.28);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 140ms;
  --t-med: 260ms;
  --t-slow: 600ms;
}
