/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

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

/* ─── Light Mode (default) ─── */
:root {
    --bg:           #ffffff;
    --bg-2:         #f7f6f3;
    --surface:      #ffffff;
    --surface-2:    #f7f6f3;
    --surface-3:    #efede9;
    --border:       #e9e9e7;
    --border-strong:#d3d1cb;

    --accent:       #2383e2;
    --accent-hover: #1a6fc4;
    --accent-soft:  rgba(35, 131, 226, 0.08);
    --accent-text:  #2383e2;

    --danger:       #eb5757;
    --danger-soft:  rgba(235, 87, 87, 0.08);
    --success:      #0f7b6c;
    --success-soft: rgba(15, 123, 108, 0.08);

    --text:         #37352f;
    --text-2:       #55534a;
    --text-muted:   #9b9a97;
    --text-faint:   #c7c6c2;
    --text-bright:  #1a1a18;
    --text-on-accent: #ffffff;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 3px 10px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.1);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --navbar-bg: rgba(255,255,255,0.95);
    --navbar-border: #e9e9e7;

    --transition: 0.15s ease;
}

/* ─── Dark Mode ─── */
@media (prefers-color-scheme: dark) {
    :root {
        --bg:           #191919;
        --bg-2:         #202020;
        --surface:      #252525;
        --surface-2:    #2f2f2f;
        --surface-3:    #373737;
        --border:       rgba(255,255,255,0.07);
        --border-strong: rgba(255,255,255,0.13);

        --accent:       #529cca;
        --accent-hover: #6baed6;
        --accent-soft:  rgba(82, 156, 202, 0.12);
        --accent-text:  #6baed6;

        --danger:       #e03e3e;
        --danger-soft:  rgba(224, 62, 62, 0.12);
        --success:      #4dab9a;
        --success-soft: rgba(77, 171, 154, 0.12);

        --text:         #cfcfcf;
        --text-2:       #9d9d9d;
        --text-muted:   #6b6b6b;
        --text-faint:   #484848;
        --text-bright:  #e8e8e8;
        --text-on-accent: #ffffff;

        --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
        --shadow-md: 0 3px 10px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
        --shadow-lg: 0 8px 24px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
        --shadow-xl: 0 20px 48px rgba(0,0,0,0.4);

        --navbar-bg: rgba(25,25,25,0.95);
        --navbar-border: rgba(255,255,255,0.07);
    }
}

/* ─── Base ─── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Main ─── */
main {
    padding: 2rem 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
    animation: fadeIn 0.25s ease both;
}

/* ─── Animations ─── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Selection ─── */
::selection { background: var(--accent-soft); color: var(--accent-text); }
