/* ===========================================================================================================
   UniCheatSheet foundation (visual evolution, Stage 2): self-hosted type, design tokens, icon masks.
   Linked FIRST on every page (home, About, semester/type pages and the Course Hubs built from them), so one file is the
   single source of these definitions. Presentation only: it contains no layout and changes no behaviour.
   Fonts: Host Grotesk (SIL OFL 1.1, (c) 2023 The Host Grotesk Project Authors) and DT Getai Grotesk Display
   (SIL OFL 1.1, (c) 2022 Death of Typography and Sylvester Tan). Licence texts sit next to the files in fonts/.
   Files live under global/ on purpose: the paid pages (/access/<user>/...) only expose global|js|img|styles|scripts.
   =========================================================================================================== */

/* Host Grotesk: variable 300-800, Latin + Latin-1 + General Punctuation + Rupee sign. Uniwidth: switching weight never reflows text. */
@font-face {
  font-family: 'Host Grotesk';
  src: url(fonts/HostGrotesk-latin.woff2?v=b69debedc1) format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  /* Same line box as Inter had (96.88% + 24.12% = 1.21em), so `line-height: normal` text keeps its height. */
  ascent-override: 96.88%;
  descent-override: 24.12%;
  line-gap-override: 0%;
}
/* Getai Grotesk Display: Black only, for ONE hero line (Stage 3). Declared now, requested only when something uses it. */
@font-face {
  font-family: 'Getai Grotesk';
  src: url(fonts/Getai-latin.woff2?v=0b5b33c7fb) format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched local fallback shown until Host Grotesk arrives, so the swap moves text by almost nothing. */
@font-face {
  font-family: 'Host Grotesk Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 103.94%;
  ascent-override: 93.2%;
  descent-override: 23.2%;
  line-gap-override: 0%;
}

:root {
  /* type */
  --f-ui: 'Host Grotesk', 'Host Grotesk Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Getai Grotesk', 'Host Grotesk', 'Host Grotesk Fallback', system-ui, sans-serif;

  /* surfaces (dark, brand navy) */
  --ucs-bg: #090C12;
  --ucs-s1: #10151F;
  --ucs-folder: #141B28;
  --ucs-s2: #1B2434;
  --ucs-s3: #253043;
  --ucs-line: rgba(255, 255, 255, .08);
  --ucs-line-2: rgba(255, 255, 255, .15);
  --ucs-paper: #F6F3EC;

  /* text */
  --ucs-text: #F3F6FA;
  --ucs-soft: #D3DAE4;
  --ucs-muted: #96A1B3;

  /* action / selected (cyan means "do" or "chosen", never a resource type) */
  --ucs-cyan: #22E5FF;
  --ucs-cyan-ledge: #0B8EA3;
  --ucs-on-cyan: #03252D;
  --ucs-ledge-dark: #05070B;

  /* "in session" sticker (yellow means this and nothing else) */
  --ucs-now: #FFE066;
  --ucs-on-now: #2B2200;

  /* resource types: text/dot, tint, hairline */
  --ucs-notes: #86B6FF; --ucs-notes-bg: rgba(134, 182, 255, .12); --ucs-notes-line: rgba(134, 182, 255, .32);
  --ucs-sol:   #67D6A8; --ucs-sol-bg:   rgba(103, 214, 168, .12); --ucs-sol-line:   rgba(103, 214, 168, .32);
  --ucs-pyq:   #BCA8FF; --ucs-pyq-bg:   rgba(188, 168, 255, .13); --ucs-pyq-line:   rgba(188, 168, 255, .34);

  /* geometry and motion */
  --ucs-r-ctl: 12px; --ucs-r-card: 16px; --ucs-r-panel: 22px;
  --ucs-ease: cubic-bezier(.3, .7, .4, 1.15);
}

/* Course icon tiles (used from Stage 3/4): one geometry for every course, colour from the subject family only. */
.ucs-ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--hue, var(--ucs-cyan));
  background: color-mix(in srgb, var(--hue, var(--ucs-cyan)) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue, var(--ucs-cyan)) 26%, transparent);
}
.ucs-ico svg { width: 22px; height: 22px; }
.ucs-ico-s { width: 32px; height: 32px; border-radius: 10px; } .ucs-ico-s svg { width: 18px; height: 18px; }
.ucs-ico-l { width: 56px; height: 56px; border-radius: 16px; } .ucs-ico-l svg { width: 28px; height: 28px; }

/* The four icons this page uses, as CSS masks — no icon font, no cdnjs
   stylesheet, no 230 KB of webfonts. The class names stay the same, so
   script.js's fa-bars <-> fa-times toggle keeps working. */
.fas, .fab {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.fa-bars { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M0 96h448v64H0zm0 160h448v64H0zm0 160h448v64H0z'/%3E%3C/svg%3E"); }

.fa-times { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M105 73l151 151L407 73l32 32-151 151 151 151-32 32-151-151-151 151-32-32 151-151L73 105z'/%3E%3C/svg%3E"); }

.fa-search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M208 48a160 160 0 1 1 0 320 160 160 0 0 1 0-320zm0-48C93 0 0 93 0 208s93 208 208 208c46 0 88-15 122-40l134 134 34-34-134-134c25-34 40-76 40-122C416 93 323 0 208 0z'/%3E%3C/svg%3E"); }

.fa-instagram { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 141a115 115 0 1 0 0 230 115 115 0 0 0 0-230zm0 190a75 75 0 1 1 0-150 75 75 0 0 1 0 150zm146-195a27 27 0 1 1-54 0 27 27 0 0 1 54 0zM400 96c-26-26-58-34-93-36-36-2-146-2-182 0-35 2-67 10-93 36S-2 154 0 189c-2 36-2 146 0 182 2 35 10 67 36 93s58 34 93 36c36 2 146 2 182 0 35-2 67-10 93-36s34-58 36-93c2-36 2-146 0-182-2-35-10-67-36-93zm-48 302c-8 20-23 35-43 43-30 12-101 9-134 9s-104 3-134-9c-20-8-35-23-43-43-12-30-9-101-9-134s-3-104 9-134c8-20 23-35 43-43 30-12 101-9 134-9s104-3 134 9c20 8 35 23 43 43 12 30 9 101 9 134s3 104-9 134z'/%3E%3C/svg%3E"); }
