:root {
    --bg: #f8f5ee;
    --surface: #fffdf9;
    --ink: #3a322c;
    --muted: #6f665b;
    --primary: #647399;
    --primary-dark: #515f83;
    --primary-pale: #dbe4ec;
    --accent: #cf8a66;
    --accent-dark: #b9714f;
    --on-primary: #ffffff;
    --border: #e4ddd0;
    --gold: #b08d57;
    --sold: #8a2b2b;
    --reserved: #9a6a1c;
    --available: #4a6b46;
    --shadow: 0 1px 3px rgba(46, 42, 37, 0.08), 0 6px 18px rgba(46, 42, 37, 0.06);
    --max-width: 1120px;
    --prose-width: 760px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: var(--accent);
}

/* Header / nav */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.brand {
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.02em;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.site-nav a {
    margin-left: 1.25rem;
    text-decoration: none;
    font-size: 1.05rem;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-search {
    display: flex;
    align-items: stretch;
}

.site-search input[type="search"] {
    font-family: inherit;
    font-size: 1.05rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    background: var(--surface);
    color: var(--ink);
    width: 12rem;
}

.site-search input[type="search"]:focus {
    outline: 2px solid var(--primary);
    outline-offset: -1px;
}

.site-search button {
    font-family: inherit;
    font-size: 1.05rem;
    padding: 0.5rem 1.1rem;
    border: none;
    border-radius: 0 4px 4px 0;
    background: var(--accent-dark);
    color: #fff;
    cursor: pointer;
}

.site-search button:hover {
    background: #a5603f;
}

/* Main */
.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

.hero h1 {
    font-size: 2.6rem;
    margin: 0 0 0.5rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--muted);
}

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.6rem;
    background: var(--accent-dark);
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
}

.button:hover {
    background: #a5603f;
}

/* Contact */
.contact-details {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 0.4rem 1rem;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.contact-details dt {
    font-weight: bold;
    color: var(--muted);
}

.contact-details dd {
    margin: 0;
}

.note {
    color: var(--muted);
    font-style: italic;
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    background: var(--primary);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.75rem 1.25rem;
}

/* Footer top row: site map + logo */
.site-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.site-footer__logo {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer site map */
.site-map {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4rem;
}

.site-map__heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    margin: 0 0 0.7rem;
}

.site-map__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-map__links li {
    margin-bottom: 0.4rem;
}

.site-map__links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-map__links a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer__copyright {
    margin: 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ------------------------------------------------------------------ */
/* Storefront                                                          */
/* ------------------------------------------------------------------ */

h1, h2, h3 {
    font-weight: normal;
    letter-spacing: 0.01em;
}

/* Flash messages */
.messages {
    list-style: none;
    max-width: var(--max-width);
    margin: 1rem auto 0;
    padding: 0 1.25rem;
}

.message {
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.message--success {
    border-color: #cfe0cb;
    background: #eef4ec;
    color: var(--available);
}

.message--error {
    border-color: #e6cccc;
    background: #f6ecec;
    color: var(--sold);
}

/* Top accent bar */
.topbar {
    background: var(--primary-pale);
    color: var(--ink);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.topbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.55rem 1.25rem;
    text-align: center;
}

/* Hero band (full-width periwinkle) */
.hero--home {
    background: var(--primary);
    color: var(--on-primary);
    text-align: center;
    padding: 3.5rem 1.25rem 5rem;
}

.hero--home__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    text-align: left;
}

.hero--home__text {
    min-width: 0;
}

.hero--home__logo {
    flex: none;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25), var(--shadow);
}

.hero--home h1 {
    font-size: 3.4rem;
    margin: 0 0 0.75rem;
    color: var(--on-primary);
}

.hero--home .lead {
    max-width: var(--prose-width);
    margin: 0 0 1.75rem;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.92);
}

/* Section headers */
.section {
    margin-top: 3rem;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.section-head h2 {
    font-size: 1.6rem;
    margin: 0;
}

.section-link {
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

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

/* Page heading (listing) */
.page-head h1 {
    font-size: 2.4rem;
    margin: 0 0 1rem;
}

/* Category navigation */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-nav a {
    text-decoration: none;
    color: var(--muted);
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.95rem;
    background: var(--surface);
    transition: color 0.15s, border-color 0.15s;
}

.category-nav a:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.category-nav a.is-active {
    color: var(--on-primary);
    background: var(--primary);
    border-color: var(--primary);
}

/* Item grid + cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.75rem;
}

.card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #efe9df;
}

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

.card-media__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    font-style: italic;
    font-size: 0.9rem;
}

.card--sold .card-media img {
    filter: grayscale(0.6) brightness(0.92);
}

.card-body {
    padding: 0.9rem 1rem 1.1rem;
}

.card-title {
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.card-meta {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-price {
    margin: 0;
    font-size: 1.15rem;
    color: var(--accent-dark);
}

.card-price--sold {
    color: var(--muted);
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    vertical-align: middle;
}

.badge--sold { background: var(--sold); }
.badge--reserved { background: var(--reserved); }
.badge--available { background: var(--available); }

.badge--overlay {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    box-shadow: var(--shadow);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.pagination a {
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.pagination a:hover {
    border-color: var(--primary);
}

.pagination__status {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Sold toggle */
.sold-toggle {
    margin-bottom: 1rem;
    text-align: left;
    font-size: 0.95rem;
}

.empty {
    color: var(--muted);
    font-style: italic;
    padding: 2rem 0;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb__sep {
    margin: 0 0.4rem;
    color: var(--border);
}

.breadcrumb__current {
    color: var(--ink);
}

/* Item detail */
.detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.gallery-main {
    position: relative;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-main.is-sold img {
    filter: grayscale(0.6) brightness(0.92);
}

.gallery-main--empty {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-style: italic;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

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

.gallery-thumb:hover {
    border-color: var(--gold);
}

.gallery-thumb.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.detail-title {
    font-size: 2.2rem;
    margin: 0 0 0.75rem;
}

.detail-price {
    font-size: 1.5rem;
    color: var(--accent-dark);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-desc {
    margin-bottom: 1.5rem;
}

.detail-specs {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.5rem 1rem;
    margin: 0 0 2rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.detail-specs dt {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    align-self: center;
}

.detail-specs dd {
    margin: 0;
}

/* Collapsible long text (description / provenance) */
.clampable.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.clamp-toggle {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--accent-dark);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
}

.clamp-toggle:hover {
    color: #a5603f;
}

/* Keep the More/Less link close to the description text; the spacing to the
   next section moves below the toggle instead of above it. */
.detail-desc:has(+ .clamp-toggle) {
    margin-bottom: 0;
}

.detail-desc + .clamp-toggle {
    margin-bottom: 1.5rem;
}

/* Inquiry form */
.inquiry {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.inquiry h2 {
    font-size: 1.4rem;
    margin: 0 0 0.4rem;
}

.inquiry-intro {
    color: var(--muted);
    margin: 0 0 1.25rem;
}

.inquiry-form .field {
    margin: 0 0 1rem;
}

/* Spam honeypot: kept in the DOM (bots fill it) but off-screen for real users. */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.inquiry-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(100, 115, 153, 0.25);
}

.inquiry-form .errorlist {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0;
    color: var(--sold);
    font-size: 0.85rem;
}

.inquiry-sold {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    color: var(--muted);
}

/* Shipping estimator */
.shipping-estimate {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.shipping-estimate h2 {
    font-size: 1.4rem;
    margin: 0 0 0.4rem;
}

.ship-intro {
    color: var(--muted);
    margin: 0 0 1rem;
}

.ship-form {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ship-form .field {
    margin: 0;
    flex: 1 1 8rem;
}

.ship-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.ship-form input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
}

.ship-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(100, 115, 153, 0.25);
}

.ship-form .button {
    margin-top: 0;
}

.ship-result {
    margin-top: 1rem;
}

.ship-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.ship-summary dt {
    margin: 0;
    color: var(--muted);
}

.ship-summary dd {
    margin: 0;
    text-align: right;
    color: var(--ink);
    font-weight: bold;
    white-space: nowrap;
}

.ship-summary .ship-total {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    font-size: 1.15rem;
}

.ship-eta {
    font-weight: normal;
    color: var(--muted);
    font-size: 0.85rem;
}

.ship-buy {
    display: block;
    width: 100%;
    text-align: center;
}

.ship-fineprint {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.ship-loading,
.ship-note {
    margin: 0;
    color: var(--muted);
}

.ship-error {
    margin: 0;
    color: var(--sold);
    font-size: 0.9rem;
}

button.button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

/* ------------------------------------------------------------------ */
/* Information / articles                                              */
/* ------------------------------------------------------------------ */

.article-list {
    display: grid;
    gap: 2.5rem;
    max-width: var(--prose-width);
}

.article-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.article-card__media {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 3 / 2;
}

.article-card__title {
    font-size: 1.5rem;
    margin: 0 0 0.35rem;
}

.article-card__title a {
    text-decoration: none;
    color: var(--ink);
}

.article-card__title a:hover {
    color: var(--primary-dark);
}

.article-card__summary {
    margin: 0.5rem 0 0.75rem;
    color: var(--ink);
}

.article-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Events */
.event-section-heading {
    max-width: var(--prose-width);
    margin: 3rem auto 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.5rem;
}

.event-list {
    display: grid;
    gap: 1.75rem;
    max-width: var(--prose-width);
}

.event-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.event-card--past {
    opacity: 0.65;
}

.event-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
    width: 100%;
}

.event-card__media {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 3 / 2;
}

.event-card:has(.event-card__body:only-child) {
    grid-template-columns: 1fr;
}

.event-date {
    margin: 0 0 0.35rem;
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.event-card__title {
    font-size: 1.5rem;
    margin: 0 0 0.35rem;
    color: var(--ink);
}

.event-card__location {
    margin: 0 0 0.5rem;
    color: var(--muted);
}

.event-card__summary {
    margin: 0 0 0.75rem;
    color: var(--ink);
}

/* Article detail */
.article {
    max-width: var(--prose-width);
    margin: 0 auto;
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2.4rem;
    margin: 0 0 0.5rem;
}

.article-banner {
    margin: 0 0 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.article-draft-note {
    background: var(--primary-pale);
    color: var(--primary-dark);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Rendered rich-text body */
.article-body {
    font-size: 1.08rem;
}

.article-body h2 {
    font-size: 1.6rem;
    margin: 2rem 0 0.75rem;
}

.article-body h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem;
}

.article-body p {
    margin: 0 0 1.1rem;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.1rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.4rem;
}

.article-body a {
    color: var(--accent-dark);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-body blockquote {
    margin: 1.5rem 0;
    padding: 0.5rem 1.25rem;
    border-left: 3px solid var(--primary);
    color: var(--muted);
    font-style: italic;
}

.article-back {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.article-back a {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 760px) {
    .detail {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .hero--home h1 {
        font-size: 2.3rem;
    }

    /* Shrink the logo so it stays beside the text on mid-size screens */
    .hero--home__logo {
        width: 150px;
        height: 150px;
    }

    .site-footer__top {
        flex-wrap: wrap;
    }

    .article-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .article-card__media {
        max-width: 320px;
    }

    .event-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .event-card__media {
        max-width: 320px;
    }
}

/* On phones, stack the hero logo below the text and re-center */
@media (max-width: 560px) {
    .hero--home__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero--home__inner .lead {
        margin-left: auto;
        margin-right: auto;
    }
}
