/* fab4minds × Voelkel — shared styles for club.mate pitch + follow-ups.
   Loaded by index.html and lot-transparency.html.
   Page-specific layout CSS stays inline in each file. */

/* ─── Tokens (editorial default) ──────────────────────────── */
:root {
    --night:      #080e0b;
    --forest:     #0d1a12;
    --moss:       #172b1f;
    --fern:       #1f3e2c;
    --sage:       #3f6b50;
    --cream:      #f2ead8;
    --parchment:  #e5d8be;
    --warm-white: #faf5ec;
    --amber:      #c4882a;
    --gold:       #d9a640;
    --gold-light: #e8c068;
    --text-dark:  #182419;
    --text-mid:   #3a5040;
    --text-muted: #5a7060;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Lora', Georgia, serif;
    --font-mono:    'DM Mono', ui-monospace, monospace;

    --amber-rgb:  196, 136, 42;
    --gold-rgb:   217, 166, 64;
    --cream-rgb:  242, 234, 216;
    --dark-rgb:   26, 42, 31;

    --hero-grain-opacity: 0.022;
}

/* ─── Tokens (fab4minds CI theme) ─────────────────────────── */
body.theme-fab4minds {
    --night:      #121926;
    --forest:     #121926;
    --moss:       #202939;
    --fern:       #202939;
    --sage:       #4B5565;
    --cream:      #F8FAFC;
    --parchment:  #FFFFFF;
    --warm-white: #FFFFFF;
    --amber:      #FE5000;
    --gold:       #F38744;
    --gold-light: #FAC515;
    --text-dark:  #121926;
    --text-mid:   #4B5565;
    --text-muted: #6A7482;

    --font-display: 'Lexend Deca', 'Inter', system-ui, sans-serif;
    --font-body:    'Lexend Deca', 'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Commit Mono', ui-monospace, monospace;

    --amber-rgb:  254, 80, 0;
    --gold-rgb:   243, 135, 68;
    --cream-rgb:  248, 250, 252;
    --dark-rgb:   18, 25, 38;

    --hero-grain-opacity: 0;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Body base ───────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    background: var(--forest);
    color: var(--cream);
    overflow-x: hidden;
}

/* Film grain overlay (driven by --hero-grain-opacity; 0 in fab4minds theme) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: var(--hero-grain-opacity);
    pointer-events: none;
    z-index: 9999;
}

/* ─── Type ────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }

/* ─── Common atoms ────────────────────────────────────────── */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--amber);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 3.5rem;
}
@media (max-width: 860px) { .container { padding: 0 1.75rem; } }
@media (max-width: 480px) { .container { padding: 0 1.1rem; } }

/* ─── Reveal-on-scroll ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1),
                transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Theme toggle (fixed top-right pill) ─────────────────── */
.theme-toggle {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 9998;
    display: inline-flex;
    gap: 0;
    padding: 0;
    background: rgba(var(--dark-rgb), 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(var(--cream-rgb), 0.12);
    border-radius: 999px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    user-select: none;
}
.theme-toggle button {
    appearance: none;
    background: transparent;
    border: none;
    color: rgba(var(--cream-rgb), 0.55);
    padding: 0.48rem 0.95rem;
    cursor: pointer;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    transition: color 0.15s ease, background 0.15s ease;
}
.theme-toggle button:hover {
    color: rgba(var(--cream-rgb), 0.95);
}
.theme-toggle button.is-active {
    background: var(--amber);
    color: #fff;
}
body.theme-fab4minds .theme-toggle {
    background: rgba(var(--dark-rgb), 0.92);
    border-color: rgba(var(--cream-rgb), 0.18);
}
body.theme-fab4minds .theme-toggle button.is-active {
    color: #fff;
}
@media (max-width: 560px) {
    .theme-toggle { top: 0.6rem; right: 0.6rem; font-size: 0.52rem; }
    .theme-toggle button { padding: 0.4rem 0.7rem; }
}

/* ─── Shared fab4minds CI polish ──────────────────────────
   Page-specific fab4minds overrides (sections, cards, accents)
   stay in each page's inline <style>. */
body.theme-fab4minds h1,
body.theme-fab4minds h2,
body.theme-fab4minds h3,
body.theme-fab4minds h4 {
    letter-spacing: -0.01em;
    font-weight: 600;
}
body.theme-fab4minds .hero-title {
    font-weight: 700;
}
body.theme-fab4minds .hero-title em {
    font-style: normal;
    color: var(--amber);
}

/* ─── Hero logo (only visible in fab4minds theme) ─────────── */
.hero-logo {
    display: none;
}
body.theme-fab4minds .hero-logo {
    display: block;
    position: absolute;
    top: 1.5rem;
    left: 3.5rem;
    height: 36px;
    width: auto;
    z-index: 3;
}
@media (max-width: 860px) {
    body.theme-fab4minds .hero-logo {
        left: 1.75rem;
        height: 28px;
    }
}
