/* Skill Meter - A Free Design by Bryant Smith (bryantsmith.com)
   A navy-and-green resume add-on, made from plain HTML and CSS only.

   The palette is deliberately small:
     navy  #123253   green #2f9e6b
     deep  #0c2138   deep  #1f7a50
     ink   #1b2a38   muted #5c6b79
     page  #e9edf1   card  #ffffff

   Look for the section headings below to find what you want to change. */


/* ---- RESET: remove default gaps, count borders in every width ---- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ---- BODY: the tinted desk the page rests on ---- */

body {
    background: #e9edf1;
    color: #1b2a38;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding: 40px 16px;
    text-align: center;
}


/* ---- PAGE: the centered white sheet ---- */

#page {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(11, 33, 56, 0.06), 0 18px 40px rgba(11, 33, 56, 0.10);
    margin: 0 auto;
    max-width: 880px;
    overflow: hidden;
    text-align: left;
}


/* ---- TOPBAR: the navy strip holding the brand and menu ---- */

#topbar {
    align-items: center;
    background: #123253;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    padding: 18px 48px;
}

.brand {
    color: #ffffff;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.brand-mark {
    color: #58c48d;
}


/* ---- MENU: the row of links inside the topbar ---- */

#menu {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #b9cde0;
    margin-left: 22px;
    padding-bottom: 3px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: #58c48d;
    color: #ffffff;
}


/* ---- MASTHEAD: avatar, name, role and contact line ---- */

#masthead {
    align-items: center;
    display: flex;
    gap: 24px;
    padding: 48px 48px 8px 48px;
}

.avatar {
    align-items: center;
    background: linear-gradient(135deg, #123253, #1f5c86);
    border-radius: 14px;
    color: #ffffff;
    display: flex;
    flex: 0 0 auto;
    font-size: 23px;
    font-weight: bold;
    height: 72px;
    justify-content: center;
    letter-spacing: 1px;
    position: relative;
    width: 72px;
}

.avatar::after {
    background: #2f9e6b;
    border-radius: 999px;
    bottom: 9px;
    content: "";
    height: 4px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 26px;
}

h1 {
    color: #0c2138;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 40px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.role {
    color: #1f7a50;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 8px;
    text-transform: uppercase;
}

.meta {
    color: #5c6b79;
    font-size: 13px;
    margin-top: 8px;
}

.meta a,
.meta a:visited {
    border-bottom: 1px solid #c9d8e6;
    color: #123253;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.meta a:hover,
.meta a:focus {
    border-bottom-color: #2f9e6b;
    color: #1f7a50;
}


/* ---- LEAD: the profile paragraph, in a serif for contrast ---- */

.lead {
    color: #33475a;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 19px;
    line-height: 1.7;
    max-width: 720px;
    padding: 24px 48px 0 48px;
}


/* ---- SKILLS: a two-column grid of grouped meters ---- */

#skills {
    display: grid;
    gap: 36px 40px;
    grid-template-columns: 1fr 1fr;
    padding: 40px 48px 8px 48px;
}

.skill-group h2 {
    border-bottom: 1px solid #e2e8ee;
    color: #123253;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.skill-group h2::before {
    background: #2f9e6b;
    border-radius: 2px;
    content: "";
    display: inline-block;
    height: 10px;
    margin-right: 10px;
    vertical-align: -1px;
    width: 4px;
}

.skill {
    margin-bottom: 18px;
}

.skill:last-child {
    margin-bottom: 0;
}

.skill-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
}

.skill-name {
    color: #33475a;
    font-size: 13.5px;
}

.skill-value {
    color: #123253;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
}


/* ---- METER: the track and its fill. The fill width is set inline ---- */

.meter {
    background: #e6ecf1;
    border: 1px solid #d5dee6;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
    padding: 2px;
}

.meter-fill {
    background: linear-gradient(90deg, #123253 0%, #2f9e6b 100%);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    display: block;
    height: 100%;
}


/* ---- NOTE: the friendly "how to use this" box ---- */

#note {
    background: #f2f7f4;
    border: 1px solid #d9e7df;
    border-left: 4px solid #2f9e6b;
    border-radius: 6px;
    margin: 40px 48px 8px 48px;
    padding: 24px 28px;
}

#note h2 {
    color: #1f7a50;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

#note p {
    color: #3f5265;
    font-size: 14px;
    margin-bottom: 12px;
}

#note p:last-child {
    margin-bottom: 0;
}

#note strong {
    color: #123253;
}


/* ---- FOOTER: the required credit link ---- */

#footer {
    border-top: 1px solid #e2e8ee;
    color: #6b7a89;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-top: 40px;
    padding: 20px 48px;
    text-align: center;
}

#footer a,
#footer a:visited {
    border-bottom: 1px solid #cfd8e0;
    color: #6b7a89;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#footer a:hover,
#footer a:focus {
    border-bottom-color: #2f9e6b;
    color: #1f7a50;
}


/* ---- SMALL SCREENS: one column and tighter padding on phones ---- */

@media (max-width: 640px) {
    body {
        padding: 16px 10px;
    }

    #topbar {
        padding: 16px 24px;
    }

    #menu a,
    #menu a:visited {
        margin-left: 0;
        margin-right: 16px;
    }

    #masthead {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding: 32px 24px 8px 24px;
    }

    h1 {
        font-size: 30px;
    }

    .lead {
        font-size: 17px;
        padding: 20px 24px 0 24px;
    }

    #skills {
        gap: 32px;
        grid-template-columns: 1fr;
        padding: 32px 24px 0 24px;
    }

    #note {
        margin: 32px 24px 8px 24px;
        padding: 20px 22px;
    }

    #footer {
        padding: 20px 24px;
    }
}


/* ---- PRINT: a clean sheet with the bars kept intact ---- */

@media print {
    body {
        background: #ffffff;
        padding: 0;
    }

    #page {
        border-radius: 0;
        max-width: 100%;
        box-shadow: none;
    }

    #topbar {
        border-bottom: 2px solid #123253;
        background: #ffffff;
        padding: 0 0 12px 0;
    }

    .brand,
    .brand-mark {
        color: #123253;
    }

    #menu {
        display: none;
    }

    .meter-fill,
    .avatar {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    #note {
        border-left-color: #2f9e6b;
    }
}
