/* ==========================================================================
   base.css — design tokens, reset, typography, global utilities
   ========================================================================== */

:root {
    /* Brand palette */
    --color-gold: #FFD700;
    --color-gold-soft: rgba(255, 215, 0, 0.1);
    --color-gold-glow: rgba(255, 215, 0, 0.3);
    --color-black: #000000;
    --color-surface: #111111;
    --color-surface-raised: rgba(26, 26, 26, 0.9);
    --color-surface-nav: rgba(26, 26, 26, 0.98);
    --color-text: #ffffff;
    --color-text-muted: #cccccc;
    --color-error: #ff6b6b;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-script: 'Great Vibes', 'Brush Script MT', cursive;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --radius-pill: 30px;
    --radius-circle: 50%;

    /* Effects */
    --shadow-gold: 0 10px 30px rgba(255, 215, 0, 0.1);
    --shadow-gold-strong: 0 15px 35px rgba(255, 215, 0, 0.25);
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --content-max: 1200px;
    --content-wide: 1400px;
    --header-clearance: 90px;
    --footer-clearance: 100px;

    /* Stacking order */
    --z-background: -1;
    --z-nav: 1000;
    --z-floating: 1500;
    --z-modal: 2000;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

a {
    color: var(--color-gold);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--color-gold);
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    z-index: calc(var(--z-nav) + 1);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-gold);
    color: var(--color-black);
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/*
 * The `hidden` attribute only gets `display: none` from the browser's own
 * stylesheet, which ANY author `display` rule outranks. Scripts here toggle
 * `.hidden` on elements that are styled `display: grid` / `flex`, so this rule
 * has to win outright or those elements stay on screen.
 */
[hidden] {
    display: none !important;
}

/* No-script analytics beacon — never visible */
.tracking-pixel {
    display: none;
}

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
