/* Foilshift brand tokens: "Slip" identity, v1.0 (December 2026)
   Fonts: Funnel Display, Funnel Sans, Martian Mono (all SIL OFL 1.1, free).
   Contrast ratios are WCAG 2.2 against the canvas named. */

@font-face { font-family: "Funnel Display"; src: url("../fonts/FunnelDisplay-Variable.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Sans";    src: url("../fonts/FunnelSans-Variable.woff2") format("woff2");    font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Martian Mono";   src: url("../fonts/MartianMono-Variable.woff2") format("woff2");   font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

:root {
  /* Ink: cool near-black. The dark canvas and all type on paper. */
  --ink-950: #0B0D11;  /* canvas (dark)       */
  --ink-900: #12151B;  /* surface             */
  --ink-850: #181C23;  /* raised              */
  --ink-800: #1F242C;  /* hover / inputs      */
  --ink-700: #2C313B;  /* borders on dark     */
  --ink-600: #444A55;  /* secondary text on paper  8.0:1 */
  --ink-500: #626874;  /* muted text on paper      5.1:1 */
  --ink-400: #8C919B;  /* muted text on ink        6.2:1 */
  --ink-300: #B4B8BF;

  /* Paper: warm card stock. The light canvas and all type on ink. */
  --paper-50:  #F6F3EC; /* canvas (light). Paper on ink = 17.6:1 */
  --paper-100: #EFEBE2;
  --paper-200: #E4DFD3;
  --paper-300: #D5CFC1; /* borders on paper */
  --paper-400: #B9B2A2;

  /* Seam: the brand accent. The one flat colour of the foil. */
  --seam-300: #FF8FB5;
  --seam-400: #FF5C93;
  --seam-500: #FF3D7F;  /* brand. On ink 5.8:1; ink text on it 5.8:1 */
  --seam-600: #E3205F;
  --seam-700: #C4124F;  /* seam as text/link on paper 5.3:1 */
  --seam-900: #4A0A20;

  /* Foil: reserved spectrum. Only used together, as light, when something is foil. */
  --foil-cyan:  #7CF0E6;
  --foil-lilac: #B9A2FF;
  --foil-rose:  #FF8FC4;
  --foil-gold:  #FFD58A;
  --foil: linear-gradient(60deg in oklch, var(--foil-cyan), var(--foil-lilac) 35%, var(--foil-rose) 65%, var(--foil-gold));
  /* Deeper foil for the small-size mark only (under ~48px), where pastel blurs into paper */
  --foil-rich: linear-gradient(60deg, #33E0D0, #9B7BFF 35%, #FF5FA8 65%, #FFC04D);

  /* States. "Ask" is a first-class state, not a warning. */
  --ask:        #A996FF; /* on ink 7.9:1   */
  --ask-ink:    #5B43C8; /* on paper 6.2:1 */
  --listed:     #3DDC97; /* on ink 11:1    */
  --listed-ink: #0F7A4F; /* on paper 4.8:1 */
  --check:      #FFB547; /* on ink 11:1    */
  --check-ink:  #8A5A00; /* on paper 5.4:1 */
  --error:      #FF5A5A; /* on ink 6.4:1   */
  --error-ink:  #C21F2B; /* on paper 5.4:1 */

  /* Type */
  --font-display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
  --font-sans: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type scale: 1.25 ratio, 16px base */
  --t-xs: 0.75rem;  --t-sm: 0.875rem; --t-base: 1rem;   --t-md: 1.25rem;
  --t-lg: 1.5625rem; --t-xl: 1.953rem; --t-2xl: 2.441rem; --t-3xl: 3.052rem;
  --t-4xl: 3.815rem; --t-5xl: clamp(3rem, 7vw, 6rem);

  /* Geometry from the card: 63 x 88 mm, 3 mm corner */
  --card-ratio: 63 / 88;
  --card-radius: 4.8%;       /* true card corner, as a % of width */
  --radius-sm: 6px; --radius: 10px; --radius-lg: 16px; --radius-xl: 24px;
  --seam-angle: 60deg;       /* the cut, used for dividers, sweeps and patterns */

  /* Motion */
  --ease-slip: cubic-bezier(.2, .9, .1, 1);   /* fast out, soft landing */
  --ease-snap: cubic-bezier(.5, 0, .1, 1.35); /* a small overshoot on lock */
  --dur-1: 120ms; --dur-2: 240ms; --dur-3: 480ms;
}
