/* ================================================================
   DESIGN TOKENS — Single source of truth
   Import FIRST on every page, before any other stylesheet.
   ================================================================ */

:root {
    /* === COLOUR PALETTE === */
    --color-primary:        #d4a373; /* Wheat gold */
    --color-primary-hover:  #faedcd;
    --color-primary-soft:   rgba(212, 163, 115, 0.15);
    --color-secondary:      #7b906f; /* Sage */
    --color-accent:         #ccd5ae; /* Moss */
    --color-accent-soft:    rgba(204, 213, 174, 0.15);

    /* Navigation Height */
    --nav-height:           64px;
    --nav-height-mobile:    56px;

    /* Safe Areas */
    --safe-area-top:        env(safe-area-inset-top, 0px);
    --safe-area-bottom:     env(safe-area-inset-bottom, 0px);
    --safe-area-left:       env(safe-area-inset-left, 0px);
    --safe-area-right:      env(safe-area-inset-right, 0px);

    /* Text */
    --color-text-primary:   #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-muted:     #94a3b8;

    /* Surfaces */
    --color-background:     #0d1a16; /* Deep forest green */
    --color-surface:        rgba(30, 41, 59, 0.7);
    --color-border:         rgba(255, 255, 255, 0.1);

    /* Glass */
    --glass-bg:             rgba(13, 26, 22, 0.7);
    --glass-border:         rgba(255, 255, 255, 0.08);

    /* === cv.css ALIASES (keep cv component styles working) === */
    --bg-color:             #0d1a16;
    --text-primary:         #f8fafc;
    --text-secondary:       #cbd5e1;
    --accent-color:         #d4a373;
    --accent-glow:          rgba(212, 163, 115, 0.25);
    --accent-purple:        #ccd5ae;
    --card-bg:              rgba(255, 255, 255, 0.03);
    --color-blueprint:      #a3b18a;
    --color-blueprint-soft: rgba(163, 177, 138, 0.1);

    /* === TYPOGRAPHY === */
    --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-main:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif:   'Playfair Display', Georgia, serif;

    /* === SPACING (8px base unit) === */
    --space-xs:  0.5rem;   /*  8px */
    --space-sm:  1rem;     /* 16px */
    --space-md:  1.5rem;   /* 24px */
    --space-lg:  2rem;     /* 32px */
    --space-xl:  3rem;     /* 48px */
    --space-2xl: 4rem;     /* 64px */
    --space-3xl: 6rem;     /* 96px */

    /* === RADII === */
    --radius-sm:   0.375rem;
    --radius-md:   0.5rem;
    --radius-lg:   0.75rem;
    --radius-xl:   1rem;
    --radius-2xl:  1.5rem;
    --radius-full: 9999px;

    /* === SHADOWS === */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* === TRANSITIONS === */
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================================================================
   SKIP LINK (accessibility — only visible on keyboard focus)
   ================================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-background);
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: top 200ms ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ================================================================
   BACKGROUND GLOBES — identical animation across all pages
   ================================================================ */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: globe-float 20s infinite ease-in-out;
}

.globe-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 30% 30%, rgba(212, 163, 115, 0.25), rgba(123, 144, 111, 0.1));
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.globe-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 30% 30%, rgba(123, 144, 111, 0.2), rgba(204, 213, 174, 0.1));
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.globe-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle at 30% 30%, rgba(13, 50, 30, 0.4), rgba(212, 163, 115, 0.05));
    top: 50%;
    left: 50%;
    animation-delay: -14s;
    animation-name: globe-float-center;
}

@keyframes globe-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -30px) scale(1.1); }
    66%       { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes globe-float-center {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33%       { transform: translate(calc(-50% + 30px), calc(-50% - 30px)) scale(1.1); }
    66%       { transform: translate(calc(-50% - 20px), calc(-50% + 20px)) scale(0.9); }
}
