/* hgforge styles, in cascade layers from general to specific:

     tokens      fonts and custom properties, no selectors that style anything
     base        bare elements (body, a, code, button, input)
     objects     structure without a subject: .box, .bar, .menu, .tabs, .seg, .item-list, .grid-cards, chips
     components  one part of one page: .site-header, .repo-head, diff, thread, feed, …
     utilities   one declaration each, they win over everything above: .muted, .to-end, .is-open

   New blocks are named block__element--modifier (BEM). Rules from before this
   order keep their names (diff, thread, feed, issue pages): renaming them touches
   every review template and is a step of its own. A later layer wins over an
   earlier one whatever the specificity, so utilities need no !important. */
@layer tokens, base, objects, components, utilities;

/* Recursive 1.085 (SIL OFL 1.1, ../fonts/OFL.txt), one variable font for text and code:
   the axes MONO and CASL choose Sans Linear for the interface and Mono Linear for code.
   Files and unicode ranges from Fontsource, @fontsource-variable/recursive 5.3.0, the
   "full" variant with all axes (MONO, CASL, wght, slnt, CRSV). One rule per subset:
   the browser loads only the files whose range the page uses. */
@font-face { font-family:"Recursive"; font-style:oblique 0deg 15deg; font-weight:300 1000; font-display:swap;
  src:url("../fonts/recursive-latin-full-normal.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; }
@font-face { font-family:"Recursive"; font-style:oblique 0deg 15deg; font-weight:300 1000; font-display:swap;
  src:url("../fonts/recursive-latin-ext-full-normal.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:"Recursive"; font-style:oblique 0deg 15deg; font-weight:300 1000; font-display:swap;
  src:url("../fonts/recursive-vietnamese-full-normal.woff2") format("woff2");
  unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family:"Recursive"; font-style:oblique 0deg 15deg; font-weight:300 1000; font-display:swap;
  src:url("../fonts/recursive-cyrillic-ext-full-normal.woff2") format("woff2");
  unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }

@layer tokens {
  :root {
    /* grays, green, red, purple and the diff rows follow Forgejo's light theme (its zinc
       scale); links and the primary button are blue as on Codeberg */
    --fg:#18181b; --muted:#52525b; --bg:#fff; --soft:#f4f4f5; --softer:#fafafa;
    --line:#d4d4d8; --line-soft:#e4e4e7;
    --accent:#1565a8; --primary:#1b6ec2; --primary-dark:#155a9f;
    --green:#15803d; --purple:#9333ea; --red:#dc2626; --warn:#b45309;
    --add:#dcfce7; --del:#fee2e2; --mark:#fff8c5;
    --radius:4px; --page:1280px;
    --weight:360; /* regular text, a little lighter than 400; bold stays 600/700 */
    --sans:"Recursive", system-ui, sans-serif; --sans-axes:"MONO" 0, "CASL" 0;
    --mono:"Recursive", ui-monospace, SFMono-Regular, Menlo, monospace; --mono-axes:"MONO" 1, "CASL" 0;
    /* commit graph (docs/adr/web/commit-graph/README.md): public lines grey, drafts by topic or
       bookmark in one of eight colours, each at least 3:1 against --bg; the row height is
       that of forge/web/graph.py (ROW). A dark scheme sets these anew. */
    --graph-row:32px; --graph-halo:var(--bg);
    --graph-public:#8a8a93; --graph-draft:#475569;
    --graph-1:#2563eb; --graph-2:#c026d3; --graph-3:#0d9488; --graph-4:#ea580c;
    --graph-5:#7c3aed; --graph-6:#8c564b; --graph-7:#db2777; --graph-8:#65a30d;
  }
}
