/* Shared UI primitives - buttons, labels, links, decor */

.arpm-container {
    width: min(100% - 2 * var(--space-page-x), var(--layout-max));
    margin-inline: auto;
    padding-inline: var(--space-page-x);
    box-sizing: border-box;
}

.arpm-section-label {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-section-label);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-ui);
    color: var(--color-section-label);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.arpm-serif-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: var(--text-serif-display);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-tight);
    color: var(--color-text-heading);
    max-width: 78rem;
}

.arpm-body-lg {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-body-lg);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-text-body);
}

.arpm-body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-text-muted);
}

.arpm-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-sans);
    font-size: var(--text-body-lg);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-border-strong);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: color var(--transition-fast);
}

.arpm-text-link:hover:not([class*="arpm-vertical-link--"]),
.arpm-text-link:focus-visible:not([class*="arpm-vertical-link--"]) {
    color: var(--accent-orange);
}

/* Legacy tone name - same black default and orange hover as default */
.arpm-text-link--orange {
    color: var(--color-border-strong);
}

.arpm-text-link--orange:hover,
.arpm-text-link--orange:focus-visible {
    color: var(--accent-orange);
}

.arpm-text-link__dot {
    display: inline-block;
    width: 1.625rem;
    height: 0.8125rem;
    flex-shrink: 0;
    background: url("/images/home/link-ellipse.png") center / contain no-repeat;
}

.arpm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 12.5rem;
    max-width: 100%;
    padding: 0.625rem 1.875rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: var(--text-button);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-ui);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-ui), color var(--transition-ui), border-color var(--transition-ui), opacity var(--transition-ui);
}

.arpm-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.arpm-btn--outline {
    background: transparent;
    border-color: var(--color-border-strong);
    color: var(--color-border-strong);
}

.arpm-btn--outline:hover {
    background: var(--color-border-strong);
    color: var(--color-bg);
}

.arpm-btn--green {
    background: var(--accent-green);
    color: var(--accent-green-text);
    font-weight: var(--font-weight-semibold);
}

.arpm-btn--green:hover {
    filter: brightness(0.96);
}

.arpm-btn--orange {
    background: var(--accent-orange);
    color: var(--accent-orange-text);
    font-weight: var(--font-weight-semibold);
}

.arpm-btn--orange:hover {
    filter: brightness(0.96);
}

.arpm-btn--blue {
    background: var(--accent-blue);
    color: var(--accent-blue-text);
    font-weight: var(--font-weight-semibold);
}

.arpm-btn--blue:hover {
    filter: brightness(1.05);
}

.arpm-btn--grey {
    background: var(--color-button-grey);
    color: var(--color-border-strong);
}

.arpm-btn--grey:hover {
    filter: brightness(0.97);
}

/* Figma SideDecor (3328:39) - three overlapping chevrons */
.arpm-side-decor {
    position: relative;
    width: 13.986rem;
    height: 3.6875rem;
    flex-shrink: 0;
}

.arpm-side-decor__chevron {
    position: absolute;
    top: 0;
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
    object-position: left bottom;
}

.arpm-side-decor__chevron--green {
    left: 0;
    width: 30.17%;
}

.arpm-side-decor__chevron--blue {
    left: 34.91%;
    width: 30.17%;
}

.arpm-side-decor__chevron--orange {
    left: 69.83%;
    width: 30.17%;
}

.arpm-side-decor--mirror {
    transform: scaleX(-1);
}

/* Mobile: hide chevron decor (contact hero, about story, etc.) - dominates small layouts. */
@media (max-width: 768px) {
    .arpm-side-decor,
    .contact-page__decor,
    .about-story__decor {
        display: none;
    }
}
