@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@600;700;800&family=Inter:wght@400;600;700&display=swap");

/**
 * Precision Stark Elevated design tokens.
 * Canonical spec: docs/DESIGN.md
 */
:root {
  /* Core palette */
  --ps-background: #ffffff;
  --ps-text: #000000;
  --ps-text-muted: #1a1c1c;
  --ps-action: #ff9902;
  --ps-action-on: #000000;
  --ps-border: #000000;
  --ps-border-subtle: #e5e5e5;
  --ps-on-inverse: #ffffff;
  --ps-error: #ba1a1a;
  --ps-surface-gradient-start: #ffffff;
  --ps-surface-gradient-end: #f2f2f2;
  --ps-bevel-highlight: #ffffff;

  /* DESIGN.md (Precision Stark Elevated, 15 Oct 2026) colour roles. Additive:
     existing --ps-* values above are unchanged so rolled-out apps do not shift. */
  --ps-white: #ffffff;
  --ps-ink: #000000;
  --ps-surface: #f9f9f9;
  --ps-surface-container-low: #f3f3f3;
  --ps-surface-container: #eeeeee;
  --ps-surface-container-high: #e8e8e8;
  --ps-surface-container-highest: #e2e2e2;
  --ps-on-surface: #1a1c1c;
  --ps-on-surface-variant: #554434;
  --ps-outline: #887361;
  --ps-outline-variant: #dbc2ad;
  /* Orange text on white must use the deep tone: #ff9902 on #fff is ~2:1. */
  --ps-action-text: #8a5100;
  --ps-on-action-container: #653a00;
  --ps-secondary: #5e5e5e;
  --ps-tertiary: #006689;
  --ps-error-container: #ffdad6;

  /* Spacing (4px base) */
  --ps-space-xs: 4px;
  --ps-space-sm: 8px;
  --ps-space-md: 16px;
  --ps-space-lg: 24px;
  --ps-space-xl: 48px;
  --ps-container-max: 1200px;
  --ps-gutter: 24px;
  --ps-page-margin: 48px;
  --ps-section-gap: 48px;
  --ps-tap-target: 44px;

  /* Radius */
  --ps-radius-sm: 0.25rem;
  --ps-radius: 0.5rem;
  --ps-radius-md: 0.75rem;
  --ps-radius-lg: 1rem;
  --ps-radius-xl: 1.5rem;
  --ps-radius-full: 9999px;

  /* Typography */
  --ps-font-display: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ps-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ps-display-lg-size: 48px;
  --ps-display-lg-mobile-size: 32px;
  --ps-headline-lg-size: 32px;
  --ps-headline-md-size: 24px;
  --ps-body-lg-size: 18px;
  --ps-body-md-size: 16px;
  --ps-label-caps-size: 12px;
  --ps-line-display: 1.1;
  --ps-line-display-mobile: 1.2;
  --ps-line-headline: 1.3;
  --ps-line-body-lg: 1.6;
  --ps-line-body: 1.5;
  --ps-tracking-display: -0.02em;
  --ps-tracking-caps: 0.1em;

  /* Elevation */
  --ps-elevation-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  --ps-bevel-inset: inset 0 1px 0 var(--ps-bevel-highlight);
  --ps-surface-elevated: linear-gradient(180deg, var(--ps-surface-gradient-start) 0%, var(--ps-surface-gradient-end) 100%);
  --ps-input-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
  --ps-input-focus-glow: 0 0 0 3px rgba(255, 153, 2, 0.28);
  --ps-btn-primary-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 2px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  --ps-btn-secondary-shadow: inset 0 1px 0 var(--ps-bevel-highlight), 0 1px 2px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  --ps-pressed-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.14);
  --ps-focus-ring: 0 0 0 2px var(--ps-ink), 0 0 0 5px rgba(255, 153, 2, 0.35);

  /* twiniti.ai header */
  --ps-header-logo-width: 355px;
  --ps-header-logo-height: 99px;
  --ps-header-min-height: 104px;
}

@media (max-width: 900px) {
  :root {
    --ps-gutter: 16px;
    --ps-page-margin: 16px;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  :root {
    --ps-page-margin: 24px;
  }
}
