/* ═══════════════════════════════════════════════════
   LEGALIZE — Editorial Legal Design System
   ═══════════════════════════════════════════════════ */

/* Fonts loaded via <link> in base.html to avoid @import waterfall */

:root {
    /* Chrome (dark) */
    --bg-chrome: #0f1419;
    --bg-chrome-up: #161c24;
    --bg-chrome-up2: #1c2430;
    --text-primary: #e8e6e1;
    --text-secondary: #9a948e;
    --text-muted: #928b85;
    --border-chrome: #2a2520;

    /* Content (light, warm paper) */
    --bg-paper: #faf8f5;
    --bg-paper-alt: #f2efe9;
    --text-ink: #1a1a1a;
    --text-ink-soft: #44403a;
    --text-ink-muted: #78716c;
    --border-paper: #e5e2dd;
    --border-paper-strong: #d4cfc8;

    /* Accents */
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.08);
    --accent-warm: #92400e;
    --accent-warm-soft: rgba(146, 64, 14, 0.08);
    --vigente: #166534;
    --vigente-bg: rgba(22, 101, 52, 0.08);
    --derogada: #ef4444;
    --derogada-bg: rgba(239, 68, 68, 0.1);

    /* Diffs */
    --diff-add: #4ade80;
    --diff-add-bg: rgba(74, 222, 128, 0.08);
    --diff-del: #f87171;
    --diff-del-bg: rgba(248, 113, 113, 0.08);

    /* Fonts */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-ui: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-family: var(--font-ui); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; height: 100%; color-scheme: dark; }

body {
    font-family: var(--font-ui);
    background: var(--bg-chrome);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Screen reader only — visually hidden but accessible */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ─── Entrance animations ─── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
    main > *:first-child { animation: fade-up 0.4s ease-out; }
    .landing-hero { animation: fade-up 0.5s ease-out; }
    .landing-diff { animation: fade-up 0.5s ease-out 0.1s both; }
    .landing-stats { animation: fade-up 0.4s ease-out 0.2s both; }
}
