/*
 * PNW Ferry design tokens.
 *
 * Raw values are layered under semantic names so a future dark mode can
 * redefine the semantic layer without touching component CSS. Light mode
 * only for now. Loaded by both the Rails HAML views and the Vite/React
 * app -- see shared-styles/README.md.
 *
 * The palette is a placeholder: navy, fog gray and buoy orange.
 */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable-496a588b.woff2") format("woff2-variations"), url("/assets/fonts/Inter-Variable-496a588b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Raw palette ---- */
  --navy-700: #0b2239;
  --navy-600: #12365a;
  --navy-100: #e5ecf4;

  --harbor-600: #2f6b8f;
  --harbor-100: #e2edf3;

  --buoy-orange-600: #e8590c;
  --buoy-orange-700: #b8430a;
  --buoy-orange-100: #fdeee3;

  --fog-050: #f7f8f9;
  --fog-100: #eceef1;
  --fog-200: #dde0e5;
  --fog-300: #c3c8d0;
  --fog-400: #9aa1ad;
  --fog-500: #747c89;
  --fog-600: #565d69;
  --fog-700: #3b414b;
  --fog-900: #171c24;

  --amber-600: #b7791f;
  --amber-100: #faf0dc;

  --green-600: #1f7a45;
  --green-100: #e3f2ea;

  --red-600: #b42318;
  --red-100: #fbe7e5;

  /* ---- Semantic: brand ---- */
  --color-primary: var(--navy-600);
  --color-primary-hover: var(--navy-700);
  --color-primary-tint: var(--navy-100);
  --color-secondary: var(--harbor-600);
  --color-secondary-tint: var(--harbor-100);
  --color-accent: var(--buoy-orange-600);
  --color-accent-tint: var(--buoy-orange-100);

  /* Progress follows the brand; emphasis is the call-to-action fill. */
  --color-progress: var(--color-primary);
  --color-progress-tint: var(--color-primary-tint);
  --color-emphasis: var(--buoy-orange-600);
  --color-emphasis-hover: var(--buoy-orange-700);
  --color-emphasis-tint: var(--buoy-orange-100);
  --color-text-on-emphasis: var(--fog-900);

  /* ---- Semantic: surfaces & text ---- */
  --color-page-bg: var(--fog-050);
  --color-surface: #ffffff;
  --color-surface-sunken: var(--fog-100);
  --color-border: var(--fog-200);
  --color-border-strong: var(--fog-300);
  --color-text: var(--fog-900);
  --color-text-muted: var(--fog-600);
  --color-text-on-primary: #ffffff;
  --color-focus-ring: var(--navy-600);

  /* ---- Semantic: feedback ---- */
  --color-success: var(--green-600);
  --color-success-tint: var(--green-100);
  --color-warning: var(--amber-600);
  --color-warning-tint: var(--amber-100);
  --color-error: var(--red-600);
  --color-error-tint: var(--red-100);
  --color-info: var(--harbor-600);
  --color-info-tint: var(--harbor-100);

  /* ---- Typography ---- */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Headings use Inter too: PNW Ferry has no separate heading font. */
  --font-heading: var(--font-body);

  --font-size-base: 1rem; /* 16px */
  --font-size-sm: 0.8rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.563rem;
  --font-size-2xl: 1.953rem;
  --font-size-3xl: 2.441rem;
  --line-height-body: 1.5;
  --line-height-heading: 1.2;

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;

  /* ---- Shape & elevation ---- */
  --radius-default: 6px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(23, 28, 36, 0.06);
  --shadow-md: 0 4px 12px rgba(23, 28, 36, 0.08);
}
