/* Maker Shelf - A Free Design by Bryant Smith (bryantsmith.com)
   A two-column collection page: a dark rail on the left, project rows on
   the right. Every colour and space is gathered here, so start at the
   section headings below to find what you want to change. */


/* ---- COLOURS AND SPACING: change these once, change the whole page ----
   Keeping the palette in one place makes it easy to stay consistent.
   There is one warm accent (amber), one cool accent (teal) and a handful
   of warm neutrals for text. */

:root {
    --paper:       #ece5d8;   /* page background (cork board) */
    --surface:     #fffdf8;   /* the card the projects sit on */
    --rail:        #29251f;   /* dark left sidebar */
    --ink:         #2c2822;   /* main text */
    --muted:       #6f665a;   /* secondary text */
    --faint:       #a89f8f;   /* little labels */
    --line:        #e4dccd;   /* hairline borders */
    --amber:       #cf7a2c;   /* accent one */
    --amber-dark:  #a85d18;   /* accent one, readable on light */
    --teal:        #3d8274;   /* accent two */
    --teal-dark:   #2c6155;   /* accent two, readable on light */
    --teal-tint:   #e7f1ee;
}


/* ---- RESET: start from a clean slate ---- */

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


/* ---- BODY: the cork board behind everything ---- */

body {
    background-color: var(--paper);
    background-image: radial-gradient(rgba(60, 48, 30, 0.10) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--ink);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 44px 20px;
}


/* ---- PAGE: the two columns side by side ---- */

#page {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 2px 3px rgba(43, 37, 28, 0.06), 0 26px 60px rgba(43, 37, 28, 0.14);
    display: flex;            /* this is what puts the two columns side by side */
    margin: 0 auto;
    max-width: 940px;
    overflow: hidden;         /* keeps the rounded corners clean */
}


/* ---- SIDEBAR: the dark rail of navigation ---- */

#sidebar {
    background: var(--rail);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 220px);
    color: #f0e9dc;
    display: flex;
    flex: 0 0 264px;
    flex-direction: column;
    gap: 30px;
    padding: 38px 26px;
    width: 264px;
}

#brand h1 {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 30px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

#brand .tagline {
    color: #b8ae9d;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 10px;
    text-transform: uppercase;
}

/* a tiny shelf icon, drawn with a square and two pseudo-elements */
.brand-mark {
    background: linear-gradient(145deg, #e08a37, var(--amber-dark));
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    height: 46px;
    margin-bottom: 18px;
    position: relative;
    width: 46px;
}

.brand-mark::before {
    background: #fff5e8;
    border-radius: 2px;
    bottom: 13px;
    content: "";
    height: 4px;
    left: 10px;
    position: absolute;
    right: 10px;
}

.brand-mark::after {
    background: #fff5e8;
    border-radius: 3px 3px 0 0;
    bottom: 17px;
    content: "";
    height: 15px;
    left: 14px;
    position: absolute;
    width: 13px;
}


/* ---- MENU: the vertical list of links ---- */

#menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#menu a,
#menu a:visited {
    border-left: 3px solid transparent;
    border-radius: 8px;
    color: #cfc6b6;
    font-size: 12.5px;
    letter-spacing: 1px;
    padding: 10px 12px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

#menu a:hover,
#menu a:focus {
    background: rgba(255, 255, 255, 0.07);
    border-left-color: var(--amber);
    color: #ffffff;
}

#menu a.active {
    background: rgba(207, 122, 44, 0.16);
    border-left-color: var(--amber);
    color: #ffffff;
}


/* ---- RAIL NOTE: the "how to use" help box ---- */

.rail-note {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    margin-top: auto;       /* push it to the bottom of the rail */
    padding-top: 24px;
}

.rail-note h2 {
    color: #b8ae9d;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.rail-note p {
    color: #a99f8e;
    font-size: 12.5px;
    line-height: 1.7;
}

.rail-note strong {
    color: #e6ddcd;
}


/* ---- CONTENT: the right-hand column of projects ---- */

#content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 46px 46px 52px 46px;
}


/* ---- PAGE HEAD: the title and intro paragraph ---- */

.page-head {
    border-bottom: 1px solid var(--line);
    margin-bottom: 36px;
    padding-bottom: 28px;
}

.eyebrow {
    color: var(--amber-dark);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.page-head h2 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 34px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 14px;
}

.lead {
    color: #4a443b;
    font-size: 16.5px;
    line-height: 1.75;
    max-width: 62ch;
}


/* ---- CATEGORY: a heading plus the rows underneath ---- */

.category {
    margin-bottom: 46px;
}

.category > h3 {
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    display: flex;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 21px;
    font-weight: normal;
    gap: 12px;
    padding-bottom: 12px;
}

.category > h3::before {
    background: var(--amber);
    border-radius: 3px;
    content: "";
    flex: 0 0 auto;
    height: 10px;
    transform: rotate(45deg);
    width: 10px;
}

.category-teal > h3::before {
    background: var(--teal);
}

.count {
    background: var(--teal-tint);
    border-radius: 999px;
    color: var(--teal-dark);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    margin-left: auto;
    padding: 3px 11px;
}


/* ---- PROJECT ROWS: thumbnail + text in two columns ---- */

.projects {
    list-style: none;       /* we are using a list for structure, not for bullets */
}

.project {
    align-items: start;
    border-bottom: 1px solid var(--line);
    display: grid;          /* two columns: a thumbnail, then the words */
    gap: 22px;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    padding: 22px 0;
}

.project:last-child {
    border-bottom: none;
}

/* allow a real photo inside a thumbnail box; the empty gradient boxes
   simply ignore this rule */
.thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.project-body h4 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 19px;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 6px;
}

.project-body h4 a,
.project-body h4 a:visited {
    border-bottom: 1px solid transparent;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.project-body h4 a:hover,
.project-body h4 a:focus {
    border-bottom-color: var(--amber);
    color: var(--amber-dark);
}

.project-body p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 60ch;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin-top: 12px;
}

.tags li {
    background: var(--teal-tint);
    border: 1px solid #cfe4de;
    border-radius: 999px;
    color: var(--teal-dark);
    font-size: 10.5px;
    letter-spacing: 1px;
    padding: 3px 10px;
    text-transform: uppercase;
}

.project-meta {
    color: var(--faint);
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.9;
    text-align: right;
    text-transform: uppercase;
    white-space: nowrap;
}


/* ---- NOTE: the friendly explainer box at the end ---- */

.note {
    background: #f7f2e8;
    border: 1px solid var(--line);
    border-left: 4px solid var(--amber);
    border-radius: 12px;
    margin-top: 10px;
    padding: 24px 26px;
}

.note h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 8px;
}

.note p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    max-width: 68ch;
}

.note code {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--amber-dark);
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    padding: 1px 6px;
}


/* ---- THUMBNAILS: little pictures drawn only with CSS ----
   Each one is a coloured box. The ::before and ::after pseudo-elements
   sit on top and draw the simple shapes. No image files are used, which
   is why this page loads so quickly. Change a background colour here to
   recolour a project. */

.thumb {
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.10), 0 6px 14px rgba(43, 37, 28, 0.14);
    height: 96px;
    overflow: hidden;
    position: relative;
    width: 96px;
}

.thumb::before,
.thumb::after {
    content: "";
    position: absolute;
}

/* model aeroplane: a swept wing over a light body */
.thumb-plane {
    background: linear-gradient(150deg, #e79a48, #b8641a);
}

.thumb-plane::before {
    background: #fff6ea;
    border-radius: 999px;
    height: 13%;
    left: -10%;
    top: 50%;
    transform: rotate(-22deg);
    width: 120%;
}

.thumb-plane::after {
    background: #fff6ea;
    border-radius: 999px;
    height: 52%;
    left: 46%;
    top: 20%;
    transform: rotate(-22deg);
    width: 13%;
}

/* rally car: a light body with two dark wheels */
.thumb-car {
    background: linear-gradient(180deg, #5aa593, #2c6155);
}

.thumb-car::before {
    background: #f2ece0;
    border-radius: 8px;
    height: 28%;
    left: 12%;
    right: 12%;
    top: 36%;
}

.thumb-car::after {
    background:
        radial-gradient(circle at 18% 50%, #1c1814 38%, transparent 40%),
        radial-gradient(circle at 82% 50%, #1c1814 38%, transparent 40%);
    bottom: 16%;
    height: 24%;
    left: 8%;
    right: 8%;
}

/* rocket: a tall body with a glowing window */
.thumb-rocket {
    background: linear-gradient(160deg, #3a332b, #1c1814);
}

.thumb-rocket::before {
    background: linear-gradient(#f3ece0, #cfc4b2);
    border-radius: 999px 999px 6px 6px;
    bottom: 12%;
    height: 58%;
    left: 50%;
    transform: translateX(-50%);
    width: 24%;
}

.thumb-rocket::after {
    background: var(--amber);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--amber);
    height: 12%;
    left: 50%;
    top: 28%;
    transform: translateX(-50%);
    width: 12%;
}

/* pottery: two stacked vase shapes */
.thumb-vase {
    background: linear-gradient(180deg, #d98a3d, #a85d18);
}

.thumb-vase::before {
    background: #fbf3e6;
    border-radius: 50% 50% 44% 44% / 40% 40% 60% 60%;
    bottom: 14%;
    height: 56%;
    left: 50%;
    transform: translateX(-50%);
    width: 46%;
}

.thumb-vase::after {
    background: #fbf3e6;
    border-radius: 2px 2px 40% 40%;
    height: 20%;
    left: 50%;
    top: 16%;
    transform: translateX(-50%);
    width: 15%;
}

/* quilt: a soft checkerboard of patches */
.thumb-quilt {
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.16) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.16) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.16) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.16) 75%),
        linear-gradient(135deg, #4f9c8a, #2c6155);
    background-position: 0 0, 12px 12px, 0 0;
    background-size: 24px 24px, 24px 24px, 100% 100%;
}

/* candle: a flame above a wax body */
.thumb-candle {
    background: radial-gradient(circle at 50% 40%, #6b4a22, #201a13 72%);
}

.thumb-candle::before {
    background: linear-gradient(#f6efe2, #d8cbb6);
    border-radius: 5px 5px 3px 3px;
    bottom: 16%;
    height: 44%;
    left: 50%;
    transform: translateX(-50%);
    width: 26%;
}

.thumb-candle::after {
    background: #f0a63c;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 14px 2px rgba(240, 166, 60, 0.65);
    height: 20%;
    left: 50%;
    top: 13%;
    transform: translateX(-50%);
    width: 13%;
}

/* LED cube: a grid of glowing dots */
.thumb-led {
    background:
        radial-gradient(circle, rgba(207, 122, 44, 0.95) 2px, transparent 2.5px) 0 0 / 18px 18px,
        radial-gradient(circle, rgba(61, 130, 116, 0.95) 2px, transparent 2.5px) 9px 9px / 18px 18px,
        #1b1712;
}

/* synth: four knobs above a slider */
.thumb-synth {
    background: linear-gradient(160deg, #332d26, #1b1712);
}

.thumb-synth::before {
    background:
        radial-gradient(circle at 22% 26%, #e7ddca 14%, transparent 15%),
        radial-gradient(circle at 78% 26%, #e7ddca 14%, transparent 15%),
        radial-gradient(circle at 22% 70%, #e7ddca 14%, transparent 15%),
        radial-gradient(circle at 78% 70%, #e7ddca 14%, transparent 15%);
    bottom: 26%;
    left: 0;
    right: 0;
    top: 0;
}

.thumb-synth::after {
    background: #6a6053;
    border-radius: 999px;
    bottom: 14%;
    height: 7%;
    left: 16%;
    right: 16%;
}

/* desk lamp: a warm pool of light and a little stand */
.thumb-lamp {
    background: radial-gradient(circle at 50% 28%, #ffd9a0, #7a4d1c 46%, #241c13 82%);
}

.thumb-lamp::before {
    background: linear-gradient(#fff3dc, #e4d5bb);
    border-radius: 4px;
    height: 24%;
    left: 50%;
    top: 15%;
    transform: translateX(-50%);
    width: 42%;
}

.thumb-lamp::after {
    background: #e4d5bb;
    border-radius: 2px;
    bottom: 14%;
    height: 26%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
}


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

#footer {
    color: var(--faint);
    font-size: 10.5px;
    letter-spacing: 1px;
    margin: 26px auto 0 auto;
    max-width: 940px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    border-bottom: 1px solid #cfc4b2;
    color: var(--muted);
    text-decoration: none;
}

#footer a:hover,
#footer a:focus {
    border-bottom-color: var(--amber);
    color: var(--amber-dark);
}


/* ---- SMALL SCREENS: stack the two columns and shrink things ---- */

@media (max-width: 780px) {
    #page {
        flex-direction: column;
    }

    #sidebar {
        flex: none;
        width: auto;
    }

    #menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    #menu a {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 8px 12px;
    }

    #menu a:hover,
    #menu a:focus,
    #menu a.active {
        border-bottom-color: var(--amber);
        border-left: none;
    }

    .rail-note {
        margin-top: 0;
    }

    #content {
        padding: 36px 32px 44px 32px;
    }
}

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

    #sidebar {
        padding: 28px 22px;
    }

    #content {
        padding: 28px 20px 36px 20px;
    }

    .page-head h2 {
        font-size: 26px;
    }

    .lead {
        font-size: 15.5px;
    }

    .project {
        gap: 14px;
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .thumb {
        border-radius: 9px;
        height: 68px;
        width: 68px;
    }

    .project-meta {
        grid-column: 2;
        text-align: left;
        white-space: normal;
    }
}


/* ---- PRINT: drop the dark rail and shadows ---- */

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

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

    #sidebar {
        display: none;
    }
}
