/* DRAFT FOR DISCUSSION. Local specification only; not a published runtime asset.
 * Proposed Weipu values. Existing --wp-* page definitions are NOT replaced here.
 * Future marker is added only by the weipu2019 template, never by shared core.
 */
:root[data-weipu-ui] {
    /* Semantic palette: brand, text, surfaces, borders, states. */
    --wp-color-brand: #f0962e;
    --wp-color-brand-hover: #e58a1f;
    --wp-color-brand-active: #dc8120;
    --wp-color-on-brand: #232e43;
    --wp-color-text: #232e43;
    --wp-color-text-muted: #596574;
    --wp-color-link: #1e4f91;
    --wp-color-link-hover: #173d70;
    --wp-color-page: #ffffff;
    --wp-color-surface: #ffffff;
    --wp-color-surface-muted: #f5f7fa;
    --wp-color-surface-brand: #fff8ee;
    --wp-color-border: #d9e0e8;
    --wp-color-border-control: #7b8798;
    --wp-color-success: #17652f;
    --wp-color-success-soft: #edf8f0;
    --wp-color-warning: #8a4b00;
    --wp-color-warning-soft: #fff4df;
    --wp-color-danger: #b42318;
    --wp-color-danger-soft: #fff0ee;
    --wp-color-info: #1e4f91;
    --wp-color-info-soft: #edf4ff;
    --wp-color-disabled-bg: #e9edf2;
    --wp-color-disabled-text: #64748b;

    /* One correctly named, self-hosted family as the starting proposal. */
    --wp-font-body: "SFPro-Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --wp-font-heading: var(--wp-font-body);
    --wp-weight-normal: 400;
    --wp-weight-medium: 500;
    --wp-weight-semibold: 600;
    --wp-weight-bold: 700;
    --wp-text-xs: .75rem;       /* 12px at a 16px root */
    --wp-text-sm: .875rem;      /* 14px */
    --wp-text-md: 1rem;         /* 16px */
    --wp-text-lg: 1.125rem;     /* 18px */
    --wp-text-xl: 1.25rem;      /* 20px */
    --wp-text-2xl: 1.5rem;      /* 24px */
    --wp-text-3xl: 2rem;        /* 32px */
    --wp-text-4xl: 2.5rem;      /* 40px */
    --wp-text-body: var(--wp-text-md);
    --wp-text-small: var(--wp-text-sm);
    --wp-text-caption: var(--wp-text-xs);
    --wp-text-title: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
    --wp-text-section: clamp(1.5rem, 1.15rem + 1vw, 2rem);
    --wp-text-card: var(--wp-text-xl);
    --wp-text-lead: clamp(1.125rem, 1rem + .5vw, 1.5rem);
    --wp-leading-body: 1.5;
    --wp-leading-heading: 1.2;
    --wp-leading-control: 1.25;

    /* Spacing scale: a 4px rhythm. Token suffix is the step, not the px value. */
    --wp-space-0: 0;
    --wp-space-1: .25rem;
    --wp-space-2: .5rem;
    --wp-space-3: .75rem;
    --wp-space-4: 1rem;
    --wp-space-5: 1.25rem;
    --wp-space-6: 1.5rem;
    --wp-space-8: 2rem;
    --wp-space-10: 2.5rem;
    --wp-space-12: 3rem;
    --wp-space-16: 4rem;
    --wp-container-max: 1160px;
    --wp-reading-width: 65ch;
    --wp-page-gutter: clamp(1rem, 2vw, 2rem);
    --wp-section-space: clamp(2rem, 5vw, 4rem);
    --wp-grid-gap: var(--wp-space-6);

    /* Shape and elevation: role-based aliases prevent one radius for everything. */
    --wp-radius-sm: 6px;
    --wp-radius-md: 10px;
    --wp-radius-lg: 12px;
    --wp-radius-pill: 9999px;
    --wp-image-radius: var(--wp-radius-lg);
    --wp-shadow-none: none;
    --wp-shadow-raised: 0 4px 16px rgb(35 46 67 / 8%);
    --wp-shadow-dialog: 0 16px 40px rgb(35 46 67 / 16%);

    /* Controls, buttons, badges and cards: defaults, with explicit variants. */
    --wp-control-height-sm: 36px;
    --wp-control-height: 44px;
    --wp-control-height-lg: 48px;
    --wp-control-radius: var(--wp-radius-md);
    --wp-control-border-width: 1px;
    --wp-button-height: var(--wp-control-height);
    --wp-button-text: var(--wp-text-md);
    --wp-button-radius: var(--wp-radius-pill);
    --wp-button-padding-inline: var(--wp-space-6);
    --wp-button-primary-bg: var(--wp-color-brand);
    --wp-button-primary-hover: var(--wp-color-brand-hover);
    --wp-button-primary-active: var(--wp-color-brand-active);
    --wp-button-primary-fg: var(--wp-color-on-brand);
    --wp-button-secondary-bg: #eaeaea;
    --wp-button-secondary-hover: #dedede;
    --wp-button-secondary-active: #d2d2d2;
    --wp-button-secondary-fg: var(--wp-color-text);
    --wp-badge-text: var(--wp-text-xs);
    --wp-badge-radius: var(--wp-radius-pill);
    --wp-badge-padding-block: var(--wp-space-1);
    --wp-badge-padding-inline: var(--wp-space-2);
    --wp-card-radius: var(--wp-radius-lg);
    --wp-card-padding: var(--wp-space-6);
    --wp-card-shadow: var(--wp-shadow-none);
    --wp-focus-color: #1e4f91;
    --wp-focus-width: 2px;
    --wp-focus-offset: 2px;
    --wp-duration-fast: 120ms;
    --wp-duration-base: 180ms;
    --wp-easing: cubic-bezier(.2, 0, .2, 1);
}

/* Literal breakpoint constants; CSS custom properties cannot be used in the condition. */
@media (max-width: 767.98px) {
    :root[data-weipu-ui] {
        --wp-grid-gap: var(--wp-space-4);
        --wp-card-padding: var(--wp-space-4);
    }
}

@media (prefers-reduced-motion: reduce) {
    :root[data-weipu-ui] {
        --wp-duration-fast: 0ms;
        --wp-duration-base: 0ms;
    }
}

/* No legacy aliases in this draft. During a reviewed component migration only:
 * --wp-orange: var(--wp-color-brand); etc., after conflicting scoped overrides
 * have been removed from that migrated area. Do not alias both directions.
 * Classes must consume these values; declarations alone do not restyle widgets.
 */
