/* City Walk - A Free Design by Bryant Smith (bryantsmith.com)
   A walking-day page: grey city, one bright accent, no image files.
   Every section below is labelled so you can find what to change. */


/* ---- BODY: the grey street the white page sits on ---- */

body {
    background: #e7e7e3;
    color: #3d3d3d;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.75;
    padding: 40px 16px;
}

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

a:focus {
    outline: 2px solid #e8590c;
    outline-offset: 2px;
}


/* ---- PAGE: the white sheet, roughly 880px wide ---- */

#page {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(30, 30, 30, 0.05), 0 18px 44px rgba(30, 30, 30, 0.10);
    margin: 0 auto;
    max-width: 880px;
}


/* ---- MASTHEAD: a pale band with the title and route markers ---- */

#masthead {
    background: linear-gradient(180deg, #f8f8f5 0%, #efefec 100%);
    border-bottom: 1px solid #dfdfd9;
    padding: 52px 64px 40px 64px;
}

.eyebrow {
    color: #6b6b66;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#masthead h1 {
    color: #1f1f1f;
    font-size: 52px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 14px 0 10px 0;
}

.tagline {
    color: #5c5c57;
    font-size: 19px;
    font-style: italic;
    line-height: 1.55;
    max-width: 46ch;
}


/* ---- 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: #55554f;
    margin-right: 24px;
    padding-bottom: 4px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover {
    border-bottom-color: #e8590c;
    color: #b8460a;
}


/* ---- ROUTE MARKERS: a dotted line, one dot per stop ---- */

.route-line {
    align-items: center;
    display: flex;
    gap: 14px;
    margin: 34px 0 18px 0;
    position: relative;
}

.route-line::before {
    background: #dcdcd6;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    top: 50%;
}

.route-line span {
    background: #c4c4be;
    border: 3px solid #f4f4f1;
    border-radius: 50%;
    height: 16px;
    position: relative;
    width: 16px;
}

.route-line .now {
    background: #e8590c;
    box-shadow: 0 0 0 4px rgba(232, 89, 12, 0.16);
}

.route-meta {
    display: flex;
    flex-wrap: wrap;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    gap: 8px 28px;
    letter-spacing: 0.5px;
    list-style: none;
}

.route-meta li {
    color: #6b6b66;
}

.route-meta strong {
    color: #1f1f1f;
    font-weight: bold;
}


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

#content {
    padding: 44px 64px 8px 64px;
}

#content p {
    margin-bottom: 20px;
    max-width: 68ch;
}

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

#content a:hover {
    border-bottom-color: #b8460a;
    color: #e8590c;
}

.lead {
    color: #3a3a36;
    font-size: 20px;
    line-height: 1.7;
    max-width: 62ch;
}

.lead::first-letter {
    color: #e8590c;
    float: left;
    font-size: 3.3em;
    line-height: 0.82;
    padding: 5px 12px 0 0;
}

h2.section-title {
    border-top: 1px solid #e6e6e0;
    color: #1f1f1f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin: 52px 0 30px 0;
    padding-top: 22px;
    text-transform: uppercase;
}

h2.section-title::before {
    background: #e8590c;
    content: "";
    display: inline-block;
    height: 10px;
    margin-right: 12px;
    vertical-align: -1px;
    width: 10px;
}


/* ---- HOW-TO NOTE: the friendly "start here" box ---- */

.howto {
    background: #f6f6f3;
    border-left: 4px solid #e8590c;
    border-radius: 0 8px 8px 0;
    margin: 36px 0 8px 0;
    padding: 24px 30px 8px 30px;
}

.howto h2 {
    color: #1f1f1f;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.howto p {
    color: #4a4a45;
    font-size: 15.5px;
}


/* ---- STOPS: an ordered list laid out as a zig-zag ---- */

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

.stops > li {
    align-items: center;
    counter-increment: stop;
    display: flex;
    gap: 48px;
    margin-bottom: 60px;
}

/* every second stop swaps sides, which makes the zig-zag */
.stops > li:nth-child(even) {
    flex-direction: row-reverse;
}

.stop-text {
    flex: 1 1 auto;
}

.stop-num::before {
    color: #e8590c;
    content: counter(stop, decimal-leading-zero);
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 6px;
}

.stop-text h3 {
    color: #1f1f1f;
    font-size: 25px;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 10px;
}

.stop-text p {
    color: #4a4a45;
    max-width: 52ch;
}


/* ---- PHOTOS: CSS-only pictures, no image files at all ---- */

.stop-photo {
    flex: 0 0 42%;
    margin: 0;
}

.photo {
    aspect-ratio: 4 / 3;          /* keeps every photo in proportion */
    background-color: #d9d9d4;
    background-position: bottom;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(30, 30, 30, 0.07), 0 12px 26px rgba(30, 30, 30, 0.12);
    overflow: hidden;
    position: relative;
}

.photo::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 45%, rgba(30, 30, 30, 0.12));
    content: "";
    inset: 0;
    position: absolute;
}

.photo-square {
    background-color: #e6e6e2;
    background-image:
        linear-gradient(90deg,
            #a0a09a 0 9%, transparent 9% 13%,
            #b1b1ab 13% 27%, transparent 27% 31%,
            #94948e 31% 47%, transparent 47% 51%,
            #b4b4ae 51% 69%, transparent 69% 73%,
            #9d9d97 73% 88%, transparent 88% 92%,
            #a9a9a3 92% 100%),
        linear-gradient(90deg,
            #c3c3bd 0 16%, transparent 16% 22%,
            #bcbcb6 22% 40%, transparent 40% 46%,
            #c6c6c0 46% 64%, transparent 64% 70%,
            #bfbfb9 70% 88%, transparent 88% 94%,
            #c4c4be 94% 100%);
    background-size: 100% 44%, 100% 62%;
    background-position: bottom, bottom;
}

.photo-market {
    background-color: #c7c7c1;
    background-image:
        linear-gradient(180deg, rgba(30, 30, 30, 0.05), rgba(30, 30, 30, 0.24)),
        repeating-linear-gradient(90deg, #b3b3ad 0 20px, #d4d4ce 20px 40px);
}

.photo-view {
    background-color: #dededa;
    background-image:
        linear-gradient(90deg, transparent 0 20%, #8f8f89 20% 32%, transparent 32% 100%),
        linear-gradient(90deg,
            #a6a6a0 0 12%, transparent 12% 16%,
            #b0b0aa 16% 38%, transparent 38% 42%,
            #9a9a94 42% 60%, transparent 60% 64%,
            #b4b4ae 64% 86%, transparent 86% 90%,
            #a1a19b 90% 100%);
    background-size: 100% 66%, 100% 42%;
}

.photo-river {
    background-color: #d8d8d3;
    background-image: linear-gradient(180deg,
        #e4e4e0 0 44%,
        #a7a7a1 44% 56%,
        #b9b9b3 56% 68%,
        #c8c8c2 68% 82%,
        #aeaea8 82% 100%);
    background-size: 100% 72%;
}

.photo-cafe {
    background-color: #cfcfc9;
    background-image:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0 2px, transparent 2px 26px),
        repeating-linear-gradient(90deg, rgba(30, 30, 30, 0.12) 0 2px, transparent 2px 26px),
        linear-gradient(160deg, #e5e5e1, #bcbcb6);
}

.photo-bridge {
    background-color: #dcdcd7;
    background-image:
        repeating-linear-gradient(90deg, rgba(40, 40, 35, 0.20) 0 2px, transparent 2px 15px),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0 50%, #9b9b95 50% 62%, #c4c4be 62% 100%);
    background-size: 100% 30%, 100% 100%;
    background-position: top 46%, bottom;
}

.photo-gallery {
    background-color: #e1e1dc;
    background-image:
        linear-gradient(90deg, transparent 0 10%, #9e9e98 10% 34%, transparent 34% 42%, #b2b2ac 42% 80%, transparent 80% 100%),
        linear-gradient(180deg, rgba(30, 30, 30, 0.04), rgba(30, 30, 30, 0.18));
    background-size: 100% 44%, 100% 100%;
    background-position: top 30%, bottom;
}

.photo-park {
    background-color: #d7d7d2;
    background-image:
        repeating-linear-gradient(90deg, rgba(60, 60, 55, 0.24) 0 5px, transparent 5px 34px),
        linear-gradient(180deg, #eeeee9 0 55%, #a9a9a3 55% 100%);
}

.photo-dusk {
    background-color: #b4b4ae;
    background-image:
        linear-gradient(90deg,
            #6f6f69 0 10%, transparent 10% 14%,
            #7d7d77 14% 30%, transparent 30% 34%,
            #6a6a64 34% 50%, transparent 50% 54%,
            #82827c 54% 72%, transparent 72% 76%,
            #73736d 76% 90%, transparent 90% 94%,
            #7a7a74 94% 100%),
        linear-gradient(90deg,
            #969690 0 18%, transparent 18% 24%,
            #8d8d87 24% 42%, transparent 42% 48%,
            #9a9a94 48% 68%, transparent 68% 74%,
            #90908a 74% 100%),
        linear-gradient(180deg, #cfcfc9 0%, #a5a59f 100%);
    background-size: 100% 54%, 100% 70%, 100% 100%;
    background-position: bottom, bottom, bottom;
}


/* ---- CAPTIONS: the small line under each picture ---- */

figcaption {
    color: #6b6b66;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.3px;
    line-height: 1.5;
    margin-top: 10px;
}


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

#footer {
    border-top: 1px solid #e6e6e0;
    color: #6b6b66;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 8px 64px 0 64px;
    padding: 22px 0 40px 0;
    text-align: center;
    text-transform: uppercase;
}

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

#footer a:hover {
    color: #e8590c;
}


/* ---- SMALL SCREENS: stack the zig-zag and tighten the spacing ---- */

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

    #masthead {
        padding: 36px 24px 30px 24px;
    }

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

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

    .stops > li,
    .stops > li:nth-child(even) {
        align-items: stretch;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 44px;
    }

    .stop-photo {
        flex: 1 1 auto;
    }

    .stop-text h3 {
        font-size: 22px;
    }

    .stop-text p {
        max-width: none;
    }

    #footer {
        margin: 8px 24px 0 24px;
    }
}


/* ---- PRINT: drop the shadows and keep the words ---- */

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

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

    #menu,
    .route-line {
        display: none;
    }

    .stops > li,
    .stops > li:nth-child(even) {
        flex-direction: column;
    }

    .photo {
        box-shadow: none;
    }
}
