/* CreativeX Design System — colors + type tokens */

@font-face {
  font-family: "Greed Standard";
  src: url("./fonts/GreedStandard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Greed Standard";
  src: url("./fonts/GreedStandard-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Greed Standard";
  src: url("./fonts/GreedStandard-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Victor Serif";
  src: url("./fonts/VictorSerif-40Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Victor Serif";
  src: url("./fonts/VictorSerif-45RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Victor Serif";
  src: url("./fonts/VictorSerif-50Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Victor Serif";
  src: url("./fonts/VictorSerif-55MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  /* — Primary palette — */
  --cx-coral: #FF6275;
  --cx-marigold: #F2A74E;
  --cx-ocean: #003C4F;
  --cx-denim: #031531;
  --cx-taupe: #F4F3EC;

  /* — Secondary — */
  --cx-purple-200: #EAE6FF;
  --cx-purple-500: #8777D9;
  --cx-blue-200: #DEEBFF;
  --cx-blue-400: #4C9AFF;

  /* — Rose scale — */
  --cx-rose-100:#FFDADF; --cx-rose-200:#FF9DA9; --cx-rose-300:#FF6275;
  --cx-rose-400:#FF445A; --cx-rose-500:#E33347; --cx-rose-600:#C60E24;
  --cx-rose-700:#992936; --cx-rose-800:#701B25;

  /* — Teal scale — */
  --cx-teal-100:#D6F5FF; --cx-teal-200:#C2F1FF; --cx-teal-300:#85E2FF;
  --cx-teal-400:#47D4FF; --cx-teal-500:#0AC6FF; --cx-teal-600:#009CCC;
  --cx-teal-700:#006D8F; --cx-teal-800:#003C4F;

  /* — Blue scale — */
  --cx-blue-100:#F2F6FC; --cx-blue-300:#B2D4FF; --cx-blue-500:#2684FF;
  --cx-blue-600:#0065FF; --cx-blue-700:#073983; --cx-blue-800:#031531;

  /* — Green scale — */
  --cx-green-100:#E2FFEE; --cx-green-200:#ABF5D1; --cx-green-300:#79F2C0;
  --cx-green-400:#57D9A3; --cx-green-500:#36B27E; --cx-green-600:#00875A;
  --cx-green-700:#006644; --cx-green-800:#004930;

  /* — Orange scale — */
  --cx-orange-100:#FCF1E5; --cx-orange-200:#FBD8AE; --cx-orange-300:#F8BF79;
  --cx-orange-400:#F2A74E; --cx-orange-500:#FF8B00; --cx-orange-600:#FF6600;
  --cx-orange-700:#EA5D00; --cx-orange-800:#C54F00;

  /* — Purple scale — */
  --cx-purple-100:#F9F8FF; --cx-purple-300:#C0B6F2; --cx-purple-400:#998DD9;
  --cx-purple-600:#6554C0; --cx-purple-700:#5243AA; --cx-purple-800:#403294;

  /* — Sand scale — */
  --cx-sand-100:#FAF9F5; --cx-sand-200:#F4F3EC; --cx-sand-300:#F5F0E3;
  --cx-sand-400:#F0E5CB; --cx-sand-500:#EEDCB2; --cx-sand-600:#BEB08E;
  --cx-sand-700:#5F5847; --cx-sand-800:#302C24;

  /* — Greys — */
  --cx-white:#FFFFFF; --cx-grey-100:#FAFAFA; --cx-grey-200:#F3F3F3;
  --cx-grey-300:#E0E0E0; --cx-grey-400:#BDBEBF; --cx-grey-500:#939598;
  --cx-grey-600:#767676; --cx-grey-700:#605E5C; --cx-grey-800:#414042;
  --cx-black:#000000;

  /* — Surface / paper. The site uses an off-white "paper" #FAFAF0 (rgb 250,250,240) for the canvas, and the cooler taupe #F4F3EC for soft cards. — */
  --cx-paper: #FAFAF0;
  --cx-paper-soft: #F4F3EC;
  --cx-card-cream: #F5F0E3;

  /* — Semantic foreground / background — */
  --cx-bg: var(--cx-paper);
  --cx-bg-elev: var(--cx-paper-soft);
  --cx-bg-inverse: var(--cx-ocean);
  --cx-fg: var(--cx-ocean);          /* primary text on light */
  --cx-fg-deep: var(--cx-denim);     /* deeper text variant */
  --cx-fg-muted: rgba(0, 60, 79, .65);
  --cx-fg-faint: rgba(0, 60, 79, .35);
  --cx-fg-on-dark: var(--cx-paper);
  --cx-line: rgba(0, 60, 79, .12);

  --cx-accent: var(--cx-coral);
  --cx-accent-warm: var(--cx-marigold);
  --cx-accent-deep: var(--cx-orange-800);

  /* — Type families — */
  --cx-font-sans: "Greed Standard", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --cx-font-serif: "Victor Serif", "STIX Two Text", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --cx-font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* — Type scale — */
  --cx-tracking-tight: -0.02em;
  --cx-tracking-normal: -0.012em; /* ~ -0.5px on 14px */
  --cx-tracking-display: -0.022em;

  --cx-text-display: 76px;
  --cx-text-h1: 60px;
  --cx-text-h2: 50px;
  --cx-text-h3: 36px;
  --cx-text-h4: 27px;
  --cx-text-h5: 20px;
  --cx-text-body: 18px;
  --cx-text-small: 14px;
  --cx-text-tag: 12px;

  /* — Radii — */
  --cx-radius-xs: 5px;
  --cx-radius-sm: 10px;
  --cx-radius-md: 20px;
  --cx-radius-lg: 30px;
  --cx-radius-pill: 999px;

  /* — Shadows / elevation — */
  --cx-shadow-soft: 0 2px 6px rgba(0, 60, 79, 0.06);
  --cx-shadow-cta: 0 4px 14px rgba(0, 0, 0, 0.25);
  --cx-shadow-card: 0 12px 40px rgba(0, 60, 79, 0.10);
  --cx-shadow-image: 0 1.92px 6.72px rgba(0, 0, 0, 0.15);

  /* — Spacing scale (8pt-ish, with brand-typical 33/40/45) — */
  --cx-space-1: 4px;
  --cx-space-2: 8px;
  --cx-space-3: 12px;
  --cx-space-4: 16px;
  --cx-space-5: 20px;
  --cx-space-6: 25px;
  --cx-space-8: 33px;
  --cx-space-10: 40px;
  --cx-space-12: 48px;
  --cx-space-16: 64px;
  --cx-space-20: 80px;
}

/* ─────────── semantic typography ─────────── */
.cx-display {
  font-family: var(--cx-font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: var(--cx-text-display);
  line-height: 0.95;
  letter-spacing: var(--cx-tracking-display);
  color: var(--cx-fg);
}
.cx-h1, .cx-h2 {
  font-family: var(--cx-font-serif);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--cx-fg);
}
.cx-h1 { font-size: var(--cx-text-h1); }
.cx-h2 { font-size: var(--cx-text-h2); }

/* When a heading is set in Greed (sans), it's display-medium with very tight leading. */
.cx-h1-sans, .cx-h2-sans {
  font-family: var(--cx-font-sans);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cx-fg-deep);
}
.cx-h1-sans { font-size: 62px; }
.cx-h2-sans { font-size: 44px; }

.cx-h3 {
  font-family: var(--cx-font-sans);
  font-weight: 600;
  font-size: var(--cx-text-h3);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cx-fg);
}
.cx-h4 {
  font-family: var(--cx-font-sans);
  font-weight: 600;
  font-size: var(--cx-text-h4);
  line-height: 1.05;
  letter-spacing: 0.1px;
  color: var(--cx-fg);
}
.cx-h5 {
  font-family: var(--cx-font-sans);
  font-weight: 500;
  font-size: var(--cx-text-h5);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--cx-fg);
}
.cx-eyebrow {
  font-family: var(--cx-font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cx-fg);
}
.cx-body {
  font-family: var(--cx-font-sans);
  font-weight: 400;
  font-size: var(--cx-text-body);
  line-height: 1.4;
  letter-spacing: 0.1px;
  color: var(--cx-fg);
}
.cx-small {
  font-family: var(--cx-font-sans);
  font-weight: 400;
  font-size: var(--cx-text-small);
  line-height: 1.3;
  letter-spacing: 0.2px;
  color: var(--cx-fg);
}
.cx-tag {
  font-family: var(--cx-font-sans);
  font-weight: 500;
  font-size: var(--cx-text-tag);
  line-height: 1;
  letter-spacing: 0.5px;
  font-variant: small-caps;
  text-transform: uppercase;
  color: var(--cx-fg);
}
.cx-italic-display {
  font-family: var(--cx-font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--cx-fg);
}

/* —— Affordance hint: pulse a control's outline when its panel arrives —— */
@keyframes attnHint {
  0%   { box-shadow: 0 0 0 0 rgba(255, 98, 117, 0); }
  16%  { box-shadow: 0 0 0 6px rgba(255, 98, 117, 0.45); }
  42%  { box-shadow: 0 0 0 14px rgba(255, 98, 117, 0); }
  58%  { box-shadow: 0 0 0 6px rgba(255, 98, 117, 0.34); }
  84%  { box-shadow: 0 0 0 14px rgba(255, 98, 117, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 98, 117, 0); }
}
.attn-hint { animation: attnHint 1.9s cubic-bezier(.4,0,.2,1) 1; }
@media (prefers-reduced-motion: reduce) {
  .attn-hint { animation: none; }
}

