/* CASUAL - the launcher's face (design/starters/casual/launcher.css). Contract version 1.

   Friendly and warm: hand-drawn edges, a doodled background, bubbly chips, a launcher that waves.

   A STARTER DESIGN (designer-css-plan section 2.6): ours, read-only, loaded and changed and saved as a workspace's own
   design. Written ONLY against the --cv-* tokens and the data-cv-* parts, moments, turns, states and screens of
   design/contract.json - never a class name, never an !important. A design's CSS lands in the cascade layer cv.design (the
   server wraps it; on the go site's stage, Tests/Design/ShotCases.Starters.cs does), so it beats our default bundle
   without a specificity war. url() reaches only this package's own files.

   1. THE TOKENS - on :root of the launcher frame - announced, not built: the frame that will wear this file is P3
      (designer-css-plan 2.8); until then Tests/Design/ShotCases.Starters.cs draws it on a stand-in frame. They equal
      manifest.json's tokens, value for value (Tests/Design/StarterLibraryTests).
   2. THE LOOK - every shape, glow, picture and motion is scoped to the conversation's own screen
      ([data-cv-screen="thread"]). A protected screen (confirm, consent, payment, sign-in) and a protected part (the
      verified note, Powered by, a signature, an action's confirm) take COLOURS ONLY, inside the contrast floor - so when
      the locked layer lands (P1) nothing here has to move. Motion runs only when the reader has not asked for less. */

:root {
  /* reference */
  --cv-color-brand: #c2412b;
  --cv-color-ink: #3d2f2a;
  --cv-color-paper: #fff9ef;
  --cv-font-body: "Casual Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-font-display: "Casual Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-radius-s: 10px;
  --cv-radius-m: 16px;
  --cv-radius-l: 22px;
  --cv-shadow-1: 2px 3px 0 rgba(61, 47, 42, .18);
  --cv-shadow-2: 4px 5px 0 rgba(61, 47, 42, .2);
  --cv-shadow-3: 0 20px 50px rgba(61, 47, 42, .2);
  --cv-motion-fast: 120ms;
  --cv-motion-slow: 240ms;
  /* semantic */
  --cv-surface: #fffdf7;
  --cv-on-surface: var(--cv-color-ink);
  --cv-accent: #c2412b;
  --cv-on-accent: #ffffff;
  --cv-muted: #6e5d55;
  --cv-danger: #b3261e;
  --cv-focus: var(--cv-accent);
  --cv-bubble-me-bg: #ffe1d6;
  --cv-bubble-me-ink: #3d2f2a;
  --cv-bubble-them-bg: #ffffff;
  --cv-bubble-them-ink: #3d2f2a;
  --cv-field-font-size: 16px;
}

/* ── Casual ─────────────────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Casual Figtree";
  src: url("assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* A launcher that waves hello now and then; the teaser a sticky note. */
[data-cv-part="launcher"] { background: #c2412b; color: #ffffff; border: 2px solid #3d2f2a; border-radius: 18px 24px 16px 26px / 22px 16px 24px 18px; box-shadow: 3px 4px 0 #3d2f2a; }
[data-cv-part="launcher-badge"] { background: #ffe48a; color: #3d2f2a; border: 2px solid #3d2f2a; }
[data-cv-part="teaser"] { background: #fffbe8; color: #3d2f2a; font-family: var(--cv-font-display); font-weight: 700; border: 2px solid #3d2f2a; border-radius: 18px 24px 16px 26px / 22px 16px 24px 18px; box-shadow: 3px 4px 0 rgba(61, 47, 42, .25); transform: rotate(-1.5deg); }
[data-cv-part="teaser-close"] { color: #c2412b; }
@media (prefers-reduced-motion: no-preference) {
  [data-cv-part="launcher"] { transform-origin: 70% 90%; animation: cv-casual-wave 4s ease-in-out infinite; }
}
@keyframes cv-casual-wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-12deg); }
  20%, 40% { transform: rotate(12deg); }
  50% { transform: rotate(-4deg); }
}
