/*
 * Cloud Drift: design tokens
 * A dreamy, storybook light style. Pages open on a periwinkle sky that fades to a pale
 * lilac page, with soft pink and blue cloud banks drawn in grainy gradients. Headlines are
 * a soft wonky serif with one italic violet phrase, body text is a round friendly sans.
 * The signatures: a frosted pill nav floating over the sky, a single coral pill button,
 * and hand-drawn doodles (ink outlines, flat fills) floating in the clouds.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400;1,9..144,500&family=Figtree:wght@400;500;600;700&display=swap" rel="stylesheet">
 */
:root {
  /* Sky and page */
  --cd-sky: #b9bdf7;
  --cd-sky-deep: #9fa4f0;
  --cd-haze: #dcdcfb;
  --cd-page: #f8f7fe;
  --cd-white: #ffffff;
  --cd-lilac: #efecfd;
  --cd-line: #e1defa;
  --cd-line-strong: #c9c4f2;

  /* Cloud banks */
  --cd-cloud-pink: #f6b3cf;
  --cd-cloud-blue: #a9c6f3;
  --cd-cloud-mint: #bfe6e4;

  /* Text */
  --cd-ink: #251a4d;
  --cd-soft: #5b5480;
  --cd-faint: #9893b8;

  /* Accents: violet for the italic phrase and links, coral for the one button that matters */
  --cd-violet: #6d3fdc;
  --cd-violet-deep: #5328bd;
  --cd-violet-soft: #e6ddfd;
  --cd-coral: #f2654f;
  --cd-coral-deep: #da4f3a;
  --cd-coral-soft: #fde1db;
  --cd-teal: #3f8f8c;

  /* Doodle colors, only for the drawings */
  --cd-draw-ink: #2a1f52;
  --cd-draw-lav: #b7a2f2;
  --cd-draw-butter: #f7d98b;
  --cd-draw-sea: #6cb8b3;

  /* Gradients */
  --cd-sky-gradient: linear-gradient(180deg, var(--cd-sky) 0%, var(--cd-haze) 62%, var(--cd-page) 100%);
  --cd-clouds:
    radial-gradient(42% 34% at 88% 72%, color-mix(in srgb, var(--cd-cloud-pink) 85%, transparent) 0%, transparent 70%),
    radial-gradient(36% 30% at 70% 92%, color-mix(in srgb, var(--cd-cloud-blue) 90%, transparent) 0%, transparent 72%),
    radial-gradient(30% 26% at 8% 96%, color-mix(in srgb, var(--cd-cloud-mint) 80%, transparent) 0%, transparent 70%);
  --cd-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 0 0.3 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Type */
  --cd-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --cd-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --cd-text-hero: clamp(40px, 5.4vw, 72px);
  --cd-text-h2: clamp(30px, 3.6vw, 46px);
  --cd-text-h3: 22px;
  --cd-text-lead: clamp(18px, 1.5vw, 20px);
  --cd-text-body: 16px;
  --cd-text-prose: 18px;
  --cd-text-small: 14px;
  --cd-text-micro: 12px;
  --cd-leading-display: 1.06;
  --cd-tracking-display: -.02em;

  /* Shape: pills for controls, soft 24px cards, frosted glass, gentle colored shadows */
  --cd-radius-pill: 999px;
  --cd-radius-card: 24px;
  --cd-radius-sm: 14px;
  --cd-glass: color-mix(in srgb, var(--cd-white) 62%, transparent);
  --cd-glass-border: 1px solid color-mix(in srgb, var(--cd-white) 85%, transparent);
  --cd-blur: blur(14px);
  --cd-shadow-soft: 0 10px 30px -12px rgba(54, 36, 140, .22);
  --cd-shadow-float: 0 24px 60px -24px rgba(54, 36, 140, .35);
  --cd-shadow-coral: 0 0 0 3px var(--cd-coral-soft), 0 8px 20px -8px rgba(218, 79, 58, .6);
  --cd-stroke: 2.4px;

  /* Space */
  --cd-gutter: clamp(20px, 3vw, 40px);
  --cd-section: clamp(72px, 9vw, 128px);
  --cd-container: 1180px;
  --cd-narrow: 700px;

  /* Motion: slow bobbing, nothing snappy */
  --cd-ease: cubic-bezier(.35, .8, .35, 1);
  --cd-speed: .3s;
  --cd-float: 7s;
}
