/* THEME: the only file that decides how Ferry Reach looks.
   Source of truth: the Ferry Reach brand kit v1.0 (2 Nov 2026), copied to assets/brand/.
   Navy #091626, Electric cyan #16D9E8, Ice #F5F9FC, Cobalt #3564FF (small supporting accent only).
   Rules from the kit: navy text on cyan, never cyan text on light surfaces, 8px spacing,
   subtle radii, no effects on the logo. Text colours here pass 4.5:1 on their backgrounds.
   Light and dark values come from one place using light-dark(); a plain fallback follows. */
@layer theme {
  :root {
    color-scheme: light dark;

    /* brand (fixed) */
    --fr-navy: #091626;
    --fr-cyan: #16D9E8;
    --fr-ice: #F5F9FC;
    --fr-cobalt: #3564FF;

    /* dark bands: nav, hero, contact block, footer (same in both schemes) */
    --band-bg: #091626;
    --band-ink: #F5F9FC;
    --band-muted: #B4C3D2;
    --band-line: #1E3550;

    /* content surfaces */
    --bg: light-dark(#F5F9FC, #091626);
    --panel: light-dark(#FFFFFF, #0F2236);
    --line: light-dark(#D5E0EA, #1E3550);
    --ink: light-dark(#091626, #F5F9FC);
    --muted: light-dark(#41566B, #A9BBCB);

    /* actions: cyan button, navy text */
    --action: #16D9E8;
    --action-ink: #091626;
    --focus: light-dark(#3564FF, #7FA0FF);
    --link: light-dark(#091626, #F5F9FC);
    --label: light-dark(#091626, #F5F9FC);
    --marker: #16D9E8;

    /* badges */
    --badge-live-bg: light-dark(#091626, #0B3A44);   --badge-live-ink: #16D9E8;
    --badge-soon-bg: light-dark(#E3EBF4, #172E47);   --badge-soon-ink: light-dark(#091626, #F5F9FC);
    --badge-svc-bg: light-dark(#DCE5FF, #1B2D55);    --badge-svc-ink: light-dark(#091626, #F5F9FC);

    /* type: Inter variable, self-hosted */
    --font-display: "Inter", "Inter Fallback", system-ui, Arial, sans-serif;
    --font-body: "Inter", "Inter Fallback", system-ui, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Consolas, monospace;

    /* shape: subtle radii on an 8px grid */
    --radius-card: 12px;
    --radius-btn: 8px;
    --space: 8px;
  }

  /* a visitor's own choice (the toggle) overrides the system setting */
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] { color-scheme: dark; }

  /* Fallback for browsers without light-dark(): same values, chosen by the media query */
  @supports not (color: light-dark(red, blue)) {
    :root {
      --bg: #F5F9FC; --panel: #FFFFFF; --line: #D5E0EA; --ink: #091626; --muted: #41566B;
      --focus: #3564FF; --link: #091626; --label: #091626;
      --badge-live-bg: #091626;  --badge-soon-bg: #E3EBF4;  --badge-soon-ink: #091626;
      --badge-svc-bg: #DCE5FF;   --badge-svc-ink: #091626;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --bg: #091626; --panel: #0F2236; --line: #1E3550; --ink: #F5F9FC; --muted: #A9BBCB;
        --focus: #7FA0FF; --link: #F5F9FC; --label: #F5F9FC;
        --badge-live-bg: #0B3A44;  --badge-soon-bg: #172E47;  --badge-soon-ink: #F5F9FC;
        --badge-svc-bg: #1B2D55;   --badge-svc-ink: #F5F9FC;
      }
    }
  }
}
