/* Sunset Glow - A Free Design by Bryant Smith (bryantsmith.com)
   Every colour and space on the page lives in this one file.
   The two warm bands at the top and bottom are made from plain CSS
   linear-gradient rules, so no images are needed anywhere.
   Follow the section headings below to find what you want to change. */


/* ---- RESET: a clean slate ---- */

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


/* ---- BODY: the warm background behind everything ---- */

body {
    background: #fbf3e9;
    color: #3b3029;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
}


/* ---- SKY: the full-width gradient band across the top ----
   This is a single linear-gradient. The percentage values are the
   "colour stops" - move them to slide each colour up or down the sky. */

#sky {
    background: linear-gradient(
        to bottom,
        #241635 0%,
        #4e2448 18%,
        #93314a 40%,
        #d4533b 62%,
        #f2892f 80%,
        #ffc25e 100%
    );
    overflow: hidden;
    padding: 88px 24px 150px 24px;
    position: relative;
    text-align: center;
}


/* ---- SUN: a soft radial glow resting behind the title ----
   This is a radial-gradient (a circular one). The main lesson of this
   template is the linear-gradients above and below; this is just polish. */

#sky::after {
    background: radial-gradient(
        circle,
        rgba(255, 236, 170, 0.70) 0%,
        rgba(255, 190, 90, 0.30) 45%,
        rgba(255, 160, 60, 0) 72%
    );
    border-radius: 50%;
    bottom: -320px;
    content: "";
    height: 440px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 440px;
}


/* ---- HERO: the title and tagline sitting in the sky ---- */

#hero {
    margin: 0 auto;
    max-width: 640px;
    position: relative;
    z-index: 1;                 /* keeps the words in front of the sun glow */
}

#hero .eyebrow {
    color: rgba(255, 240, 222, 0.85);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#hero h1 {
    color: #fff7ef;
    font-size: 64px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 18px 0 0 0;
    text-shadow: 0 2px 20px rgba(43, 20, 45, 0.45);
}

#hero .tagline {
    color: rgba(255, 244, 232, 0.95);
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
    margin: 16px auto 0 auto;
    max-width: 460px;
    text-shadow: 0 1px 12px rgba(43, 20, 45, 0.40);
}


/* ---- PAGE: the cream card that overlaps the sky ----
   The negative top margin pulls the card up over the gradient band. */

#page {
    background: #fffdfa;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(60, 30, 40, 0.18);
    margin: -84px auto 0 auto;
    max-width: 760px;
    padding: 8px 56px 56px 56px;
    position: relative;
    z-index: 2;
}


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

#menu {
    border-bottom: 1px solid #f0e2d2;
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 30px 0 24px 0;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #7c4a2c;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    padding-bottom: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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


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

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

#content a,
#content a:visited {
    border-bottom: 1px solid #f0b48a;
    color: #b23c17;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#content a:hover,
#content a:focus {
    border-bottom: 1px solid #7c2a10;
    color: #7c2a10;
}

.lead {
    color: #4a3b31;
    font-size: 20px;
    line-height: 1.65;
}

.lead::first-letter {
    color: #d4533b;
    float: left;
    font-size: 3.4em;
    line-height: 0.85;
    padding: 4px 10px 0 0;
}

h2 {
    color: #2f2320;
    font-size: 22px;
    font-weight: normal;
    margin: 44px 0 16px 0;
}

/* A small gradient bar under each heading - another colour-stop lesson. */
h2::after {
    background: linear-gradient(to right, #f7a83a, #e8623c, #a83a45);
    border-radius: 2px;
    content: "";
    display: block;
    height: 4px;
    margin-top: 12px;
    width: 64px;
}


/* ---- QUOTE: an indented passage with a warm bar and tint ---- */

blockquote {
    background: linear-gradient(to right, #fdf1e2, #fffdfa);
    border-left: 4px solid #e8623c;
    color: #6a5244;
    font-size: 19px;
    font-style: italic;
    margin: 32px 0;
    padding: 16px 20px 16px 26px;
}

blockquote p {
    margin: 0;
}


/* ---- ENTRIES: the dated list of journal posts ---- */

.entries {
    list-style: none;
}

.entries li {
    border-bottom: 1px solid #f1e4d5;
    padding: 14px 0;
}

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

.entries .date {
    color: #7c5a3d;
    display: inline-block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 160px;
}

.entries a {
    font-size: 18px;
}


/* ---- GLOW: the full-width gradient band across the bottom ----
   The colours run the opposite way to the sky, so the page opens and
   closes on the same deep plum. Swap the stops to change the mood. */

#glow {
    background: linear-gradient(
        to bottom,
        #fbe6bd 0%,
        #f7a83a 22%,
        #e8623c 50%,
        #a1404b 76%,
        #2b1a3d 100%
    );
    margin-top: 0;
    padding: 112px 24px 64px 24px;
    text-align: center;
}


/* ---- FOOTER: the required credit link, resting on the dark plum ---- */

#footer {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

#footer a:hover,
#footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}


/* ---- SMALL SCREENS: tighten the spacing on phones ---- */

@media (max-width: 640px) {
    #sky {
        padding: 56px 20px 120px 20px;
    }

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

    #hero .tagline {
        font-size: 16px;
    }

    #page {
        margin-top: -64px;
        padding: 4px 24px 40px 24px;
    }

    #menu {
        gap: 16px;
        padding-top: 24px;
    }

    .lead {
        font-size: 18px;
    }

    .entries .date {
        display: block;
        margin-bottom: 4px;
        width: auto;
    }

    #glow {
        padding: 64px 20px 48px 20px;
    }
}


/* ---- PRINT: drop the sky and glow for a clean sheet of text ---- */

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

    #sky,
    #glow,
    #menu {
        display: none;
    }

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