/**
 * Artspod v2 — base reset + element defaults.
 * Everything is scoped under .aspv2 so the legacy site is untouched.
 */
.aspv2 *,
.aspv2 *::before,
.aspv2 *::after {
    box-sizing: border-box;
}

.aspv2 {
    font-family: var(--asp-font);
    font-size: var(--asp-fs-body);
    line-height: 1.6;
    color: var(--asp-muted);
    background: var(--asp-bg-soft);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* Guard against any stray horizontal overflow without breaking the
       sticky header (clip, unlike hidden, creates no scroll container). */
    overflow-x: clip;
    margin: 0;
}

/* Long words / titles must never force the page wider than the viewport. */
.aspv2 h1,
.aspv2 h2,
.aspv2 h3,
.aspv2 .asp-card__title {
    overflow-wrap: anywhere;
}

.aspv2 img,
.aspv2 svg,
.aspv2 video {
    max-width: 100%;
    display: block;
}

.aspv2 h1,
.aspv2 h2,
.aspv2 h3,
.aspv2 h4 {
    margin: 0;
    color: var(--asp-ink);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.aspv2 p {
    margin: 0;
}

.aspv2 a {
    color: var(--asp-primary);
    text-decoration: none;
    transition: color var(--asp-transition);
}

.aspv2 a:hover {
    color: var(--asp-primary-dark);
}

.aspv2 ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Utility building blocks */
.aspv2 .asp-container {
    width: 100%;
    max-width: var(--asp-container);
    margin-inline: auto;
    padding-inline: var(--asp-gutter);
}

.aspv2 .asp-section {
    padding-block: var(--asp-sp-6);
}

.aspv2 .asp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--asp-sp-1) var(--asp-sp-3);
    margin-bottom: var(--asp-sp-4);
}

/* No column stack on mobile: the baseline flex row + wrap keeps the
   "View All" link beside the heading when it fits, wrapping gracefully
   when it doesn't. */
.aspv2 .asp-section-head h2 {
    font-size: var(--asp-fs-h2);
    display: flex;
    align-items: center;
    gap: var(--asp-sp-2);
}

.aspv2 .asp-h2-icon {
    color: var(--asp-primary);
    flex-shrink: 0;
}

.aspv2 .asp-viewall {
    font-size: var(--asp-fs-sm);
    font-weight: 600;
    white-space: nowrap;
}

/* Buttons */
.aspv2 .asp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--asp-sp-2);
    font-weight: 600;
    font-size: var(--asp-fs-body);
    padding: 12px 24px;
    border-radius: var(--asp-radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--asp-transition), color var(--asp-transition),
        border-color var(--asp-transition), transform var(--asp-transition);
}

.aspv2 .asp-btn--primary {
    background: var(--asp-primary);
    color: #fff;
}

.aspv2 .asp-btn--primary:hover {
    background: var(--asp-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.aspv2 .asp-btn--ghost {
    background: transparent;
    color: var(--asp-primary);
    border-color: var(--asp-line-strong);
}

.aspv2 .asp-btn--ghost:hover {
    border-color: var(--asp-primary);
}

.aspv2 .asp-btn--block {
    width: 100%;
}

.aspv2 .asp-btn[disabled],
.aspv2 .asp-btn[aria-busy="true"] {
    opacity: 0.6;
    cursor: progress;
    pointer-events: none;
}

/* Pills / badges */
.aspv2 .asp-badge {
    display: inline-block;
    font-size: var(--asp-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: var(--asp-radius-pill);
    background: var(--asp-primary-soft);
    color: var(--asp-primary);
}

/* Accessibility */
.aspv2 .asp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.aspv2 .asp-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #fff;
    padding: 8px 16px;
    z-index: 1000;
}

.aspv2 .asp-skip-link:focus {
    left: 8px;
    top: 8px;
}

.aspv2 a:focus-visible,
.aspv2 button:focus-visible,
.aspv2 input:focus-visible,
.aspv2 select:focus-visible {
    outline: 2px solid var(--asp-primary);
    outline-offset: 2px;
}

/* Honour users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .aspv2 *,
    .aspv2 *::before,
    .aspv2 *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .aspv2 .asp-card:hover,
    .aspv2 .asp-btn--primary:hover {
        transform: none;
    }
}
