/* Monthly Notes - A Free Design by Bryant Smith (bryantsmith.com)
   A planner-style page: notes in one column, a display-only calendar table
   in the other. Every colour and space below is here to be changed.
   Look for the section headings to find what you want. */


/* ---- BODY: the dotted desk the page rests on ---- */

body {
    background-color: #ece5d8;
    background-image: radial-gradient(rgba(176, 74, 47, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    color: #26282b;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.75;
    text-align: center;
    padding: 40px 16px;
}

* {
    margin: 0;
    padding: 0;
}

a:focus-visible,
a:focus {
    outline: 3px solid #e0a458;
    outline-offset: 2px;
}


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

#page {
    background: #fffdf8;
    border: 1px solid #e2dac9;
    border-top: 6px solid #b04a2f;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 56px 44px 56px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(38, 40, 43, 0.05), 0 16px 40px rgba(38, 40, 43, 0.10);
}


/* ---- MASTHEAD: the month, the title and the squarish date badge ---- */

#masthead {
    align-items: flex-end;
    border-bottom: 1px solid #e7e0d1;
    display: flex;
    justify-content: space-between;
    padding: 48px 0 24px 0;
}

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

#masthead h1 {
    color: #1b1d20;
    font-size: 46px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.05;
    margin-top: 10px;
}

.date-badge {
    background: #fbf6ec;
    border: 1px solid #e7d9bf;
    border-radius: 4px;
    box-shadow: inset 0 0 0 4px #fffdf8;
    color: #b04a2f;
    padding: 8px 14px 10px 14px;
    text-align: center;
}

.badge-month {
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.badge-day {
    display: block;
    font-size: 30px;
    line-height: 1;
    margin-top: 2px;
}


/* ---- MENU: the tinted strip of text links ---- */

#menu {
    background: #f7f2e8;
    border-bottom: 1px solid #e7e0d1;
    border-top: 1px solid #e7e0d1;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin: 0 -56px 46px -56px;
    padding: 15px 56px;
    text-transform: uppercase;
}

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

#menu a:hover {
    border-bottom: 2px solid #b04a2f;
    color: #b04a2f;
}


/* ---- LAYOUT: two columns -- notes beside the calendar ---- */

#layout {
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 1fr) 300px;
}


/* ---- TEXT: the reading column ---- */

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

#main a,
#main a:visited {
    border-bottom: 1px solid #e6c3b8;
    color: #8a3620;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#main a:hover {
    border-bottom: 1px solid #5c2314;
    color: #5c2314;
}

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

h2 {
    border-bottom: 1px solid #e7e0d1;
    color: #1b1d20;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin: 42px 0 16px 0;
    padding-bottom: 9px;
    text-transform: uppercase;
}

h2::before {
    background: #b04a2f;
    border-radius: 2px;
    content: "";
    display: inline-block;
    height: 10px;
    margin-right: 10px;
    vertical-align: middle;
    width: 10px;
}


/* ---- CHECKLIST: goals with CSS-drawn check boxes ---- */

.checklist {
    list-style: none;
}

.checklist li {
    border-bottom: 1px dashed #ece6d8;
    padding: 11px 0 11px 30px;
    position: relative;
}

.checklist li::before {
    border: 1px solid #c9bfa9;
    border-radius: 3px;
    content: "";
    height: 14px;
    left: 0;
    position: absolute;
    top: 15px;
    width: 14px;
}

.checklist li.done::before {
    background: #b04a2f;
    border-color: #b04a2f;
}

.checklist li.done {
    color: #8a8b90;
    text-decoration: line-through;
}


/* ---- HIGHLIGHTS: dated entries with an accent label ---- */

.highlights {
    list-style: none;
}

.highlights li {
    border-bottom: 1px solid #f0eade;
    padding: 13px 0;
}

.highlights .date {
    color: #b04a2f;
    display: inline-block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 68px;
}


/* ---- LINKS: a tidy list of things worth keeping ---- */

.links {
    list-style: none;
}

.links li {
    border-bottom: 1px dashed #ece6d8;
    padding: 11px 0;
}

.links a {
    font-size: 18px;
}

.note {
    color: #8a8b90;
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    margin-top: 2px;
}


/* ---- HOW TO: a tinted helper box at the foot of the notes ---- */

.howto {
    background: #f7f2e8;
    border-left: 4px solid #b04a2f;
    border-radius: 0 4px 4px 0;
    margin-top: 44px;
    padding: 6px 24px 22px 24px;
}

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

.howto h2::before {
    display: none;
}


/* ---- CALENDAR: the display-only month table ---- */

.calendar {
    background: #ffffff;
    border: 1px solid #e7e0d1;
    border-collapse: collapse;
    width: 100%;
}

.calendar caption {
    caption-side: top;
    color: #1b1d20;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    padding-bottom: 10px;
    text-align: left;
    text-transform: uppercase;
}

.calendar th {
    border-bottom: 2px solid #b04a2f;
    color: #8a8b90;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: normal;
    letter-spacing: 1px;
    padding: 6px 0 7px 0;
    text-transform: uppercase;
}

.calendar td {
    border: 1px solid #f0eade;
    color: #3a3c40;
    font-size: 13px;
    padding: 9px 0;
    position: relative;
    text-align: center;
}

.calendar td.empty {
    background: #faf7f0;
    border-color: #f4efe4;
}

.calendar td.has-event::after {
    background: #e0a458;
    border-radius: 50%;
    bottom: 4px;
    content: "";
    height: 4px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 4px;
}

.calendar td.today {
    background: #b04a2f;
    color: #ffffff;
    font-weight: bold;
}

.calendar-note {
    color: #8a8b90;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 14px;
}


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

#footer {
    border-top: 1px solid #e7e0d1;
    color: #9a9a9a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 56px;
    padding-top: 22px;
    text-align: center;
    text-transform: uppercase;
}

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

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


/* ---- TABLET: stack the calendar under the notes ---- */

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

    #sidebar {
        margin-top: 48px;
        max-width: 380px;
    }
}


/* ---- SMALL SCREENS: tighten padding and type on phones ---- */

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

    #page {
        padding: 0 22px 32px 22px;
    }

    #masthead {
        align-items: flex-start;
        padding-top: 34px;
    }

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

    .date-badge {
        padding: 6px 10px 8px 10px;
    }

    .badge-day {
        font-size: 24px;
    }

    #menu {
        font-size: 10px;
        letter-spacing: 1px;
        margin: 0 -22px 34px -22px;
        padding: 13px 22px;
    }

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

    .lead {
        font-size: 18px;
    }

    .highlights .date {
        display: block;
        margin-bottom: 2px;
        width: auto;
    }
}


/* ---- PRINT: a clean sheet of paper, no menus or shadows ---- */

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

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

    #menu,
    .date-badge {
        display: none;
    }
}
