/* =========================================================
   AN SF Mono Fonts — agriculturenovel.co
   Applies SF Mono to all heading levels (h1–h6) + .entry-title
   ========================================================= */

/* ── @font-face declarations ── */

@font-face {
    font-family: 'SF Mono';
    src: url('../fonts/SF-Mono-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Mono';
    src: url('../fonts/SF-Mono-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Mono';
    src: url('../fonts/SF-Mono-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Mono';
    src: url('../fonts/SF-Mono-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Mono';
    src: url('../fonts/SF-Mono-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Mono';
    src: url('../fonts/SF-Mono-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Mono';
    src: url('../fonts/SF-Mono-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Mono';
    src: url('../fonts/SF-Mono-SemiboldItalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Mono';
    src: url('../fonts/SF-Mono-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Mono';
    src: url('../fonts/SF-Mono-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Mono';
    src: url('../fonts/SF-Mono-Heavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Mono';
    src: url('../fonts/SF-Mono-HeavyItalic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}


/* ── Apply SF Mono to headings only ──
   Strictly additive: only font-family + font-weight are set.
   No overrides for color, line-height, margin, or any layout property.
   Compatible with Fraunces / Bricolage Grotesque stack — SF Mono
   replaces whichever heading font the active theme declares.
   ──────────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.page-title,
.wp-block-post-title,
.site-title {
    font-family: 'SF Mono', 'SFMono-Regular', ui-monospace,
                 'Cascadia Mono', 'Segoe UI Mono',
                 'Roboto Mono', Menlo, Monaco, Consolas,
                 'Liberation Mono', 'Courier New', monospace !important;
}

/* Weight mapping — mirrors native heading hierarchy */
h1,
.entry-title,
.page-title,
.wp-block-post-title { font-weight: 700; }

h2  { font-weight: 600; }
h3  { font-weight: 600; }
h4  { font-weight: 500; }
h5  { font-weight: 500; }
h6  { font-weight: 400; }

.site-title { font-weight: 800; }

/* Admin bar / Gutenberg editor compat: keep editor headings consistent */
.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: 'SF Mono', 'SFMono-Regular', ui-monospace,
                 'Cascadia Mono', 'Segoe UI Mono',
                 'Roboto Mono', Menlo, Monaco, Consolas,
                 'Liberation Mono', 'Courier New', monospace !important;
}
