/* Contact Tile - A Free Design by Bryant Smith (bryantsmith.com)
   Every colour, size and shadow used on the page is gathered here.
   Look for the section headings below to find what you want to change. */


/* ---- BODY: the warm paper backdrop the tile sits on ---- */

* {
    margin: 0;
    padding: 0;
}

body {
    background: #efe9df;
    color: #23302c;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding: 0 16px;
    text-align: center;
}


/* ---- BAND: the full-width colour band at the top ---- */

#band {
    background: #1c4f43;
    background-image: linear-gradient(160deg, #21604f 0%, #173f36 100%);
    padding: 30px 24px 210px 24px;
}

.band-text {
    margin: 70px auto 0 auto;
    max-width: 620px;
}

.eyebrow {
    color: #9fc4b6;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.band-title {
    color: #f6f1e7;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 42px;
    font-weight: normal;
    line-height: 1.2;
    margin-top: 12px;
}


/* ---- MENU: the row of text links across the band ---- */

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

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #d6e6df;
    margin: 0 11px;
    padding-bottom: 4px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom: 2px solid #e08a63;
    color: #ffffff;
}


/* ---- TILE: the card that overlaps the band via a negative margin ---- */

#tile {
    background: #fffdf9;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(23, 63, 54, 0.08),
                0 24px 60px rgba(23, 63, 54, 0.16);
    margin: -170px auto 0 auto;
    max-width: 720px;
    padding: 0 56px 48px 56px;
    position: relative;
    text-align: left;
}

/* The round initials badge, half above and half inside the tile */
.monogram {
    background: #c05e3c;
    border: 5px solid #fffdf9;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(23, 63, 54, 0.18);
    color: #fffdf9;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 30px;
    height: 82px;
    line-height: 82px;
    margin: -51px auto 20px auto;
    width: 82px;
}

#tile h1 {
    color: #1a2825;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 36px;
    font-weight: normal;
    line-height: 1.15;
    text-align: center;
}

.role {
    color: #a84a2b;
    font-size: 11px;
    letter-spacing: 3px;
    margin-top: 8px;
    text-align: center;
    text-transform: uppercase;
}

.bio {
    color: #4c5a55;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 18px;
    line-height: 1.7;
    margin: 22px auto 0 auto;
    max-width: 480px;
    text-align: center;
}


/* ---- EMAIL: the one bold call to action inside the tile ---- */

.email-wrap {
    margin: 30px 0 8px 0;
    text-align: center;
}

.email,
.email:visited {
    background: #1c4f43;
    border-radius: 40px;
    color: #f6f1e7;
    display: inline-block;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 13px 30px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.email:hover,
.email:focus {
    background: #a84a2b;
    transform: translateY(-2px);
}


/* ---- DETAILS: a two-column row of links and location ---- */

.details {
    border-top: 1px solid #ece5d9;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 34px;
    padding-top: 30px;
}

.details-col h2 {
    color: #1a2825;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.details-col h2::before {
    background: #c05e3c;
    border-radius: 2px;
    content: "";
    display: inline-block;
    height: 3px;
    margin-right: 9px;
    vertical-align: middle;
    width: 18px;
}

/* Styled list: no bullets, a soft rule between each row */
.links {
    list-style: none;
}

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

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

.links a,
.links a:visited {
    color: #2c6a58;
    display: block;
    padding: 9px 0;
    text-decoration: none;
    transition: color 0.15s ease, padding 0.15s ease;
}

.links a::after {
    color: #c05e3c;
    content: "\2192";
    float: right;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.links a:hover,
.links a:focus {
    color: #a84a2b;
    padding-left: 6px;
}

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

.location {
    color: #1a2825;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 19px;
}

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


/* ---- NOTE: the friendly how-to paragraph ---- */

.note {
    background: #f6f1e7;
    border-left: 3px solid #c05e3c;
    border-radius: 0 8px 8px 0;
    color: #56635e;
    font-size: 13px;
    line-height: 1.75;
    margin-top: 34px;
    padding: 18px 22px;
}

.note strong {
    color: #1a2825;
}


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

#footer {
    color: #8b857a;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 40px auto 0 auto;
    max-width: 720px;
    padding: 0 0 40px 0;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #6c665c;
    text-decoration: none;
}

#footer a:hover,
#footer a:focus {
    color: #a84a2b;
}


/* ---- SMALL SCREENS: stack the columns and shrink the overlaps ---- */

@media (max-width: 640px) {
    #band {
        padding: 24px 18px 150px 18px;
    }

    .band-text {
        margin-top: 48px;
    }

    .band-title {
        font-size: 30px;
    }

    #menu a {
        display: inline-block;
        margin: 0 7px 6px 7px;
    }

    #tile {
        margin-top: -120px;
        padding: 0 24px 36px 24px;
    }

    #tile h1 {
        font-size: 28px;
    }

    .details {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}
