/**
 * Diglu Font Implementation for Sky Pilot Hageland Child Theme
 * 
 * This file applies the Diglu font family to various site elements.
 * The Diglu font comes in multiple weights and styles:
 * - Hairline (100)
 * - Thin (200) 
 * - Extralight (300)
 * - Light (400)
 * - Regular (500)
 * - Medium (600)
 * - Bold (700)
 * - Extrabold (800)
 * - Heavy (900)
 * - Black (950)
 */

/* CSS Custom Properties for Diglu Font */
:root {
    --font-diglu-primary: 'diglu-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-diglu-heading: 'diglu-Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-diglu-light: 'diglu-Light', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-diglu-medium: 'diglu-Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Apply Diglu to main site elements */
body {
    font-family: var(--font-diglu-primary);
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.site-title,
.site-description {
    font-family: var(--font-diglu-heading);
}

/* Navigation */
.main-navigation,
.site-header .menu,
.site-footer .menu {
    font-family: var(--font-diglu-medium);
}

/* Buttons and interactive elements */
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.btn {
    font-family: var(--font-diglu-medium);
}

/* Specific weight classes for manual control */
.diglu-hairline { font-family: 'diglu-Hairline', sans-serif; font-weight: 100; }
.diglu-thin { font-family: 'diglu-Thin', sans-serif; font-weight: 200; }
.diglu-extralight { font-family: 'diglu-Extralight', sans-serif; font-weight: 300; }
.diglu-light { font-family: 'diglu-Light', sans-serif; font-weight: 400; }
.diglu-regular { font-family: 'diglu-Regular', sans-serif; font-weight: 500; }
.diglu-medium { font-family: 'diglu-Medium', sans-serif; font-weight: 600; }
.diglu-bold { font-family: 'diglu-Bold', sans-serif; font-weight: 700; }
.diglu-extrabold { font-family: 'diglu-Extrabold', sans-serif; font-weight: 800; }
.diglu-heavy { font-family: 'diglu-Heavy', sans-serif; font-weight: 900; }
.diglu-black { font-family: 'diglu-Black', sans-serif; font-weight: 950; }

/* Italic variants */
.diglu-hairline-italic { font-family: 'diglu-Hairline', sans-serif; font-weight: 100; font-style: italic; }
.diglu-thin-italic { font-family: 'diglu-Thin', sans-serif; font-weight: 200; font-style: italic; }
.diglu-extralight-italic { font-family: 'diglu-Extralight', sans-serif; font-weight: 300; font-style: italic; }
.diglu-light-italic { font-family: 'diglu-Light', sans-serif; font-weight: 400; font-style: italic; }
.diglu-regular-italic { font-family: 'diglu-Regular', sans-serif; font-weight: 500; font-style: italic; }
.diglu-medium-italic { font-family: 'diglu-Medium', sans-serif; font-weight: 600; font-style: italic; }
.diglu-bold-italic { font-family: 'diglu-Bold', sans-serif; font-weight: 700; font-style: italic; }
.diglu-extrabold-italic { font-family: 'diglu-Extrabold', sans-serif; font-weight: 800; font-style: italic; }
.diglu-heavy-italic { font-family: 'diglu-Heavy', sans-serif; font-weight: 900; font-style: italic; }
.diglu-black-italic { font-family: 'diglu-Black', sans-serif; font-weight: 950; font-style: italic; }

/* Block editor support */
.editor-styles-wrapper {
    font-family: var(--font-diglu-primary);
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
    font-family: var(--font-diglu-heading);
}

/* Responsive font sizing adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Performance optimization */
* {
    font-display: swap;
}
