/* =========================================================
   Chamber War – Base
   Variablen, Reset, Typografie, Grundlayout (Norisk Style + Chamber War Colors)
   ========================================================= */

:root {
    /* Original Chamber War Colors */
    --stone-dark: #0a0806;
    --stone: #14100c;
    --stone-light: #1a1612;

    --copper: #c87941;
    --copper-light: #e8a05c;
    --copper-dark: #a85828;

    --teal: #3dd6c8;
    --teal-glow: rgba(61, 214, 200, 0.35);
    --teal-dim: #2ea098;

    --vault-gold: #f0c040;

    --ominous: #9b6dff;
    --ominous-glow: rgba(155, 109, 255, 0.22);

    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-dim: rgba(255, 255, 255, 0.3);

    --surface: rgba(20, 16, 12, 0.85);
    --border: rgba(200, 121, 65, 0.2);
    --border-bright: rgba(61, 214, 200, 0.4);

    --gradient-copper: linear-gradient(135deg, var(--copper-dark), var(--copper), var(--copper-light));
    --gradient-teal: linear-gradient(135deg, var(--teal-dim), var(--teal));
    --gradient-vault: linear-gradient(135deg, var(--vault-gold), #ffe27a);

    /* Pixel theme implies hard edges, but we can keep subtle borders */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;

    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-teal: 0 0 32px var(--teal-glow);
    --shadow-glow-copper: 0 0 24px rgba(200, 121, 65, 0.2);

    --header-height: 80px;
    /* Pixel font for headings */
    --font-heading: 'Silkscreen', 'Outfit', system-ui, sans-serif;
    /* Clean modern font for body */
    --font-body: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    background: var(--stone-dark);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.25;
    margin: 0 0 0.75em;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.text-muted {
    color: var(--text-muted);
}

p {
    margin: 0 0 1em;
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--teal);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.icon {
    width: 1em;
    height: 1em;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* ---------- Text Glow Effects ---------- */

.headline-glow-blue {
    text-shadow: 0 0 30px var(--teal-glow);
    color: var(--teal);
}

.headline-glow-gold {
    text-shadow: 0 0 30px rgba(200, 121, 65, 0.5);
    color: var(--copper-light);
}

/* ---------- Grid & Scanlines ---------- */

.grid-bg {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(200, 121, 65, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(200, 121, 65, 0.05) 1px, transparent 1px);
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.scanlines {
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
    background-size: 100% 4px;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ---------- Ambient Background ---------- */

.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.ambient__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.ambient__glow--teal {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -10%;
    background: var(--teal);
}

.ambient__glow--copper {
    width: 500px;
    height: 500px;
    top: 40%;
    right: -10%;
    background: var(--copper);
}

.ambient__glow--purple {
    width: 400px;
    height: 400px;
    bottom: 5%;
    left: 20%;
    background: var(--ominous);
}

/* ---------- Skip Link ---------- */

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--teal);
    color: var(--stone-dark);
    padding: 10px 16px;
    z-index: 1000;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

/* ---------- Icon Badge ---------- */

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(200, 121, 65, 0.05);
    border: 1px solid var(--border);
    color: var(--copper-light);
    transition: all 0.3s ease;
}

.icon-badge:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(61, 214, 200, 0.1);
}

.icon-badge .icon {
    width: 24px;
    height: 24px;
}
