/* Soft Sand - A Free Design by Bryant Smith (bryantsmith.com)
   A calm, single-column personal page in warm sand and brown tones.
   Every colour on the page is named once in the palette below, so you only
   have to change a value in one place to restyle the whole design. */


/* ---- PALETTE: change a hex value here and it updates everywhere ---- */

:root {
    --sand-50:   #faf5ec;  /* page background            */
    --sand-100:  #f1e5d3;  /* full-width header band     */
    --sand-200:  #e5d5bb;  /* hairlines, rules and edges */
    --clay:      #c07f4f;  /* warm decorative accent     */
    --clay-dark: #9a5f34;  /* links and their hover      */
    --bark:      #5b4230;  /* headings and nav text      */
    --bark-dark: #2f2117;  /* the very darkest text      */
    --espresso:  #3c2c20;  /* dark contrast panel/footer */
    --ink:       #3a2f27;  /* body text                  */
    --muted:     #7b6b5d;  /* secondary text             */
    --cream:     #e6d6be;  /* text on the dark panels    */
}


/* ---- RESET: keep every browser starting from the same place ---- */

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

body {
    background: var(--sand-50);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    text-align: left;
}

/* The shared centered column. Because it lives inside full-width bands,
   the tints can stretch edge to edge while the words stay comfortable. */
.wrap {
    margin: 0 auto;
    max-width: 720px;
    padding: 0 32px;
}


/* ---- MASTHEAD: the full-width tinted band at the top ---- */

#masthead {
    background: radial-gradient(circle at 84% -50%, #fbf1e0 0%, var(--sand-100) 60%);
    border-bottom: 1px solid var(--sand-200);
    padding: 72px 0 44px 0;
}

.eyebrow {
    color: var(--clay-dark);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

#masthead h1 {
    color: var(--bark-dark);
    font-size: 60px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
}

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


/* ---- MENU: a single row of quiet text links ---- */

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

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: var(--bark);
    margin-right: 26px;
    padding-bottom: 4px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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


/* ---- CONTENT: the reading column ---- */

#content {
    padding: 56px 0 8px 0;
}

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

#content a,
#content a:visited {
    border-bottom: 1px solid #dcbf9f;
    color: var(--clay-dark);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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


/* ---- TYPE: the opening line, headings and drop cap ---- */

.lead {
    color: #4a3d33;
    font-size: 21px;
    line-height: 1.7;
}

.lead::first-letter {
    color: var(--clay-dark);
    float: left;
    font-size: 3.6em;
    line-height: 0.8;
    padding: 6px 12px 0 0;
}

h2 {
    color: var(--bark-dark);
    font-size: 27px;
    font-weight: normal;
    letter-spacing: -0.3px;
    margin: 52px 0 16px 0;
}

/* A small clay dot before every section heading. */
h2::before {
    background: var(--clay);
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 9px;
    margin-right: 12px;
    vertical-align: middle;
    width: 9px;
}


/* ---- RULE: a hairline divider with a tiny centred diamond ---- */

.rule {
    border: 0;
    border-top: 1px solid var(--sand-200);
    margin: 48px 0;
    position: relative;
}

.rule::after {
    background: var(--clay);
    content: "";
    height: 7px;
    left: 50%;
    position: absolute;
    top: -4px;
    transform: translateX(-50%) rotate(45deg);
    width: 7px;
}


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

blockquote {
    border-left: 3px solid var(--clay);
    color: #57493d;
    font-size: 21px;
    font-style: italic;
    line-height: 1.6;
    margin: 32px 0;
    padding: 6px 0 6px 26px;
}

blockquote p {
    margin-bottom: 10px;
}

blockquote cite {
    color: var(--muted);
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-style: normal;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* ---- LIST: soft diamond bullets drawn with CSS ---- */

.list {
    list-style: none;
    margin-top: 22px;
}

.list li {
    border-bottom: 1px solid var(--sand-200);
    padding: 11px 0 11px 30px;
    position: relative;
}

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

.list li::before {
    color: var(--clay);
    content: "\25C6";
    font-size: 10px;
    left: 4px;
    position: absolute;
    top: 17px;
}


/* ---- TIP: a dark panel, so beginners can see real contrast ---- */

.tip {
    background: var(--espresso);
    border-radius: 4px;
    box-shadow: 0 18px 40px rgba(60, 44, 32, 0.18);
    color: var(--cream);
    margin: 40px 0;
    padding: 32px 36px;
}

.tip h3 {
    color: #f6ead6;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.tip p {
    color: #e2d3bd;
}

.tip strong {
    color: #ffffff;
}

.tip a,
.tip a:visited {
    border-bottom: 1px solid #8a6f52;
    color: #f0c9a0;
    text-decoration: none;
}

.tip a:hover {
    border-bottom-color: #ffffff;
    color: #ffffff;
}

/* An ordered list with hand-drawn number circles. */
.tip ol {
    counter-reset: step;
    list-style: none;
}

.tip li {
    color: #e2d3bd;
    counter-increment: step;
    padding: 8px 0 8px 40px;
    position: relative;
}

.tip li::before {
    background: var(--clay);
    border-radius: 50%;
    color: var(--espresso);
    content: counter(step);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    height: 24px;
    left: 0;
    line-height: 24px;
    position: absolute;
    text-align: center;
    top: 10px;
    width: 24px;
}


/* ---- FOOTER: the required credit, on a full-width dark band ---- */

#footer {
    background: var(--espresso);
    color: #b9a892;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 72px;
    padding: 32px 16px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    border-bottom: 1px solid #6d5741;
    color: #e9d9c2;
    text-decoration: none;
}

#footer a:hover {
    border-bottom-color: #ffffff;
    color: #ffffff;
}


/* ---- SMALL SCREENS: tighten the band, column and type ---- */

@media (max-width: 640px) {
    .wrap {
        padding: 0 22px;
    }

    #masthead {
        padding: 48px 0 32px 0;
    }

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

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

    #content {
        padding-top: 40px;
    }

    .lead {
        font-size: 19px;
    }

    h2 {
        font-size: 23px;
        margin-top: 40px;
    }

    blockquote {
        font-size: 19px;
    }

    .tip {
        padding: 24px 22px;
    }
}


/* ---- PRINT: a clean, ink-friendly sheet ---- */

@media print {
    body {
        background: #ffffff;
        color: #000000;
    }

    #masthead,
    #footer {
        background: #ffffff;
        border-color: #cccccc;
        color: #333333;
    }

    #masthead h1 {
        color: #000000;
    }

    #menu {
        display: none;
    }

    .tip {
        background: #ffffff;
        border: 1px solid #cccccc;
        box-shadow: none;
        color: #000000;
    }

    .tip h3,
    .tip p,
    .tip li,
    .tip strong {
        color: #000000;
    }

    .wrap {
        max-width: 100%;
    }
}
