/* Global Credibility Centre brand: the one source of fonts, colours and type sizes for
   www.gccentre.org, info.gcref.org and www.gcref.org. Variables only, no element rules, so each
   site applies them in its own stylesheet. Edit here, then run `node packages/gcc-brand/sync.mjs`.
   Chinese headings take GCC Heading SC, Noto Serif SC 700 cut to the characters they use
   (subset-headings.mjs); Chinese pages also link fonts/noto-serif-sc/5.3.1/700.css, whose pieces
   load only for a heading character the cut lacks. */
@font-face{font-family:"Instrument Sans";font-weight:400;font-display:swap;src:url(fonts/instrument-sans/5.3.0/instrument-sans-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Instrument Sans";font-weight:500;font-display:swap;src:url(fonts/instrument-sans/5.3.0/instrument-sans-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Instrument Sans";font-weight:600;font-display:swap;src:url(fonts/instrument-sans/5.3.0/instrument-sans-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"GCC Heading SC";font-weight:700;font-display:swap;src:url(fonts/noto-serif-sc-headings/noto-serif-sc-headings-700.b79571057e.woff2) format("woff2")}

:root{
  /* Colours */
  --gcc-paper:#F3EFE9;
  --gcc-paper-2:#EAE4DB;
  --gcc-card:#FBF9F5;
  --gcc-ink:#262626;
  --gcc-muted:#6F665D;
  /* Muted text on --gcc-paper-2, where #6F665D falls short of 4.5:1. */
  --gcc-muted-2:#5B514A;
  --gcc-lead:#4A443E;
  --gcc-gold:#CBB083;
  --gcc-gold-soft:#E8DBC2;
  /* Gold for text on light grounds: 5.23:1 on --gcc-paper, where --gcc-gold is a fill. */
  --gcc-gold-text:#7A5F2F;
  --gcc-bronze:#9C7650;
  --gcc-on-dark:#B9B1A6;
  --gcc-line:rgba(38,38,38,.12);
  --gcc-footer:#1C1C1C;
  --gcc-footer-fg:#9B9389;

  /* Fonts. system-ui right after Instrument Sans draws the symbols it lacks, such as the button arrow. */
  --gcc-cjk:"PingFang SC","Hiragino Sans GB","Noto Sans CJK SC","Noto Sans SC","Microsoft YaHei";
  --gcc-sans:"Instrument Sans",system-ui,var(--gcc-cjk),sans-serif;
  --gcc-display:var(--gcc-sans);

  /* Type */
  --gcc-text:17px;
  --gcc-text-lh:1.6;
  --gcc-small:15.5px;
  --gcc-lead-size:1.15rem;
  --gcc-eyebrow:.75rem;
  --gcc-eyebrow-ls:.14em;
  --gcc-h1:clamp(2.6rem,7vw,5.4rem);
  --gcc-h2:clamp(2.1rem,5vw,3.6rem);
  --gcc-h3:1.5rem;
  --gcc-heading-weight:500;
  --gcc-heading-ls:-.02em;
  --gcc-heading-lh:1.08;
  --gcc-radius:20px;
}

/* Chinese pages: Noto Serif SC headings, smaller and looser. */
:root:lang(zh-CN){
  --gcc-display:"GCC Heading SC","Noto Serif SC",var(--gcc-cjk),serif;
  --gcc-text-lh:1.8;
  --gcc-h1:clamp(2.2rem,6vw,4.4rem);
  --gcc-h2:clamp(1.9rem,4.4vw,3.1rem);
  --gcc-heading-weight:700;
  --gcc-heading-ls:0;
  --gcc-heading-lh:1.3;
}
