/* Dawn Fade - A Free Design by Bryant Smith (bryantsmith.com)
   A calm journal: a pale pink-to-blue gradient strip at the top, then dated
   entries hung from a soft vertical timeline spine.
   Every colour and space is gathered below; look for the section headings.
   The two accents are a soft pink (#d1789d) and a soft blue (#5b86b5). */


/* ---- BODY: the pale "desk" behind the page ---- */

body {
    background: #eef2f8;
    color: #333b47;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.72;
    padding: 44px 16px;
    text-align: center;
}

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


/* ---- PAGE: the white sheet the journal is written on ---- */

#page {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(51, 59, 71, 0.05),
                0 18px 44px rgba(51, 59, 71, 0.10);
    margin: 0 auto;
    max-width: 880px;
    overflow: hidden;
    text-align: left;
}


/* ---- SKY: the pale pink-to-blue gradient strip at the very top ---- */

.sky {
    background: linear-gradient(135deg, #fbe0ea 0%, #f4e6f2 46%, #d8e6f5 100%);
    border-bottom: 1px solid #ffffff;
    padding: 44px 56px 38px 56px;
    text-align: center;
}

.kicker {
    color: #b2537f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.sky h1 {
    color: #2c3440;
    font-size: 54px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.08;
    margin: 12px 0 14px 0;
}

.tagline {
    color: #6d7787;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
}


/* ---- MENU: the row of links inside the strip ---- */

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

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

#menu a:hover,
#menu a:focus {
    border-bottom-color: #b2537f;
    color: #b2537f;
    outline: none;
}


/* ---- CONTENT: the white reading area beneath the strip ---- */

#content {
    padding: 42px 56px 12px 56px;
}

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

/* the opening paragraph, with a pink drop cap */
.lead {
    color: #3f4855;
    font-size: 21px;
    line-height: 1.65;
    margin-bottom: 8px;
}

.lead::first-letter {
    color: #d1789d;
    float: left;
    font-size: 3.2em;
    line-height: 0.82;
    padding: 6px 10px 0 0;
}

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

h2::after {
    background: linear-gradient(90deg, #d1789d, #5b86b5);
    content: "";
    display: block;
    height: 2px;
    margin-top: 12px;
    width: 54px;
}

a {
    color: #5b86b5;
    text-decoration: none;
    transition: color 0.16s ease;
}

a:hover,
a:focus {
    color: #3d648d;
    outline: none;
}


/* ---- TIMELINE: the soft spine the entries hang from ---- */

.timeline {
    margin: 8px 0 4px 0;
    position: relative;
}

/* the spine itself - a pink-to-blue gradient drawn with CSS */
.timeline::before {
    background: linear-gradient(180deg, #f3bcd2 0%, #d9c4e2 48%, #b6d2ee 100%);
    border-radius: 3px;
    bottom: 10px;
    content: "";
    left: 132px;
    position: absolute;
    top: 10px;
    width: 3px;
}


/* ---- ENTRY: a date column, a node on the spine, and a card ---- */

.entry {
    display: flex;
    margin-bottom: 26px;
    position: relative;
}

/* the round node that pins each entry to the spine */
.entry::after {
    background: #ffffff;
    border: 3px solid #e79dc0;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(178, 83, 127, 0.22);
    content: "";
    height: 15px;
    left: 132px;
    position: absolute;
    top: 24px;
    transform: translateX(-50%);
    width: 15px;
    z-index: 2;
}

/* alternate the node colour, pink then blue */
.entry:nth-child(even)::after {
    border-color: #84a9d0;
    box-shadow: 0 2px 6px rgba(91, 134, 181, 0.24);
}

/* the date sits in its own column to the left of the spine */
.entry-date {
    flex: 0 0 108px;
    padding: 18px 22px 0 0;
    text-align: right;
}

.entry-date .day {
    color: #2c3440;
    display: block;
    font-size: 30px;
    line-height: 1;
}

.entry-date .month {
    color: #8a95a4;
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    margin-top: 5px;
    text-transform: uppercase;
}

/* the card that holds each day's writing */
.entry-body {
    background-color: #ffffff;
    background-image: linear-gradient(90deg, #f0b6d0, #bcd6ee);
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 100% 3px;
    border: 1px solid #eceff6;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(51, 59, 71, 0.04),
                0 7px 18px rgba(51, 59, 71, 0.06);
    flex: 1 1 auto;
    margin-left: 48px;
    padding: 17px 20px 19px 20px;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.entry-body:hover {
    box-shadow: 0 2px 4px rgba(51, 59, 71, 0.06),
                0 14px 30px rgba(51, 59, 71, 0.11);
    transform: translateY(-3px);
}

/* the short tick joining the card back to its node on the spine */
.entry-body::before {
    background: #e3b4cd;
    content: "";
    height: 2px;
    left: -18px;
    position: absolute;
    top: 31px;
    width: 18px;
}

.entry-body h3 {
    color: #2c3440;
    font-size: 22px;
    font-weight: normal;
    line-height: 1.25;
    margin-bottom: 7px;
}

.entry-body p {
    color: #5f6a79;
    font-size: 15.5px;
    line-height: 1.66;
    margin-bottom: 0;
}


/* ---- QUOTE: the closing thought ---- */

blockquote {
    border-left: 3px solid #d1789d;
    color: #4f5967;
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    margin: 44px 0 8px 0;
    padding: 4px 0 4px 24px;
}

blockquote p {
    margin: 0;
}


/* ---- STEPS: the friendly "how to use this" list ---- */

.steps {
    counter-reset: step;
    list-style: none;
    margin-top: 4px;
}

.steps li {
    border-bottom: 1px solid #eef1f7;
    counter-increment: step;
    padding: 14px 0 14px 44px;
    position: relative;
}

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

.steps li::before {
    background: linear-gradient(135deg, #e79dc0, #84a9d0);
    border-radius: 50%;
    color: #ffffff;
    content: counter(step);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    height: 24px;
    left: 0;
    line-height: 24px;
    position: absolute;
    text-align: center;
    top: 15px;
    width: 24px;
}

code {
    background: #f4f7fb;
    border: 1px solid #e5eaf2;
    border-radius: 4px;
    color: #b2537f;
    font-size: 13px;
    padding: 1px 5px;
}

strong {
    color: #3a4453;
}


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

#footer {
    border-top: 1px solid #eef1f7;
    color: #97a1af;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 52px 56px 0 56px;
    padding: 22px 0 30px 0;
    text-align: center;
    text-transform: uppercase;
}

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

#footer a:hover,
#footer a:focus {
    color: #b2537f;
    outline: none;
}


/* ---- SMALL SCREENS: stack the date above each card, spine to the left ---- */

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

    .sky {
        padding: 34px 24px 30px 24px;
    }

    .sky h1 {
        font-size: 38px;
    }

    #content {
        padding: 30px 24px 8px 24px;
    }

    .lead {
        font-size: 19px;
    }

    /* the spine moves from the middle-left to the far left */
    .timeline::before {
        left: 15px;
    }

    /* every entry becomes one full-width column with room for the spine */
    .entry {
        display: block;
        padding-left: 44px;
    }

    .entry::after {
        left: 15px;
        top: 11px;
    }

    .entry-date {
        padding: 0 0 9px 0;
        text-align: left;
        width: auto;
    }

    .entry-date .day {
        display: inline;
        font-size: 24px;
    }

    .entry-date .month {
        display: inline;
        margin-left: 7px;
    }

    .entry-body {
        margin-left: 0;
    }

    /* the tick is hidden once the card sits directly beside the spine */
    .entry-body::before {
        display: none;
    }

    blockquote {
        font-size: 18px;
    }

    #footer {
        margin-left: 24px;
        margin-right: 24px;
    }
}


/* ---- PRINT: a clean sheet with no shadows ---- */

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

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

    .sky {
        border: 1px solid #dfe4ec;
    }

    #menu {
        display: none;
    }

    .entry {
        page-break-inside: avoid;
    }

    .entry-body {
        box-shadow: none;
    }

    .entry-body:hover {
        transform: none;
    }
}
