:root {
    /* ── Typography ────────────────────────────────────────────── */
    /* Disse var-navne refereres med Outfit-fallback i planning.css og
       plugins (var(--font, 'Outfit', ...)). Defineret her vinder de altid,
       så Outfit ikke skal hentes fra Google Fonts. */
    --font:         'Public Sans', system-ui, sans-serif;
    --font-body:    'Public Sans', system-ui, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;

    /* ── Brand Colors ──────────────────────────────────────────── */
    /* Amber accent — matches Røvbanan Avisen's ink-gold palette */
    --accent:        #c96a3d;
    --accent-dim:    rgba(201, 106, 61, 0.65);
    --accent-muted:  rgba(201, 106, 61, 0.1);

    /* Primary action color — readable indigo (replaces raw accent-as-bg) */
    --primary:        #2d7a78;
    --primary-hover:  #245f5d;
    --primary-muted:  rgba(45, 122, 120, 0.16);

    /* Text on colored backgrounds */
    --text-on-primary: #ffffff;   /* white on indigo */
    --text-on-accent:  #0a0a14;   /* near-black on amber */

    /* Secondary / Pink */
    --secondary:    #d7a928;
    --accent-pink:  #e77c6b;
    --accent-purple:#d7a928;

    /* ── Backgrounds ───────────────────────────────────────────── */
    --bg-primary:  #171311;
    --bg-surface:  rgba(27, 23, 20, 0.9);
    --background:  var(--bg-primary);
    --surface:     var(--bg-surface);
    --card-bg:     var(--bg-surface);

    /* ── Borders ───────────────────────────────────────────────── */
    /* Borders use accent at very low opacity — visible but not garish */
    --surface-border: rgba(201, 106, 61, 0.18);
    --border:         var(--surface-border);

    /* ── Text ──────────────────────────────────────────────────── */
    --text-primary:   #f4efe6;
    --text-secondary: rgba(244, 239, 230, 0.78);
    --text-muted:     rgba(244, 239, 230, 0.52);
    --text-main:      var(--text-primary);
    --text:           var(--text-primary);
    --bg:             var(--bg-primary);

    /* ── Shadows ───────────────────────────────────────────────── */
    --shadow-soft: 0 8px 32px rgba(31, 42, 36, 0.16);

    /* ── Status Colors ─────────────────────────────────────────── */
    --status-success: #059669;
    --status-warning: #f59e0b;
    --status-danger:  #ef4444;
    --status-info:    #0891b2;

    /* ── Touch & Responsive ───────────────────────────────────── */
    --touch-min: 44px;
    --bp-phone:   480px;
    --bp-tablet:  768px;
    --bp-desktop: 1024px;

    /* ── Misc ───────────────────────────────────────────────────── */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light Theme ─────────────────────────────────────────────── */
[data-theme="light"] {
    --accent:       #c96a3d;
    --accent-dim:   rgba(201, 106, 61, 0.6);
    --accent-muted: rgba(201, 106, 61, 0.1);

    --primary:        #2d7a78;
    --primary-hover:  #245f5d;
    --primary-muted:  rgba(45, 122, 120, 0.12);

    --text-on-primary: #ffffff;
    --text-on-accent:  #ffffff;

    --secondary:    #d7a928;
    --accent-pink:  #e77c6b;
    --accent-purple:#d7a928;

    --bg-primary:  #f5f1e8;
    --bg-surface:  rgba(255, 251, 244, 0.96);
    --background:  var(--bg-primary);
    --surface:     var(--bg-surface);
    --card-bg:     var(--bg-surface);

    --surface-border: rgba(67, 54, 37, 0.12);
    --border:         var(--surface-border);

    --text-primary:   #1f2a24;
    --text-secondary: #445149;
    --text-muted:     #69736d;
    --text-main:      var(--text-primary);
    --text:           var(--text-primary);
    --bg:             var(--bg-primary);

    --shadow-soft: 0 8px 32px rgba(31, 42, 36, 0.08);

    --status-success: #059669;
    --status-warning: #d97706;
    --status-danger:  #dc2626;
    --status-info:    #0891b2;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Public Sans', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--background);
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 150, 14, 0.35);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 150, 14, 0.6);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: #000;
}

/* Typography & Header */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* CSL Branding */
.csl-branding {
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.csl-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.85;
}
