/*
 * Revealed Dreams Design System v1.0 | 2026-11-02
 * Foundation: approved desktop mockup, Signal Orange #FF6B3D.
 * Brand logo/wordmark are separate approved assets, never redrawn via CSS.
 * Typeface choices and derived responsive values are V1 implementation specifications.
 */
:root {
  color-scheme: dark;

  /* Brand */
  --rd-accent: #ff6b3d;
  --rd-accent-hover: #ff825c;
  --rd-accent-active: #e65b33;
  --rd-on-accent: #101215;

  /* Foundations */
  --rd-canvas: #101215;
  --rd-canvas-deep: #0b0d0f;
  --rd-surface: #17191c;
  --rd-surface-elevated: #222529;
  --rd-surface-raised: #2c3035;
  --rd-text: #f5f5f5;
  --rd-text-secondary: #b5b8be;
  --rd-text-muted: #8f959c;
  --rd-border: #3c4148;
  --rd-border-strong: #626970;
  --rd-focus: #ff825c;
  --rd-overlay: rgb(0 0 0 / 76%);

  /* Semantics */
  --rd-bg-page: var(--rd-canvas);
  --rd-bg-panel: var(--rd-surface);
  --rd-bg-panel-hover: var(--rd-surface-elevated);
  --rd-fg-default: var(--rd-text);
  --rd-fg-subtle: var(--rd-text-secondary);
  --rd-fg-link: var(--rd-accent);
  --rd-border-default: var(--rd-border);
  --rd-border-input: var(--rd-border-strong);
  --rd-bg-action-primary: var(--rd-accent);
  --rd-fg-action-primary: var(--rd-on-accent);
  --rd-bg-action-primary-hover: var(--rd-accent-hover);
  --rd-bg-action-primary-active: var(--rd-accent-active);

  /* Typography: self-host the named fonts in the eventual production theme. */
  --rd-font-display: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
  --rd-font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --rd-type-hero: clamp(2.75rem, 4.5vw, 4.625rem);
  --rd-type-h2: clamp(1.75rem, 2.8vw, 2.875rem);
  --rd-type-h3: clamp(1.25rem, 1.8vw, 1.75rem);
  --rd-type-body: 1rem;
  --rd-type-small: .875rem;
  --rd-type-xs: .75rem;
  --rd-type-overline: .6875rem;
  --rd-weight-regular: 400;
  --rd-weight-medium: 500;
  --rd-weight-semibold: 600;
  --rd-weight-bold: 700;
  --rd-leading-display: 1.09;
  --rd-leading-heading: 1.19;
  --rd-leading-body: 1.55;
  --rd-tracking-display: -.037em;
  --rd-tracking-section: .31em;
  --rd-tracking-cta: .15em;

  /* Spacing: 4px foundation, 8px preferred rhythm. */
  --rd-space-1: 4px;
  --rd-space-2: 8px;
  --rd-space-3: 12px;
  --rd-space-4: 16px;
  --rd-space-5: 20px;
  --rd-space-6: 24px;
  --rd-space-8: 32px;
  --rd-space-10: 40px;
  --rd-space-12: 48px;
  --rd-space-16: 64px;
  --rd-space-20: 80px;
  --rd-space-24: 96px;

  /* Layout */
  --rd-content-max: 1288px;
  --rd-page-gutter: clamp(16px, 4.2vw, 80px);
  --rd-grid-gap: 24px;
  --rd-section-gap: 72px;
  --rd-header-height: 84px;
  --rd-card-cut: 16px;
  --rd-radius-control: 2px;
  --rd-radius-surface: 4px;

  /* Effects and interaction */
  --rd-shadow-panel: 0 18px 48px rgb(0 0 0 / 26%);
  --rd-shadow-accent: 0 0 20px rgb(255 107 61 / 13%);
  --rd-motion-fast: 140ms;
  --rd-motion-base: 190ms;
  --rd-motion-slow: 300ms;
  --rd-ease: cubic-bezier(.2, .65, .25, 1);
  --rd-z-header: 20;
  --rd-z-menu: 30;
}

@media (max-width: 1023px) {
  :root {
    --rd-page-gutter: 24px;
    --rd-grid-gap: 20px;
    --rd-section-gap: 56px;
    --rd-header-height: 72px;
  }
}

@media (max-width: 767px) {
  :root {
    --rd-page-gutter: 16px;
    --rd-grid-gap: 16px;
    --rd-section-gap: 40px;
    --rd-header-height: 64px;
    --rd-card-cut: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --rd-motion-fast: 0ms;
    --rd-motion-base: 0ms;
    --rd-motion-slow: 0ms;
  }
}
