/* Weekend Map - A Free Design by Bryant Smith (bryantsmith.com)
   A city-break route with a notes sidebar. Every colour and space on the
   page is gathered here. Look for the section headings to find your way. */


/* ---- COLOURS: change the whole palette in this one block ---- */

:root {
    --paper:      #f7f2e7;   /* page background (warm paper) */
    --card:       #fffdf8;   /* brightest panels */
    --panel:      #f1e9d8;   /* sidebar and footer tint */
    --ink:        #2a2723;   /* headings, near-black brown */
    --body:       #4b463d;   /* paragraph text */
    --muted:      #857d6d;   /* small labels and captions */
    --line:       #e3dac6;   /* quiet borders */
    --accent:     #c2502b;   /* terracotta route line */
    --accent-dark:#a8431f;   /* terracotta for text and links */
    --teal:       #2f6b6b;   /* secondary accent */
}


/* ---- RESET & BODY: the desk behind the page ---- */

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

body {
    background: #ebe3d1;
    background-image: linear-gradient(180deg, #efe7d6 0%, #e6ddc9 100%);
    color: var(--body);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    padding: 36px 16px 48px 16px;
    -webkit-font-smoothing: antialiased;
}


/* ---- PAGE: the big sheet that holds everything ---- */

#page {
    background: var(--paper);
    border: 1px solid #ded4bf;
    border-top: 6px solid var(--accent);
    box-shadow: 0 2px 4px rgba(42, 39, 35, 0.06),
                0 20px 44px rgba(42, 39, 35, 0.12);
    margin: 0 auto;
    max-width: 940px;
}


/* ---- MASTHEAD: title, tagline and the menu ---- */

#masthead {
    padding: 44px 44px 0 44px;
}

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

#masthead h1 {
    color: var(--ink);
    font-size: 54px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-top: 10px;
}

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


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

#menu {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 28px;
    padding: 13px 0;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #6b6455;
    margin-right: 24px;
    padding-bottom: 3px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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


/* ---- LAYOUT: a left sidebar beside the main column ---- */

#layout {
    align-items: flex-start;
    background: linear-gradient(90deg, var(--panel) 0 280px, transparent 280px);
    display: flex;
    position: relative;
}

/* the divider between the rail and the column, drawn full height */
#layout::before {
    background: var(--line);
    bottom: 0;
    content: "";
    left: 280px;
    position: absolute;
    top: 0;
    width: 1px;
}


/* ---- SIDEBAR: the "field notes" rail ---- */

#sidebar {
    align-self: flex-start;
    flex: 0 0 280px;
    padding: 38px 28px 44px 28px;
    position: sticky;
    top: 24px;
    width: 280px;
}

.side-title {
    color: var(--ink);
    font-size: 24px;
    font-weight: normal;
}

.side-title::after {
    background: var(--accent);
    content: "";
    display: block;
    height: 3px;
    margin-top: 12px;
    width: 38px;
}

.side-text {
    font-size: 15px;
    line-height: 1.7;
    margin-top: 16px;
}

.side-label {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 2.5px;
    margin: 28px 0 12px 0;
    text-transform: uppercase;
}

.legend {
    list-style: none;
}

.legend li {
    align-items: center;
    display: flex;
    font-size: 15px;
    gap: 10px;
    padding: 5px 0;
}

.dot {
    border-radius: 50%;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.dot-route { background: var(--accent); }
.dot-park  { background: #9fb98a; }
.dot-water { background: #a9c6d1; }

.packing {
    font-size: 15px;
    list-style: none;
}

.packing li {
    padding: 0 0 9px 26px;
    position: relative;
}

.packing li::before {
    border: 2px solid var(--accent);
    border-radius: 3px;
    content: "";
    height: 14px;
    left: 0;
    position: absolute;
    top: 6px;
    width: 14px;
}

.side-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal);
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    line-height: 1.65;
    margin-top: 26px;
    padding: 16px 18px;
}

.side-card strong {
    color: var(--ink);
}


/* ---- MAIN: the reading column ---- */

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

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

.lead {
    color: #403b33;
    font-size: 20px;
    line-height: 1.68;
}

#main h2 {
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 46px 0 24px 0;
    padding-bottom: 11px;
    text-transform: uppercase;
}

#main h2::before {
    background: var(--accent);
    content: "";
    display: inline-block;
    height: 9px;
    margin-right: 11px;
    width: 9px;
}

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

#main a:hover,
#main a:focus {
    border-bottom-color: var(--accent);
    color: #7d3015;
}


/* ---- MAP: an inline SVG sitting on a grid of streets ---- */

.map {
    background:
        repeating-linear-gradient(0deg, transparent 0 43px, rgba(226, 217, 198, 0.9) 43px 44px),
        repeating-linear-gradient(90deg, transparent 0 43px, rgba(226, 217, 198, 0.9) 43px 44px),
        linear-gradient(180deg, #fbf7ee, #f4ecda);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(42, 39, 35, 0.05),
                0 10px 24px rgba(42, 39, 35, 0.08);
    margin: 6px 0 10px 0;
    overflow: hidden;
}

.map svg {
    display: block;
    height: auto;          /* keeps the map's shape on every screen */
    width: 100%;           /* image sizing: fill the column, never overflow */
}

.map-caption {
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
}


/* ---- ROUTE: the ordered list of stops, strung on a line ---- */

.route {
    counter-reset: stop;
    list-style: none;
}

.route li {
    padding: 0 0 30px 64px;
    position: relative;
}

.route li:last-child {
    padding-bottom: 0;
}

.route li::before {
    background: var(--card);
    border: 3px solid var(--accent);
    border-radius: 50%;
    color: var(--accent-dark);
    content: counter(stop);
    counter-increment: stop;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    height: 38px;
    left: 0;
    line-height: 32px;
    position: absolute;
    text-align: center;
    top: -2px;
    width: 38px;
}

.route li::after {
    border-left: 2px dotted #d8b6a6;
    bottom: 0;
    content: "";
    left: 18px;
    position: absolute;
    top: 40px;
}

.route li:last-child::after {
    display: none;
}

.route h3 {
    color: var(--ink);
    font-size: 19px;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 3px;
}

.route .meta {
    color: var(--accent-dark);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin: 0 0 7px 0;
    text-transform: uppercase;
}

.route p {
    font-size: 16px;
    margin: 0;
}

/* the second list carries on from the numbers before it */
.route.continues {
    counter-reset: stop 5;
}


/* ---- HOW TO BOX: the short beginner note ---- */

.howto {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 3px solid var(--teal);
    border-radius: 0 0 8px 8px;
    margin-top: 54px;
    padding: 24px 26px 26px 26px;
}

.howto h2 {
    border-bottom: none;
    margin-top: 0;
    padding-bottom: 0;
}

.howto p {
    font-size: 15px;
    margin: 12px 0 0 0;
}


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

#footer {
    background: var(--panel);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 20px 44px 24px 44px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    border-bottom: 1px solid transparent;
    color: #6b6455;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#footer a:hover,
#footer a:focus {
    border-bottom-color: var(--accent);
    color: var(--accent-dark);
}


/* ---- NARROW SCREENS: stack the sidebar above the main column ---- */

@media (max-width: 780px) {
    #layout {
        background: none;
        display: block;
    }

    #layout::before {
        display: none;
    }

    #sidebar {
        background: var(--panel);
        border-bottom: 1px solid var(--line);
        padding: 32px 28px 36px 28px;
        position: static;
        width: auto;
    }
}


/* ---- PHONES: tighten the padding and the type ---- */

@media (max-width: 640px) {
    body {
        font-size: 16px;
        padding: 14px 8px 28px 8px;
    }

    #masthead {
        padding: 30px 22px 0 22px;
    }

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

    #menu a {
        display: inline-block;
        margin-right: 16px;
        padding: 4px 0;
    }

    #sidebar {
        padding: 28px 22px 32px 22px;
    }

    #main {
        padding: 28px 22px 40px 22px;
    }

    .lead {
        font-size: 18px;
    }

    .map {
        border-radius: 8px;
    }

    .route li {
        padding-left: 54px;
    }

    .route li::before {
        font-size: 14px;
        height: 34px;
        line-height: 28px;
        width: 34px;
    }

    .route li::after {
        left: 16px;
    }

    #footer {
        padding: 18px 22px 20px 22px;
    }
}


/* ---- PRINT: a clean sheet without the desk or shadows ---- */

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

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

    #sidebar {
        background: var(--panel);
        position: static;
    }

    #layout {
        background: none;
    }

    #layout::before {
        display: none;
    }

    #menu {
        display: none;
    }
}
