/* Collection Box - A Free Design by Bryant Smith (bryantsmith.com)
   A three-column hobby catalog built from CSS only.
   The file is split into sections - look for the headings below. */


/* ---- RESET AND PAGE BASE ---- */

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

body {
    background: #f1ede4;
    color: #5c6672;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

/* The centred column that holds all the content. */
.wrap {
    margin: 0 auto;
    max-width: 960px;
    padding: 0 32px;
}

a {
    color: #b96534;
    text-decoration: none;
}

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


/* ---- MASTHEAD: the dark band across the top ---- */

#masthead {
    background: #1e2731;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(189, 106, 55, 0.30), transparent 42%),
        radial-gradient(circle at 88% 0%, rgba(53, 115, 109, 0.34), transparent 46%);
    padding: 60px 0 0 0;
}

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

#masthead h1 {
    color: #f7f3ea;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 54px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 16px 0 0 0;
}

.tagline {
    color: #b9c2c9;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 18px;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 46ch;
}


/* ---- MENU: the row of links along the base of the masthead ---- */

#menu {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 44px;
    padding: 18px 0 22px 0;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #cfd6da;
    font-size: 11px;
    letter-spacing: 2px;
    margin-right: 26px;
    padding-bottom: 4px;
    text-transform: uppercase;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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


/* ---- CONTENT: intro text and the catalog grid ---- */

#content {
    padding-top: 64px;
}

.lead {
    color: #3c454f;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    line-height: 1.7;
    max-width: 68ch;
}

/* The heading row above the cards. */
.section-head {
    align-items: baseline;
    border-bottom: 2px solid #ded6c7;
    display: flex;
    justify-content: space-between;
    margin: 56px 0 28px 0;
    padding-bottom: 12px;
}

h2 {
    color: #1f252b;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 23px;
    font-weight: normal;
}

.count {
    color: #8b9199;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* ---- CATALOG: the three-column grid of item cards ---- */

.catalog {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: #ffffff;
    border: 1px solid #e4ddd0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(30, 39, 49, 0.05), 0 10px 24px rgba(30, 39, 49, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    border-color: #d3b28f;
    box-shadow: 0 2px 4px rgba(30, 39, 49, 0.06), 0 18px 34px rgba(30, 39, 49, 0.13);
    transform: translateY(-5px);
}


/* ---- THUMB: the gradient picture stand-in on each card ---- */

.thumb {
    height: 150px;
    overflow: hidden;
    position: relative;
}

/* A soft sheen across the top of every picture. */
.thumb::before {
    background: linear-gradient(rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 50%);
    content: "";
    inset: 0;
    position: absolute;
    z-index: 2;
}

/* The small number chip in the corner. */
.tag {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    color: #1f252b;
    font-size: 11px;
    font-weight: bold;
    left: 12px;
    letter-spacing: 1px;
    padding: 3px 10px;
    position: absolute;
    top: 12px;
    z-index: 3;
}


/* ---- THUMB GRADIENTS: one look per card ---- */

.thumb-a {
    background: linear-gradient(135deg, #f0dcc0, #cf8f52);
}

/* An open ring drifting off the corner. */
.thumb-a::after {
    border: 12px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    bottom: -34px;
    content: "";
    height: 120px;
    position: absolute;
    right: -30px;
    width: 120px;
}

.thumb-b {
    background: linear-gradient(135deg, #cfe2e0, #4f8f88);
}

/* Diagonal ribbons. */
.thumb-b::after {
    background: repeating-linear-gradient(45deg,
        rgba(255, 255, 255, 0.20) 0 10px,
        rgba(255, 255, 255, 0) 10px 20px);
    content: "";
    inset: 0;
    position: absolute;
}

.thumb-c {
    background: linear-gradient(135deg, #d8dde2, #6b7885);
}

/* Concentric rings, like a record. */
.thumb-c::after {
    background: repeating-radial-gradient(circle,
        rgba(255, 255, 255, 0.24) 0 7px,
        rgba(255, 255, 255, 0) 7px 17px);
    border-radius: 50%;
    content: "";
    height: 210px;
    position: absolute;
    right: -70px;
    top: -70px;
    width: 210px;
}

.thumb-d {
    background: linear-gradient(135deg, #f2d9c4, #b9612f);
}

/* A two-tone checkerboard. */
.thumb-d::after {
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%,
            transparent 75%, rgba(255, 255, 255, 0.18) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%,
            transparent 75%, rgba(255, 255, 255, 0.18) 75%);
    background-position: 0 0, 14px 14px;
    background-size: 28px 28px;
    content: "";
    inset: 0;
    position: absolute;
}

.thumb-e {
    background: linear-gradient(135deg, #d6e8e2, #79b0a5);
}

/* A smooth pebble of light. */
.thumb-e::after {
    background: rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    bottom: 18px;
    content: "";
    height: 84px;
    left: 24px;
    position: absolute;
    width: 84px;
}

.thumb-f {
    background: linear-gradient(135deg, #ece4d2, #b9a173);
}

/* Faint graph lines, like the back of a postcard. */
.thumb-f::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.30) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.30) 1px, transparent 1px);
    background-size: 22px 22px;
    content: "";
    inset: 0;
    position: absolute;
}


/* ---- CARD BODY: the title, note and count ---- */

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px 22px;
}

.card-body h3 {
    color: #1f252b;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 19px;
    font-weight: normal;
    margin-bottom: 8px;
}

.card-body p {
    color: #5c6672;
    font-size: 13.5px;
    margin-bottom: 18px;
}

.meta {
    border-top: 1px solid #efe9de;
    color: #8b9199;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    margin-top: auto;
    padding-top: 12px;
    text-transform: uppercase;
}


/* ---- HOW TO USE: the friendly note for beginners ---- */

.howto {
    background: #fbf9f4;
    border: 1px solid #e4ddd0;
    border-left: 5px solid #bd6a37;
    border-radius: 12px;
    margin-top: 64px;
    padding: 32px 36px 24px 36px;
}

.howto h2 {
    margin-bottom: 14px;
}

.howto p {
    color: #5c6672;
    line-height: 1.75;
    margin-bottom: 14px;
    max-width: 72ch;
}

.howto code {
    background: #efe8db;
    border-radius: 5px;
    color: #8a4a22;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    padding: 1px 6px;
}


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

#footer {
    border-top: 1px solid #ded6c7;
    color: #9a958c;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-top: 72px;
    padding: 40px 24px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #8b857a;
    transition: color 0.15s ease;
}

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


/* ---- MEDIUM SCREENS: ease the grid down to two columns ---- */

@media (max-width: 880px) {
    .catalog {
        grid-template-columns: repeat(2, 1fr);
    }
}


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

@media (max-width: 640px) {
    .wrap {
        padding: 0 20px;
    }

    #masthead {
        padding-top: 44px;
    }

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

    .tagline {
        font-size: 16px;
    }

    #content {
        padding-top: 40px;
    }

    .lead {
        font-size: 17px;
    }

    .catalog {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .count {
        margin-top: 6px;
    }

    .thumb {
        height: 170px;
    }

    .howto {
        margin-top: 40px;
        padding: 24px 22px 14px 22px;
    }

    #footer {
        margin-top: 48px;
        padding: 28px 20px;
    }
}


/* ---- PRINT: strip the dark band and shadows for paper ---- */

@media print {
    #masthead {
        background: #ffffff;
        background-image: none;
        color: #000000;
        padding: 0 0 16px 0;
    }

    #masthead h1,
    .eyebrow,
    .tagline {
        color: #000000;
    }

    #menu {
        display: none;
    }

    .card {
        box-shadow: none;
    }
}
