/* ============================================================
   Brian Bassanio 2.0 — White/Red shared theme
   Tokens + primitives shared by index (and available to form pages).
   ============================================================ */

:root {
    /* surfaces */
    --bg: #ffffff;
    --surface: #f7f7f8;
    --surface-2: #ffffff;
    --surface-3: #f0f0f2;
    --line: rgba(22, 22, 26, 0.09);
    --line-strong: rgba(22, 22, 26, 0.18);

    /* text (contrast >= 4.5:1 on --bg) */
    --text: #141417;
    --text-2: #45454d;
    --text-3: #71717a; /* meta only, never body copy */

    /* one accent: red */
    --accent: #d92616;
    --accent-hover: #b91d0f;
    --accent-text: #c8140a;
    --accent-dim: rgba(217, 38, 22, 0.09);
    --accent-grad: linear-gradient(112deg, #ff5a3d 0%, #e6392b 40%, #b30f04 100%);

    /* one radius scale */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;

    /* easing (never ease-in) */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

    /* elevation */
    --edge: 0 1px 2px rgba(22, 22, 26, 0.04);
    --lift: 0 2px 4px rgba(22, 22, 26, 0.04), 0 18px 40px rgba(22, 22, 26, 0.09);
    --glow-accent: 0 8px 28px rgba(217, 38, 22, 0.32);

    /* section rhythm */
    --sx: clamp(1.1rem, 4.5vw, 4.5rem);
    --sy: clamp(4rem, 9vw, 8rem);

    color-scheme: light;
}

/* ---------- base ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}
body {
    background: var(--bg);
    color: var(--text-2);
    font-family: "Outfit", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    color: var(--text);
    text-wrap: balance;
}
::selection {
    background: var(--accent);
    color: #fff;
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.oswald,
.display {
    font-family: "Clash Display", "Outfit", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    font-weight: 600;
    line-height: 1.02;
}

/* Lenis smooth scroll (index) — native smooth must yield to it */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.tnum { font-variant-numeric: tabular-nums; }

/* gradient accent text */
.grad {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    font-family: "Outfit", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
        color 0.2s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-red {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: var(--glow-accent);
}
@media (hover: hover) {
    .btn-red:hover { box-shadow: 0 10px 34px rgba(217, 38, 22, 0.45); transform: translateY(-2px); }
    .btn-red:hover:active { transform: scale(0.97); }
}
.btn-ink {
    background: var(--text);
    color: #fff;
}
@media (hover: hover) {
    .btn-ink:hover { background: #2c2c33; transform: translateY(-2px); }
}
.btn-ghost {
    background: var(--bg);
    color: var(--text);
    border-color: var(--line-strong);
}
@media (hover: hover) {
    .btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
}
.btn-sm { padding: 0.62rem 1.25rem; font-size: 0.8rem; }
.btn-xl { padding: 1.15rem 2.1rem; font-size: 1rem; }
.btn .btn-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.9em; height: 1.9em; border-radius: 999px;
    background: rgba(255, 255, 255, 0.18); font-size: 0.85em;
    flex-shrink: 0;
}
.btn-ghost .btn-ico, .btn-outline .btn-ico { background: var(--surface-3); }

/* ---------- card recipe ---------- */
.card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--edge);
}

/* ---------- form controls (shared light layer) ---------- */
.bb-form input[type="text"],
.bb-form input[type="email"],
.bb-form input[type="tel"],
.bb-form input[type="number"],
.bb-form input[type="date"],
.bb-form input[type="time"],
.bb-form input[type="url"],
.bb-form select,
.bb-form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    color: var(--text);
    padding: 0.8rem 1rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.92rem;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.bb-form input::placeholder,
.bb-form textarea::placeholder { color: var(--text-3); }
.bb-form input:focus,
.bb-form select:focus,
.bb-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.bb-form label {
    display: block;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
}

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