/*
 * Ruhaniat Font Definitions
 * Custom font loading with performance optimization
 */

/* Font Face Declarations */

/* Maison Neue - Primary Sans-Serif Family */
@font-face {
    font-family: 'Maison Neue';
    src: url('../fonts/MaisonNeue-Book.woff2') format('woff2'),
         url('../fonts/MaisonNeue-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Maison Neue';
    src: url('../fonts/MaisonNeue-BookItalic.woff2') format('woff2'),
         url('../fonts/MaisonNeue-BookItalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Maison Neue';
    src: url('../fonts/MaisonNeue-Bold.woff2') format('woff2'),
         url('../fonts/MaisonNeue-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Maison Neue';
    src: url('../fonts/MaisonNeue-BoldItalic.woff2') format('woff2'),
         url('../fonts/MaisonNeue-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Maison Neue';
    src: url('../fonts/MaisonNeue-Demi.woff2') format('woff2'),
         url('../fonts/MaisonNeue-Demi.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Maison Neue Mono - Monospace */
@font-face {
    font-family: 'Maison Neue Mono';
    src: url('../fonts/MaisonNeue-Mono.woff2') format('woff2'),
         url('../fonts/MaisonNeue-Mono.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* MADE Awelier - Primary Serif Family */
@font-face {
    font-family: 'MADE Awelier';
    src: url('../fonts/MADEAwelierPERSONALUSE-Regular.woff2') format('woff2'),
         url('../fonts/MADEAwelierPERSONALUSE-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Hoefler Titling - Display/Quote Font */
@font-face {
    font-family: 'Hoefler Titling';
    src: url('../fonts/HoeflerTitling-HTF-BdSwash.woff2') format('woff2'),
         url('../fonts/HoeflerTitling-HTF-BdSwash.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Note: Font family CSS variables are defined in design-system.css */

/* Font Loading Optimization */
/* Preload critical fonts in the HTML head for better performance */
/* Example: <link rel="preload" href="/assets/fonts/CustomFont-Regular.woff2" as="font" type="font/woff2" crossorigin> */

/* Font Feature Settings */
body {
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Scale - Custom Font Applications */

/* H1 and H2 use MADE Awelier (serif) */
h1, .h1, h2, .h2 {
  font-family: var(--font-serif);
}

/* Display headings use MADE Awelier */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-serif);
}

/* Quote/Blockquote styling with Hoefler Titling */
blockquote, .blockquote, .quote {
  font-family: var(--font-display);
}

/* Button styling with Maison Neue Demi */
.btn {
  font-family: var(--font-primary);
  font-weight: 600; /* Demi weight */
}

/* Monospace utility */
.font-mono, code, pre, kbd, samp {
  font-family: var(--font-mono);
}

/* Utility classes for font families */
.font-primary {
  font-family: var(--font-primary);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-display {
  font-family: var(--font-display);
}

/* Performance: Reduce font loading impact */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}