:root {
    --cream: #ffffe8;
    --cream-light: #ffffe8;
    --burgundy: #7c1716;
    --burgundy-dark: #002060;
    --text: #302925;
    --muted: #766d66;
    --border: #e5dfc9;
    --blue: #002060;
    --red: #7c1716;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    min-height: 100vh;
}

.site-header {
    text-align: center;
    padding: 32px 16px 25px;
    background: var(--cream-light);
    border-bottom: 1px solid var(--border);
}

.brand {
    color: var(--burgundy);
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 3px;
}

.brand-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
}

.home {
    width: min(100% - 36px, 620px);
    margin: 65px auto;
    text-align: center;
}

.eyebrow {
    color: var(--burgundy);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

h1 {
    margin: 18px 0;
    color: var(--burgundy-dark);
    font-size: clamp(32px, 7vw, 46px);
    line-height: 1.15;
    font-weight: normal;
}

.intro {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.search-form {
    margin-top: 35px;
    padding: 25px;
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 8px 25px rgba(70, 40, 30, 0.06);
}

.search-form label {
    display: block;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.search-form input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: white;
    font-size: 16px;
}

.search-form input:focus {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
}

.search-form button {
    width: 100%;
    margin-top: 14px;
    padding: 16px;
    border: 0;
    border-radius: 7px;
    background: var(--burgundy);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--burgundy-dark);
}

.small-note {
    margin-top: 25px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 13px;
}

footer {
    padding: 25px 15px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 480px) {
    .site-header {
        padding: 25px 12px 20px;
    }

    .brand {
        font-size: 26px;
    }

    .home {
        margin-top: 45px;
    }

    .search-form {
        padding: 20px;
    }
}

/* =========================================
   SEARCH RESULTS PAGE
   Mayflower Bookshop Leiden
========================================= */

body {
    background: #FFFFE8;
    color: #302925;
}

.site-header {
    background: #FFFFE8;
    border-bottom: 1px solid #e5dfc9;
}

.brand-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.results-page {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding: 28px 0 56px;
}

.back-link {
    display: inline-block;
    color: #002060;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 22px;
}

.back-link:hover {
    text-decoration: underline;
}

.results-page h1 {
    color: #7C1716;
    font-family: Georgia, serif;
    font-size: clamp(28px, 7vw, 38px);
    font-weight: normal;
    margin: 0 0 22px;
}

.results-page .search-form {
    margin-bottom: 24px;
}

.search-status {
    color: #766d66;
    font-size: 14px;
    margin: 20px 0 14px;
}

.book-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.book-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    background: #fffef4;
    border: 1px solid #e5dfc9;
    border-radius: 8px;
}

.book-cover {
    width: 104px;
    aspect-ratio: 2 / 3;
    background: #f3efdf;
    border: 1px solid #e5dfc9;
    border-radius: 3px;
    overflow: hidden;
}

.book-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-info {
    min-width: 0;
}

.book-info h2 {
    color: #002060;
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.35;
    font-weight: normal;
    margin: 0 0 7px;
    overflow-wrap: anywhere;
}

.book-author {
    color: #766d66;
    font-size: 14px;
    margin: 0 0 12px;
}

.book-price {
    color: #7C1716;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 9px;
}

.availability {
    display: inline-block;
    color: #002060;
    background: #e9edf5;
    border-radius: 3px;
    padding: 6px 9px;
    font-size: 12px;
    line-height: 1.4;
}

.book-details {
    color: #766d66;
    font-size: 12px;
    line-height: 1.5;
    margin: 10px 0;
}

.book-link {
    display: inline-block;
    color: #7C1716;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 3px;
}

.book-link:hover {
    text-decoration: underline;
}

.empty-results {
    padding: 24px;
    background: #fffef4;
    border: 1px solid #e5dfc9;
    border-radius: 8px;
    color: #766d66;
    text-align: center;
}

@media (max-width: 420px) {
    .results-page {
        width: calc(100% - 24px);
        padding-top: 22px;
    }

    .book-card {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 13px;
        padding: 12px;
    }

    .book-cover {
        width: 78px;
    }

    .book-info h2 {
        font-size: 16px;
    }

    .book-price {
        font-size: 18px;
    }
}

