/* ELSREY theme · the ONE shared source for colours and fonts of every ELSREY property.
   Modeled on Superslide Studio tokens.css: same token names for every brand.
   Default brand = ELSREY on :root. A client theme is a separate file (theme/client-<code>.css)
   defining the SAME tokens under [data-brand="<code>"]; switch a site with one change:
   <html data-brand="<code>"> + link that file. Never hard-code a colour or font name in a page.
   Rule (Etienne 2026-12-05): backgrounds only --paper, --tint (cream bands), --ink (footer + 13ms insert).
   « FDFAF1 — Fais-le avec Détermination, vise le A, et reste Uni. » — Etienne Landois */
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:300;font-display:swap;src:url(https://www.elsrey.com/fonts/CormorantGaramond-LightItalic-latin.woff2?v=1) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:300;font-display:swap;src:url(https://www.elsrey.com/fonts/CormorantGaramond-LightItalic-latin-ext.woff2?v=1) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:500;font-display:swap;src:url(https://www.elsrey.com/fonts/CormorantGaramond-Medium-latin.woff2?v=1) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:500;font-display:swap;src:url(https://www.elsrey.com/fonts/CormorantGaramond-Medium-latin-ext.woff2?v=1) format("woff2");unicode-range:U+0100-02AF,U+1E00-1EFF}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(https://www.elsrey.com/fonts/Inter-var-latin.woff2?v=2) format("woff2")}
@font-face{font-family:"CG Orb";font-style:normal;font-weight:400;font-display:block;src:url(https://www.elsrey.com/fonts/CormorantGaramond-Regular-orb.woff2?v=1) format("woff2")}
:root,[data-brand="elsrey"]{
  /* brand constants (fixed values, never flip with dark mode) */
  --c-white:#FFFFFF; --c-cream:#FDFAF1; --c-anthracite:#1B252F; --c-red:#FF1D23; --c-red-t:#D0121A;
  --c-soft:#4A5058; --c-mute:#5A6067; --c-line:#E7E9EC; --c-gold:#CBA679;
  /* ── BACKGROUNDS: never more than 3 (--bg --surface --bg-inverse) ── */
  --bg:var(--c-white);        /* page, header, top, cards, inputs */
  --surface:var(--c-cream);        /* bands, hovers */
  --bg-inverse:var(--c-anthracite);   /* footer, 13ms insert */
  /* optional extra colours: special projects, clients, A/B tests only; unused by default */
  --OC1:initial; --OC2:initial; --OC3:initial;
  /* ── TEXT ── */
  --text:var(--c-anthracite);   /* main text */
  --text-muted:var(--c-soft);         /* secondary text */
  --brand-text:var(--c-red-t);        /* accent text (links, small red) */
  --text-inverse:var(--c-white);        /* text on B3 */
  --OT1:initial; --OT2:initial; --OT3:initial;
  /* accents (not backgrounds of sections) */
  --surface-hover:var(--surface); --on-brand:var(--c-white); --positive:#1A7F37; --negative:#B3261E;
  --brand:var(--c-red); --brand-2:var(--c-gold); --stroke:var(--c-line);
  /* fonts */
  --font-ui:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-title:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --font-orb:"CG Orb","Cormorant Garamond",Georgia,serif;
  /* gutter: every margin, padding, gap derives from --G (Superslide rule).
     --GG = master gutter; --GM/--GT/--GL/--GW = share of --GG per device (1 = 100%).
     --G is set ONLY here, per breakpoint: mobile <600px, tablet 600-1023px, laptop 1024-1439px, widescreen >=1440px. */
  --GG:8px;
  --GM:1; --GT:1; --GL:1; --GW:1;   /* 100% each today = site unchanged; tune e.g. --GM:.75 */
  --G:calc(var(--GG) * var(--GL));
  /* ── TEXT STYLES (like paragraph styles): use font:var(--ts-x) + letter-spacing:var(--tr-x), or the .ts-x class ── */
  --ts-display:200 clamp(44px,8.4vw,104px)/.98 var(--font-ui);  --tr-display:-.045em;
  --ts-hero:200 clamp(40px,5.2vw,74px)/1.02 var(--font-ui);     --tr-hero:-.045em;
  --ts-h1:300 clamp(32px,4.6vw,52px)/1.05 var(--font-ui);       --tr-h1:-.035em;
  --ts-h2:500 24px/1.25 var(--font-ui);                          --tr-h2:-.02em;
  --ts-h3:500 20px/1.3 var(--font-ui);                           --tr-h3:-.01em;
  --ts-lead:400 clamp(18px,2vw,22px)/1.6 var(--font-ui);         --tr-lead:0;
  --ts-body:400 17px/1.6 var(--font-ui);                         --tr-body:0;
  --ts-small:400 15px/1.5 var(--font-ui);                        --tr-small:0;
  --ts-caption:400 13px/1.4 var(--font-ui);                      --tr-caption:.01em;
  --ts-quote:italic 300 clamp(22px,2.6vw,30px)/1.35 var(--font-title); --tr-quote:0;
  --fs-body:17px; --lh-body:1.6;
  --fw-thin:200; --fw-light:300; --fw-text:400; --fw-medium:500;
}
@media (max-width:599.98px){:root{--G:calc(var(--GG) * var(--GM))}}
@media (min-width:600px) and (max-width:1023.98px){:root{--G:calc(var(--GG) * var(--GT))}}
@media (min-width:1024px) and (max-width:1439.98px){:root{--G:calc(var(--GG) * var(--GL))}}
@media (min-width:1440px){:root{--G:calc(var(--GG) * var(--GW))}}
/* aliases re-declared wherever role tokens change, so they follow dark mode */
:root,[data-brand],[data-theme="dark"],[data-mode=dark]{
  --paper:var(--bg); --font-text:var(--font-ui); --font-display:var(--font-title); --tint:var(--surface); --tint-hover:var(--surface-hover);
  --ink:var(--text); --on-ink:var(--text-inverse); --soft:var(--text-muted); --mute:var(--c-mute); --red-t:var(--brand-text);
  --red:var(--brand); --gold:var(--brand-2); --line:var(--stroke);
}
/* ── DARK MODE, defined once: inversion. Dark background = light-mode text colour (anthracite). ──
   Whole site: <html data-theme="dark">. One section only: data-mode="dark" on it (e.g. the hero). */
[data-theme="dark"],[data-mode=dark],[data-theme="dark"] [data-brand],[data-brand][data-mode=dark]{
  --bg:var(--c-anthracite); --surface:color-mix(in srgb,var(--c-anthracite) 88%,var(--c-white)); --bg-inverse:var(--c-anthracite);
  --text:var(--c-white); --text-muted:color-mix(in srgb,var(--c-white) 72%,var(--c-anthracite)); --brand-text:var(--c-red); --text-inverse:var(--c-white); /* footer stays anthracite in dark (Etienne) */
  --stroke:color-mix(in srgb,var(--c-white) 16%,var(--c-anthracite));
  --surface-hover:var(--surface); --mute:color-mix(in srgb,var(--c-white) 62%,var(--c-anthracite));
  background:var(--bg); color:var(--text);
}
.ts-display{font:var(--ts-display);letter-spacing:var(--tr-display)}.ts-hero{font:var(--ts-hero);letter-spacing:var(--tr-hero)}.ts-h1{font:var(--ts-h1);letter-spacing:var(--tr-h1)}.ts-h2{font:var(--ts-h2);letter-spacing:var(--tr-h2)}.ts-h3{font:var(--ts-h3);letter-spacing:var(--tr-h3)}.ts-lead{font:var(--ts-lead);letter-spacing:var(--tr-lead)}.ts-body{font:var(--ts-body);letter-spacing:var(--tr-body)}.ts-small{font:var(--ts-small);letter-spacing:var(--tr-small)}.ts-caption{font:var(--ts-caption);letter-spacing:var(--tr-caption)}.ts-quote{font:var(--ts-quote);letter-spacing:var(--tr-quote)}
/* inline SVG art/icons drawn in brand anthracite follow the token */
svg [fill="#2d3e50" i]{fill:var(--c-anthracite)} svg [stroke="#2d3e50" i]{stroke:var(--c-anthracite)}
