/* Personal Card - A Free Design by Bryant Smith (bryantsmith.com)
   A narrow, centred card with a CSS-only round avatar and a tidy link list.
   Look for the section headings below to find what you want to change. */


/* ---- BODY: the soft backdrop the card rests on ---- */

body {
    background: #eef0f4;
    background-image: linear-gradient(160deg, #f6f7f9 0%, #e7eaf0 100%);
    color: #565c66;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    min-height: 100vh;
    padding: 56px 16px;
    text-align: center;
}

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


/* ---- PAGE: keeps the card centred with margin auto ---- */

#page {
    margin: 0 auto;
    max-width: 560px;
    text-align: left;
}


/* ---- CARD: the white panel with the soft shadow ---- */

#card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 2px 4px rgba(31, 42, 58, 0.05),
                0 22px 50px rgba(31, 42, 58, 0.16);
    overflow: hidden;
}


/* ---- CARD HEAD: the tinted top half that holds the avatar ---- */

.card-head {
    background: linear-gradient(165deg, #fdf2ed 0%, #f7e2d8 100%);
    border-bottom: 1px solid #f2e2da;
    padding: 30px 40px 34px 40px;
    text-align: center;
}


/* ---- MENU: the little row of links at the top ---- */

#menu {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 1px solid transparent;
    color: #8a6759;
    margin: 0 9px;
    padding-bottom: 2px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom: 1px solid #b8472a;
    color: #b8472a;
}


/* ---- AVATAR: a circle made with border-radius, no images ---- */

.avatar {
    background: linear-gradient(145deg, #d98b6a 0%, #b8472a 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 5px #ffffff,
                0 0 0 6px #f0d4c8,
                0 12px 22px rgba(150, 60, 34, 0.28);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 38px;
    height: 108px;
    letter-spacing: 2px;
    margin: 0 auto 22px auto;
    text-indent: 2px;
    width: 108px;
}

.card-head h1 {
    color: #2a2d35;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 30px;
    font-weight: normal;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.role {
    color: #8a6759;
    font-size: 11px;
    letter-spacing: 2.5px;
    margin-top: 8px;
    text-transform: uppercase;
}


/* ---- CARD BODY: the bio and links ---- */

.card-body {
    padding: 34px 40px 38px 40px;
}

.bio {
    color: #565c66;
    font-size: 15px;
}

h2 {
    border-bottom: 1px solid #eceef2;
    color: #2a2d35;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin: 30px 0 14px 0;
    padding-bottom: 10px;
    text-transform: uppercase;
}

h2::before {
    background: #b8472a;
    content: "";
    display: inline-block;
    height: 8px;
    margin-right: 9px;
    vertical-align: middle;
    width: 8px;
    border-radius: 50%;
}


/* ---- LINKS: the tidy list of places to find me ---- */

.links {
    list-style: none;
}

.links li {
    border-bottom: 1px solid #eef0f4;
}

.links li:last-child {
    border-bottom: none;
}

.links a {
    align-items: baseline;
    color: #2a2d35;
    display: flex;
    justify-content: space-between;
    padding: 12px 10px 12px 4px;
    text-decoration: none;
    transition: background 0.15s ease, padding 0.15s ease;
}

.links a:hover,
.links a:focus {
    background: #fdf5f1;
    padding-left: 12px;
    padding-right: 4px;
}

.links .label {
    font-size: 15px;
    position: relative;
}

.links .label::after {
    color: #b8472a;
    content: "\2192";
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.links a:hover .label::after,
.links a:focus .label::after {
    opacity: 1;
}

.links .meta {
    color: #6f7682;
    font-size: 11px;
    letter-spacing: 0.5px;
}


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

.note {
    background: #f7f8fa;
    border-left: 3px solid #b8472a;
    border-radius: 0 8px 8px 0;
    color: #6b727d;
    font-size: 12.5px;
    line-height: 1.65;
    margin-top: 30px;
    padding: 16px 18px;
}

.note strong {
    color: #2a2d35;
}


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

#footer {
    color: #9aa0aa;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 26px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #7d838d;
    text-decoration: none;
}

#footer a:hover {
    color: #b8472a;
}


/* ---- SMALL SCREENS: pull in the padding on phones ---- */

@media (max-width: 640px) {
    body {
        padding: 24px 12px;
    }

    .card-head {
        padding: 24px 24px 28px 24px;
    }

    .card-body {
        padding: 26px 24px 30px 24px;
    }

    .card-head h1 {
        font-size: 25px;
    }

    .avatar {
        font-size: 32px;
        height: 92px;
        width: 92px;
    }

    #menu a {
        margin: 0 6px;
    }

    .links .meta {
        display: none;
    }
}


/* ---- PRINT: drop the backdrop and shadow for a clean sheet ---- */

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

    #card {
        box-shadow: none;
    }

    #menu {
        display: none;
    }
}
