@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --bg: #171717;
    --surface: #242424;
    --surface-2: #2d2d2d;
    --text: #f7f4ee;
    --muted: #a9a49d;
    --gold: #c8a362;
    --line: #3b3936;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: 'DM Sans', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }

.topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    padding: 0 max(4vw, 30px);
    border-bottom: 1px solid var(--line);
    background: #171717ee;
    backdrop-filter: blur(16px);
}

.brand { font-family: 'Playfair Display', serif; font-size: 25px; font-weight: 700; letter-spacing: 2px; }
.brand span, .eyebrow, .profile-copy em { color: var(--gold); }
.topbar nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
.topbar nav a:hover, .topbar nav .active { color: var(--text); }
.menu { display: none; border: 0; background: none; color: var(--text); font-size: 22px; cursor: pointer; }

.section { padding: 78px max(7vw, 30px); }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section h1, .section h2 { margin: 0; font: 600 32px 'Playfair Display', serif; }
.eyebrow { margin: 0 0 13px; font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.text-link { color: var(--gold); font-size: 14px; }

.featured { padding: 22px max(2vw, 22px) 26px; border-bottom: 1px solid var(--line); background: #1d1d1d; }
.featured .section-head { align-items: center; margin-bottom: 12px; }
.featured .eyebrow { margin: 0; }
.featured-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(7px, .8vw, 13px); }
.featured-row > .profile { min-width: 0; }
.featured-row .profile-image { height: auto; aspect-ratio: 3 / 4; }
.featured-row .profile-image span, .featured-row .profile-copy p { display: none; }
.featured-row .profile-copy { padding: 9px 8px 10px; }
.featured-row .profile-copy h2, .featured-row .profile-copy h3 { overflow: hidden; margin: 0; font-size: clamp(13px, 1.15vw, 17px); line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.featured-row .profile-copy h2 em, .featured-row .profile-copy h3 em { font-size: clamp(10px, .9vw, 13px); }

.profile { display: block; min-width: 0; background: var(--surface); transition: transform .25s ease, background .25s ease; }
.profile:hover { transform: translateY(-5px); background: #313131; }
.profile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.profile-image { position: relative; display: grid; place-items: center; height: 255px; overflow: hidden; background: #2e2e2e; }
.profile-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.profile:hover img { transform: scale(1.04); }
.profile-image > span { position: absolute; top: 12px; left: 12px; padding: 6px 8px; border: 1px solid #6e5a3c; background: #191919d9; color: var(--gold); font-size: 9px; letter-spacing: 1px; }
.profile-image .image-placeholder { position: static; padding: 0; border: 0; background: transparent; color: #77736e; font-size: 10px; letter-spacing: 1.3px; }
.profile-copy { padding: 15px; }
.profile-copy h2, .profile-copy h3 { margin: 0; font: 600 18px 'Playfair Display', serif; }
.profile-copy h2 em, .profile-copy h3 em { color: var(--gold); font: 400 14px 'DM Sans', Arial, sans-serif; font-style: normal; }
.profile-copy p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.promo-strip { display: flex; align-items: center; gap: 30px; min-height: 115px; margin: 0 max(7vw, 30px); padding: 25px 38px; background: linear-gradient(110deg, #a7824e, #d9bc83); color: #211d17; }
.promo-strip span { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.promo-strip strong { flex: 1; font: 600 23px 'Playfair Display', serif; }
.promo-strip strong small { font-family: 'DM Sans', Arial, sans-serif; font-size: 12px; font-weight: 500; }
.promo-strip a { font-size: 13px; font-weight: 700; }
.promo-strip.compact { min-height: 88px; margin-top: 0; margin-bottom: 70px; }
.promo-strip.compact strong { font-size: 19px; }

.listings { padding: 26px max(2vw, 20px) 60px; }
.listings-head { align-items: center; margin-bottom: 13px; }
.listings-head h1 { font-size: 24px; }
.listing-controls { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.filters { display: flex; flex: 1; gap: 9px; min-width: 0; margin: 0; }
.filters button, .filter { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.filters .selected, .filters button:hover, .filters button:focus-visible { border-color: var(--gold); color: var(--gold); }
.filter { display: none; }
.profile-search { display: flex; flex: 0 0 230px; align-items: center; gap: 8px; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 3px; background: #202020; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.profile-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 1px #c8a36233; }
.profile-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 12px 'DM Sans', Arial, sans-serif; }
.profile-search input::placeholder { color: #8f8a83; }
.profile-search input::-webkit-search-cancel-button { filter: invert(.75); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.no-results { grid-column: 1 / -1; width: 100%; margin: 0; padding: 36px 16px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }

.market-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 16px; align-items: start; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.market-layout .listing-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.market-layout .profile-image { height: 215px; }
.market-layout .profile-copy { padding: 12px 10px; }
.market-layout .profile-copy h2, .market-layout .profile-copy h3 { font-size: 15px; }

.sponsor-column { display: grid; gap: 16px; }
.sponsor-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: 20px 16px; overflow: hidden; border: 1px solid #735f40; background: linear-gradient(160deg, #3b3023, #201d19); }
.sponsor-card::before { position: absolute; top: -55px; right: -55px; width: 130px; height: 130px; border: 1px solid currentColor; border-radius: 50%; opacity: .25; content: ''; }
.sponsor-card span { position: relative; margin-bottom: auto; color: var(--gold); font-size: 8px; letter-spacing: 1.4px; }
.sponsor-card strong { position: relative; font: 600 20px/1.08 'Playfair Display', serif; }
.sponsor-card p { position: relative; color: var(--muted); font-size: 10px; line-height: 1.55; }
.sponsor-card small { position: relative; color: var(--gold); font-size: 8px; font-weight: 600; letter-spacing: .8px; }
.sponsor-card.has-image { padding: 0; background: #171717; }
.sponsor-card.has-image::before { display: none; }
.sponsor-card.has-image > a, .sponsor-card.has-image > .banner-image { position: absolute; inset: 0; display: block; }
.sponsor-card.has-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sponsor-tone-2 { border-color: #70404a; background: linear-gradient(160deg, #43262b, #21191b); }
.sponsor-tone-3 { border-color: #405e70; background: linear-gradient(160deg, #243440, #171d21); }
.sponsor-tone-4 { border-color: #5f5a4e; background: linear-gradient(160deg, #3a3832, #1c1c1a); }
.sponsor-tone-5 { border-color: #5c4b66; background: linear-gradient(160deg, #342b3b, #1d1a20); }
.sponsor-tone-6 { border-color: #714b55; background: linear-gradient(160deg, #452e34, #211a1c); }
.sponsor-tone-7 { border-color: #3e6354; background: linear-gradient(160deg, #263932, #171f1c); }
.sponsor-tone-8 { border-color: #555; background: linear-gradient(160deg, #2d2d2d, #141414); }

footer { display: flex; align-items: center; gap: 28px; padding: 35px max(7vw, 30px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer > p:not(.legal-note) { flex: 1; }
footer div { display: flex; gap: 18px; }
.legal-note { flex: 0 1 500px; margin: 0; font-size: 10px; line-height: 1.5; text-align: right; }
.legal-note strong { color: var(--text); }

@media (max-width: 1200px) {
    .market-layout { grid-template-columns: 125px minmax(0, 1fr) 125px; gap: 10px; }
    .market-layout .listing-grid { gap: 9px; }
    .market-layout .profile-image { height: 180px; }
    .sponsor-card { min-height: 245px; padding: 16px 12px; }
    .sponsor-card strong { font-size: 17px; }
}

@media (max-width: 1000px) {
    .featured-row { display: flex; gap: 11px; padding: 0 0 8px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; scrollbar-color: var(--gold) transparent; }
    .featured-row > .profile { flex: 0 0 clamp(126px, 20vw, 168px); scroll-snap-align: start; }
}

@media (max-width: 900px) {
    .listing-controls { align-items: stretch; flex-direction: column; }
    .filters { width: 100%; overflow-x: auto; }
    .profile-search { order: -1; flex-basis: auto; width: 100%; max-width: 360px; }
    .market-layout { grid-template-columns: 110px minmax(0, 1fr); }
    .market-layout > .sponsor-column:last-child { display: none; }
    .market-layout .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .topbar { height: 68px; padding: 0 22px; }
    .brand { font-size: 21px; }
    .menu { display: block; }
    .topbar nav { position: absolute; top: 68px; right: 16px; display: none; flex-direction: column; gap: 0; min-width: 180px; padding: 8px; border: 1px solid var(--line); background: #202020; box-shadow: 0 14px 32px #0008; }
    .topbar nav.open { display: flex; }
    .topbar nav a { padding: 11px 12px; }
    .section { padding: 55px 22px; }
    .featured { padding: 18px 22px 20px; }
    .featured-row > .profile { flex-basis: 132px; }
    .promo-strip { display: block; margin-right: 22px; margin-left: 22px; padding: 22px; }
    .promo-strip strong { display: block; margin: 10px 0; }
    .listings { padding: 22px 22px 50px; }
    .listings-head { margin-bottom: 11px; }
    .listings-head h1 { font-size: 22px; }
    .filter { display: inline-block; }
    .listing-controls { gap: 10px; margin-bottom: 18px; }
    .profile-search { max-width: none; }
    .filters { display: none; padding-bottom: 3px; }
    .filters.open { display: flex; }
    .market-layout { display: flex; flex-direction: column; }
    .market-layout .listing-grid { order: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 12px; }
    .market-layout > .sponsor-column { display: grid !important; order: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .market-layout > .sponsor-column:first-child { order: 0; margin-bottom: 8px; }
    .sponsor-card { min-height: 145px; }
    .market-layout .profile-image { height: 220px; }
    .sponsor-column .sponsor-card:nth-child(n+3) { display: none; }
    .compact { margin-bottom: 45px !important; }
    footer { display: block; padding: 30px 22px; }
    footer > p { margin: 16px 0; }
    footer div { flex-wrap: wrap; }
    .legal-note { text-align: left; }
}

@media (max-width: 420px) {
    .market-layout .profile-image { height: 205px; }
    .profile-copy h2, .profile-copy h3 { font-size: 14px; }
}
