/* Neighborhood Notes - A Free Design by Bryant Smith (bryantsmith.com)
   A warm holy-grail noticeboard: a header band, a column of short
   sections beside a side rail, and a footer.
   Every colour and measurement lives here; look for the section headings. */


/* ---- BODY: the warm sand backdrop ---- */

body {
    background: #ece3d5;
    color: #3b3229;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding: 40px 16px;
}

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


/* ---- PAGE: the cream board that holds everything ---- */

#page {
    background: #fbf7f0;
    border: 1px solid #e6dac7;
    border-radius: 12px;
    box-shadow: 0 2px 3px rgba(90, 60, 30, 0.05), 0 18px 40px rgba(90, 60, 30, 0.12);
    margin: 0 auto;
    max-width: 940px;
    overflow: hidden;
}


/* ---- MASTHEAD: the terracotta band at the top ---- */

#masthead {
    background: linear-gradient(135deg, #9a4c2b 0%, #bd6f45 100%);
    padding: 52px 56px 40px 56px;
}

.kicker {
    color: #f2d8c3;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#masthead h1 {
    color: #fff8f0;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 46px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-top: 10px;
}

#masthead .tagline {
    color: #f6e2d2;
    font-size: 14px;
    margin-top: 12px;
}


/* ---- MENU: text links inside the band ---- */

#menu {
    margin-top: 26px;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #f7e6d8;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-right: 20px;
    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-visible {
    border-bottom-color: #ffd9b8;
    color: #ffffff;
}


/* ---- INTRO: the welcome and the how-to note ---- */

#intro {
    padding: 38px 56px 0 56px;
}

.lead {
    border-left: 4px solid #c07a4c;
    color: #4a3f33;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 19px;
    line-height: 1.6;
    padding-left: 20px;
}

.howto {
    background: #f3ead9;
    border: 1px dashed #d9c6a8;
    border-radius: 8px;
    color: #6b5c48;
    font-size: 13px;
    margin-top: 24px;
    padding: 16px 20px;
}

.howto strong {
    color: #8a4526;
}


/* ---- HOLY GRAIL: the main column and the side rail ---- */

#layout {
    display: grid;
    gap: 26px;
    grid-template-columns: 1.7fr 1fr;
    padding: 34px 56px 8px 56px;
}


/* ---- CARDS: each short section is a soft white panel ---- */

.card {
    background: #fffdf9;
    border: 1px solid #e8dcc9;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(90, 60, 30, 0.04);
    margin-bottom: 26px;
    padding: 24px 26px 20px 26px;
}

.card h2 {
    color: #8a4526;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 22px;
    font-weight: normal;
}

.card h2::after {
    background: #c07a4c;
    border-radius: 2px;
    content: "";
    display: block;
    height: 3px;
    margin-top: 10px;
    width: 34px;
}

.card-note {
    color: #8a7b68;
    font-size: 12px;
    line-height: 1.5;
    margin: 14px 0 10px 0;
}

ul {
    list-style: none;
}

.card li {
    border-bottom: 1px solid #f0e7d8;
    padding: 12px 0;
}

.card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


/* ---- USEFUL NUMBERS: name on the left, number on the right ---- */

.numbers li {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.numbers .label {
    color: #4a3f33;
}

.numbers .value {
    color: #8a4526;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    white-space: nowrap;
}


/* ---- NEARBY PLACES: a small marker before each entry ---- */

.places li {
    padding-left: 22px;
    position: relative;
}

.places li::before {
    background: #8a9a6b;
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 2px;
    position: absolute;
    top: 18px;
    width: 8px;
}

.place-name {
    color: #3b3229;
    display: block;
    font-weight: bold;
}

.place-detail {
    color: #8a7b68;
    display: block;
    font-size: 13px;
    line-height: 1.5;
}


/* ---- EVENTS: a date badge above each item ---- */

.events .date {
    background: #e9efdd;
    border-radius: 20px;
    color: #5d6b45;
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    padding: 3px 10px;
    text-transform: uppercase;
}

.event-name {
    color: #3b3229;
    display: block;
    font-weight: bold;
}

.event-detail {
    color: #8a7b68;
    display: block;
    font-size: 13px;
    line-height: 1.5;
}


/* ---- COMMUNITY LINKS: arrow markers and a warm hover ---- */

.links li {
    padding-left: 20px;
    position: relative;
}

.links li::before {
    color: #c07a4c;
    content: "\2192";
    left: 0;
    position: absolute;
}

.links a,
.links a:visited {
    border-bottom: 1px solid #e3cdb8;
    color: #8a4526;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.links a:hover,
.links a:focus-visible {
    border-bottom-color: #8a4526;
    color: #5d2c15;
}

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


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

#footer {
    border-top: 1px solid #e6dac7;
    color: #a2937e;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 24px;
    padding: 22px;
    text-align: center;
    text-transform: uppercase;
}

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

#footer a:hover,
#footer a:focus-visible {
    color: #8a4526;
}


/* ---- SMALL SCREENS: drop the rail, then tighten the spacing ---- */

@media (max-width: 720px) {
    #layout {
        grid-template-columns: 1fr;
    }
}

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

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

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

    #menu a {
        display: inline-block;
        margin-bottom: 10px;
    }

    #intro,
    #layout {
        padding-left: 26px;
        padding-right: 26px;
    }

    .card {
        padding: 20px;
    }

    .numbers li {
        display: block;
    }

    .numbers .value {
        display: block;
        margin-top: 2px;
    }
}


/* ---- PRINT: drop the tints and shadows for a clean sheet ---- */

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

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

    #menu {
        display: none;
    }

    .card,
    .howto {
        background: #ffffff;
        border: none;
        box-shadow: none;
        padding-left: 0;
        padding-right: 0;
    }
}
