/* ============================================================
   BASE — element-level defaults that reference tokens
   ============================================================ */

/* ----------------------------------------------------------
   EXEMPLAR — display serif (static weights)
---------------------------------------------------------- */
@font-face {
  font-family: 'Exemplar';
  src: url('/assets/fonts/Exemplar-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar';
  src: url('/assets/fonts/Exemplar-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar';
  src: url('/assets/fonts/Exemplar-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar';
  src: url('/assets/fonts/Exemplar-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar';
  src: url('/assets/fonts/Exemplar-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar';
  src: url('/assets/fonts/Exemplar-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar';
  src: url('/assets/fonts/Exemplar-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar';
  src: url('/assets/fonts/Exemplar-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar';
  src: url('/assets/fonts/Exemplar-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar';
  src: url('/assets/fonts/Exemplar-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ----------------------------------------------------------
   EXEMPLAR ARABIC — Arabic display serif (static weights)
---------------------------------------------------------- */
@font-face {
  font-family: 'Exemplar Arabic';
  src: url('/assets/fonts/ExemplarArabic-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar Arabic';
  src: url('/assets/fonts/ExemplarArabic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar Arabic';
  src: url('/assets/fonts/ExemplarArabic-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar Arabic';
  src: url('/assets/fonts/ExemplarArabic-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar Arabic';
  src: url('/assets/fonts/ExemplarArabic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------
   EXEMPLAR SANS — UI sans-serif
---------------------------------------------------------- */

@font-face {
  font-family: 'Exemplar Sans';
  src: url('/assets/fonts/ExemplarSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exemplar Sans';
  src: url('/assets/fonts/ExemplarSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

html {
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* Display font applied to showcase elements */
.font-display {
  font-family: var(--font-display);
}

.uppercase {
  text-transform: uppercase;
}

.caption {
  font-family: var(--font-ui);
  font-variant-ligatures: none;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* ----------------------------------------------------------
   FOCUS STYLES
---------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   REDUCED MOTION
---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
