/* Ridata design system — tokens (from the "Ridata" design system, tokens.json).
   WordPress note: block classes cannot carry data-* attributes, so every theme selector
   also accepts a class: .is-theme-dark / .is-theme-light (add it as "Additional CSS class"). */

:root, [data-theme="dark"], .is-theme-dark {
  --brand-black: #000000;
  --brand-yellow: #FFCF25;
  --brand-white: #FFFFFF;
  --bg: var(--brand-black);
  --bg-section: #0A0A0A;
  --surface: #111111;
  --card: var(--brand-black);
  --surface-inverse: var(--brand-white);
  --border: #262626;
  --border-strong: #6B6B6B;
  --ink: var(--brand-white);
  --ink-body: #D6D6D2;
  --ink-headline-2: #BDBDB8;
  --ink-label: #A3A3A0;
  --ink-inverse: var(--brand-black);
  --accent: var(--brand-yellow);
  --accent-hover: #FFDB5C;
  --on-accent: var(--brand-black);
  --accent-text: var(--brand-yellow);
  --inverse-hover: #262626;
  --focus-ring: var(--brand-yellow);
  --positive: #45D89A;
  --negative: #FF6B57;
  --viz-1: var(--accent);
  --viz-2: var(--ink);
  --viz-3: var(--ink-label);
  --viz-4: #666664;
  --shadow-overlay: 0 16px 48px rgba(0,0,0,0.6);
}
[data-theme="light"], .is-theme-light {
  --brand-black: #000000;
  --brand-yellow: #FFCF25;
  --brand-white: #FFFFFF;
  --bg: #F2F2F24F;
  --bg-section: #F2F2F2;
  --surface: var(--brand-white);
  --card: var(--brand-white);
  --surface-inverse: var(--brand-black);
  --border: #DCDCDC;
  --border-strong: #808080;
  --ink: var(--brand-black);
  --ink-body: #4F4F4F;
  --ink-headline-2: #737373;
  --ink-label: #6A6A6A;
  --ink-inverse: var(--brand-white);
  --accent: var(--brand-yellow);
  --accent-hover: #F0BC00;
  --on-accent: var(--brand-black);
  --accent-text: #7A5C00;
  --inverse-hover: #262626;
  --focus-ring: var(--brand-black);
  --positive: #0E7A4C;
  --negative: #C2311F;
  --viz-1: var(--accent);
  --viz-2: var(--ink);
  --viz-3: var(--ink-label);
  --viz-4: #B5B5B2;
  --shadow-overlay: 0 12px 32px rgba(0,0,0,0.12);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;
  --radius-none: 0px;
  --radius-md: 4px;
  --container-max: 1280px;
  --border-width: 1px;
  --control-height: 48px;
  --signal-angle: 18deg;
  --font-sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* Type classes. Doubled with .rd-root so they win over Astra's heading rules (.entry-content h1 …). */
.t-display-xl, .rd-root .t-display-xl { font-family: var(--font-sans); font-size: 88px; line-height: 88px; font-weight: 500; letter-spacing: -0.035em; }
.t-display, .rd-root .t-display { font-family: var(--font-sans); font-size: 64px; line-height: 68px; font-weight: 500; letter-spacing: -0.03em; }
.t-h1, .rd-root .t-h1 { font-family: var(--font-sans); font-size: 48px; line-height: 56px; font-weight: 500; letter-spacing: -0.025em; }
.t-h2, .rd-root .t-h2 { font-family: var(--font-sans); font-size: 36px; line-height: 44px; font-weight: 500; letter-spacing: -0.02em; }
.t-h3, .rd-root .t-h3 { font-family: var(--font-sans); font-size: 28px; line-height: 36px; font-weight: 500; letter-spacing: -0.02em; }
.t-h4, .rd-root .t-h4 { font-family: var(--font-sans); font-size: 22px; line-height: 30px; font-weight: 500; letter-spacing: -0.01em; }
.t-quote, .rd-root .t-quote { font-family: var(--font-sans); font-size: 36px; line-height: 44px; font-weight: 400; letter-spacing: -0.02em; }
.t-body-lg, .rd-root .t-body-lg { font-family: var(--font-sans); font-size: 20px; line-height: 32px; font-weight: 400; }
.t-body, .rd-root .t-body { font-family: var(--font-sans); font-size: 17px; line-height: 28px; font-weight: 400; }
.t-body-sm, .rd-root .t-body-sm { font-family: var(--font-sans); font-size: 15px; line-height: 24px; font-weight: 400; }
.t-button, .rd-root .t-button { font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 500; }
.t-metric, .rd-root .t-metric { font-family: var(--font-mono); font-size: 56px; line-height: 56px; font-weight: 400; letter-spacing: -0.04em; }
.t-metric-sm, .rd-root .t-metric-sm { font-family: var(--font-mono); font-size: 28px; line-height: 36px; font-weight: 400; letter-spacing: -0.03em; }
.t-data, .rd-root .t-data { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0.01em; }
.t-code, .rd-root .t-code { font-family: var(--font-mono); font-size: 15px; line-height: 24px; font-weight: 400; }
.t-overline, .rd-root .t-overline { font-family: var(--font-mono); font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; }
