/* ══════════════════════════════════════════════════════════════
   common.css – Shared foundation for all dieserubi sections
   Single source of truth: tokens, fonts, reset, base, keyframes
   ══════════════════════════════════════════════════════════════ */

/* ── Syne Variable Font (weight range 400-800) ── */
@font-face {
    font-family: 'Syne';
    src: url('fonts/Syne/Syne.ttf') format('truetype');
    font-weight: 400 800;
    font-display: swap;
    font-style: normal;
}

/* ── DM Sans Variable Font (weight range 100-1000) ── */
@font-face {
    font-family: 'DM Sans';
    src: url('fonts/DM-sans/DMSans.ttf') format('truetype');
    font-weight: 100 1000;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'DM Sans';
    src: url('fonts/DM-sans/DMSans-Italic.ttf') format('truetype');
    font-weight: 100 1000;
    font-display: swap;
    font-style: italic;
}

/* ── Design Tokens ── */
:root {
    /* Core palette */
    --color-bg: #0a0a0a;
    --color-bg-card: #141414;
    --color-white: #ffffff;
    --color-white-soft: rgba(255, 255, 255, 0.65);
    --color-white-muted: rgba(255, 255, 255, 0.35);

    /* Accent */
    --color-accent: #FB9FC4;
    --color-accent-warm: #FDBED7;
    --color-accent-glow: rgba(251, 159, 196, 0.25);

    /* Glass */
    --color-glass: rgba(255, 255, 255, 0.06);
    --color-glass-border: rgba(255, 255, 255, 0.1);

    /* Semantic status */
    --color-success: #4ade80;
    --color-warning: #fbbf24;
    --color-danger: #f87171;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

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

/* ── Base ── */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--color-white);
    background: var(--color-bg);
}

/* ── Shared Keyframes ── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowFade {
    to { opacity: 1; }
}

@keyframes barExpand {
    to { width: 48px; }
}
