/* Artist discovery marketplace — impromptuindian.com/artist */

.am-page {
    background: #faf8f5;
    color: #1a1c1c;
}

.am-wrap { width: 100%; }

.am-kicker {
    margin: 0 0 0.75rem;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.am-kicker--dark { color: #a52422; }
.am-kicker--light { color: rgba(255, 255, 255, 0.7); }

.am-block {
    padding: 4.5rem 0;
}

@media (min-width: 768px) {
    .am-block { padding: 5.5rem 0; }
}

.am-block--white { background: #fff; }
.am-block--browse { background: #f3f1ed; }
.am-block--commission { background: #111; color: #fff; }
.am-block--join { background: linear-gradient(135deg, #83060e, #4a1010); color: #fff; }

.am-block__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.am-block__title {
    margin: 0;
    font-family: Syne, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #111;
    line-height: 1.05;
}

.am-block__title--light { color: #fff; }

/* Hero */
.am-hero--discovery {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111;
}

.am-hero__carousel {
    position: absolute;
    inset: 0;
}

.am-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.am-hero__slide.is-active { opacity: 1; }

.am-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.55) 52%, rgba(17, 17, 17, 0.35) 100%);
}

.am-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 6rem 16px 4rem;
}

@media (min-width: 768px) {
    .am-hero__inner { padding: 7rem 32px 5rem; }
}

@media (min-width: 1024px) {
    .am-hero__inner { padding-left: 4rem; padding-right: 4rem; }
}

.am-hero__title {
    margin: 0 0 1rem;
    max-width: 12ch;
    font-family: "Playfair Display", Syne, serif;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: #fff;
}

.am-hero__lede {
    max-width: 42rem;
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

.am-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    max-width: 42rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.am-search__icon { color: #5e5e5e; }
.am-search__input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.am-search__btn { border-radius: 999px; }

.am-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.am-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.am-hero__stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.am-hero__stat span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* Buttons */
.am-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.am-btn--sm { padding: 0.55rem 0.9rem; font-size: 10px; }
.am-btn--primary { background: #83060e; color: #fff; }
.am-btn--primary:hover { background: #7f3937; }
.am-btn--ghost { background: transparent; color: #111; border-color: rgba(17, 17, 17, 0.12); }
.am-btn--ghost:hover { border-color: rgba(131, 6, 14, 0.35); color: #83060e; }
.am-btn--on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.am-btn--on-dark:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); }

/* Tabs & chips */
.am-tabs, .am-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.am-tab, .am-chip {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    background: #fff;
    color: #5e5e5e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.am-tab.is-active, .am-chip:hover {
    border-color: rgba(165, 36, 34, 0.35);
    color: #83060e;
    background: #fdf3f3;
}

.am-chips--light .am-chip--static {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
}

.am-browse-group { margin-bottom: 1.5rem; }
.am-browse-group__title {
    margin: 0 0 0.65rem;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5e5e5e;
}

.am-browse-results { margin-top: 1.5rem; }

/* Grids */
.am-scroll-row {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.am-scroll-row::-webkit-scrollbar { display: none; }

.am-grid {
    display: grid;
    gap: 1.25rem;
}

.am-grid--artworks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.am-grid--collect {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .am-grid--artworks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .am-grid--collect { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
    .am-grid--artworks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.am-artwork-card {
    scroll-snap-align: start;
    border-radius: 1.1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.am-scroll-row .am-artwork-card { flex: 0 0 min(280px, 78vw); }

.am-artwork-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(17, 17, 17, 0.08);
}

.am-artwork-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #f3f1ed;
    overflow: hidden;
}

.am-artwork-card__media img,
.am-collect-card__media img,
.am-story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.am-artwork-card:hover .am-artwork-card__media img { transform: scale(1.04); }

.am-artwork-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #83060e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.am-artwork-card__body { padding: 0.95rem 1rem 1.1rem; }
.am-artwork-card__artist {
    margin: 0 0 0.25rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5e5e5e;
}

.am-artwork-card__title {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #111;
}

.am-artwork-card__meta {
    margin: 0 0 0.75rem;
    font-size: 12px;
    color: #5e5e5e;
}

.am-artwork-card__price {
    font-size: 1rem;
    font-weight: 800;
    color: #83060e;
}

.am-artwork-card__price--muted {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5e5e5e;
}

/* Collect cards */
.am-collect-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    cursor: pointer;
}

@media (max-width: 640px) {
    .am-collect-card { grid-template-columns: 1fr; }
}

.am-collect-card__media {
    aspect-ratio: 1;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #f3f1ed;
}

.am-collect-card__artist {
    margin: 0 0 0.2rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5e5e5e;
}

.am-collect-card__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.am-collect-card__specs {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
}

.am-collect-card__specs div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 12px;
}

.am-collect-card__specs dt {
    color: #5e5e5e;
    font-weight: 600;
}

.am-collect-card__specs dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.am-collect-card__price {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #83060e;
}

/* Artists */
.am-artist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) { .am-artist-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .am-artist-grid { grid-template-columns: repeat(4, 1fr); } }

.am-artist-card {
    border-radius: 1.1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.am-artist-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.am-artist-card__cover {
    position: relative;
    height: 110px;
    background: linear-gradient(135deg, #f3f1ed, #e8e4de);
}

.am-artist-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-artist-card__avatar {
    position: absolute;
    left: 1rem;
    bottom: -24px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 3px solid #fff;
    overflow: hidden;
    background: #f3f1ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #83060e;
}

.am-artist-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.am-artist-card__body { padding: 2rem 1rem 0.85rem; }
.am-artist-card__name { margin: 0; font-size: 1rem; font-weight: 800; }
.am-artist-card__handle, .am-artist-card__location, .am-artist-card__exp {
    margin: 0.15rem 0 0;
    font-size: 12px;
    color: #5e5e5e;
}

.am-artist-card__bio {
    margin: 0.65rem 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #5e5e5e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.am-artist-card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.65rem; }
.am-artist-card__tag {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f9f9f9;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5e5e5e;
}

.am-artist-card__foot {
    margin-top: 0.75rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #83060e;
}

.am-artist-card__actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
}

/* Spotlight */
.am-spotlight {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

@media (min-width: 900px) {
    .am-spotlight { grid-template-columns: 1.1fr 0.9fr; }
}

.am-spotlight__cover {
    min-height: 320px;
    background-size: cover;
    background-position: center;
}

.am-spotlight__copy { padding: 1.5rem; }
.am-spotlight__location { color: #5e5e5e; font-size: 13px; margin: 0 0 0.75rem; }
.am-spotlight__story { line-height: 1.7; color: #5e5e5e; margin: 0 0 1rem; }
.am-spotlight__thumbs {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.am-spotlight__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
}

/* Collections */
.am-collection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .am-collection-grid { grid-template-columns: repeat(2, 1fr); }
}

.am-collection-card {
    position: relative;
    display: block;
    min-height: 300px;
    border-radius: 1.25rem;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.am-collection-card__media { position: absolute; inset: 0; }
.am-collection-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.82));
}

.am-collection-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem;
    z-index: 1;
}

.am-collection-card__artist {
    margin: 0 0 0.35rem;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.am-collection-card__title {
    margin: 0 0 0.35rem;
    font-family: Syne, sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
}

.am-collection-card__meta {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.68);
}

/* Stories */
.am-story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .am-story-grid { grid-template-columns: repeat(3, 1fr); }
}

.am-story-card {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.am-story-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f1ed;
}

.am-story-card__body { padding: 1rem; }
.am-story-card__type {
    margin: 0 0 0.35rem;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a52422;
}

.am-story-card__title { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 800; }
.am-story-card__artist { margin: 0 0 0.5rem; font-size: 12px; color: #5e5e5e; }
.am-story-card__caption { margin: 0; font-size: 13px; line-height: 1.55; color: #5e5e5e; }

/* Commission / heritage / trust / testimonials / join */
.am-commission, .am-heritage, .am-trust, .am-testimonials, .am-join {
    max-width: 100%;
}

.am-commission__lede, .am-heritage__lede {
    max-width: 40rem;
    line-height: 1.7;
    color: #5e5e5e;
    margin-bottom: 1.25rem;
}

.am-commission__lede { color: rgba(255, 255, 255, 0.68); }

.am-trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .am-trust-grid { grid-template-columns: repeat(3, 1fr); }
}

.am-trust-card {
    padding: 1.25rem;
    border-radius: 1rem;
    background: #faf8f5;
    border: 1px solid rgba(17, 17, 17, 0.06);
}

.am-trust-card span {
    font-size: 1.6rem;
    color: #83060e;
}

.am-trust-card h3 {
    margin: 0.75rem 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
}

.am-trust-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #5e5e5e;
}

.am-testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 900px) {
    .am-testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

.am-testimonial {
    margin: 0;
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.am-testimonial__stars { color: #d97706; margin-bottom: 0.75rem; }
.am-testimonial p { margin: 0 0 1rem; line-height: 1.65; color: #5e5e5e; }
.am-testimonial footer { display: grid; gap: 0.15rem; font-size: 12px; color: #5e5e5e; }
.am-testimonial footer strong { color: #111; }

.am-join-list {
    margin: 0 0 1.25rem;
    padding-left: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
}

.am-empty {
    padding: 2.5rem 1rem;
    border: 1px dashed rgba(17, 17, 17, 0.12);
    border-radius: 1rem;
    text-align: center;
    color: #5e5e5e;
    font-size: 14px;
}

.am-color-swatch { width: 100%; height: 100%; }

/* Viewer */
.am-viewer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    place-items: center;
    padding: 16px;
    background: rgba(17, 17, 17, 0.72);
    backdrop-filter: blur(8px);
}

.am-viewer.is-open { display: grid; }

.am-viewer__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    z-index: 2;
}

.am-viewer__shell {
    width: min(980px, 100%);
    max-height: min(90vh, 820px);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

@media (min-width: 900px) {
    .am-viewer__shell { grid-template-columns: 1.15fr 0.85fr; }
}

.am-viewer__media {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #f3f1ed;
}

.am-viewer__media img {
    max-width: 100%;
    max-height: min(70vh, 620px);
    object-fit: contain;
}

.am-viewer__sheet { padding: 1.25rem; overflow-y: auto; }
.am-viewer__artist {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.am-viewer__avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    overflow: hidden;
    background: #f3f1ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #83060e;
}

.am-viewer__avatar img { width: 100%; height: 100%; object-fit: cover; }
.am-viewer__title { margin: 0 0 0.5rem; font-size: 1.35rem; font-weight: 800; }
.am-viewer__caption { margin: 0 0 1rem; line-height: 1.6; color: #5e5e5e; }
.am-viewer__price { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 800; color: #83060e; }
.am-viewer__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Footer — artist page skips Tailwind custom token config (bg-black-ui) */
.am-page .site-footer {
    background: #111111;
    color: #ffffff;
}

.am-page .site-footer-brand p {
    color: rgba(255, 255, 255, 0.4);
}

.am-page .site-footer-bottom {
    color: rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.05);
}

.am-page .site-footer .footer-link {
    color: rgba(255, 255, 255, 0.6);
}

.am-page .site-footer .footer-link:hover {
    color: #ffffff;
}
