/* Ova.am design code — specification v1.0, 2026-09-30.
 * Map these semantic tokens to the existing styling architecture.
 * This file defines tokens only. It does not alter routes or business logic.
 * The production default is light; dark values are provided for supported themes.
 */
:root {
  --ova-color-background: #f7faf7;
  --ova-color-surface: #ffffff;
  --ova-color-text: #253c31;
  --ova-color-text-muted: #617467;
  --ova-color-border: #dce9df;
  --ova-color-input-border: #8ea696;
  --ova-color-soft: #edf7ef;
  --ova-color-action: #b6e5c7;
  --ova-color-action-hover: #a0dcb6;
  --ova-color-on-action: #183e2d;
  --ova-color-focus: #397450;
  --ova-color-warning-text: #835b1a;
  --ova-color-warning-surface: #faf1db;
  --ova-color-error-text: #9f3434;
  --ova-color-error-surface: #fceeee;
  --ova-color-success-text: #285e40;
  --ova-color-success-surface: #edf7ef;
  --ova-color-overlay: rgb(14 39 30 / 36%);

  --ova-nav-background: #e3f2e7;
  --ova-nav-text: #365e49;
  --ova-nav-hover: #d3ecdc;
  --ova-nav-selected: #bce5ca;
  --ova-nav-selected-text: #1f4833;
  --ova-brand-accent: #eabf83;

  --ova-font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --ova-font-page: 1.75rem;
  --ova-line-page: 2.125rem;
  --ova-font-page-mobile: 1.5rem;
  --ova-line-page-mobile: 1.875rem;
  --ova-font-panel: 1.375rem;
  --ova-line-panel: 1.75rem;
  --ova-font-section: 1rem;
  --ova-line-section: 1.375rem;
  --ova-font-body: 0.875rem;
  --ova-line-body: 1.3125rem;
  --ova-font-mail: 0.9375rem;
  --ova-line-mail: 1.5rem;
  --ova-font-table: 0.8125rem;
  --ova-line-table: 1.25rem;
  --ova-font-caption: 0.75rem;
  --ova-line-caption: 1.125rem;
  --ova-font-micro: 0.6875rem;
  --ova-line-micro: 1rem;
  --ova-weight-regular: 400;
  --ova-weight-medium: 500;
  --ova-weight-semibold: 600;

  --ova-space-1: 0.25rem;
  --ova-space-2: 0.5rem;
  --ova-space-3: 0.75rem;
  --ova-space-4: 1rem;
  --ova-space-5: 1.25rem;
  --ova-space-6: 1.5rem;
  --ova-space-8: 2rem;
  --ova-space-10: 2.5rem;
  --ova-page-padding: 1.75rem;
  --ova-page-padding-tablet: 1.5rem;
  --ova-page-padding-mobile: 1rem;

  --ova-radius-small: 0.5rem;
  --ova-radius-control: 0.625rem;
  --ova-radius-card: 0.75rem;
  --ova-radius-panel: 1rem;
  --ova-radius-round: 9999px;
  --ova-control-height: 2.5rem;
  --ova-touch-target: 2.75rem;
  --ova-table-row-min-height: 3.25rem;
  --ova-sidebar-width: 12rem;
  --ova-sidebar-width-wide: 13rem;
  --ova-topbar-height: 4rem;
  --ova-drawer-width: 25rem;
  --ova-icon-size: 1.125rem;
  --ova-border-width: 1px;
  --ova-focus-width: 2px;
  --ova-focus-offset: 2px;

  --ova-shadow-popover: 0 6px 20px rgb(16 43 32 / 10%);
  --ova-shadow-drawer: 0 16px 48px rgb(11 32 28 / 18%);
  --ova-motion-press: 120ms;
  --ova-motion-state: 160ms;
  --ova-motion-panel: 240ms;
  --ova-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root[data-theme="dark"] {
  --ova-color-background: #15251e;
  --ova-color-surface: #20332a;
  --ova-color-text: #e4ece3;
  --ova-color-text-muted: #a7b7aa;
  --ova-color-border: #364c3e;
  --ova-color-input-border: #829588;
  --ova-color-soft: #2b4433;
  --ova-color-action: #b8d9b6;
  --ova-color-action-hover: #c8e5c6;
  --ova-color-on-action: #1c3525;
  --ova-color-focus: #b8d9b6;
  --ova-color-warning-text: #e2c486;
  --ova-color-warning-surface: #4a4029;
  --ova-color-error-text: #f3b5b5;
  --ova-color-error-surface: #482b2d;
  --ova-color-success-text: #b8d9b6;
  --ova-color-success-surface: #2b4433;
  --ova-color-overlay: rgb(4 12 8 / 52%);
  --ova-shadow-popover: 0 6px 20px rgb(0 0 0 / 24%);
  --ova-shadow-drawer: 0 16px 48px rgb(0 0 0 / 32%);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ova-motion-press: 0ms;
    --ova-motion-state: 0ms;
    --ova-motion-panel: 0ms;
  }
}
