/* Corner Note - A Free Design by Bryant Smith (bryantsmith.com)
   Every colour and measurement used on the page lives in this file.
   The section headings below tell you where to look to change things. */


/* ---- RESET: remove the browser's default spacing ---- */

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


/* ---- BODY: the warm paper backdrop behind everything ---- */

body {
    background-color: #efe8dc;
    /* a faint dot grid drawn with CSS - no image file needed */
    background-image: radial-gradient(#e2d8c6 1px, transparent 1px);
    background-size: 22px 22px;
    color: #4b4640;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    padding: 48px 20px 40px 20px;
}


/* ---- PAGE: the centred column that holds the whole design ---- */

#page {
    margin: 0 auto;
    max-width: 880px;
}


/* ---- TOP BAR: site name on the left, menu on the right ---- */

#topbar {
    align-items: center;
    border-bottom: 1px solid #ddd2bd;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 4px 22px 4px;
}

.brand {
    color: #241f1a;
    font-size: 22px;
    letter-spacing: 0.4px;
    text-decoration: none;
}

/* a small rotated square that works like a printed logo mark */
.brand::before {
    background: #b23c17;
    border-radius: 2px;
    content: "";
    display: inline-block;
    height: 11px;
    margin-right: 10px;
    transform: rotate(6deg);
    width: 11px;
}

#menu {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

#menu a {
    border-bottom: 2px solid transparent;
    color: #5c554c;
    margin-left: 20px;
    padding-bottom: 3px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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


/* ---- BOARD: the positioning anchor for the pinned note ---- */

#board {
    position: relative;
}


/* ---- CORNER NOTE: the small amber note pinned to the top-right ----
   It is taken out of the normal flow with position: absolute and pulled
   past the card's edges so it overlaps the content. */

.note {
    background: #f5c04a;
    border: 1px solid #d99f22;
    border-radius: 3px;
    box-shadow: 0 12px 24px rgba(63, 42, 6, 0.20);
    color: #3f2a06;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    padding: 32px 20px 20px 20px;
    position: absolute;
    right: -20px;
    top: -28px;
    transform: rotate(1.8deg);
    width: 232px;
    z-index: 4;
}

/* the strip of tape holding the note to the page */
.note::before {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.75);
    content: "";
    height: 20px;
    left: 50%;
    margin-left: -38px;
    position: absolute;
    top: -10px;
    transform: rotate(-3deg);
    width: 76px;
}

.note-label {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.note-text {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 12px;
}

.note-link {
    border-bottom: 1px solid #b9831a;
    color: #7d2a10;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.note-link:hover {
    border-bottom-color: #7d2a10;
    color: #5a1d0a;
}


/* ---- CONTENT: the main white homepage card ---- */

#content {
    background: #fffdf9;
    border: 1px solid #e6ddcd;
    border-top: 4px solid #b23c17;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(36, 31, 26, 0.04),
                0 18px 40px rgba(36, 31, 26, 0.08);
    padding: 58px 60px 70px 60px;
    position: relative;
    z-index: 2;
}

/* the first two lines stay clear of the note in the corner */
#content h1,
#content .kicker {
    max-width: 62%;
}

.kicker {
    color: #b23c17;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2.4px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

h1 {
    color: #241f1a;
    font-size: 42px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.12;
    margin-bottom: 26px;
}

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

.lead {
    color: #3f3a34;
    font-size: 21px;
    line-height: 1.6;
}

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

#content a:hover {
    border-bottom-color: #7d2a10;
    color: #7d2a10;
}


/* ---- COLUMNS: three cells sharing thin dividing lines ---- */

.columns {
    background: #e6ddcd;
    border: 1px solid #e6ddcd;
    border-radius: 4px;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    margin: 34px 0;
    overflow: hidden;
}

.cell {
    background: #fffdf9;
    padding: 22px 22px 24px 22px;
}

.cell-title {
    color: #241f1a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.6px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.cell p {
    color: #5c554c;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}


/* ---- QUOTE: an amber-barred passage ---- */

blockquote {
    background: #fdf6e6;
    border-left: 3px solid #f5c04a;
    border-radius: 0 4px 4px 0;
    color: #6a5c3f;
    font-size: 19px;
    font-style: italic;
    margin: 34px 0;
    padding: 18px 24px;
}

blockquote p {
    margin: 0;
}


/* ---- SECTION HEADINGS: label + short rule ---- */

.section-title {
    border-bottom: 1px solid #e6ddcd;
    color: #241f1a;
    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;
}

.section-title::before {
    background: #b23c17;
    content: "";
    display: inline-block;
    height: 3px;
    margin-right: 10px;
    vertical-align: middle;
    width: 20px;
}


/* ---- NOTES LIST: dated one-line entries ---- */

.notes-list {
    list-style: none;
}

.notes-list li {
    border-bottom: 1px solid #efe8db;
    padding: 12px 0;
}

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

.when {
    color: #7c7167;
    display: inline-block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 56px;
}


/* ---- HINT: the beginner "how to use this" box ---- */

.hint {
    background: #f6f1e6;
    border: 1px dashed #cbbfa6;
    border-radius: 4px;
    padding: 20px 24px;
}

.hint p {
    color: #5c554c;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.hint code {
    background: #e9e0cd;
    border-radius: 3px;
    color: #7d2a10;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    padding: 1px 5px;
}


/* ---- FACTS: a dark strip that overlaps the card's bottom edge ----
   The negative margin-top lifts it up on purpose. */

.facts {
    background: #241f1a;
    border-radius: 6px;
    box-shadow: 0 16px 30px rgba(36, 31, 26, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 44px;
    justify-content: center;
    margin: -42px auto 0 auto;
    padding: 20px 28px;
    position: relative;
    text-align: center;
    width: calc(100% - 80px);
    z-index: 3;
}

.fact strong {
    color: #f5c04a;
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.fact span {
    color: #c9c0b2;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


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

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

#footer a {
    color: #7c7167;
    text-decoration: none;
    transition: color 0.15s ease;
}

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


/* ---- SMALL SCREENS: stack everything on phones ----
   The note loses position: absolute and drops into the flow so it can
   never sit on top of the text. */

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

    #topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    #menu a {
        margin-left: 0;
        margin-right: 18px;
    }

    .note {
        margin-bottom: 18px;
        position: static;
        transform: rotate(0deg);
        width: 100%;
    }

    #content {
        padding: 34px 24px 40px 24px;
    }

    #content h1,
    #content .kicker {
        max-width: 100%;
    }

    h1 {
        font-size: 32px;
    }

    .lead {
        font-size: 18px;
    }

    .columns {
        grid-template-columns: 1fr;
    }

    .facts {
        margin-top: -20px;
        width: 100%;
    }
}


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

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

    #menu,
    .facts {
        display: none;
    }

    #content,
    .note {
        box-shadow: none;
    }

    .note {
        top: 0;
    }
}
