/* VYRA Systems look system: every colour, radius, space and font lives here.
   Brand values (docs/design-brief.md section 3): navy #19224A, table-header blue #223B73, teal #5FAEB6,
   light teal #7CC6CC, pale teal #A9D1DA. Dark mode swaps the values; components use only these names. */

@font-face {
  font-family: "Vyra Arabic";
  src: url("/assets/fonts/noto-sans-arabic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: "Vyra Latin";
  src: url("/assets/fonts/montserrat.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122,
    U+2190-2193, U+2212;
}

:root {
  color-scheme: light dark;

  /* Surfaces: page, card, inset */
  --page: #f4f6fa;
  --surface: #fcfdfe;
  --inset: #e9eef5;
  --line: #d9e0eb;

  /* Text */
  --text: #19224a;
  --text-muted: #4a5372;

  /* Accent: primary button and strong links on light surfaces */
  --accent: #223b73;
  --accent-hover: #19224a;
  --on-accent: #fcfdfe;
  --accent-soft: #dcebf0;
  --accent-line: #5faeb6;
  --focus: #223b73;
  --selection: #a9d1da;

  /* The navy panels (hero, footer): the same in both modes, a step lighter in dark mode */
  --panel: #19224a;
  --panel-text: #f2f5fa;
  --panel-muted: #b8c3da;
  --panel-line: #33406e;
  --panel-cta: #7cc6cc;
  --panel-cta-hover: #a9d1da;
  --on-panel-cta: #19224a;
  --panel-focus: #a9d1da;
  --art-line: #7cc6cc;
  --art-soft: #5faeb6;
  --art-fill: #223b73;

  /* Shape and depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --cut: 28px;
  --shadow: 0 1px 2px rgb(25 34 74 / 6%), 0 8px 24px rgb(25 34 74 / 8%);

  /* Space (4 px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --gutter: 16px;
  --page-max: 1200px;
  --header-h: 64px;
  --bar-h: 72px;

  /* Type */
  --font: "Vyra Arabic", "Vyra Latin", "Segoe UI", Tahoma, sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.0625rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-h1: clamp(1.75rem, 1.25rem + 2.4vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 160ms;
  --slow: 400ms;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --header-h: 72px;
  }
}
@media (min-width: 1080px) {
  :root { --gutter: 32px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b1026;
    --surface: #121937;
    --inset: #182046;
    --line: #2a3460;
    --text: #e9eef7;
    --text-muted: #a9b4ce;
    --accent: #7cc6cc;
    --accent-hover: #a9d1da;
    --on-accent: #0b1026;
    --accent-soft: #182046;
    --focus: #a9d1da;
    --selection: #33406e;
    --panel: #141c40;
    --panel-line: #2a3460;
    --art-fill: #19224a;
    --shadow: none;
  }
}
