/* MoverFront brand tokens. Light theme first, dark set at the end.
   Source of truth for the values is brand.md in this folder.
   Fonts (Google Fonts): Archivo 500/600 for headings, Source Sans 3 400/600 for text.
   <link href="https://fonts.googleapis.com/css2?family=Archivo:wght@500;600&family=Source+Sans+3:wght@400;600&display=swap" rel="stylesheet"> */

:root {
  color-scheme: light dark;

  /* ---------- colour: neutrals ---------- */
  --mf-bg: #FAF8F4;             /* Paper. Page ground. */
  --mf-surface: #FFFFFF;        /* Sheet. Cards, tables, frames. */
  --mf-surface-2: #F1EEE7;      /* Carton. Sunken areas, table head, disabled. */
  --mf-text: #1B1F1D;           /* Ink. 15.70 on bg, 16.66 on surface, 14.38 on surface-2. */
  --mf-text-muted: #565B55;     /* Graphite. 6.54 on bg, 6.94 on surface, 5.99 on surface-2. */
  --mf-border: #DAD5C9;         /* Rule. Decorative hairlines only (1.38 on bg). */
  --mf-border-strong: #878377;  /* Edge. Control outlines. 3.57 on bg, 3.78 on surface. */
  --mf-placeholder: #E3E0D8;    /* Grey box where a screenshot or photo will go. */

  /* ---------- colour: brand ---------- */
  --mf-primary: #0F4C55;        /* Petrol. Links, wordmark "Front", chart series 1, focus ring. 9.05 on bg. */
  --mf-primary-hover: #0A3A41;  /* White on it: 12.39. */
  --mf-primary-tint: #E3EEEF;   /* Petrol on it: 8.11. Ink on it: 14.07. */
  --mf-on-primary: #FFFFFF;     /* 9.60 on primary. */
  --mf-accent: #B5470F;         /* Strap. The main button and screenshot callouts, little else. 5.11 on bg. */
  --mf-accent-hover: #9A3B0A;   /* White on it: 6.99. */
  --mf-accent-tint: #FBEDE3;    /* Strap on it: 4.73. */
  --mf-on-accent: #FFFFFF;      /* 5.42 on accent. */

  /* ---------- colour: status (always with a word or icon, never colour alone) ---------- */
  --mf-success: #236B3A;        /* Loaded. 6.11 on bg, 6.49 on surface. */
  --mf-success-tint: #E6F2E8;   /* Success on it: 5.63. */
  --mf-warning: #7A5200;        /* Caution. 6.52 on bg, 6.92 on surface. */
  --mf-warning-tint: #FCF1CF;   /* Warning on it: 6.13. */
  --mf-danger: #A3223A;         /* Stop. 6.95 on bg, 7.37 on surface. */
  --mf-danger-tint: #FBE9EC;    /* Danger on it: 6.31. */

  /* ---------- colour: dark panel on a light page (section slides, closing) ---------- */
  --mf-panel: #1B1F1D;
  --mf-on-panel: #FAF8F4;       /* 15.70 */
  --mf-on-panel-muted: #B9BDB6; /* 8.74 */
  --mf-on-panel-primary: #7FC6CE; /* 8.62 */
  --mf-on-panel-accent: #F0935A;  /* 7.16 */

  /* ---------- colour: charts (in this order, 4 series at most) ---------- */
  --mf-chart-1: #0F4C55;
  --mf-chart-2: #B5470F;
  --mf-chart-3: #878377;        /* 3.78 on surface */
  --mf-chart-4: #5B9AA3;        /* 3.18 on surface */
  --mf-chart-grid: #DAD5C9;

  /* ---------- type: families ---------- */
  --mf-font-heading: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mf-font-text: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --mf-weight-heading: 500;
  --mf-weight-wordmark: 600;
  --mf-weight-text: 400;
  --mf-weight-strong: 600;
  --mf-numeric: tabular-nums lining-nums; /* use with font-variant-numeric */

  /* ---------- type: web (px, fluid between 390 and 1440 wide) ---------- */
  --mf-fs-display: clamp(34px, 2.86vw + 22.9px, 64px);
  --mf-fs-h1: clamp(28px, 1.72vw + 21.3px, 46px);
  --mf-fs-h2: clamp(22px, 0.57vw + 19.8px, 28px);
  --mf-fs-h3: clamp(18px, 0.19vw + 17.3px, 20px);
  --mf-fs-lead: clamp(19px, 0.29vw + 17.9px, 22px);
  --mf-fs-body: 17px;
  --mf-fs-small: 15px;
  --mf-fs-caption: 14px;        /* smallest size on screen */
  --mf-lh-display: 1.05;
  --mf-lh-heading: 1.15;
  --mf-lh-lead: 1.45;
  --mf-lh-body: 1.55;
  --mf-lh-small: 1.45;
  --mf-ls-display: -0.035em;
  --mf-ls-heading: -0.03em;
  --mf-ls-h3: -0.015em;
  --mf-ls-text: 0;
  --mf-measure: 62ch;           /* 45 to 65 characters a line */

  /* ---------- type: print (US Letter, pt) ---------- */
  --mf-print-cover: 44pt;       /* line 46pt */
  --mf-print-h1: 30pt;          /* line 33pt */
  --mf-print-h2: 20pt;          /* line 24pt */
  --mf-print-h3: 14pt;          /* line 18pt */
  --mf-print-lead: 13pt;        /* line 19pt */
  --mf-print-body: 10.5pt;      /* line 15pt */
  --mf-print-table: 9.5pt;      /* line 13pt */
  --mf-print-small: 9pt;        /* line 13pt */
  --mf-print-caption: 8.5pt;    /* line 12pt, smallest size on paper */

  /* ---------- type: slides and video (1920 x 1080 px) ---------- */
  --mf-slide-cover: 104px;      /* line 1.02 */
  --mf-slide-section: 88px;     /* line 1.05 */
  --mf-slide-closing: 72px;     /* line 1.1 */
  --mf-slide-title: 56px;       /* line 1.1 */
  --mf-slide-body: 32px;        /* line 1.4 */
  --mf-slide-table: 26px;       /* line 1.3 */
  --mf-slide-small: 24px;       /* line 1.35 */
  --mf-slide-caption: 20px;     /* smallest size on a slide */

  /* ---------- spacing (4px base) ---------- */
  --mf-space-1: 4px;
  --mf-space-2: 8px;
  --mf-space-3: 12px;
  --mf-space-4: 16px;
  --mf-space-5: 24px;
  --mf-space-6: 32px;
  --mf-space-7: 48px;
  --mf-space-8: 64px;
  --mf-space-9: 96px;
  --mf-space-10: 128px;
  --mf-space-section: clamp(72px, 4.57vw + 54.2px, 120px);
  --mf-gutter: clamp(16px, 4vw, 48px);
  --mf-container: 1120px;

  /* ---------- radius: one corner radius, plus full round for pills and dots ---------- */
  --mf-radius: 10px;
  --mf-radius-pill: 999px;

  /* ---------- lines and shadows ---------- */
  --mf-line: 1px solid var(--mf-border);
  --mf-line-control: 1.5px solid var(--mf-border-strong);
  --mf-shadow-1: 0 1px 2px rgba(27, 31, 29, 0.06);
  --mf-shadow-2: 0 1px 2px rgba(27, 31, 29, 0.06), 0 14px 32px -10px rgba(27, 31, 29, 0.20);
  --mf-focus: 3px solid var(--mf-primary);
  --mf-focus-offset: 2px;

  /* ---------- controls ---------- */
  --mf-control-h: 48px;         /* touch target, never under 44px */
  --mf-control-pad: 22px;

  /* ---------- screenshot frame ---------- */
  --mf-frame-bar-h: 32px;
  --mf-callout-size: 28px;
  --mf-callout-line: 1.5px;

  /* ---------- motion: web ---------- */
  --mf-dur-instant: 80ms;       /* focus ring, tooltip */
  --mf-dur-fast: 180ms;         /* button and link feedback */
  --mf-dur-normal: 350ms;       /* panel, menu, card */
  --mf-dur-slow: 600ms;         /* content rising into view (the default enter) */
  --mf-dur-crawl: 1000ms;       /* the one strong moment on a page, 1200ms at most */
  --mf-dur-reduced: 150ms;      /* opacity only, under reduced motion */
  --mf-ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --mf-ease-sharp: cubic-bezier(0.4, 0, 0.2, 1);
  --mf-ease-linear: linear;
  --mf-rise: 12px;              /* set to 8px under 600px wide, see below */
  --mf-rise-max: 28px;
  --mf-stagger: 100ms;          /* 100 to 400ms, 2 to 4 items in a row */
  --mf-scale-press: 0.97;
  --mf-scale-settle-from: 1.03; /* first picture settles from this to 1 */

  /* ---------- motion: video (1920 x 1080, 30 fps) ---------- */
  --mf-video-fps: 30;
  --mf-video-fade: 350ms;       /* cross-fade between scenes, or a hard cut */
  --mf-video-enter: 600ms;      /* caption or callout: rise 12px with a fade */
  --mf-video-zoom: 800ms;       /* zoom into a screen area, scale 1.5 at most */
  --mf-video-cursor-min: 400ms; /* shortest cursor move */
  --mf-video-hold-min: 3000ms;  /* shortest time a caption stays up */
  --mf-video-intro-max: 1200ms; /* wordmark intro, once */
}

@media (max-width: 600px) {
  :root { --mf-rise: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --mf-rise: 0px;
    --mf-rise-max: 0px;
    --mf-stagger: 0ms;
    --mf-scale-press: 1;
    --mf-scale-settle-from: 1;
    --mf-dur-instant: 80ms;
    --mf-dur-fast: 150ms;
    --mf-dur-normal: 150ms;
    --mf-dur-slow: 150ms;
    --mf-dur-crawl: 150ms;
  }
}

/* ---------- dark set ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --mf-bg: #121615;
    --mf-surface: #1B201F;
    --mf-surface-2: #252B2A;
    --mf-text: #ECE9E2;           /* 15.04 on bg, 13.60 on surface, 11.88 on surface-2 */
    --mf-text-muted: #A9ADA6;     /* 8.00 on bg, 7.23 on surface, 6.32 on surface-2 */
    --mf-border: #343B39;
    --mf-border-strong: #737D7A;  /* 4.29 on bg, 3.88 on surface */
    --mf-placeholder: #252B2A;

    --mf-primary: #7FC6CE;        /* 9.44 on bg, 8.53 on surface */
    --mf-primary-hover: #9AD6DC;  /* dark text on it: 10.24 */
    --mf-primary-tint: #17363A;   /* primary on it: 6.68. Text on it: 10.65 */
    --mf-on-primary: #0B2226;     /* 8.55 on primary */
    --mf-accent: #F0935A;         /* 7.83 on bg, 7.09 on surface */
    --mf-accent-hover: #F5A877;   /* dark text on it: 8.45 */
    --mf-accent-tint: #3A2114;    /* accent on it: 6.41 */
    --mf-on-accent: #0B2226;      /* 7.10 on accent */

    --mf-success: #7FCB96;        /* 9.45 on bg, 8.55 on surface */
    --mf-success-tint: #17301F;   /* success on it: 7.35 */
    --mf-warning: #E6B84C;        /* 9.83 on bg, 8.89 on surface */
    --mf-warning-tint: #33290F;   /* warning on it: 7.73 */
    --mf-danger: #F29AA6;         /* 8.64 on bg, 7.81 on surface */
    --mf-danger-tint: #3A1A20;    /* danger on it: 7.37 */

    --mf-panel: #1B201F;
    --mf-on-panel: #ECE9E2;
    --mf-on-panel-muted: #A9ADA6;
    --mf-on-panel-primary: #7FC6CE;
    --mf-on-panel-accent: #F0935A;

    --mf-chart-1: #7FC6CE;
    --mf-chart-2: #F0935A;
    --mf-chart-3: #A9ADA6;
    --mf-chart-4: #4F8C94;
    --mf-chart-grid: #343B39;

    --mf-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --mf-shadow-2: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 32px -10px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- site additions (public site redesign, 3 Dec 2026) ----------
   Larger display sizes for the landing page, and the Ink scope: a section with class "ink"
   takes the brand's dark set (brand.md, Dark set, contrast figures above), so the hero and
   the alternating dark sections use tokens that were already checked. The main button stays
   Strap #B5470F with white text (5.42) in both themes. */
:root {
  --mf-fs-hero: clamp(44px, 5.71vw + 21.7px, 104px);
  --mf-fs-section: clamp(30px, 2.86vw + 18.8px, 60px);
  --mf-fs-statement: clamp(24px, 1.9vw + 16.6px, 44px);
  --mf-ls-hero: -0.045em;
  --mf-container-wide: 1240px;
  --mf-header-h: 64px;
  --mf-scrim-rgb: 14, 18, 17;            /* the Ink ground as rgb parts, for the video scrim */
  --mf-shadow-3: 0 2px 4px rgba(14, 18, 17, 0.10), 0 24px 48px -12px rgba(14, 18, 17, 0.35), 0 56px 96px -32px rgba(14, 18, 17, 0.40);
  --mf-parallax: 40px;                   /* the most a layer drifts against the scroll */
}

.ink {
  --mf-bg: #121615;
  --mf-surface: #1B201F;
  --mf-surface-2: #252B2A;
  --mf-text: #ECE9E2;
  --mf-text-muted: #A9ADA6;
  --mf-border: #343B39;
  --mf-border-strong: #737D7A;
  --mf-placeholder: #252B2A;
  --mf-primary: #7FC6CE;
  --mf-primary-hover: #9AD6DC;
  --mf-primary-tint: #17363A;
  --mf-on-primary: #0B2226;
  --mf-accent: #B5470F;
  --mf-accent-hover: #9A3B0A;
  --mf-on-accent: #FFFFFF;
  --mf-success: #7FCB96;
  --mf-success-tint: #17301F;
  --mf-warning: #E6B84C;
  --mf-warning-tint: #33290F;
  --mf-danger: #F29AA6;
  --mf-danger-tint: #3A1A20;
  --mf-line: 1px solid var(--mf-border);
  --mf-line-control: 1.5px solid var(--mf-border-strong);
  --mf-focus: 3px solid var(--mf-primary);
  --mf-shadow-3: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  background: var(--mf-bg);
  color: var(--mf-text);
}

@media (prefers-reduced-motion: reduce) {
  :root { --mf-parallax: 0px; }
}
