/* Soft Rose - A Free Design by Bryant Smith (bryantsmith.com)
   A calm, single-column personal page in soft rose and cream.
   Look for the section headings below to find what you want to change. */


/* ---- COLOUR SYSTEM: change these hex values to repaint the page ---- */

:root {
    --cream:      #fffaf7;   /* the sheet of paper            */
    --cream-deep: #f4e6e3;   /* the rose-cream desk behind it  */
    --rose:       #a84a63;   /* main accent colour             */
    --rose-deep:  #7e3550;   /* headings, strong text, hover   */
    --rose-soft:  #d98fa4;   /* fine rules and ornaments       */
    --rose-tint:  #f7e4e8;   /* soft fills                     */
    --ink:        #3a2f31;   /* body text                      */
    --ink-soft:   #6f6063;   /* secondary text                 */
    --rule:       #ecd9db;   /* hairlines                      */
}


/* ---- RESET ---- */

* {
    margin: 0;
    padding: 0;
}


/* ---- BODY: the rose-cream desk behind the sheet ---- */

body {
    background: var(--cream-deep);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    padding: 56px 16px;
    text-align: center;
}


/* ---- PAGE: the cream sheet itself ---- */

#page {
    background-color: var(--cream);
    /* a thin rose bar across the top, then a soft wash down the sheet */
    background-image:
        linear-gradient(to right, var(--rose-soft), var(--rose), var(--rose-soft)),
        linear-gradient(180deg, var(--rose-tint) 0%, var(--cream) 240px);
    background-repeat: no-repeat, no-repeat;
    background-position: top left, top left;
    background-size: 100% 5px, 100% 100%;
    box-shadow: 0 1px 2px rgba(90, 40, 55, 0.05), 0 18px 44px rgba(90, 40, 55, 0.10);
    margin: 0 auto;
    max-width: 780px;
    padding: 64px 80px 56px 80px;
    text-align: left;
}


/* ---- MASTHEAD: the centred title and tagline at the top ---- */

#masthead {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 32px;
    text-align: center;
}

.eyebrow {
    color: var(--rose);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

#masthead h1 {
    color: var(--rose-deep);
    font-size: 60px;
    font-style: italic;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.05;
    margin-top: 12px;
}

#masthead .tagline {
    color: var(--ink-soft);
    font-size: 16px;
    font-style: italic;
    margin-top: 14px;
}


/* ---- MENU: the row of links under the title ---- */

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

#menu a,
#menu a:visited {
    border-bottom: 1px solid transparent;
    color: var(--ink-soft);
    display: inline-block;
    margin: 0 14px;
    padding-bottom: 3px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: var(--rose);
    color: var(--rose);
    outline: none;
}


/* ---- DIVIDER: a fine rule with a small diamond in the middle ---- */

.divider {
    background: var(--rule);
    height: 1px;
    margin: 40px auto;
    position: relative;
    width: 200px;
}

.divider::after {
    background: var(--cream);
    border: 1px solid var(--rose-soft);
    content: "";
    height: 9px;
    left: 50%;
    margin: -5px 0 0 -5px;
    position: absolute;
    top: 50%;
    transform: rotate(45deg);
    width: 9px;
}


/* ---- TEXT: paragraphs, links and headings in the body ---- */

#content p {
    margin-bottom: 20px;
}

.lead {
    color: var(--ink);
    font-size: 21px;
    font-style: italic;
    line-height: 1.65;
    margin: 0 auto 8px auto;
    max-width: 33em;
    text-align: center;
}

#content a,
#content a:visited {
    border-bottom: 1px solid var(--rose-soft);
    color: var(--rose);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

#content a:hover,
#content a:focus {
    border-bottom-color: var(--rose-deep);
    color: var(--rose-deep);
    outline: none;
}

strong {
    color: var(--rose-deep);
}

h2 {
    color: var(--rose-deep);
    font-size: 24px;
    font-style: italic;
    font-weight: normal;
    margin: 56px 0 20px 0;
    text-align: center;
}

h2::after {
    background: var(--rose-soft);
    content: "";
    display: block;
    height: 1px;
    margin: 14px auto 0 auto;
    width: 44px;
}


/* ---- QUOTE: a centred passage framed by fine rules ---- */

blockquote {
    border-bottom: 1px solid var(--rule);
    border-top: 1px solid var(--rule);
    margin: 40px 0;
    padding: 28px 8px;
    text-align: center;
}

blockquote p {
    color: var(--ink-soft);
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 30em;
}

blockquote p::before {
    color: var(--rose-soft);
    content: "\201C";
    display: block;
    font-size: 48px;
    line-height: 0.6;
    margin-bottom: 6px;
}


/* ---- NOTES: the centred list of dated writing ---- */

.notes {
    list-style: none;
    margin-top: 8px;
    text-align: center;
}

.notes li {
    border-bottom: 1px solid var(--rule);
    padding: 20px 0;
}

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

.notes .date {
    color: var(--rose);
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 2.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.notes a {
    font-size: 20px;
    font-style: italic;
}


/* ---- SIMPLE LIST: centred lines with a rose diamond marker ---- */

.simple {
    list-style: none;
    margin-top: 4px;
    text-align: center;
}

.simple li {
    margin: 10px 0;
}

.simple li::before {
    color: var(--rose-soft);
    content: "\25C6";
    font-size: 9px;
    margin-right: 10px;
    vertical-align: middle;
}


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

#footer {
    border-top: 1px solid var(--rule);
    color: var(--ink-soft);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 56px;
    padding-top: 24px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    border-bottom: none;
    color: var(--ink-soft);
    text-decoration: none;
}

#footer a:hover,
#footer a:focus {
    color: var(--rose);
    outline: none;
}


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

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

    #page {
        padding: 40px 26px 36px 26px;
    }

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

    #masthead .tagline {
        font-size: 15px;
    }

    #menu a {
        margin: 0 8px;
    }

    .lead {
        font-size: 19px;
    }

    h2 {
        font-size: 21px;
        margin-top: 44px;
    }
}


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

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

    #page {
        background: #ffffff;
        background-image: none;
        box-shadow: none;
        max-width: 100%;
        padding: 0;
    }

    #menu,
    .divider {
        display: none;
    }
}
