/* Silsila design tokens: colours, type, radii, shadows, and the self-hosted fonts.
   Direction B, "Reading desk". Contrast table: docs/design-palette.md. */

@font-face {
  font-family: "Roboto"; src: url("/assets/fonts/Roboto-latin-variable.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  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: "Lora"; src: url("/assets/fonts/Lora-latin-variable.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  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: "IBM Plex Sans Arabic"; src: url("/assets/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; src: url("/assets/fonts/IBMPlexSansArabic-Bold.woff2") format("woff2");
  font-weight: 600 800; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Noto Naskh Arabic"; src: url("/assets/fonts/NotoNaskhArabic-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Noto Naskh Arabic"; src: url("/assets/fonts/NotoNaskhArabic-Bold.woff2") format("woff2");
  font-weight: 600 800; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "IBM Plex Sans Arabic"; src: url("/assets/fonts/IBMPlexSansArabic-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Noto Naskh Arabic"; src: url("/assets/fonts/NotoNaskhArabic-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  /* surfaces */
  --ivory: #FBF7EF;
  --surface: #FFFDF8;
  --sand: #F3EBDD;
  --sand-deep: #E9DFCC;
  --line: #E8DDC8;
  --line-strong: #D5C4A4;
  --field-line: #9C8660;        /* control borders, 3:1 or more */
  /* text */
  --ink: #2E2418;
  --ink-soft: #5A4A36;
  --muted: #756550;
  /* brand */
  --bronze: #8F6E41;            /* lines, icons, large text only */
  --accent: #7A5A2E;            /* links, filled buttons */
  --accent-hover: #6B4E24;
  --accent-deep: #5C411A;
  --gold: #EBBF5E;              /* on dark only */
  --gold-soft: #CFA067;
  --on-dark: #F6EEDD;
  --on-dark-soft: #D8C7A4;
  /* status: always shown with words */
  --public-bg: #E3EDDC;   --public-fg: #2F5236;   --public-line: #B5CBB0;
  --students-bg: #E4EAF0; --students-fg: #2F4A63; --students-line: #B4C3D2;
  --staff-bg: #F3EBDD;    --staff-fg: #5C411A;    --staff-line: #D5C4A4;
  --due-bg: #F4E7C8;      --due-fg: #6B4E24;      --due-line: #DCC48D;
  --restricted-bg: #ECE4E1; --restricted-fg: #5B3A33; --restricted-line: #CDB9B2;
  --danger: #9A3B32;      --danger-hover: #84302A; --danger-bg: #F5E1DC;  --danger-line: #E0B5AD;
  --ok: #2F5236;          --ok-bg: #E3EDDC;

  --font-body: "Roboto", "IBM Plex Sans Arabic", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Lora", "Noto Naskh Arabic", Georgia, "Times New Roman", serif;

  /* five sizes */
  --fs-1: 13px;                         /* captions, tags */
  --fs-2: 16px;                         /* body, controls */
  --fs-3: 19px;                         /* lead, row titles */
  --fs-4: 24px;                         /* section headings */
  --fs-5: clamp(28px, 1.2vw + 20px, 36px);   /* page title, key numbers */
  --lh: 1.5;
  --lh-tight: 1.2;

  --r-sm: 8px; --r: 10px; --r-lg: 14px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(46, 36, 24, .06);
  --shadow: 0 1px 2px rgba(46, 36, 24, .04), 0 8px 24px rgba(46, 36, 24, .06);
  --shadow-lg: 0 2px 6px rgba(46, 36, 24, .06), 0 18px 44px rgba(46, 36, 24, .14);
  --tabbar-h: 64px;
}
/* Arabic needs more line height, and no tracking. */
html[lang="ar"] { --lh: 1.75; --lh-tight: 1.5; }

