/* Site overrides, loaded after styles.css */

/* Section headings bold (template uses 300) */
.heading{font-weight:700}

/* Quote strip below the lead banner */
#quote-strip{padding:15px;border-bottom:1px solid #dcd9d9}
#quote-strip p{font-size:1.5em;text-align:center;margin-bottom:15px;color:#74808a}
#quote-strip p span{font-size:0.7em}

/* #services: same rules styles.css applies to the former #about */
#services{padding:75px 15px;border-bottom:1px solid #dcd9d9}
#services h2{color:#374054}
#services p{color:#74808a;margin:0}

@media only screen and (max-width: 992px){
    #services{text-align:center}
    #services p{text-align:left}
}

/* Project media never wider than its card */
.project-image img,.project-image video{max-width:100%}

@media only screen and (max-width: 768px){
    /* styles.css hides project media on mobile; show it stacked above the text */
    .project-image{display:block;float:none}
    .project-image img,.project-image video{display:block;width:100%;height:auto}
    /* !important needed to override inline font sizes */
    #services p{font-size:1.2em !important}
    #lead + div p{font-size:1.2em !important}
    /* Smaller skill chips */
    #skills li{font-size:1em;margin:4px;padding:4px 8px}
}

/* Subpages: short lead banner instead of the full-height one */
#lead.lead-small{height:auto;min-height:0;padding:110px 15px 50px 15px}
#lead.lead-small #lead-content{position:relative;top:auto;left:auto;transform:none}
@media only screen and (min-width: 769px){
    #lead.lead-small #lead-content h1{font-size:3em}
}

/* 404 page: full-screen banner at every width, content centred */
#lead.lead-full{display:flex;align-items:center;justify-content:center;min-height:100vh}
#lead.lead-full #lead-content{position:relative;top:auto;left:auto;transform:none}

/* Imprint and privacy pages: page margin and readable line length */
body.legal{max-width:900px;margin:0 auto;padding:30px 15px}

/* Background page: intro text above the experience timeline */
#background-intro{max-width:1000px;margin:0 auto 50px auto;color:#74808a;font-size:1.1em;text-align:left}

/* Desktop cards: flex row so a card grows with its text instead of clipping it */
@media only screen and (min-width: 769px){
    .project{display:flex;align-items:center}
    .project-image{flex:0 0 350px}
    .project-info{position:static;transform:none;margin-left:0;flex:1 1 auto}
}

/* Background page: portrait beside the intro, photo row, quotes */
#background-intro-section{padding:50px 15px;border-bottom:1px solid #dcd9d9}
#background-intro-row{display:flex;align-items:center;max-width:1000px;margin:0 auto 30px auto}
#background-portrait{flex:0 0 auto;width:260px;height:auto;margin-right:30px;border-radius:4px}
#background-intro-row #background-intro{margin:0}
#background-photos{display:flex;gap:15px;max-width:1000px;margin:0 auto}
#background-photos img{flex:1 1 0;min-width:0;height:220px;object-fit:cover;border-radius:4px}
#quotes{padding:50px 15px;border-bottom:1px solid #dcd9d9;text-align:center}
#quotes h2{color:#374054;margin-bottom:50px}
.quote-block{max-width:700px;margin:0 auto 30px auto;padding:15px;border:1px solid #dcd9d9;border-left:3px solid #3498db;text-align:left}
.quote-block p{color:#374054;font-style:italic;font-size:1.1em;margin:0 0 10px 0}
.quote-block span{color:#74808a;font-size:0.9em}

@media only screen and (max-width: 768px){
    #background-intro-row{flex-direction:column}
    #background-portrait{width:220px;margin:0 0 30px 0}
    #background-photos{flex-direction:column}
    #background-photos img{height:auto}
}

/* Contact: email and phone below the form */
#contact-direct{max-width:500px;margin:20px auto 0 auto;color:#fff}
#contact-direct span{display:inline-block;margin:5px 15px}
#contact-direct i{margin-right:5px}
#contact-direct a{color:#fff}
/* Formspree honeypot field, hidden from people */
#contact-form .honeypot{display:none}

/* Footer: profile links as icon + text label */
.social li{font-size:1em}
.social a{padding:10px 8px}
.social i{margin-right:5px}

/* Dark mode: follows the OS setting, overrides the template's hard-coded colours */
@media (prefers-color-scheme: dark){
    body{background:#1b1f27;color:#aab3bc}
    a{color:#5dade2}
    .background-alt{background:#222731}
    header ul,#mobile-menu-open,#mobile-menu-close{background:#2a303b}
    header a:hover{background:#323945;color:#5dade2}
    .shadow,.shadow-large{box-shadow:none;border:1px solid #3a404b}

    /* Headings */
    h1,h2,h3,
    #services h2,#skills h2,#projects h2,#experience h2,#education h2,#quotes h2,
    .project-info h3,.vtimeline-content h3,.vtimeline-date,.education-block h3,
    .optional-section h2,.optional-section-block h3,.quote-block p{color:#e4e7eb}
    #lead-content h1{color:#fff}

    /* Body text */
    #quote-strip p,#services p,.project-info p,
    .vtimeline-content h4,.vtimeline-content p,
    .education-block span,.education-block h4,.education-block p,.education-block ul,
    .optional-section-block h4,.optional-section-block p,.optional-section-block ul,
    #background-intro,.quote-block span,.copyright p,.social a,.top i{color:#aab3bc}
    .social a:hover{color:#5dade2}

    /* Blocks and chips */
    .project,.vtimeline-content,.optional-section-block{background:#2a303b}
    #skills li{background:#323945;color:#e4e7eb}

    /* Borders */
    #quote-strip,#services,#experience,#education,#projects,#background-intro-section,#quotes,
    .vtimeline-content,.education-block,.optional-section,.optional-section-block{border-color:#3a404b}
    .quote-block{border-color:#3a404b;border-left-color:#3498db}
    .top span{border-color:#5a626e}

    /* Contact: dark section instead of the blue one */
    #contact{background:#222731}
    #contact h2,#contact-direct,#contact-direct a{color:#aab3bc}
    #contact-form input,#contact-form textarea{background:#2a303b;color:#e4e7eb;border:1px solid #3a404b}
    #contact-form input:focus,#contact-form textarea:focus{background:#323945;border-color:#3498db}
    #contact-form input::placeholder,#contact-form textarea::placeholder{color:#aab3bc}
    #contact-form button{background:#aab3bc;color:#1b1f27}
}
