

/* Inter, self-hosted: the variable woff2 the release already ships (OFL 1.1). No external font calls. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../skin/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("../skin/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../skin/fonts/inter-latin-wght-italic.woff2") format("woff2-variations"),
       url("../skin/fonts/inter-latin-wght-italic.woff2") format("woff2");
}

:root {
  
  --tmm-white: #ffffff;       /* main surface: cards, sheets, most of every page */
  --tmm-canvas: #f7f3ec;      /* off-white page background, alternating sections */
  --tmm-mist: #eee8de;        /* light stone panels, form-field fills, table hover */
  --tmm-line: #e2dacd;        /* hairlines only */
  --tmm-text: #3b332b;        /* dark grey: body text, values, secondary headings */
  --tmm-muted: #706456;       /* secondary text, small labels */
  --tmm-graphite: #222222;    
  --tmm-veil: #111111;        
  --tmm-ink: #1c1712;         /* black, sparingly: H1/H2, plate characters, icons, small marks. Never a background. */
  --tmm-amber: #f6a53c;       /* the accent: one primary action per view, active step, small highlights */
  --tmm-amber-deep: #a44000;  /* the "My", status words, errors, focus ring */
  --tmm-amber-tint: #fbe3c2;  /* notice and highlight backgrounds */
  --tmm-plate: #ffd21f;       /* the registration plate (final) */
  --tmm-plate-ink: #1c1712;   /* plate characters */
  --tmm-plate-band: #003399;   
  --tmm-plate-band-w: 44px;   /* the GB band's width; the plate text is centred across band + field */
  --tmm-plate-ph: rgba(59, 51, 43, 0.42);   
  --tmm-badge-hi: #3c9f5f;    /* round badge gradient only; no other green */
  --tmm-badge-lo: #1f7440;
  --tmm-receipt-tick: #389f5f;  /* the paid screen's receipt tick fill, nothing else */
  --tmm-help-chip: #ffead6;     /* the help sheet's icon chip */
  --tmm-bad: #9b2242;            /* something to fix: words and icon (the error state only, nothing else is red) */
  --tmm-bad-line: #d4627a;       /* its soft border */
  --tmm-bad-ground: #fcf3f8;     /* its ground */
  --tmm-hub-active: #ffa13d;    /* the back office: the page you are on, on the navy */
  --tmm-hub-read: #f6f6f6;      /* the back office: a row or card already looked at (neutral, off white, never the page beige) */
  --tmm-hub-row-hover: #ededed; /* the back office: the row under the pointer, read or not */
  --tmm-hub-navy: #00182c;      /* the back office sidebar: the front end header's navy */

  /* ---- Elevation: one shadow, overlays and menus only. Everything else is flat. ---- */
  --tmm-shadow: 0 8px 28px rgba(59, 51, 43, .10);

  /* ---- Type: Inter only; tabular figures on every number. ---- */
  --tmm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tmm-font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --tmm-tnum: "tnum" 1;

  --tmm-fs-display: 44px; --tmm-lh-display: 1.05; --tmm-fw-display: 800; --tmm-ls-display: -0.03em;
  --tmm-fs-h1: 34px;      --tmm-lh-h1: 1.1;       --tmm-fw-h1: 800;      --tmm-ls-h1: -0.025em;
  --tmm-fs-h2: 26px;      --tmm-lh-h2: 1.15;      --tmm-fw-h2: 750;      --tmm-ls-h2: -0.02em;
  --tmm-fs-h3: 19px;      --tmm-lh-h3: 1.3;       --tmm-fw-h3: 700;
  --tmm-fs-body: 16px;    --tmm-lh-body: 1.6;     --tmm-fw-body: 400;
  --tmm-fs-small: 14px;   --tmm-lh-small: 1.5;    --tmm-fw-small: 400;
  --tmm-fs-label: 12px;   --tmm-lh-label: 1.3;    --tmm-fw-label: 700;   --tmm-ls-label: 0.08em;
  --tmm-fs-plate-s: 15px; --tmm-fs-plate-l: 30px; --tmm-fw-plate: 800;   --tmm-ls-plate: 0.04em;
  --tmm-fs-vin: 26px;     --tmm-fw-vin: 600;

  /* ---- Space: the 6px rhythm (6, 12, 18, 24, 36, 48, 72). The 4/8 --s-* scale is retired. ---- */
  --tmm-space-1: 6px;
  --tmm-space-2: 12px;
  --tmm-space-3: 18px;
  --tmm-space-4: 24px;
  --tmm-space-5: 36px;
  --tmm-space-6: 48px;
  --tmm-space-7: 72px;
  --tmm-gap-section: 72px;   /* between page sections */
  --tmm-gap-block: 36px;     /* between blocks */
  --tmm-pad-card: 18px;      /* inside cards */
  --tmm-measure: 64ch;       /* maximum text measure */
  --tmm-width: 1120px;       /* content width */
  --tmm-gutter: 18px;        /* side gutter on small screens */
  --tmm-control-h: 48px;     /* buttons and fields */

  /* ---- Radii. 8px and 10px are retired. ---- */
  --tmm-r-plate-s: 4px;
  --tmm-r-plate-l: 6px;
  --tmm-r-control: 12px;     /* inputs and buttons */
  --tmm-r-card: 18px;        /* cards and sheets */
  --tmm-r-panel: 24px;       /* page panels and the hero card */
  --tmm-r-chip: 999px;

  /* ---- Icons: Lucide, 1.75 stroke, rounded, 20px, ink. ---- */
  --tmm-icon: 20px;
  --tmm-icon-stroke: 1.75;

  /* ---- Motion: one recipe, for opacity, transform and background-color only. No composite lists. ---- */
  --tmm-motion-duration: 200ms;
  --tmm-motion-ease: cubic-bezier(.2, .7, .2, 1);
  --tmm-motion: var(--tmm-motion-duration) var(--tmm-motion-ease);
}

@media (prefers-reduced-motion: reduce) {
  :root { --tmm-motion-duration: 0ms; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
