/* Route Notes - A Free Design by Bryant Smith (bryantsmith.com)
   A road-trip journal: numbered stops pinned to one vertical route line.
   Every colour, space and border is gathered here under section headings.
   The two key colours are road orange #c85a1e and deep pine #24504f. */


/* ---- BODY: the dusty roadside behind the page ---- */

body {
    background: #d9cfbd;
    color: #26251f;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 40px 16px;
}

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


/* ---- PAGE: the map-paper sheet everything sits on ---- */

#page {
    background: #faf6ec;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(38, 37, 31, 0.06),
                0 22px 50px rgba(38, 37, 31, 0.16);
    margin: 0 auto;
    max-width: 940px;
    overflow: hidden;
    text-align: left;
}


/* ---- HERO: the dark title band with a dashed road at its foot ---- */

#hero {
    background: radial-gradient(circle at 86% 12%, rgba(200, 90, 30, 0.30), transparent 55%),
                linear-gradient(135deg, #22403f 0%, #16302f 60%, #102423 100%);
    color: #f7f1e4;
    padding: 56px 56px 52px 56px;
    position: relative;
}

/* the dashed centre-line of a highway, drawn along the bottom edge */
#hero::after {
    border-bottom: 5px dashed #c85a1e;
    bottom: 0;
    content: "";
    left: 0;
    opacity: 0.65;
    position: absolute;
    right: 0;
}

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

#hero h1 {
    font-size: 58px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 12px 0 14px 0;
}

.tagline {
    color: #cfd8d5;
    font-size: 19px;
    line-height: 1.5;
    max-width: 560px;
}


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

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

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #e8e2d3;
    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: #f0a56a;
    color: #f0a56a;
    outline: none;
}


/* ---- BODY AREA: sidebar beside the journal ---- */

#body {
    align-items: stretch;
    display: flex;
}


/* ---- SIDEBAR: the narrow note column on the left ---- */

#sidebar {
    background: #f2ecdf;
    border-right: 1px solid #e6ddcb;
    flex: 0 0 300px;
    padding: 48px 34px;
    width: 300px;
}

.panel {
    margin-bottom: 44px;
}

.panel:last-child {
    margin-bottom: 0;
}

.panel h2 {
    border-bottom: 1px solid #ddd3c0;
    color: #24504f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    position: relative;
    text-transform: uppercase;
}

.panel h2::after {
    background: #c85a1e;
    bottom: -1px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 34px;
}

.panel p {
    color: #6f685a;
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 14px;
}

.panel p:last-child {
    margin-bottom: 0;
}


/* ---- STATS: the little trip numbers in the sidebar ---- */

.stats {
    list-style: none;
}

.stats li {
    align-items: baseline;
    border-bottom: 1px dashed #ddd3c0;
    display: flex;
    gap: 12px;
    padding: 9px 0;
}

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

.stat-number {
    color: #c85a1e;
    font-size: 25px;
    font-weight: bold;
    line-height: 1;
    min-width: 72px;
}

.stat-label {
    color: #6f685a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* ---- CONTENT: the journal column on the right ---- */

#content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 52px 56px 44px 56px;
}

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

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

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

#content a:hover,
#content a:focus {
    border-bottom-color: #7d320a;
    color: #7d320a;
    outline: none;
}

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

#content h2::after {
    background: #c85a1e;
    content: "";
    display: block;
    height: 3px;
    margin-top: 12px;
    width: 42px;
}

.closing {
    color: #6f685a;
}


/* ---- ROUTE: the vertical highway line and its numbered list ---- */

/* the list keeps the numbers we draw ourselves, and leaves a left rail */
.route {
    counter-reset: stop;
    list-style: none;
    margin: 0 0 8px 0;
    padding-left: 84px;
    position: relative;
}

/* the dashed route line running down the rail */
.route::before {
    border-left: 3px dashed #e0a67e;
    bottom: 34px;
    content: "";
    left: 25px;
    position: absolute;
    top: 10px;
}

.stop {
    background: #fffdf8;
    border: 1px solid #e9e0cf;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(38, 37, 31, 0.04),
                0 8px 20px rgba(38, 37, 31, 0.05);
    counter-increment: stop;
    margin-bottom: 22px;
    padding: 20px 26px 22px 26px;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stop:last-child {
    margin-bottom: 0;
}

.stop:hover {
    box-shadow: 0 2px 4px rgba(38, 37, 31, 0.06),
                0 16px 32px rgba(38, 37, 31, 0.11);
    transform: translateY(-3px);
}

/* the numbered marker sitting on the route line */
.stop::before {
    background: linear-gradient(135deg, #d96a2b, #b94c12);
    border-radius: 14px;
    box-shadow: 0 0 0 6px #faf6ec,
                0 8px 16px rgba(200, 90, 30, 0.30);
    color: #ffffff;
    content: counter(stop);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    height: 52px;
    left: -84px;
    line-height: 52px;
    position: absolute;
    text-align: center;
    top: 18px;
    width: 52px;
    z-index: 1;
}

/* the short dashed tick joining the marker to its block */
.stop::after {
    border-top: 2px dashed #e0a67e;
    content: "";
    height: 0;
    left: -32px;
    position: absolute;
    top: 44px;
    width: 32px;
}

.stop-meta {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.stop-mile {
    color: #c85a1e;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stop-date {
    color: #9a9284;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stop-date::before {
    color: #c2b9a7;
    content: "\00b7";
    margin-right: 12px;
}

.stop h3 {
    color: #26251f;
    font-size: 23px;
    font-weight: normal;
    line-height: 1.25;
    margin-bottom: 6px;
}

.stop p {
    color: #5f594c;
    font-size: 15.5px;
    line-height: 1.7;
    max-width: 60ch;
}


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

blockquote {
    background: #f6f0e3;
    border-left: 4px solid #c85a1e;
    border-radius: 0 10px 10px 0;
    color: #57523f;
    font-size: 19px;
    font-style: italic;
    line-height: 1.6;
    margin: 44px 0 24px 0;
    padding: 20px 26px;
}

blockquote p {
    margin: 0;
}

strong {
    color: #26251f;
}


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

#footer {
    background: #f2ecdf;
    border-top: 1px solid #e6ddcb;
    color: #7a7365;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 22px 24px;
    text-align: center;
    text-transform: uppercase;
}

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

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


/* ---- SMALL SCREENS: stack the sidebar above the journal ---- */

@media (max-width: 640px) {
    body {
        padding: 20px 10px;
    }

    #hero {
        padding: 36px 26px 34px 26px;
    }

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

    .tagline {
        font-size: 17px;
    }

    #menu a {
        display: inline-block;
        margin: 4px 14px 4px 0;
    }

    #body {
        display: block;
    }

    #sidebar {
        border-bottom: 1px solid #e6ddcb;
        border-right: none;
        padding: 32px 26px;
        width: auto;
    }

    #content {
        padding: 36px 26px 32px 26px;
    }

    .lead {
        font-size: 18px;
    }

    /* pull the route rail in tight for narrow screens */
    .route {
        padding-left: 60px;
    }

    .route::before {
        left: 19px;
    }

    .stop {
        padding: 18px 18px 20px 18px;
    }

    .stop::before {
        border-radius: 12px;
        font-size: 17px;
        height: 44px;
        left: -62px;
        line-height: 44px;
        top: 16px;
        width: 44px;
    }

    .stop::after {
        left: -18px;
        top: 38px;
        width: 18px;
    }

    .stop h3 {
        font-size: 20px;
    }
}


/* ---- PRINT: a clean sheet with no shadows or colour band ---- */

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

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

    #hero {
        background: #ffffff;
        border-bottom: 2px solid #000000;
        color: #000000;
        padding: 0 0 16px 0;
    }

    #hero::after,
    #menu {
        display: none;
    }

    .kicker,
    .tagline {
        color: #333333;
    }

    #sidebar {
        background: #ffffff;
    }

    .stop {
        box-shadow: none;
    }

    .stop:hover {
        transform: none;
    }
}
