/* Wish Shelf - A Free Design by Bryant Smith (bryantsmith.com)
   A wishlist built from a responsive grid of category cards.
   Every colour, border and space on the page lives in this file.
   Use the section headings below to find the part you want to change. */


/* ---- BODY: the cool grey desk the shelves rest on ---- */

body {
    background: #e9eef0;
    color: #55666e;
    font-family: "Segoe UI", Verdana, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 48px 24px;
}

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


/* ---- PAGE: the wrap that keeps everything the same width ---- */

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


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

#masthead {
    background: #ffffff;
    border-top: 5px solid #2f9e7e;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(38, 51, 58, 0.05), 0 12px 28px rgba(38, 51, 58, 0.07);
    padding: 40px 40px 32px 40px;
}

.kicker {
    color: #1f7a5f;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#masthead h1 {
    color: #26333a;
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-top: 8px;
}

.tagline {
    color: #7d8d94;
    font-size: 17px;
    margin-top: 8px;
    max-width: 60ch;
}

#menu {
    border-top: 1px solid #e2e9eb;
    margin-top: 28px;
    padding-top: 20px;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #55666e;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-right: 24px;
    padding-bottom: 3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: #2f9e7e;
    color: #1f7a5f;
}


/* ---- LEAD: the opening paragraph ---- */

.lead {
    color: #46565d;
    font-size: 19px;
    line-height: 1.7;
    margin: 32px 8px 32px 8px;
    max-width: 72ch;
}


/* ---- SHELF: the responsive grid of category cards ---- */

.shelf {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: #ffffff;
    border: 1px solid #dbe4e6;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(38, 51, 58, 0.04);
    padding: 24px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
    border-color: #bfe3d7;
    box-shadow: 0 2px 4px rgba(38, 51, 58, 0.05), 0 14px 30px rgba(38, 51, 58, 0.08);
    transform: translateY(-2px);
}


/* ---- CARD HEAD: the little tag, the name and the count ---- */

.card-head {
    align-items: center;
    border-bottom: 2px solid #eef3f4;
    display: flex;
    padding-bottom: 16px;
}

.cat-tag {
    background: linear-gradient(135deg, #37b48f, #227a5f);
    border-radius: 10px;
    color: #ffffff;
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 700;
    height: 36px;
    line-height: 36px;
    margin-right: 12px;
    text-align: center;
    width: 36px;
}

.card h2 {
    color: #26333a;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.count {
    background: #eef3f4;
    border-radius: 999px;
    color: #7d8d94;
    font-size: 12px;
    font-weight: bold;
    margin-left: auto;
    padding: 2px 10px;
}


/* ---- WISH LIST: one tappable row per item ---- */

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

.wish {
    align-items: center;
    border-bottom: 1px solid #f0f4f5;
    display: flex;
    gap: 12px;
    padding: 14px 0;
}

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

/* the small empty checkbox in front of each wish */
.wish::before {
    border: 2px solid #c8d6d9;
    border-radius: 4px;
    content: "";
    flex: 0 0 auto;
    height: 12px;
    transition: background 0.15s ease, border-color 0.15s ease;
    width: 12px;
}

.wish:hover::before {
    background: #2f9e7e;
    border-color: #2f9e7e;
}

.wish-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wish-name {
    color: #33434a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.wish-note {
    color: #93a2a8;
    font-size: 12.5px;
    line-height: 1.5;
}

.wish-meta {
    background: #eef6f3;
    border-radius: 999px;
    color: #1f7a5f;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: bold;
    margin-left: auto;
    padding: 3px 12px;
    white-space: nowrap;
}


/* ---- NOTE: the plain-English help panel ---- */

.note {
    background: #f4f9f7;
    border-left: 4px solid #2f9e7e;
    border-radius: 0 12px 12px 0;
    margin-top: 40px;
    padding: 24px 28px;
}

.note h2 {
    color: #26333a;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.note p {
    color: #55666e;
    font-size: 15px;
    max-width: 74ch;
}


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

#footer {
    color: #93a2a8;
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 40px;
    padding-top: 24px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #6f8188;
    text-decoration: none;
}

#footer a:hover {
    color: #1f7a5f;
}


/* ---- SMALL SCREENS: one column, tighter space, smaller type ---- */

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

    #masthead {
        padding: 28px 24px 24px 24px;
    }

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

    .tagline {
        font-size: 15px;
    }

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

    .lead {
        font-size: 17px;
        margin: 24px 4px;
    }

    /* stack the shelves on a phone */
    .shelf {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .note {
        padding: 20px 20px;
    }
}


/* ---- PRINT: flat, clean sheet ---- */

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

    #masthead,
    .card {
        border-radius: 0;
        box-shadow: none;
    }

    #menu {
        display: none;
    }
}
