/*
 * MiPasteleria websites — shared UI foundation.
 *
 * This layer is intentionally theme-neutral. Themes may change composition,
 * typography and density, while these rules preserve usability, contrast and
 * predictable media behaviour for every bakery configuration.
 */

:root {
    --wp-on-primary: #fff;
    --wp-on-accent: #171212;
    --wp-primary-soft: #f4e8ec;
    --wp-secondary-soft: #fbf5f1;
    --wp-border-strong: #b98193;
    --wp-focus: #b57b8f;
    --wp-success: #216e5b;
    --wp-warning: #9a6700;
    --wp-danger: #b42318;
    --wp-control-height: 44px;
    --wp-content-width: 1180px;
    --wp-page-gutter: clamp(16px, 3vw, 32px);
    --wp-radius-control: 12px;
    --wp-radius-card: 22px;
    --wp-space-1: 4px;
    --wp-space-2: 8px;
    --wp-space-3: 12px;
    --wp-space-4: 16px;
    --wp-space-5: 24px;
    --wp-space-6: 32px;
}

html {
    color-scheme: light;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body.wp-page {
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
    max-width: 100%;
    color: inherit;
    font: inherit;
}

button,
[type="button"],
[type="submit"],
[role="button"] {
    touch-action: manipulation;
}

.wp-button,
.wp-btn,
button.wp-button,
button.wp-btn {
    min-height: var(--wp-control-height);
}

.wp-button-primary,
.wp-btn-primary {
    background: var(--wp-primary);
    color: var(--wp-on-primary);
}

.wp-brand-mark {
    color: var(--wp-on-primary);
}

.wp-brand-logo {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: clamp(48px, 7vw, 76px);
    height: clamp(48px, 7vw, 76px);
    overflow: hidden;
}

.wp-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.wp-form-status:empty {
    display: none;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--wp-focus);
    outline-offset: 3px;
}

:where(button, input, select, textarea):disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.62;
}

::selection {
    background: var(--wp-primary-soft);
    color: var(--wp-text);
}

@media (max-width: 640px) {
    .wp-button,
    .wp-btn,
    button.wp-button,
    button.wp-btn {
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
