/* Fairway Weather — Premium mobile design tokens */

:root {
  /* App */
  --app-bg: #f4f7f2;
  --bg-app: var(--app-bg);

  /* Surfaces */
  --surface: #ffffff;
  --surface-soft: #eef3ed;
  --surface-warm: #fafbf8;
  --surface-elevated: #ffffff;
  --surface-muted: var(--surface-soft);

  /* Brand */
  --brand-primary: #175C4D;
  --brand: var(--brand-primary);
  --brand-deep: #0e3a30;
  --brand-dark: var(--brand-deep);
  --brand-hover: #124a3e;
  --brand-surface: #E4EFEA;
  --brand-soft: var(--brand-surface);
  --brand-softer: #f0f5f2;
  --brand-light: var(--brand-soft);
  --brand-secondary: #1f6f5c;
  --brand-ink: #13211B;
  --brand-accent: #B89552;
  --brand-offwhite: #F7F9F4;

  /* Premium accent (sparingly) */
  --accent-premium: var(--brand-accent);
  --accent-premium-soft: #f4eedf;

  /* Text */
  --text-primary: var(--brand-ink);
  --text-secondary: #617069;
  --text-muted: #8b9891;

  /* Borders */
  --border-soft: #dde5df;
  --border-medium: #ccd8d0;
  --border: rgba(23, 92, 77, 0.09);
  --border-subtle: rgba(19, 33, 27, 0.07);
  --border-card: rgba(19, 33, 27, 0.07);

  /* Status accents */
  --status-excellent: #175c4d;
  --status-good: #1f6f5c;
  --status-playable: #7a8f3a;
  --status-risky: #b8860b;
  --status-poor: #c76a2a;
  --status-avoid: #b8453a;

  --status-excellent-bg: rgba(23, 92, 77, 0.08);
  --status-good-bg: rgba(31, 111, 92, 0.08);
  --status-playable-bg: rgba(122, 143, 58, 0.1);
  --status-risky-bg: rgba(184, 134, 11, 0.1);
  --status-poor-bg: rgba(199, 106, 42, 0.1);
  --status-avoid-bg: rgba(184, 69, 58, 0.1);

  /* Rain (precipitation blues) */
  --rain-dry: #a7b3ad;
  --rain-drizzle: #9bc1d8;
  --rain-light: #6fa6c8;
  --rain-moderate: #477fa8;
  --rain-heavy: #315f84;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-hero: clamp(4rem, 16vw, 4.5rem);
  --text-verdict: clamp(1.375rem, 5vw, 1.625rem);
  --text-key: 1.125rem;
  --text-body: 1rem;
  --text-support: 0.9375rem;
  --text-meta: 0.9375rem;
  --text-caption: 0.8125rem;

  /* Layout — mobile first */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --section-gap: 24px;
  --card-padding: 18px;
  --app-padding: 16px;
  --app-max-width: 1200px;
  --forecast-max-width: 680px;
  --nav-height: 56px;
  --header-height: 52px;
  --touch-min: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  /* Radius */
  --radius-control: 12px;
  --radius-card: 18px;
  --radius-hero: 22px;
  --radius-sheet: 24px;
  --radius-sm: var(--radius-control);
  --radius-md: var(--radius-card);
  --radius-lg: var(--radius-hero);
  --radius-full: 9999px;

  /* Shadows */
  --shadow-soft: 0 1px 2px rgba(18, 42, 33, 0.03), 0 8px 24px rgba(18, 42, 33, 0.045);
  --shadow-elevated: 0 2px 4px rgba(18, 42, 33, 0.04), 0 12px 32px rgba(18, 42, 33, 0.07);
  --shadow-sm: var(--shadow-soft);
  --shadow-md: var(--shadow-soft);
  --shadow-lg: var(--shadow-elevated);
  --shadow-hero: 0 10px 35px rgba(23, 92, 77, 0.06);

  /* Motion */
  --duration-fast: 180ms;
  --duration-normal: 220ms;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

@media (min-width: 768px) {
  :root {
    --app-padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
  }
}
