/* The shared tokens. Owned by the coordinator; site.css and demos.css both build on these and never redefine them.
   One world, light only: the product's "Sumi" (ink on rice paper, a mincho headline over a quiet gothic, hairlines instead of
   boxes, indigo for the one thing to do) plus Iris's spectrum, the colour ensō's stroke in its own order. */

@font-face { font-family: "Shippori Mincho"; font-weight: 500; font-display: swap; src: url(../fonts/ShipporiMincho-500.woff2) format("woff2"); }
@font-face { font-family: "Shippori Mincho"; font-weight: 700; font-display: swap; src: url(../fonts/ShipporiMincho-700.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 400; font-display: swap; src: url(../fonts/ZenKakuGothicNew-400.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 500; font-display: swap; src: url(../fonts/ZenKakuGothicNew-500.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-display: swap; src: url(../fonts/ZenKakuGothicNew-700.woff2) format("woff2"); }

:root {
  color-scheme: light;

  /* Paper and ink */
  --paper: #F2F1EC;            /* the page */
  --sheet: #F7F6F2;            /* app windows, pricing columns */
  --white: #FCFBF8;            /* the brightest surface: a message being typed, a card lifted */
  --ink: #1F1E1C;              /* text */
  --soft: #5D5B56;             /* secondary text */
  --faint: #6E6B65;            /* captions, small print (4.5:1 on paper) */
  --line: rgba(31, 30, 28, .13);   /* hairlines */
  --line-strong: rgba(31, 30, 28, .22);
  --act: #2E3F6E;              /* indigo: the one thing to do */
  --act-ink: #F2F1EC;
  --wash: #E2E5EC;             /* a quiet indigo tint */
  --ok: #3F7A4E;               /* done (a check), from the ensō's green, darkened for contrast */
  --seal: #B8452F;             /* vermilion: the seal's red, for a stamp or an alert, rarely */

  /* Iris's spectrum, in the order of the colour ensō's stroke (clockwise from the lower left) */
  --s-indigo: #1F1D6B;
  --s-violet: #463B9D;
  --s-blue: #486DB1;
  --s-teal: #3F80A1;
  --s-green: #60984E;
  --s-sage: #8DAE84;
  --s-gold: #D19E38;
  --s-orange: #E49B3E;
  --s-coral: #F07271;
  --s-rose: #F1CDD0;
  --spectrum: linear-gradient(90deg, var(--s-violet), var(--s-blue), var(--s-teal), var(--s-green), var(--s-gold), var(--s-orange), var(--s-coral));
  /* The ensō's sweep for a conic mask: starts at 240deg, runs clockwise about 300deg */
  --enso-from: 240deg;
  --enso-sweep: 300deg;

  /* Avatar tints for invented people (initials on a soft wash) */
  --tint-1: #E4E1F1;  --tint-2: #DCE6F2;  --tint-3: #DDEBDD;  --tint-4: #F3E7CF;  --tint-5: #F6DEDB;

  /* Type */
  --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Segoe UI", system-ui, sans-serif;

  /* Paper grain (Sumi's): fine fractal noise at 7% */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .12 0 0 0 0 .11 0 0 0 0 .1 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  /* Shape and depth: Sumi's slightly irregular corners, soft lift */
  --r-btn: 5px 6px 5px 7px;
  --r-window: 14px;
  --r-card: 10px;
  --shadow-window: 0 1px 0 rgba(31, 30, 28, .04), 0 18px 50px -18px rgba(31, 30, 28, .28);
  --shadow-lift: 0 10px 30px -14px rgba(31, 30, 28, .30);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-ink: cubic-bezier(.65, 0, .35, 1);
}
