/* Vokraft — Design tokens
   Premium event venue SaaS. Editorial serif display + Outfit body.
   Per-tenant --primary / --secondary are overridable by each view; the
   defaults below are a sophisticated near-black + warm gold.
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --primary: #0A0A0A;
    --secondary: #B8924C;

    --bg:           #FAFAF7;
    --bg-alt:       #F2EFE8;
    --surface:      #FFFFFF;
    --ink:          #14110D;
    --ink-2:        #4A453E;
    --ink-mute:     #8A847A;
    --line:         rgba(20, 17, 13, 0.08);
    --line-strong:  rgba(20, 17, 13, 0.14);

    --ok:    #1F7A4F;
    --warn:  #B7791F;
    --bad:   #B3261E;

    --font-display: "Cormorant Garamond", "Tenor Sans", Georgia, serif;
    --font-body:    "Outfit", -apple-system, "Segoe UI", system-ui, sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --radius:    14px;
    --radius-sm: 10px;
    --radius-lg: 22px;

    --shadow-1: 0 1px 2px rgba(20, 17, 13, 0.04), 0 1px 1px rgba(20, 17, 13, 0.03);
    --shadow-2: 0 4px 14px rgba(20, 17, 13, 0.06), 0 1px 3px rgba(20, 17, 13, 0.04);
    --shadow-3: 0 18px 50px rgba(20, 17, 13, 0.12), 0 4px 12px rgba(20, 17, 13, 0.06);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
}

/* Type primitives */
.serif        { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 500; }
.mono         { font-family: var(--font-mono); font-size: 0.78em; letter-spacing: 0.02em; }

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 500;
}

.eyebrow-gold {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 500;
    border: 0; cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, opacity .12s ease;
    text-decoration: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.btn-primary {
    background: var(--primary); color: #FAFAF7;
    border-radius: var(--radius); padding: 14px 22px; font-size: 15px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 6px 16px rgba(20, 17, 13, 0.18);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.btn-gold {
    background: var(--secondary); color: #1a1408;
    border-radius: var(--radius); padding: 14px 22px; font-size: 15px;
    font-weight: 600; letter-spacing: 0.02em;
    box-shadow: 0 12px 30px rgba(184, 146, 76, 0.35);
}
.btn-gold:hover:not(:disabled) { transform: translateY(-1px); }
.btn-ghost {
    background: transparent; color: var(--ink);
    border-radius: var(--radius); padding: 11px 16px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--line-strong);
}
.btn-ghost:hover:not(:disabled) { background: rgba(20, 17, 13, 0.03); }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 10px; }
.btn-icon {
    width: 36px; height: 36px; padding: 0; border-radius: 999px;
    border: 0; background: rgba(20, 17, 13, 0.06);
    color: var(--ink); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: rgba(20, 17, 13, 0.10); }

/* Badges */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(20, 17, 13, 0.06); color: var(--ink-2);
    font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
    text-transform: uppercase; white-space: nowrap;
}
.badge-gold { background: color-mix(in oklab, var(--secondary) 14%, transparent); color: #7E6224; }
.badge-ok   { background: rgba(31, 122, 79, 0.10); color: var(--ok); }
.badge-warn { background: rgba(183, 121, 31, 0.12); color: var(--warn); }
.badge-bad  { background: rgba(179, 38, 30, 0.10); color: var(--bad); }
.badge-primary { background: color-mix(in oklab, var(--primary) 8%, transparent); color: var(--primary); }
.badge-invert  { background: var(--ink); color: #FAFAF7; }

/* Cards */
.glass-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    overflow: hidden;
}

/* Inputs */
.input {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--ink);
    font-family: var(--font-body); font-size: 14px;
    transition: border-color .15s, background .15s, box-shadow .15s;
    outline: none;
}
.input:focus {
    border-color: var(--primary); background: var(--surface);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 10%, transparent);
}
.input::placeholder { color: var(--ink-mute); }

/* Ornament (serif divider) */
.ornament {
    display: inline-flex; align-items: center; gap: 10px;
    color: currentColor; opacity: 0.6;
}
.ornament-line { width: 80px; height: 1px; background: currentColor; }
.ornament svg { width: 10px; height: 10px; }

/* Common modal pattern */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(20, 17, 13, 0.65);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-card {
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3); max-width: 460px; width: 100%;
    overflow: hidden;
}

/* Subtle scroll */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
