/* Simple Bio - A Free Design by Bryant Smith (bryantsmith.com)
   A single centred column for a short personal biography.
   Every colour, font and space used on the page is gathered here.
   The section comments below will point you to what you want. */


/* ---- RESET: remove the browser's default gaps ---- */

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


/* ---- BODY: the warm, softly lit backdrop ---- */

body {
    background-color: #f3ede2;
    background-image:
        radial-gradient(120% 90% at 50% 0%, rgba(217, 119, 87, 0.16), rgba(217, 119, 87, 0) 58%),
        linear-gradient(160deg, #faf7f1 0%, #f0e7d9 100%);
    background-repeat: no-repeat;
    color: #2a251f;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    min-height: 100vh;
    padding: 64px 20px 48px 20px;
    text-align: center;
}


/* ---- PAGE: the centred reading column (max-width does the centring) ---- */

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


/* ---- MASTHEAD: monogram, name, tagline and menu ---- */

#masthead {
    text-align: center;
}

#monogram {
    align-items: center;
    background: linear-gradient(145deg, #d97757 0%, #b34a2c 60%, #8f3e26 100%);
    border-radius: 50%;
    box-shadow: 0 12px 26px rgba(143, 62, 38, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    color: #fff6f0;
    display: flex;
    font-size: 30px;
    height: 84px;
    justify-content: center;
    letter-spacing: 1px;
    margin: 0 auto 26px auto;
    position: relative;
    width: 84px;
}

/* A thin ring drawn just outside the monogram */
#monogram::after {
    border: 1px solid rgba(179, 74, 44, 0.35);
    border-radius: 50%;
    bottom: -7px;
    content: "";
    left: -7px;
    position: absolute;
    right: -7px;
    top: -7px;
}

#masthead h1 {
    color: #1f1b16;
    font-size: 52px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.05;
}

.tagline {
    color: #8f4a33;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    margin-top: 14px;
    text-transform: uppercase;
}

/* A short accent rule sits between the masthead and the story */
#masthead::after {
    background: #d97757;
    border-radius: 2px;
    content: "";
    display: block;
    height: 3px;
    margin: 30px auto 0 auto;
    width: 56px;
}


/* ---- MENU: a row of small text links ---- */

#menu {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-top: 28px;
    text-transform: uppercase;
}

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

#menu a:hover,
#menu a:focus {
    border-bottom-color: #d97757;
    color: #a13f22;
}


/* ---- TEXT: the story paragraphs and their headings ---- */

#content {
    margin-top: 44px;
}

#content p {
    color: #3a342c;
    margin-bottom: 22px;
}

.lead {
    color: #2a251f;
    font-size: 21px;
    line-height: 1.65;
}

h2 {
    color: #a13f22;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin: 46px 0 18px 0;
    text-transform: uppercase;
}

/* A short underline beneath every section heading */
h2::after {
    background: #e0c7b8;
    content: "";
    display: block;
    height: 2px;
    margin-top: 10px;
    width: 42px;
}


/* ---- FACTS: label and value rows built from a definition list ---- */

.facts {
    border-top: 1px solid #e2d8c9;
}

.fact {
    border-bottom: 1px solid #e8dfd2;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 14px 2px;
}

.fact dt {
    color: #8a8173;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    padding-top: 3px;
    text-transform: uppercase;
}

.fact dd {
    color: #2a251f;
    text-align: right;
}


/* ---- QUOTE: an indented passage with a coloured bar ---- */

blockquote {
    border-left: 3px solid #d97757;
    color: #55503f;
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    margin: 34px 0;
    padding: 6px 0 6px 26px;
}

blockquote p {
    margin: 0;
}


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

.links {
    list-style: none;
}

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

.links a,
.links a:visited {
    color: #a13f22;
    display: block;
    padding: 14px 2px;
    position: relative;
    text-decoration: none;
    transition: color 0.18s ease, padding-left 0.18s ease;
}

/* The little arrow that slides out on hover */
.links a::after {
    color: #d9a08a;
    content: "\2192";
    position: absolute;
    right: 4px;
    top: 14px;
    transition: right 0.18s ease;
}

.links a:hover,
.links a:focus {
    color: #7d3117;
    padding-left: 10px;
}

.links a:hover::after,
.links a:focus::after {
    right: -2px;
}


/* ---- NOTE: the tinted box that explains how to edit the page ---- */

.note {
    background: #fbf7ef;
    border: 1px solid #e6dbc9;
    border-left: 4px solid #d97757;
    border-radius: 6px;
    margin-top: 44px;
    padding: 26px 28px;
}

.note h2 {
    margin-top: 0;
}

.note p {
    color: #5a5347;
    font-size: 15px;
    margin-bottom: 0;
}


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

#footer {
    border-top: 1px solid #e2d8c9;
    color: #9a9082;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 56px;
    padding-top: 24px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    border-bottom: none;
    color: #8a8173;
    text-decoration: none;
}

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


/* ---- FOCUS: a clear ring for keyboard users ---- */

a:focus {
    outline: 2px solid #b34a2c;
    outline-offset: 3px;
}

::selection {
    background: #f0c3b1;
    color: #4a2416;
}


/* ---- SMALL SCREENS: ease the padding and type down on phones ---- */

@media (max-width: 640px) {
    body {
        font-size: 16px;
        padding: 40px 16px 32px 16px;
    }

    #masthead h1 {
        font-size: 38px;
    }

    .lead {
        font-size: 19px;
    }

    #menu a {
        margin: 0 7px;
    }

    .fact {
        flex-direction: column;
        gap: 2px;
    }

    .fact dd {
        text-align: left;
    }

    .note {
        padding: 22px 20px;
    }
}


/* ---- PRINT: drop the colour and shadows for a clean sheet ---- */

@media print {
    body {
        background: #ffffff;
        background-image: none;
        color: #000000;
        padding: 0;
    }

    #monogram {
        box-shadow: none;
    }

    #menu {
        display: none;
    }

    .note {
        background: #ffffff;
    }
}
