/*
Theme Name: Trace Alpine
Theme URI:
Description: Child theme for Le Coureur Libre – cycling and sport blog, Digne-les-Bains
Author: Le Coureur Libre
Author URI:
Template: generatepress
Version: 1.0.0
*/

/* =====================================================================
   MIDNIGHT-BOLD PALETTE + EDITORIAL FONT DECLARATIONS
   ===================================================================== */

/* Self-hosted fonts */
@font-face {
    font-family: 'Playfair Display';
    src: url('assets/fonts/PlayfairDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('assets/fonts/PlayfairDisplay-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('assets/fonts/SourceSans3-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('assets/fonts/SourceSans3-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('assets/fonts/SourceSans3-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* GP parent overrides */
body {
    font-weight: 400; /* Override GP parent 300 default */
    color: #0F172A;
    background-color: #FFFFFF;
}

/* Midnight-bold accent colours */
a { color: #3B82F6; }
a:hover { color: #1E293B; }

.site-header,
.main-navigation ul ul {
    background-color: #1E293B;
}

.main-navigation a {
    color: #F1F5F9;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #3B82F6;
}

/* Separate containers: subtle border + shadow */
.inside-article,
.inside-page-header {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 3px;
}

/* Footer — centered-light */
.site-footer {
    background-color: #F1F5F9;
    text-align: center;
}
.site-footer .copyright-bar {
    text-align: center;
}
.footer-widgets-container {
    display: none; /* no footer widgets on centered-light */
}

/* Scroll-to-top button */
.generate-back-to-top {
    background-color: #3B82F6;
    color: #FFFFFF;
    border-radius: 4px;
}
.generate-back-to-top:hover {
    background-color: #1E293B;
}

/* Homepage featured-cover hero */
.featured-image img {
    width: 100%;
    height: auto;
}

/* Screen-reader H1 for blog index */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Nav mobile breakpoint 1024 */
@media (max-width: 1024px) {
    .main-navigation ul {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}
@media (min-width: 1025px) {
    .menu-toggle {
        display: none;
    }
    .main-navigation ul {
        display: flex;
    }
}

/* Search submit button scope */
body .search-form .search-submit {
    background-color: #3B82F6;
    color: #FFFFFF;
}
body .search-form .search-submit:hover {
    background-color: #1E293B;
}

/* M2 fixes: search button + CF7 button palette match (primary #1E293B) */
body .search-form .search-submit,
body .navigation-search .searchform input[type="submit"] {
    background-color: #1E293B;
}
body .wpcf7-form input[type="submit"],
body .wpcf7-submit {
    background-color: #1E293B;
}

/* Front-page visible H1 tagline */
.site-tagline-heading {
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    color: inherit;
    margin: 0;
}