/* Vivere overrides on top of Tailwind utilities. */

:root {
    --vivere-surface: #fff8f3;
    --vivere-on-surface: #221b0f;
    --vivere-outline-variant: #c0c8cb;
    --vivere-primary: #b87333;
}

html, body {
    background-color: var(--vivere-surface);
    color: var(--vivere-on-surface);
    font-family: 'Manrope', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
}

/* DESIGN.md: 0px radius everywhere. */
button, input, select, textarea, .wp-block-button__link, .wp-block-search__button, img, video {
    border-radius: 0 !important;
}

/* Keyboard focus visibility baseline (WCAG 2.4.7). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--vivere-primary);
    outline-offset: 2px;
}

/* Form-field bottom border per DESIGN.md (only sanctioned 1px line). */
.vivere-field {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(192, 200, 203, 0.6);
    padding: 0.75rem 0;
    width: 100%;
    color: var(--vivere-on-surface);
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    transition: border-color 200ms ease;
}
.vivere-field:focus {
    outline: none;
    border-bottom-color: var(--vivere-primary);
}
.vivere-field::placeholder {
    color: rgba(34, 27, 15, 0.45);
}

.vivere-display {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    letter-spacing: -0.015em;
}

.vivere-tertiary {
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
}
.vivere-tertiary::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms ease;
}
.vivere-tertiary:hover::after,
.vivere-tertiary:focus-visible::after {
    transform: scaleX(1);
}

.vivere-frost {
    background-color: rgba(239, 224, 205, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

body.admin-bar .vivere-frost {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .vivere-frost {
        top: 46px;
    }
}

.vivere-shadow {
    box-shadow: 0 40px 40px -8px rgba(34, 27, 15, 0.06);
}

/* Subtle page-load reveal animation for polished motion. */
@keyframes vivere-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vivere-reveal-item {
    opacity: 0;
    transform: translateY(14px);
}

.vivere-ready .vivere-reveal-item {
    animation: vivere-fade-up 520ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    animation-delay: var(--vivere-delay, 0ms);
}

/* Interactive polish for cards and CTA buttons. */
article,
a[class*='bg-primary'],
a[class*='bg-secondary-container'],
button[class*='bg-primary'],
button[class*='bg-tertiary'] {
    transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

article:hover {
    transform: translateY(-2px);
    filter: saturate(1.05);
}

a[class*='bg-primary']:hover,
button[class*='bg-primary']:hover {
    box-shadow: 0 14px 24px -18px rgba(184, 115, 51, 0.9);
}

a[class*='bg-secondary-container']:hover,
button[class*='bg-tertiary']:hover {
    transform: translateY(-1px);
}
