/* =========================================================================
   Bobblewob — paper/wireframe marketplace theme
   Tokens, reset, typography, reusable component classes.
   Per-template styles are appended in later sections of this file.
   ========================================================================= */

:root {
    --paper:        #fbf6ec;
    --paper-2:      #f6efde;
    --ink:          #2b2620;
    --ink-soft:     #5a5048;
    --ink-faint:    #8a8076;
    --rule:         #d8c9a8;
    --orange:       #ff5a1f;
    --orange-deep:  #e64a14;
    --pink:         #f0307a;
    --hot:          #ff2d6f;
    --note:         #fff3a8;
    --teal:         #2a8a86;
    --shadow:       0 1px 0 rgba(43,38,32,.08), 0 4px 16px rgba(43,38,32,.06);

    --font-sans:    'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;
    --font-serif:   'Instrument Serif', Georgia, serif;

    --container-max: 1480px;
    --content-pad:   28px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(rgba(43,38,32,.045) 1px, transparent 1px);
    background-size: 22px 22px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
button { font-family: inherit; cursor: pointer; }

img { max-width: 100%; height: auto; }

.mono         { font-family: var(--font-mono); }
.serif        { font-family: var(--font-serif); font-weight: 400; }
.serif-italic { font-family: var(--font-serif); font-weight: 400; font-style: italic; }

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden;
    padding: 0; position: absolute; word-wrap: normal !important;
}

.skip-link {
    position: absolute; top: -40px; left: 6px; z-index: 999;
    background: var(--ink); color: var(--paper); padding: 8px 12px;
    font-family: var(--font-mono); font-size: 12px;
}
.skip-link:focus { top: 6px; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--content-pad);
}

/* ============ PILL / BUTTON ============ */
.pill, .btn {
    background: #fff;
    color: var(--ink);
    border: 1.5px solid var(--orange);
    border-radius: 4px;
    padding: 9px 16px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -.005em;
    box-shadow: 2px 2px 0 var(--orange);
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: transform .1s ease, box-shadow .1s ease, background .12s ease, color .12s ease;
}
.pill:hover, .btn:hover {
    background: var(--orange);
    color: #fff;
    transform: translate(-1px,-1px);
    box-shadow: 3px 3px 0 var(--orange);
}
.pill:active, .btn:active {
    transform: translate(1px,1px);
    box-shadow: 1px 1px 0 var(--orange);
}
.pill:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}
.pill.primary, .btn--primary {
    background: var(--orange);
    color: #fff;
}
.pill.primary:hover, .btn--primary:hover {
    background: var(--orange-deep);
    border-color: var(--orange-deep);
    box-shadow: 3px 3px 0 var(--orange-deep);
}
.btn--ghost {
    background: transparent;
    box-shadow: none;
}
.btn--ghost:hover {
    background: var(--orange);
    color: #fff;
    box-shadow: 2px 2px 0 var(--orange);
}
.btn--block { display: block; width: 100%; }

/* ============ MODULE TAG ( // SECTION_NAME ) ============ */
.module-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--orange-deep);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.module-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--orange);
    transform: rotate(45deg);
    display: inline-block;
}

/* ============ SECTION HEAD ============ */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}
.section-head .title {
    font-family: var(--font-sans);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.05;
    color: var(--ink);
    margin: 8px 0 0;
}
.section-head .title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--orange);
}
.section-head .right {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: .04em;
}

/* ============ STICKY NOTE ============ */
.stickynote {
    background: var(--note);
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink);
    position: relative;
    box-shadow: 0 2px 6px rgba(43,38,32,.1);
    transform: rotate(-1.5deg);
    max-width: 220px;
}
.stickynote::before {
    content: "";
    position: absolute;
    top: -10px; left: 30%;
    width: 50px; height: 14px;
    background: rgba(255,255,255,.55);
    border: 1px dashed var(--rule);
    transform: rotate(2deg);
}

/* ============ HATCHED IMAGE PLACEHOLDER ============ */
.img-ph {
    background: var(--paper-2);
    background-image: repeating-linear-gradient(
        -45deg,
        transparent 0,
        transparent 8px,
        color-mix(in srgb, var(--orange) 18%, transparent) 8px,
        color-mix(in srgb, var(--orange) 18%, transparent) 9px
    );
    border: 1px solid var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--orange-deep);
    text-transform: uppercase;
    aspect-ratio: 1 / 1;
    position: relative;
}

/* ============ PAPER CARD ============ */
.card {
    background: #fff;
    border: 1.5px solid var(--orange);
    border-radius: 4px;
    box-shadow: 3px 3px 0 var(--orange);
    padding: 22px;
    position: relative;
}

/* ============ STAT BOX ============ */
.stat-box {
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 14px 18px;
    background: #fff;
}
.stat-num {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -.02em;
}
.stat-lab {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 4px;
}

/* ============ COUNTDOWN CELL ============ */
.cd-cell {
    border: 1.5px solid var(--orange);
    border-radius: 4px;
    padding: 12px 14px;
    background: #fff;
    text-align: center;
    box-shadow: 2px 2px 0 var(--orange);
    min-width: 60px;
}
.cd-cell .num {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-sans);
    line-height: 1;
    color: var(--ink);
    letter-spacing: -.02em;
}
.cd-cell .lab {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .14em;
    color: var(--ink-soft);
    margin-top: 4px;
    text-transform: uppercase;
}

/* =========================================================================
   Header
   ========================================================================= */

.topnav {
    background: var(--paper);
    padding: 18px 0 16px;
    position: relative;
    border-bottom: 1.5px solid var(--orange);
}
.topnav::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -6px; height: 4px;
    border-bottom: 1px dashed var(--rule);
}

.topnav-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 10px;
}
.topnav-meta .meta-l {
    display: flex; align-items: center; gap: 8px;
}
.topnav-meta .meta-l::before {
    content: "";
    width: 8px; height: 8px;
    background: var(--orange);
    display: inline-block;
    transform: rotate(45deg);
}
.topnav-meta .meta-r { display: flex; gap: 18px; }
.topnav-meta .meta-r span { display: inline-flex; align-items: center; gap: 6px; }
.topnav-meta .dot {
    width: 6px; height: 6px; border-radius: 999px;
    background: var(--orange); display: inline-block;
}

.nav-row {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}
.pill.logo {
    display: flex; align-items: center;
    padding: 4px 14px 4px 6px;
    margin-right: 8px;
    box-shadow: 3px 3px 0 var(--orange);
}
.pill.logo:hover {
    background: #fff; color: var(--ink);
    transform: translate(-1px,-1px);
    box-shadow: 4px 4px 0 var(--orange);
}
.pill.logo img { height: 57px; width: auto; display: block; }
.nav-spacer { flex: 1; }

.cart {
    background: #fff;
    border: 1.5px solid var(--orange);
    border-radius: 4px;
    width: 48px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    box-shadow: 2px 2px 0 var(--orange);
    cursor: pointer;
    transition: transform .1s, box-shadow .1s, background .12s;
}
.cart:hover { background: var(--orange); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--orange); }
.cart:hover svg { color: #fff; }
.cart svg { width: 20px; height: 20px; color: var(--orange); transition: color .12s; }
.cart-badge {
    position: absolute; top: -7px; right: -7px;
    background: var(--ink); color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: 2px;
    min-width: 18px; height: 18px; padding: 0 5px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    border: 1.5px solid var(--ink);
}

.search-row { margin: 14px 0 0; }
.search {
    background: #fff;
    border: 1.5px solid var(--orange);
    border-radius: 4px;
    padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 3px 3px 0 var(--orange);
    position: relative;
}
.search::before {
    content: "// SEARCH";
    position: absolute; top: -9px; left: 14px;
    background: var(--paper); padding: 0 6px;
    font-family: var(--font-mono); font-size: 10px;
    color: var(--orange-deep); letter-spacing: .12em;
}
.search svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.search input {
    flex: 1; border: none; background: transparent; outline: none;
    font-family: var(--font-sans); font-size: 15px; color: var(--ink);
}
.search input::placeholder { color: var(--ink-faint); }
.search-hint {
    font-family: var(--font-mono); font-size: 10px;
    color: var(--ink-soft); letter-spacing: .08em;
    border: 1px solid var(--rule); padding: 3px 6px; border-radius: 2px;
    flex: none;
}

@media (max-width: 720px) {
    .topnav { padding: 14px 0; }
    .topnav-meta { font-size: 10px; }
    .topnav-meta .meta-r > :not(:first-child) { display: none; }
    .pill { padding: 8px 12px; font-size: 13px; }
}

/* =========================================================================
   Category nav
   ========================================================================= */

.cats {
    margin: 14px 0 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
    padding: 8px 0 0;
    border-top: 1px dashed var(--rule);
}
/* Mobile only: scroll the strip horizontally. Dropdowns are not used
   on touch — taps follow the link. */
@media (max-width: 720px) {
    .cats {
        flex-wrap: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .cats::-webkit-scrollbar { display: none; }
}
.cats-label {
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: .14em; color: var(--ink-soft); text-transform: uppercase;
    margin-right: 14px; padding: 6px 0;
    flex: none;
}
.cat-wrap { position: relative; }
.cat {
    color: var(--ink); font-weight: 600; font-size: 13px;
    padding: 6px 10px;
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--font-sans);
    letter-spacing: -.005em;
    transition: background .12s, border-color .12s, color .12s;
}
.cat:hover, .cat.open { background: #fff; border-color: var(--orange); color: var(--orange); }
.cat .chev { font-size: 8px; color: var(--orange); }
.cat.sep {
    color: var(--rule);
    user-select: none;
    pointer-events: none;
    padding: 6px 2px;
}

/* Dropdown */
.dd {
    position: absolute; top: calc(100% + 6px); left: 0;
    background: #fff;
    border: 1.5px solid var(--orange);
    border-radius: 4px;
    padding: 6px;
    min-width: 220px;
    box-shadow: 3px 3px 0 var(--orange);
    z-index: 50;
    display: none;
}
.cat-wrap:hover > .dd,
.cat-wrap:focus-within > .dd { display: block; }
.dd.flyout {
    top: -8px; left: calc(100% + 6px);
}
.dd-item {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--ink);
    position: relative;
}
.dd-item:hover { background: var(--paper-2); color: var(--orange); }
.dd-item.is-active { color: var(--orange); font-weight: 600; }
.dd-item.has-flyout > .chev { color: var(--orange); }
/* Flyouts are siblings of .dd-item (anchors can't contain divs).
   Open via adjacent-sibling on hover/focus; stay open while the
   flyout itself is hovered so the cursor can travel into it. */
.dd-item.has-flyout:hover + .dd.flyout,
.dd-item.has-flyout:focus + .dd.flyout,
.dd.flyout:hover { display: block; }

/* =========================================================================
   Front page — hero row
   ========================================================================= */

.front-page { padding: 28px 0 64px; }

.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 14px;
}

.hero-main {
    padding: 36px 38px 32px;
    position: relative;
    overflow: visible;
}
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 18px;
}
.hero-eyebrow .orange { color: var(--orange); font-weight: 600; }
.hero-eyebrow .dot-sep { color: var(--rule); }

.hero-ttl {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 64px;
    line-height: 1.02;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0 0 18px;
}
.hero-ttl em.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--orange);
}

.lede {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.5;
    max-width: 56ch;
    margin: 0 0 22px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-cta .pill { padding: 12px 22px; font-size: 15px; }

.hero-rule {
    border-top: 1px dashed var(--rule);
    margin: 0 0 22px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-stats .stat-box { min-width: 132px; }

.stickynote {
    position: absolute;
    top: 30px;
    right: -16px;
}

.hero-tag {
    position: absolute;
    top: 20px;
    right: 24px;
}

.right-tag {
    position: absolute;
    top: 18px;
    right: 22px;
}

/* Hero side column */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drop-card { padding: 22px 24px; }
.drop-card .meta-block {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .14em; color: var(--ink-soft);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.drop-card .ttl {
    font-family: var(--font-sans); font-size: 22px;
    font-weight: 700; letter-spacing: -.01em;
    margin-bottom: 6px; color: var(--ink);
}
.drop-card .ti-meta {
    font-size: 13px; color: var(--ink-soft); margin-bottom: 16px;
}
.countdown { display: flex; gap: 8px; }

.pick-card {
    display: block;
    padding: 22px 24px;
    color: var(--ink);
    transition: box-shadow .12s, transform .12s;
}
.pick-card:hover {
    box-shadow: 5px 5px 0 var(--orange);
    transform: translate(-1px,-1px);
    color: var(--ink);
}
.pick-card:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}
.pick-row { display: flex; gap: 16px; align-items: stretch; }
.pick-ph { width: 120px; flex: none; aspect-ratio: 1 / 1; }
.pick-body { flex: 1; }
.badge-fire {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .12em;
    padding: 4px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.pick-body .ttl {
    font-family: var(--font-sans); font-weight: 700; font-size: 17px;
    line-height: 1.2; color: var(--ink); margin-bottom: 4px;
}
.pick-body .price { color: var(--orange); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.pick-body .ti-meta {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--ink-soft); letter-spacing: .04em;
}

@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; }
    .hero-ttl { font-size: 48px; }
    .stickynote { position: static; transform: rotate(-1.5deg); margin-top: 16px; }
}
@media (max-width: 720px) {
    .hero-main { padding: 24px 22px; }
    .hero-ttl { font-size: 36px; }
    .pick-row { flex-direction: column; }
    .pick-ph { width: 100%; aspect-ratio: 16 / 9; }
}

/* =========================================================================
   Front page — sections
   ========================================================================= */

.section { margin-top: 56px; }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.cat-tile {
    display: block;
    background: #fff;
    border: 1.5px solid var(--orange);
    border-radius: 4px;
    box-shadow: 3px 3px 0 var(--orange);
    padding: 14px;
    color: var(--ink);
    transition: transform .12s, box-shadow .12s;
}
.cat-tile:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--orange); color: var(--ink); }
.cat-tile .img-ph { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.cat-tile .cat-meta {
    display: flex; justify-content: space-between; align-items: baseline;
}
.cat-tile .name { font-weight: 700; font-size: 16px; color: var(--ink); }
.cat-tile .count {
    font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { padding: 8px 14px; font-size: 13px; }

.listings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1.5px dashed var(--rule);
    border-radius: 4px;
}
.empty-state h3 {
    font-family: var(--font-serif); font-size: 28px; margin: 0 0 8px; color: var(--ink);
}
.empty-state p { color: var(--ink-soft); margin: 0 0 20px; }

@media (max-width: 1100px) {
    .cat-grid, .listings { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .cat-grid, .listings { grid-template-columns: 1fr; }
}

/* =========================================================================
   Festival calendar + testimonial + newsletter
   ========================================================================= */

.fest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.fest-card { padding: 18px 20px; }
.fest-card .when {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .14em; color: var(--orange); text-transform: uppercase;
    margin-bottom: 8px;
}
.fest-card .name {
    font-family: var(--font-sans); font-weight: 700; font-size: 19px;
    color: var(--ink); margin-bottom: 4px;
}
.fest-card .where { color: var(--ink-soft); font-size: 13px; margin-bottom: 14px; }
.fest-card .bar-lab {
    font-family: var(--font-mono); font-size: 10px;
    color: var(--ink-soft); letter-spacing: .08em;
    display: flex; justify-content: space-between;
    margin-bottom: 4px;
}
.fest-card .bar-pct { color: var(--ink); font-weight: 500; }
.fest-card .bar {
    background: var(--paper-2);
    height: 6px; border-radius: 2px;
    overflow: hidden;
}
.fest-card .bar-fill {
    background: var(--orange);
    height: 100%;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.quote-card { padding: 26px 28px; position: relative; }
.quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 16px;
}
.quote-by {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--ink-soft); letter-spacing: .04em;
}

.newsletter-card { padding: 26px 28px; }
.newsletter-ttl {
    font-family: var(--font-sans); font-size: 28px; font-weight: 700;
    letter-spacing: -.01em; color: var(--ink); margin: 8px 0 10px;
}
.newsletter-lede { color: var(--ink-soft); margin: 0 0 16px; }
.nl-form { display: flex; gap: 8px; }
.nl-form input {
    flex: 1;
    background: #fff;
    border: 1.5px solid var(--orange);
    padding: 11px 14px;
    border-radius: 4px;
    font: inherit;
    outline: none;
    box-shadow: 2px 2px 0 var(--orange);
    color: var(--ink);
}
.nl-form input::placeholder { color: var(--ink-faint); }

@media (max-width: 1100px) {
    .fest-grid { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .fest-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
    margin-top: 64px;
    padding: 32px 0 24px;
    border-top: 1px dashed var(--rule);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer-col h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--ink-soft);
    text-transform: uppercase;
    margin: 0 0 14px;
    font-weight: 500;
}
.footer-tagline {
    font-size: 24px;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -.01em;
    font-style: italic;
}
.footer-brand .brand-line {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-soft);
    letter-spacing: .04em;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list li a {
    font-size: 14px;
    color: var(--ink);
    transition: color .12s;
}
.footer-list li a:hover { color: var(--orange); }

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Listing card
   ========================================================================= */

.listing-card {
    background: #fff;
    border: 1.5px solid var(--orange);
    border-radius: 4px;
    box-shadow: 3px 3px 0 var(--orange);
    transition: transform .12s, box-shadow .12s;
    overflow: hidden;
}
.listing-card:hover {
    transform: translate(-1px,-1px);
    box-shadow: 4px 4px 0 var(--orange);
}
.listing-card__link {
    display: block;
    color: var(--ink);
}
.listing-card__link:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}
.listing-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
}
.listing-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-card__ph {
    position: absolute;
    inset: 0;
    border: none;
}
.listing-card__heart {
    position: absolute;
    top: 10px; right: 10px;
    width: 28px; height: 28px;
    background: #fff;
    border: 1.5px solid var(--orange);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    box-shadow: 1px 1px 0 var(--orange);
}
.listing-card__badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .12em;
    padding: 3px 7px;
    border-radius: 2px;
}
.listing-card__body { padding: 14px 16px 16px; }
.listing-card__title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    margin: 0 0 4px;
    line-height: 1.25;
}
.listing-card__price {
    color: var(--orange);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}
.listing-card__meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-soft);
    letter-spacing: .04em;
}

/* =========================================================================
   Archive
   ========================================================================= */

.archive-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 28px 0 64px;
}

.archive-filters {
    background: #fff;
    border: 1.5px solid var(--orange);
    border-radius: 4px;
    box-shadow: 3px 3px 0 var(--orange);
    padding: 18px 20px;
    align-self: start;
    position: sticky;
    top: 28px;
}
.archive-filters .module-tag { margin-bottom: 16px; display: inline-flex; }
.filter-group + .filter-group { margin-top: 22px; }
.filter-h {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--ink-soft);
    text-transform: uppercase;
    margin: 0 0 10px;
}
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 8px;
    color: var(--ink);
    font-size: 14px;
    border-radius: 3px;
}
.filter-row .count {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--ink-soft);
}
.filter-row:hover { background: var(--paper-2); color: var(--orange); }
.filter-row.is-active { background: var(--orange); color: #fff; }
.filter-row.is-active .count { color: rgba(255,255,255,.8); }

.archive-header {
    margin-bottom: 20px;
}
.archive-title {
    font-family: var(--font-sans);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 8px 0;
    line-height: 1.05;
}
.archive-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--orange);
}
.archive-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: .04em;
}

.pagination {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.page-pill .page-numbers {
    display: inline-block;
    background: #fff;
    border: 1.5px solid var(--orange);
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: 2px 2px 0 var(--orange);
    font-family: var(--font-mono);
    font-size: 13px;
}
.page-pill .page-numbers.current {
    background: var(--orange);
    color: #fff;
}

@media (max-width: 900px) {
    .archive-layout { grid-template-columns: 1fr; }
    .archive-filters { position: static; }
}

/* =========================================================================
   Single listing
   ========================================================================= */

.single-listing { padding: 28px 0 64px; }

.breadcrumbs {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-soft);
    letter-spacing: .04em;
    margin-bottom: 22px;
}
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs .sep { color: var(--rule); margin: 0 6px; }

.listing {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
}
.listing__media { position: relative; }
.listing__image,
.listing__ph {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
}
.listing__details {
    padding: 28px 30px;
    align-self: start;
    position: relative;
}
.listing__price {
    color: var(--orange);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -.01em;
    margin-bottom: 6px;
}
.listing__title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 18px;
    letter-spacing: -.01em;
}
.listing__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.meta-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink);
    background: var(--paper-2);
    padding: 4px 9px;
    border-radius: 3px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.meta-pill.muted { color: var(--ink-soft); background: transparent; border: 1px dashed var(--rule); }

.seller-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--paper-2);
    border-radius: 4px;
    color: var(--ink);
    margin-bottom: 14px;
}
.seller-card:hover { background: #fff; outline: 1.5px solid var(--orange); }
.seller-card__avatar img { border-radius: 999px; border: 1.5px solid var(--orange); display: block; }
.seller-card__name { display: block; font-weight: 700; font-size: 14px; color: var(--ink); }
.seller-card__joined {
    display: block;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--ink-soft); letter-spacing: .04em;
}

.listing__description {
    grid-column: 1 / -1;
    padding: 26px 30px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
}
.listing__description .module-tag { display: inline-flex; margin-bottom: 14px; }
.listing__description p { margin: 0 0 14px; }

@media (max-width: 900px) {
    .listing { grid-template-columns: 1fr; }
}

/* =========================================================================
   404 + generic
   ========================================================================= */

.err-page {
    padding: 80px 0;
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
}
.err-page .module-tag { margin-bottom: 18px; display: inline-flex; }
.err-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 56px;
    line-height: 1.05;
    color: var(--ink);
    margin: 0 0 18px;
}
.err-lede {
    color: var(--ink-soft);
    font-size: 17px;
    margin: 0 auto 28px;
    max-width: 52ch;
}
.err-cta {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.standalone { padding: 28px 0 64px; }

.generic-card { padding: 16px 18px; }
.generic-card .listing-card__title a { color: var(--ink); }
.generic-card .listing-card__title a:hover { color: var(--orange); }

/* =========================================================================
   Author / Vendor profile
   ========================================================================= */

.vendor-page { padding: 28px 0 64px; }

.vendor-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
    position: relative;
}
.vendor-hero .vendor-avatar img {
    border-radius: 999px;
    border: 2px solid var(--orange);
    box-shadow: 2px 2px 0 var(--orange);
}
.vname {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 32px;
    color: var(--ink);
    margin: 0 0 4px;
    letter-spacing: -.01em;
}
.vmeta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: .04em;
}
