@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

/* No licensed binaries were supplied for Alísio. Both families are served from
   Google Fonts. If the brand later licenses desk/web binaries, drop them in
   assets/fonts/ and replace this @import with local @font-face rules. */

:root {
  /* ---- Base palette. oklch is canonical; hex is an approximation for tools
     that cannot take oklch. ---- */
  --marine: oklch(0.30 0.055 250);        /* ≈ #22314E */
  --chart: oklch(0.965 0.012 88);         /* ≈ #F7F2EA */
  --paper: oklch(0.99 0.006 88);          /* ≈ #FCFAF5 */
  --sky: oklch(0.68 0.09 215);            /* ≈ #4F9CC2 */
  --sand: oklch(0.72 0.11 68);            /* ≈ #CD9557 */
  --teal: oklch(0.52 0.09 195);           /* ≈ #2E7E8E */
  --ochre-red: oklch(0.52 0.14 28);       /* ≈ #A6483A */

  /* ---- Marine alphas. Text uses TWO steps only: 75% and 60%.
     Everything below 25% is structure (borders, rules, grids), never text. ---- */
  --marine-75: oklch(0.30 0.055 250 / 0.75);
  --marine-60: oklch(0.30 0.055 250 / 0.6);
  --marine-35: oklch(0.30 0.055 250 / 0.35);
  --marine-20: oklch(0.30 0.055 250 / 0.2);
  --marine-16: oklch(0.30 0.055 250 / 0.16);
  --marine-12: oklch(0.30 0.055 250 / 0.12);
  --marine-08: oklch(0.30 0.055 250 / 0.08);
  --chart-65: oklch(0.965 0.012 88 / 0.65);
  --chart-25: oklch(0.965 0.012 88 / 0.25);

  /* ---- Semantic: text ---- */
  --text-primary: var(--marine);
  --text-secondary: var(--marine-75);
  --text-muted: var(--marine-60);
  --text-on-inverse: var(--chart);
  --text-on-inverse-muted: var(--chart-65);
  --text-link: var(--sky);

  /* ---- Semantic: surfaces ---- */
  --surface-page: var(--chart);
  --surface-card: var(--paper);
  --surface-inverse: var(--marine);
  --surface-sunken: oklch(0.30 0.055 250 / 0.04);

  /* ---- Semantic: structure ---- */
  --border-default: var(--marine-16);
  --border-strong: var(--marine-20);
  --border-hairline: var(--marine-08);
  --border-inverse: var(--chart-25);
  --focus-ring: var(--sky);

  /* ---- Semantic: status. One meaning each, never decorative. ---- */
  --status-settled: var(--teal);
  --status-transit: var(--sand);
  --status-failed: var(--ochre-red);
  --accent: var(--sky);
}

:root {
  --font-sans: "Instrument Sans", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* ---- Scale. Size / line-height / tracking are locked pairs. ---- */
  --text-display-size: 64px;
  --text-display-line: 1.02;
  --text-display-track: -0.035em;

  --text-h1-size: 44px;
  --text-h1-line: 1.1;
  --text-h1-track: -0.03em;

  --text-h2-size: 32px;
  --text-h2-line: 1.18;
  --text-h2-track: -0.025em;

  --text-h3-size: 23px;
  --text-h3-line: 1.3;
  --text-h3-track: -0.02em;

  --text-body-lg-size: 18px;
  --text-body-lg-line: 1.6;

  --text-body-size: 16px;
  --text-body-line: 1.6;

  --text-small-size: 14px;
  --text-small-line: 1.5;

  --text-label-size: 12px;
  --text-label-line: 1.4;
  --text-label-track: 0.08em;

  --text-value-size: 30px;
  --text-value-line: 1.2;
  --text-value-track: -0.02em;
}

:root {
  /* 4px base. 20 and 28 exist because the foundation document uses them. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --page-gutter: var(--space-24);
  --section-gap: 104px;
  --rail-width: 180px;
  --measure: 68ch;
}

:root {
  /* Alísio has square corners. The only curve in the system is the pill end of
     a wind streak, and the quarter-arc of the isobar mark. */
  --radius-none: 0;
  --radius-pill: 999px;

  --stroke-hairline: 1px;
  --stroke-icon: 2px;
  --mark-stroke-ratio: 0.131; /* 11 / 84 — stroke as a share of mark size */
  --mark-clearspace-ratio: 0.262; /* 2× stroke */
  --mark-min-size: 20px;

  /* Depth comes from borders, not shadow. The single shadow is for overlays. */
  --shadow-none: none;
  --shadow-overlay: 0 24px 60px oklch(0.30 0.055 250 / 0.18);
  --scrim-overlay: oklch(0.30 0.055 250 / 0.55);
}

:root {
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --ease-out: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-in-out: cubic-bezier(0.5, 0, 0.5, 1);
  /* Movement follows the wind: horizontal, short, never bouncing. */
  --translate-enter: 6px;
}
