/* First Gear Auto Care: brand foundations (colours, type, spacing, motion).
   English text: Archivo (one variable file, self-hosted). Arabic text: Zain (self-hosted). Nothing loads from the internet. */

@font-face{font-family:"Archivo";font-style:normal;font-weight:100 900;font-stretch:62% 125%;font-display:swap;src:url("../fonts/archivo-var-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* a metric-matched stand-in so the page does not jump when Archivo arrives */
@font-face{font-family:"Archivo Fallback";src:local("Arial");ascent-override:87.8%;descent-override:21%;line-gap-override:0%}
@font-face{font-family:"Zain";font-style:normal;font-weight:300;font-display:swap;src:url("../fonts/zain-300-arabic.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Zain";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/zain-400-arabic.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}

:root{
  /* palette: Deep Forge, Workshop White, one Signal Amber */
  --forge:#0b0d10;
  --graphite:#24282d;
  --white:#f4f2ed;
  --rivet:#60656d;
  --steel:#b0b4ba;
  --amber:#ffb000;
  --amber-hover:#f0a600;
  /* the same three colours as channels, so that anything see-through (photo scrims, text over a photo) is built from the brand colours and nothing else */
  --forge-rgb:11 13 16;
  --white-rgb:244 242 237;
  --amber-rgb:255 176 0;
  /* text and lines laid over a photograph (the hero): Workshop White at fixed strengths */
  --on-photo:rgb(var(--white-rgb) / .86);
  --on-photo-soft:rgb(var(--white-rgb) / .78);
  --on-photo-edge:rgb(var(--white-rgb) / .55);
  --on-photo-line:rgb(var(--white-rgb) / .4);
  --on-photo-rule:rgb(var(--white-rgb) / .32);

  /* ink and lines, re-pointed per section tone (see [data-tone] below) */
  --bg:var(--forge);
  --ink:var(--white);
  --ink-muted:var(--steel);
  --line:rgb(var(--white-rgb) / .16);
  --line-strong:rgb(var(--white-rgb) / .4);
  --accent-ink:var(--amber);
  --focus:var(--amber);

  /* type */
  --font-latin:"Archivo","Archivo Fallback",ui-sans-serif,system-ui,sans-serif;
  --font-arabic:"Zain","Archivo","Archivo Fallback","Geeza Pro","Noto Sans Arabic",sans-serif;   /* Zain only holds Arabic letters: Latin letters, digits and signs on Arabic pages come from Archivo */
  --font:var(--font-latin);
  --w-display:300;--w-body:400;--w-strong:500;
  --stretch-display:112%;
  --text-display:clamp(3.25rem,10.4vw,9.5rem);   /* Home headline, amber statement */
  --text-title:clamp(2.75rem,7vw,6.5rem);        /* page titles */
  --text-h2:clamp(1.875rem,4vw,3.5rem);
  --text-h3:clamp(1.375rem,2.1vw,1.875rem);
  --text-lead:clamp(1.125rem,1.5vw,1.375rem);
  --text-body:1.0625rem;
  --text-small:.9375rem;
  --text-label:.75rem;                            /* smallest text on the site: 12 px */
  --lh-display:.94;--lh-title:1;--lh-heading:1.1;--lh-body:1.5;
  --track-display:-.035em;--track-heading:-.02em;--track-body:-.005em;--track-label:.09em;

  /* space */
  --gutter:20px;
  --section:72px;
  --wrap:1320px;
  --header-h:68px;
  --radius:2px;
  --touch:44px;

  /* motion: one curve, three speeds */
  --ease:cubic-bezier(.16,1,.3,1);
  --t-fast:200ms;--t-base:500ms;--t-slow:900ms;

  --z-header:100;--z-menu:200;--z-top:400;
}
@media (min-width:768px){:root{--gutter:40px;--section:112px;--header-h:76px}}
@media (min-width:1200px){:root{--gutter:60px;--section:160px}}

/* tones */
[data-tone="dark"]{--bg:var(--forge);--ink:var(--white);--ink-muted:var(--steel);--line:rgb(var(--white-rgb) / .16);--line-strong:rgb(var(--white-rgb) / .4);--accent-ink:var(--amber);--focus:var(--amber)}
[data-tone="light"]{--bg:var(--white);--ink:var(--forge);--ink-muted:#555a61;--line:rgb(var(--forge-rgb) / .16);--line-strong:rgb(var(--forge-rgb) / .5);--accent-ink:var(--forge);--focus:var(--forge)}
[data-tone="amber"]{--bg:var(--amber);--ink:var(--forge);--ink-muted:var(--forge);--line:rgb(var(--forge-rgb) / .24);--line-strong:var(--forge);--accent-ink:var(--forge);--focus:var(--forge)}

/* Arabic: Zain, never tracked, looser leading. Latin words inside Arabic pages (the brand name, phone numbers) keep Archivo. */
[lang="ar"]{
  --font:var(--font-arabic);
  --stretch-display:100%;
  --lh-display:1.2;--lh-title:1.2;--lh-heading:1.25;--lh-body:1.7;
  --track-display:0;--track-heading:0;--track-body:0;--track-label:0;
  --text-body:1.125rem;--text-small:1rem;--text-label:.875rem;
  --text-display:clamp(2.6rem,8vw,7.4rem);       /* Arabic letters run wider: a smaller headline keeps it to two lines */
}
@media (max-width:359px){[lang="ar"]{--text-display:2.25rem}}   /* 320 px phones: the Arabic headline would need three lines */
[lang="en"]{
  --font:var(--font-latin);
  --stretch-display:112%;
  --text-display:clamp(3.25rem,10.4vw,9.5rem);
  --lh-display:.94;--lh-title:1;--lh-heading:1.1;--lh-body:1.5;
  --track-display:-.035em;--track-heading:-.02em;--track-body:-.005em;--track-label:.09em;
}
