/* Archivarium design tokens, web version of tokens.json. Keep the two in step. */
/* All fonts are local files in avm-brand/fonts/ (works offline and for print). */

@font-face{font-family:"Vagesha Rolenda";src:url("../../fonts/Vagesha-Rolenda/Vagesha%20Rolenda.woff2") format("woff2");font-display:block}
@font-face{font-family:"Italiana";font-weight:400;src:url("../../fonts/Italiana/Italiana-Regular.woff2") format("woff2");font-display:block}
@font-face{font-family:"Libre Caslon Text";font-style:normal;font-weight:400 700;src:url("../../fonts/Libre-Caslon-Text/LibreCaslonText-Variable.woff2") format("woff2");font-display:block}
@font-face{font-family:"Libre Caslon Text";font-style:italic;font-weight:400 700;src:url("../../fonts/Libre-Caslon-Text/LibreCaslonText-Italic-Variable.woff2") format("woff2");font-display:block}
@font-face{font-family:"Syne Mono";font-weight:400;src:url("../../fonts/Syne-Mono/SyneMono-Regular.woff2") format("woff2");font-display:block}
@font-face{font-family:"Inknut Antiqua";font-weight:900;src:url("../../fonts/InknutAntiqua-Black.woff2") format("woff2");font-display:block}

:root{
  /* colour */
  --arc-ink:#000000;
  --arc-bone:#ECE6DA;
  --arc-paper:#F3EEE4;
  --arc-gate-line:#2E2C29;      /* old exact gate on ink (until 2026-11-22); no longer drawn */
  --arc-gate-ink:#ECE6DA;       /* the gate on ink: a light worn scratch, screen blend */
  --arc-gate-ink-opacity:.3;
  --arc-gate-on-bone:#BEBAB1;    /* old flat gate on bone; no longer drawn, kept for tools without blend modes */
  --arc-gate-bone:#7A4A1E;       /* rust: the worn gate on the bone half */
  --arc-gate-bone-opacity:.48;
  --arc-invert:#FFFFFF;         /* + mix-blend-mode:difference */

  /* the split */
  /* 12° seam; components/avm.js Arc.seam() also lines up record boxes and handles the zigzag */
  --arc-seam-angle:12deg;
  --arc-split:linear-gradient(calc(90deg + var(--arc-seam-angle)),var(--arc-ink) calc(50% - .5px),var(--arc-bone) calc(50% + .5px));
  /* halves as masks (for the paper and the two gates) */
  --arc-mask-ink:linear-gradient(calc(90deg + var(--arc-seam-angle)),#000 calc(50% - .5px),transparent calc(50% + .5px));
  --arc-mask-bone:linear-gradient(calc(90deg + var(--arc-seam-angle)),transparent calc(50% - .5px),#000 calc(50% + .5px));
  --arc-split-reversed:linear-gradient(calc(90deg + var(--arc-seam-angle)),var(--arc-bone) calc(50% - .5px),var(--arc-ink) calc(50% + .5px));

  /* type */
  --arc-font-title:"Vagesha Rolenda",serif;
  --arc-font-heading:"Italiana",Georgia,serif;         /* chosen 2026-11-22 (Andy). OFL. One weight, sentence case */
  --arc-font-body:"Libre Caslon Text",Georgia,serif;   /* chosen 2026-11-22 (Andy). OFL. Regular, Bold, Italic */
  --arc-font-label:"Syne Mono","Courier New",monospace;    /* chosen 2026-11-22 (Andy). OFL. One weight. Labels, buttons, tags, credits, dates */
  --arc-font-devanagari:"Inknut Antiqua",serif;
  --arc-weight-heading:400;
  --arc-weight-body:400;
  --arc-size-small:.875rem;
  --arc-size-label:.8125rem;
  --arc-tracking-label:.04em;
  --arc-size-body:1.125rem;
  --arc-size-heading:1.75rem;
  --arc-size-title:clamp(2.5rem,6vw,6rem);

  /* gate */
  --arc-gate-landscape:1.12;
  --arc-gate-square:1.24;
  --arc-gate-portrait:1.28;

  /* record box */
  --arc-box-border:.04;          /* of the box width */

  /* motion */
  --arc-reveal-ms:700ms;
  --arc-ease:cubic-bezier(.6,0,.2,1);
  --arc-ornament-peak:.13;
  --arc-ornament-ink:#ECE6DA;    /* on ink: light, like the scratched gate (screen) */
  --arc-ornament-bone:#7A4A1E;   /* on bone: rust, like the bone gate (multiply) */

  /* grain */
  --arc-grain-opacity:.14;
}
