/* Bookstore theme */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f7f1e7;
    color: #35291f;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

.site-header {
    padding: 48px 20px;
    text-align: center;
    color: #fff8ec;
    background: linear-gradient(135deg, #382719, #725036);
    border-bottom: 5px solid #c49a5a;
}

.eyebrow,
.section-label {
    color: #bd8b4b;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.16em;
}

.site-header .eyebrow {
    color: #e8c995;
}

h1 {
    margin: 8px 0;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    line-height: 1.2;
}

.subtitle {
    margin: 12px 0 0;
    color: #f0dfc6;
    font-size: 1.05rem;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.welcome {
    max-width: 760px;
    margin: 42px auto;
    text-align: center;
}

h2 {
    color: #493323;
    line-height: 1.3;
}

.welcome h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.welcome p:last-child {
    color: #66594b;
}

.inventory-section {
    margin: 48px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

    .section-heading h2 {
        margin: 0;
    }

    .section-heading .section-label {
        margin-bottom: 6px;
    }

.book-count {
    padding: 7px 13px;
    border: 1px solid #d5c1a3;
    border-radius: 20px;
    color: #684b2d;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid #dfd1bc;
    border-radius: 12px;
    background-color: #fffdf8;
    box-shadow: 0 8px 24px rgb(65 44 25 / 8%);
}

table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    text-align: left;
}

thead {
    color: #fff8ec;
    background-color: #493323;
}

th {
    padding: 17px 15px;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

td {
    padding: 18px 15px;
    border-bottom: 1px solid #e9dfd0;
    vertical-align: top;
    font-size: 0.91rem;
}

    td:first-child {
        min-width: 285px;
        width: 36%;
    }

    td strong {
        color: #432e1e;
        font-size: 1rem;
    }

.pitch {
    margin: 7px 0 12px;
    color: #65584b;
    font-size: 0.86rem;
}

.profile {
    margin: 0;
    padding: 10px 12px;
    border-left: 3px solid #c49a5a;
    border-radius: 0 5px 5px 0;
    background-color: #f6efe4;
    color: #5d4b3b;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    line-height: 1.8;
}

    .profile strong {
        font-size: inherit;
    }

.table-note {
    color: #756858;
    font-size: 0.85rem;
    font-style: italic;
}

/* Required row attribute selectors and gradients */
tr[class="read"] {
    background-image: linear-gradient( to right, #edf5e9, #fffdf8 35% );
}

tr[class="to-read"] {
    background-image: linear-gradient( to right, #f8e8ce, #fffdf8 35% );
}

tr[class="in-progress"] {
    background-image: linear-gradient( to right, #e5edf9, #fffdf8 35% );
}

/* All spans display as inline-block */
span {
    display: inline-block;
}

/* Required status and rating attribute selectors */
tr[class="to-read"] span[class="status"] {
    border: 1px solid #b57b29;
    background-image: linear-gradient( to bottom, #fff0d4, #f2d4a0 );
    color: #71440d;
}

tr[class="read"] span[class="status"] {
    border: 1px solid #4b7b4b;
    background-image: linear-gradient( to bottom, #e2f3df, #bfdfb9 );
    color: #28552a;
}

tr[class="in-progress"] span[class="status"] {
    border: 1px solid #5478aa;
    background-image: linear-gradient( to bottom, #e6efff, #c6d8f4 );
    color: #244a7c;
}

/* Shared dimensions for status badges and rating containers */
span[class="status"],
span[class^="rate"] {
    height: 29px;
    width: 105px;
    padding: 4px 8px;
    border-radius: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}

span[class^="rate"] {
    width: 100px;
    height: 29px;
    padding: 4px 5px;
    border: 1px solid #d8c7ae;
    background-color: #f8f0e3;
}

    /* Three empty rating circles */
    span[class^="rate"] > span {
        border: 1px solid #b9a78e;
        border-radius: 50%;
        margin: 0 2px;
        height: 13px;
        width: 13px;
        background-color: #fffdf8;
    }

/* One-star rating */
span[class~="one"] > span:first-child {
    background-image: linear-gradient( to bottom, #f4cf76, #c58c2c );
}

/* Two-star rating */
span[class~="two"] > span:nth-child(-n+2) {
    background-image: linear-gradient( to bottom, #f4cf76, #c58c2c );
}

/* Three-star rating */
span[class~="three"] > span {
    background-image: linear-gradient( to bottom, #f4cf76, #c58c2c );
}

.reflection {
    margin: 55px 0;
    padding: 30px;
    border: 1px solid #dfcfb7;
    border-radius: 12px;
    background-color: #fffaf1;
    box-shadow: 0 6px 18px rgb(65 44 25 / 5%);
}

    .reflection h2 {
        margin-top: 5px;
    }

    .reflection p:not(.section-label) {
        color: #5e5144;
    }

.site-footer {
    padding: 25px 16px;
    background-color: #382719;
    color: #e8c995;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

@media (max-width: 600px) {
    .site-header {
        padding: 35px 16px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .reflection {
        padding: 22px;
    }

    .container {
        width: 94%;
    }
}
