/* ============================================================
   VersoVivo Blog — Shared Modern-Minimal Layout Tokens & Chrome
   Single source of truth for the blog nav, breadcrumb, sticky-CTA,
   footer, lang-toggle behavior, and design tokens.
   Lifted verbatim from public/blog/graduation-song.html:152-352.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* ─── Design System Tokens (modern-minimal) ─── */

    /* Color — Black & Gold premium palette */
    --gold:        #D4AF37;
    --gold-bright: #E8C97A;
    --gold-dim:    #A68A2A;
    --gold-glow:   rgba(212, 175, 55, 0.15);

    /* Color — Surfaces */
    --surface-1: #050402;
    --surface-2: #0D0B08;
    --surface-3: #131008;
    --surface-4: #1c1810;

    /* Color — Borders */
    --border-subtle:  rgba(212, 175, 55, 0.10);
    --border-default: rgba(212, 175, 55, 0.18);
    --border-strong:  rgba(212, 175, 55, 0.40);

    /* Color — Text */
    --text-primary:   #F5EDE0;
    --text-secondary: #9A8B73;
    --text-tertiary:  rgba(201, 185, 154, 0.5);

    /* Color — Accent */
    --rose: #C4756E;

    /* Type — Font families */
    --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono:    'Syne', 'Inter', system-ui, sans-serif;
    --font-serif-italic: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Type — Scale */
    --text-display: clamp(3.5rem, 8vw, 6rem);
    --text-h1:      clamp(2.4rem, 5vw, 3.75rem);
    --text-h2:      clamp(1.75rem, 3.5vw, 2.5rem);
    --text-h3:      1.25rem;
    --text-body:    1rem;
    --text-small:   0.875rem;
    --text-eyebrow: 0.75rem;
    --text-micro:   0.7rem;

    /* Type — Leading & tracking */
    --leading-tight:   1.1;
    --leading-snug:    1.3;
    --leading-normal:  1.55;
    --leading-relaxed: 1.7;
    --tracking-tight:  -0.02em;
    --tracking-normal: 0;
    --tracking-wide:   0.06em;
    --tracking-caps:   0.12em;

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.5rem;
    --space-6:  2rem;
    --space-7:  2.5rem;
    --space-8:  3rem;
    --space-10: 4rem;
    --space-12: 6rem;

    /* Section rhythm */
    --section-py:       var(--space-12);
    --section-py-tight: var(--space-8);
    --container-max:    1080px;
    --container-narrow: 760px;

    /* Motion */
    --motion-fast: 150ms;
    --motion-base: 220ms;
    --motion-slow: 320ms;
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

    /* Legacy aliases */
    --dark:        var(--surface-1);
    --dark-card:   var(--surface-2);
    --dark-warm:   var(--surface-3);
    --dark-hover:  var(--surface-4);
    --cream:       var(--text-primary);
    --cream-muted: var(--text-secondary);
    --cream-dim:   var(--text-secondary);
    --gold-light:  var(--gold-bright);
    --sky:         #6B9FC4;
}

/* ── LANGUAGE TOGGLE BEHAVIOR ── */
body[data-lang="en"] [data-show="es"] { display: none !important; }
body[data-lang="es"] [data-show="en"] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(5,4,2,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212,175,55,0.12);
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.nav-back {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--cream-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-back:hover { color: var(--cream); }
.nav-cta {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--surface-1);
    background: var(--gold);
    border: none;
    border-radius: 2px;
    padding: 0.45rem 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--motion-fast) var(--ease-out);
}
.nav-cta:hover { background: var(--gold-bright); }

/* ── BREADCRUMB ── */
.breadcrumb {
    margin-top: 60px;
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    color: var(--cream-dim);
    border-bottom: 1px solid rgba(212,175,55,0.08);
    background: var(--dark-warm);
}
.breadcrumb a { color: var(--cream-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }

/* ── STICKY MOBILE CTA ── */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(5,4,2,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(212,175,55,0.25);
    padding: 0.85rem 1rem;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}
@media (max-width: 640px) {
    .sticky-cta { display: flex; }
}
