/* House Style tokens (A158, Nov 1 2026): the main look for documents, studios, trackers and documentation.
   Perplexity-inspired: values measured from the live perplexity.ai stylesheet and Ivan's screenshots on Nov 1 2026
   (references/RESEARCH-2026-11-01.md), improved where it falls short (tertiary text, focus, tap size).
   Brand-free. Vanterly, Somov, Nutic and SellerFlow keep their own looks.
   Fonts: open-licence stand-ins (Inter, Source Serif 4) from fonts/; never Perplexity's own fonts, logo or wording.
   Check every change: python3 scripts/check_contrast.py */

@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/Inter-Variable.woff2") format("woff2")}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url("fonts/SourceSerif4-Variable.woff2") format("woff2")}

:root{
  /* Surfaces */
  --hs-page:#FBFBFB;          /* page */
  --hs-raised:#FFFFFF;        /* cards, inputs, menus */
  --hs-panel:#F3F3F3;         /* side panel, table head, quiet blocks (neutral 3.5% over the page) */
  --hs-panel-2:#EBEBEB;       /* pressed panel, track of a meter (neutral 7%) */
  /* Ink: one colour at set strengths */
  --hs-ink:#0B2833;
  --hs-ink-2:color-mix(in srgb, var(--hs-ink) 75%, transparent);   /* secondary text */
  --hs-ink-3:color-mix(in srgb, var(--hs-ink) 65%, transparent);   /* captions, dates (Perplexity uses 50%, which fails) */
  --hs-ink-off:color-mix(in srgb, var(--hs-ink) 20%, transparent); /* disabled marks only, never text that matters */
  /* Lines */
  --hs-line:color-mix(in srgb, var(--hs-ink) 15%, transparent);
  --hs-line-soft:color-mix(in srgb, var(--hs-ink) 7%, transparent);
  /* Wash for hover, tracks and tonal controls: tinted toward the accent, as perplexity.ai's composer is (measured Nov 1: track #EBF2F3 = teal 8% on white) */
  --hs-wash:color-mix(in srgb, var(--hs-accent) 4.5%, transparent);
  --hs-wash-2:color-mix(in srgb, var(--hs-accent) 8%, transparent);
  --hs-wash-3:color-mix(in srgb, var(--hs-accent) 12%, transparent);
  --hs-tray:color-mix(in srgb, var(--hs-accent) 8%, var(--hs-page));   /* the band that holds a white card and its extras */
  /* Teal: links, chosen states, focus */
  --hs-accent:#016A71;
  --hs-accent-hover:#0C4F54;
  --hs-accent-press:#0F3639;
  --hs-accent-soft:color-mix(in srgb, var(--hs-accent) 9%, transparent);   /* badges, chosen rows */
  --hs-accent-subtle:color-mix(in srgb, var(--hs-accent) 5.5%, transparent);
  --hs-accent-line:color-mix(in srgb, var(--hs-accent) 40%, transparent);
  /* Main button: near-black, as Perplexity uses now */
  --hs-solid:#252525; --hs-solid-hover:color-mix(in srgb, #252525 85%, #FFFFFF); --hs-on-solid:#FBFBFB;
  /* Status (always with a word or icon) */
  --hs-good:#016B1D; --hs-bad:#A23544; --hs-warn:#97431A; --hs-gold:#825503;
  --hs-good-soft:color-mix(in srgb, var(--hs-good) 9%, transparent);
  --hs-bad-soft:color-mix(in srgb, var(--hs-bad) 9%, transparent);
  --hs-warn-soft:color-mix(in srgb, var(--hs-warn) 9%, transparent);
  --hs-gold-soft:color-mix(in srgb, var(--hs-gold) 9%, transparent);
  /* Charts: lines and areas only, not text */
  --hs-up:#18882D; --hs-down:#CD495A; --hs-chart-1:#016A71; --hs-chart-2:#825503; --hs-chart-3:#5F7279;
  /* Mist: the soft top of a feature card (sage to warm cream) */
  --hs-mist:linear-gradient(155deg,#D3DCD8 0%,#E4E6E1 42%,#F1EEE9 100%);
  /* Shadows: a half-pixel ring plus a 1 px drop, so cards need no border */
  --hs-shadow-sm:0 0 0 .5px color-mix(in srgb,var(--hs-ink) 10%,transparent),0 1px 0 0 color-mix(in srgb,var(--hs-ink) 2%,transparent),0 1px 2px 0 color-mix(in srgb,var(--hs-ink) 5%,transparent);
  --hs-shadow-md:0 0 0 .5px color-mix(in srgb,var(--hs-ink) 12%,transparent),0 1px 0 0 color-mix(in srgb,var(--hs-ink) 3%,transparent),0 2px 6px 0 color-mix(in srgb,var(--hs-ink) 5%,transparent);
  /* Chosen: lifted onto white with a pale-teal hairline and a teal-tinted drop (the reference keeps the word dark) */
  --hs-shadow-chosen:0 0 0 1px var(--hs-accent-line),0 1px 3px 0 color-mix(in srgb,var(--hs-accent) 22%,transparent);
  --hs-shadow-lg:0 0 0 .5px color-mix(in srgb,var(--hs-ink) 12%,transparent),0 4px 16px -2px color-mix(in srgb,var(--hs-ink) 10%,transparent);
  /* Corners */
  --hs-r-xs:4px; --hs-r-sm:6px; --hs-r-md:8px; --hs-r-lg:12px; --hs-r-xl:16px; --hs-r-2xl:20px; --hs-r-pill:9999px;
  /* Space (4 px steps) */
  --hs-1:4px; --hs-2:8px; --hs-3:12px; --hs-4:16px; --hs-5:20px; --hs-6:24px; --hs-8:32px; --hs-10:40px; --hs-12:48px; --hs-16:64px;
  /* Type */
  --hs-sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --hs-serif:"Source Serif 4","Iowan Old Style","Charter",Georgia,serif;
  --hs-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --hs-read:68ch;            /* reading width for documents */
  /* Motion (interaction-patterns: quick, named, calm version below) */
  --hs-ease:cubic-bezier(.22,1,.36,1);        /* ease-out-quint: opening, moving */
  --hs-ease-io:cubic-bezier(.65,0,.35,1);     /* in-out cubic: swaps */
  --hs-quick:150ms; --hs-open:260ms;
  --hs-tap:44px;             /* minimum touch target */
  color-scheme:light;
}

@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --hs-page:#15171B; --hs-raised:#1B1D21; --hs-panel:#1C1E22; --hs-panel-2:#24262A;
  --hs-ink:#DBDEE3;
  --hs-ink-2:color-mix(in srgb, var(--hs-ink) 70%, transparent);
  --hs-ink-3:color-mix(in srgb, var(--hs-ink) 60%, transparent);
  --hs-ink-off:color-mix(in srgb, var(--hs-ink) 20%, transparent);
  --hs-line:color-mix(in srgb, var(--hs-ink) 14%, transparent);
  --hs-line-soft:color-mix(in srgb, var(--hs-ink) 7%, transparent);
  --hs-wash:color-mix(in srgb, var(--hs-accent) 5%, transparent); --hs-wash-2:color-mix(in srgb, var(--hs-accent) 9%, transparent); --hs-wash-3:color-mix(in srgb, var(--hs-accent) 13%, transparent); --hs-tray:color-mix(in srgb, var(--hs-accent) 4%, var(--hs-page));
  --hs-accent:#4E99A3; --hs-accent-hover:#64A6AF; --hs-accent-press:#90BFC5;
  --hs-solid:#DBDEE3; --hs-solid-hover:color-mix(in srgb, #DBDEE3 85%, #15171B); --hs-on-solid:#15171B;
  --hs-good:#539E55; --hs-bad:#DC6973; --hs-warn:#D57141; --hs-gold:#D1953A;
  --hs-good-soft:color-mix(in srgb, var(--hs-good) 7.5%, transparent); --hs-bad-soft:color-mix(in srgb, var(--hs-bad) 7.5%, transparent);
  --hs-warn-soft:color-mix(in srgb, var(--hs-warn) 7.5%, transparent); --hs-gold-soft:color-mix(in srgb, var(--hs-gold) 7.5%, transparent);  /* 9% fails on the dark panel */
  --hs-up:#539E55; --hs-down:#DC6973; --hs-chart-1:#4E99A3; --hs-chart-2:#D1953A; --hs-chart-3:#96989D;
  --hs-mist:linear-gradient(155deg,#22302F 0%,#1D2124 50%,#1B1D21 100%);
  color-scheme:dark}}
:root[data-theme="dark"]{
  --hs-page:#15171B; --hs-raised:#1B1D21; --hs-panel:#1C1E22; --hs-panel-2:#24262A;
  --hs-ink:#DBDEE3;
  --hs-ink-2:color-mix(in srgb, var(--hs-ink) 70%, transparent);
  --hs-ink-3:color-mix(in srgb, var(--hs-ink) 60%, transparent);
  --hs-ink-off:color-mix(in srgb, var(--hs-ink) 20%, transparent);
  --hs-line:color-mix(in srgb, var(--hs-ink) 14%, transparent);
  --hs-line-soft:color-mix(in srgb, var(--hs-ink) 7%, transparent);
  --hs-wash:color-mix(in srgb, var(--hs-accent) 5%, transparent); --hs-wash-2:color-mix(in srgb, var(--hs-accent) 9%, transparent); --hs-wash-3:color-mix(in srgb, var(--hs-accent) 13%, transparent); --hs-tray:color-mix(in srgb, var(--hs-accent) 4%, var(--hs-page));
  --hs-accent:#4E99A3; --hs-accent-hover:#64A6AF; --hs-accent-press:#90BFC5;
  --hs-solid:#DBDEE3; --hs-solid-hover:color-mix(in srgb, #DBDEE3 85%, #15171B); --hs-on-solid:#15171B;
  --hs-good:#539E55; --hs-bad:#DC6973; --hs-warn:#D57141; --hs-gold:#D1953A;
  --hs-good-soft:color-mix(in srgb, var(--hs-good) 7.5%, transparent); --hs-bad-soft:color-mix(in srgb, var(--hs-bad) 7.5%, transparent);
  --hs-warn-soft:color-mix(in srgb, var(--hs-warn) 7.5%, transparent); --hs-gold-soft:color-mix(in srgb, var(--hs-gold) 7.5%, transparent);  /* 9% fails on the dark panel */
  --hs-up:#539E55; --hs-down:#DC6973; --hs-chart-1:#4E99A3; --hs-chart-2:#D1953A; --hs-chart-3:#96989D;
  --hs-mist:linear-gradient(155deg,#22302F 0%,#1D2124 50%,#1B1D21 100%);
  color-scheme:dark}
