/* ------------------------------------------------------------------
   SacredForm - the design tokens the app and the guide share
   One source for the typefaces, the colours and what each colour is for,
   the corners and the motion. The app's src/style.css imports this file
   (the build inlines it); each guide page links it before public/site.css.
   The rules for using them are in docs/design.md.
------------------------------------------------------------------- */
/* The two typefaces, served from this site (public/fonts, SIL Open Font License):
   Inter for the interface, Cormorant Garamond for titles. Each file is one
   script, fetched only when a page shows a letter from it. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/inter-v20-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/inter-v20-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/inter-v20-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/cormorant-garamond-v21-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/cormorant-garamond-v21-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/cormorant-garamond-italic-v21-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/cormorant-garamond-italic-v21-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #04040b;
  --bg-2: #0a0a1c;
  --panel: rgba(14, 13, 32, 0.72);
  --panel-solid: #0e0d20;
  --panel-2: rgba(255, 255, 255, 0.04);
  --panel-flat: rgb(11, 10, 26);   /* --panel as it looks over --bg: sticky heads inside a panel */
  --panel-hover: rgba(40, 36, 70, 0.8);   /* a button under the pointer */
  --thumb-bg: #06060f;   /* the dark ground behind figure thumbnails */
  --line: rgba(232, 193, 112, .16);   /* a gold hairline: only beside gold (the main suggestion, a moment) */
  --line-2: rgba(255, 255, 255, 0.08);   /* the hairline round panels, cards and fields */
  --line-strong: rgba(255, 255, 255, 0.16);   /* the same, brighter: under the pointer, and round what floats */
  --gold: #e8c170;
  --gold-2: #f6dfa6;
  --on-gold: var(--bg);   /* text and icons on a gold fill */
  /* Each colour has one job, so a glance says what a thing is. Neutrals carry nearly everything;
     gold is the scarce accent, and means one of four things only:
       the main action of a view (a solid fill, one per view),
       something switched on or sounding (gold ink on a gold edge: --on-*),
       the brand and a view's display title, and keyboard focus.
     Where you are and which option is chosen is never gold: it is a raised neutral surface (--sel-*),
     as a lit tab or a pressed key is lighter than its neighbours. */
  --sel-bg: rgba(255, 255, 255, 0.13);
  --sel-fg: var(--text);
  --sel-line: rgba(255, 255, 255, 0.38);   /* the edge of a chosen card or tile */
  /* strong enough to read as on at a glance, at rest and not only under the pointer */
  --on-bg: rgba(232, 193, 112, .16);
  --on-line: rgba(232, 193, 112, .9);
  --on-fg: var(--gold-2);
  /* the main action's fill: a shade deeper than the gold of lines and ink, so a large one does not glare */
  --accent-fill: #ddb462;
  --accent-fill-hover: #e8c170;
  --violet: #a78bfa;
  --cyan: #67e8f9;
  --rose: #f472b6;
  --red: #f87171;   /* recording, and actions that delete */
  --red-soft: #fca5a5;
  --text: #ece8f6;
  --text-soft: #d6d1e6;
  --text-dim: #cfc9e2;
  --muted: #9a94b8;
  --faint: #857fa1;
  /* gold at set strengths: washes on hover and selection, borders, glows */
  --gold-a06: rgba(232, 193, 112, .06);
  --gold-a08: rgba(232, 193, 112, .08);
  --gold-a10: rgba(232, 193, 112, .1);
  --gold-a12: rgba(232, 193, 112, .12);
  --gold-a14: rgba(232, 193, 112, .14);
  --gold-a25: rgba(232, 193, 112, .25);
  --gold-a35: rgba(232, 193, 112, .35);
  --gold-a45: rgba(232, 193, 112, .45);
  --gold-a50: rgba(232, 193, 112, .5);
  --gold-a60: rgba(232, 193, 112, .6);
  --gold-a70: rgba(232, 193, 112, .7);
  --glow: 0 0 24px var(--gold-a25);
  /* corners: tags and thumbnails, controls, cards, panels, sheets, pills */
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  /* the typefaces above */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 0.15s;   /* small feedback: tabs, tooltips */
  --dur: 0.2s;         /* hovers and toggles */
  --dur-slow: 0.35s;   /* panels and bars that move */
  color-scheme: dark;
}
