/* Revolet's Antigravity surface with production accessibility contracts. */
:root {
    --revolet-blue: #1f6f99;
    --revolet-blue-dark: #155273;
    --revolet-teal: #1abc9c;
    --revolet-ink: #0f172a;
    --revolet-muted: #475569;
    --revolet-border: #cbd5e1;
    --revolet-focus: #a16207;
    --revolet-error: #b91c1c;
}

html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
}

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--revolet-focus);
    outline-offset: 3px;
}

:where(a[href], button:not(:disabled), summary) {
    cursor: pointer;
}

:where(button:disabled, input:disabled, select:disabled, textarea:disabled) {
    cursor: not-allowed;
    opacity: 0.65;
}

.revolet-skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    transform: translateY(-160%);
    border-radius: 0.75rem;
    background: var(--revolet-ink);
    color: #fff;
    padding: 0.65rem 0.9rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgb(15 23 42 / 20%);
    transition: transform 160ms ease;
}

.revolet-skip-link:focus-visible {
    transform: translateY(0);
}

.revolet-form-summary {
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    background: #fef2f2;
    color: var(--revolet-error);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.revolet-field-error {
    display: block;
    margin-top: -1rem;
    color: var(--revolet-error);
    font-size: 0.8rem;
    font-weight: 700;
}

:where(input, select, textarea)[aria-invalid="true"] {
    border-color: var(--revolet-error) !important;
    box-shadow: 0 0 0 3px rgb(185 28 28 / 12%);
}

:where(button, a).revolet-submit[aria-busy="true"] {
    cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .revolet-skip-link {
        display: none !important;
    }
}
