/* -------------------------
   1. Arimo Font Setup
   ------------------------- */

/* Note: Pointing different styles to the same file is redundant. 
   I've simplified this to one base declaration. If you have 
   Arimo-Bold.woff2 later, add a separate @font-face for it.
*/
@font-face {
  font-family: "Arimo";
  src: url("../fonts/Arimo.woff2") format("woff2");
  font-weight: 400 700; /* Supports a range if the file allows */
  font-style: normal;
  font-display: swap;
}

/* ----------------------------
   2. Global Variables
   ---------------------------- */

:root {
  --md-text-font: "Arimo", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --md-code-font: "Arimo", "Courier New", monospace; /* Added monospaced fallbacks */
}

/* ----------------------------
   3. Global Typography
   ---------------------------- */

.md-typeset {
  font-size: 0.8rem; /* Scalable body text (approx 13-14px) */
  line-height: 1.6;
}

/* ----------------------------
   4. Code Block "Huge Text" Fix
   ---------------------------- */

/* We use high-specificity selectors to force the theme to 
   obey your size constraints and prevent "huge" text.
*/
.md-typeset .highlight code, 
.md-typeset pre code,
.md-typeset code {
  font-size: 0.75rem !important; /* Forces a readable code size */
  font-family: var(--md-code-font) !important;
  line-height: 1.5;
  -webkit-font-smoothing: auto;
}

/* Fixes the size of the line numbers (1, 2, 3...) */
.md-code__linenos, 
.md-typeset .linenos {
  font-size: 0.7rem !important;
  padding-right: 0.75rem;
  color: #888;
}

/* ----------------------------
   5. Navigation & UI
   ---------------------------- */

/* Main navigation items */
.md-nav__link,
.md-nav__item {
  font-size: 0.8rem;
}

/* Sidebar/Top title */
.md-nav__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Search bar text size */
.md-search__input {
  font-size: 0.8rem;
}