/* Emily's world: this site's own design tokens, loaded right after tokens.css (the gallery's,
   copied as it is, so it can be re-copied without losing anything here).

   The same two tiers as the gallery's:
   - Primitives: the raw blush / rose / plum palette, and the few sizes and durations the gallery
     doesn't have. Named for what they are, never used by components directly.
   - Semantics: what a value is for (color-loader-bg-outer, z-loader). Components use these.
   Wherever the gallery already has a token with the same value, the component uses that one
   (--size-control, --motion-hover, --shadow-icon ...) and nothing is added here. */

:root {
  /* ---------- primitives: colour ---------- */
  --blush-50: #fbeef0;
  --blush-100: #f3dde1;
  --blush-200: #f5c4d3;
  --blush-75: #ffe3ec;
  --blush-25: #fbf3ef;
  --rose-gold-500: #c98672;
  --rose-600: #d0485f;
  --plum-800: #5a2a35;
  --plum-500: #8a5a63;
  --plum-smoke-rgb: 70 40 46;
  --card-rgb: 255 248 246;

  /* ---------- primitives: size, radius, motion ---------- */
  --space-22: 22px;
  --size-icon-20: 20px;
  --size-icon-17: 17px;
  --size-icon-16: 16px;
  --radius-22: 22px;
  --radius-4: 4px;
  --duration-350: 350ms;
  --duration-600: 600ms;
  --duration-800: 800ms;
  --duration-1100: 1100ms;
  --duration-instant: 10ms;
  --curve-glide: cubic-bezier(0.2, 0.8, 0.2, 1);   /* the hold bar's buttons rising */

  /* =================== semantics =================== */

  /* colour: the page */
  --color-page-bg: var(--blush-100);               /* behind the room, the end of the loader's blush */
  --color-text: var(--plum-800);
  --color-text-soft: var(--plum-500);              /* the loader's line of text */
  --color-card: rgb(var(--card-rgb) / 0.86);
  --color-accent-pink: var(--rose-600);

  /* colour: the loading screen and the portal's flash */
  --color-loader-bg-inner: var(--blush-50);        /* the loader's radial gradient, centre ... */
  --color-loader-bg-outer: var(--color-page-bg);   /* ... to edge */
  --color-accent-ring: var(--rose-gold-500);       /* the ring drawing round the wordmark (loading.js sets it as the SVG's stroke: keep in step) */
  --color-switch-on: var(--grey-950);             /* an on/off switch's track when on (boyfriend mode) */
  --color-ring-gradient-from: var(--blush-50);     /* loading.js's fill gradient stops, likewise */
  --color-ring-gradient-to: var(--blush-100);
  --gradient-loader: radial-gradient(circle at 50% 40%, var(--color-loader-bg-inner), var(--color-loader-bg-outer));
  --gradient-veil: radial-gradient(circle at 50% 50%, var(--white) 0%, var(--blush-75) 45%, var(--blush-200) 100%);

  /* colour: glass buttons on the room, before (or without) the 3D glass */
  --color-on-glass-rose: var(--blush-25);          /* a label on the room's glass (a touch warmer than the gallery's) */
  --color-glass-fallback-rose: rgb(var(--plum-smoke-rgb) / 0.5);  /* smoked rose, until the glass is drawn */
  --focus-ring-on-glass-rose: 2px solid var(--color-on-glass-rose);

  /* colour: the volume bar */
  --color-volume-track: rgb(var(--white-rgb) / 0.28);
  --color-volume-fill: rgb(var(--white-rgb) / 0.9);
  --color-volume-thumb: var(--white);
  --shadow-volume-thumb: 0 1px 4px rgb(var(--black-rgb) / 0.3);

  /* colour: the scenery panel's pictures */
  --color-thumb-bg: rgb(var(--white-rgb) / 0.18);
  --color-thumb-rim: rgb(var(--white-rgb) / 0.25);
  --color-thumb-rim-selected: rgb(var(--black-rgb) / 0.12);

  /* type: About's letter, signed in Lance's hand (Caveat, the journal's font, in assets/fonts) */
  --font-hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;
  --font-script: 'Pinyon Script', 'Snell Roundhand', 'Apple Chancery', cursive; /* the wordmark's script (the loading screen's "Emily") */
  --type-letter-title: var(--weight-regular) 46px/1.15 var(--font-script); /* About's "Emily," */
  --type-signature: var(--weight-regular) var(--font-size-signature)/1 var(--font-hand);
  --font-size-signature: 34px;

  /* colour: the design log's fade behind the chip strip on a phone */
  --gradient-log-strip: linear-gradient(rgb(8 8 8 / 0), rgb(8 8 8 / 0.98) 45%);

  /* layout: where the room's controls sit */
  --edge-controls: var(--space-20);                /* bottom controls to the bottom edge */
  --edge-top: var(--space-16);                     /* top corner controls to the top edge */
  --size-volume-panel-height: 148px;
  --size-volume-track-inset: var(--space-22);      /* the track's ends, in from the panel's */
  --size-volume-track-width: var(--space-6);
  --size-volume-thumb: 20px;
  --radius-bar: var(--radius-22);                  /* a panel as tall as a glass button, rounded like one */
  --radius-track: var(--radius-4);
  --size-icon: var(--size-icon-20);
  --size-icon-small: var(--size-icon-17);
  --size-icon-stop: var(--size-icon-16);
  --width-panel: 208px;                            /* the scenery panel */
  --size-option: 40px;                             /* a row in it */
  --size-thumb: 28px;                              /* its round picture */

  /* depth: above the gallery's z-controls ... z-tooltip, for what this site adds */
  --z-room-controls: 6;                            /* the room's glass buttons, the hold bar, the music bar, the scenery panel */
  --z-about: 7;                                    /* About (the letter): as high as the log, which comes after it and so sits on top */
  --z-log: 7;                                      /* the design log: over the room's buttons, under the portal's flash and the loader */
  --z-veil: 8;                                     /* the portal's flash */
  --z-loader: 10;                                  /* the loading screen, over everything */

  /* motion */
  --motion-loader-fade: var(--duration-800) var(--curve-ease);    /* the loader leaving */
  --motion-veil: var(--duration-600) var(--curve-ease);           /* the flash; the wordmark fading in */
  --motion-loader-in: var(--duration-400) var(--curve-ease);      /* the portal's loader arriving */
  --motion-rise: var(--duration-350) var(--curve-glide);          /* the hold bar's buttons rising */
  --motion-wait: var(--duration-1100) var(--curve-ease);          /* a thumbnail breathing while its picture loads */
  --motion-reduced: var(--duration-instant);                      /* what reduced motion shortens to */
}
