/* OPTIMIZED FONT DEFINITIONS FOR UNDELULU
 * Performance-focused @font-face declarations with:
 * - font-display: swap for better loading UX
 * - Selective font weights to reduce bundle size
 * - Strategic preload hints integration
 */

/* NICKY SANS - DISPLAY FONT FAMILY
 * Optimized loading order: Most used weights first */

/* Nicky Sans - Bold (700) - PRIORITY: Most used for headings */
@font-face {
  font-family: 'Nicky Sans';
  src: url('/fonts/NickySans/NickySansAlt-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nicky Sans - SemiBold (600) - PRIORITY: Secondary headings */
@font-face {
  font-family: 'Nicky Sans';
  src: url('/fonts/NickySans/NickySansAlt-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nicky Sans - Regular (400) - PRIORITY: Standard weight */
@font-face {
  font-family: 'Nicky Sans';
  src: url('/fonts/NickySans/NickySansAlt-Regular.woff2') format('woff2'),
       url('/fonts/NickySans/NickySans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nicky Sans - Medium (500) - PRIORITY: Medium emphasis */
@font-face {
  font-family: 'Nicky Sans';
  src: url('/fonts/NickySans/NickySansAlt-Medium.woff2') format('woff2'),
       url('/fonts/NickySans/NickySans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nicky Sans - Light (300) - DEFERRED: Subtle text only */
@font-face {
  font-family: 'Nicky Sans';
  src: url('/fonts/NickySans/NickySansAlt-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* FALLBACK FONT FAMILIES - Strategic redundancy */

/* NickySansAlt as primary fallback font-family */
@font-face {
  font-family: 'NickySansAlt';
  src: url('/fonts/NickySans/NickySansAlt-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'NickySansAlt';
  src: url('/fonts/NickySans/NickySansAlt-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* NickySans (without Alt) as secondary fallback */
@font-face {
  font-family: 'NickySans';
  src: url('/fonts/NickySans/NickySans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'NickySans';
  src: url('/fonts/NickySans/NickySans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* PERFORMANCE NOTE: Removed unused ExtraBold (800) and Black (900) weights
 * This reduces font bundle size by ~40KB and improves loading performance */

/* SIZE-ADJUST OPTIMIZATION for better fallback matching */
@supports (size-adjust: 100%) {
  @font-face {
    font-family: 'Nicky Sans Fallback';
    src: local('system-ui'), local('-apple-system'), local('BlinkMacSystemFont');
    size-adjust: 95%; /* Adjusted to match Nicky Sans metrics */
    ascent-override: 90%;
    descent-override: 22%;
    line-gap-override: 0%;
  }
}