/* ==============================================
   BASE.CSS — Variables, Reset, Typography, Utilities
   Design: Neubrutalism Bold — Cream / Yellow / Red / Blue / Ink
   Borders: 3px solid #000 | Shadows: solid hard offset 45deg
   Fonts: Syne (display heavy) + IBM Plex Mono (body)
   ============================================== */

:root {
    --bg: #FFFBF0;
    --yellow: #FFEB3B;
    --red: #FF5252;
    --blue: #2196F3;
    --ink: #000000;
    --bg-dark: #111111;

    --font-display: 'Syne', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --border: 3px solid var(--ink);
    --shadow-sm:  4px 4px 0px var(--ink);
    --shadow-md:  6px 6px 0px var(--ink);
    --shadow-lg:  8px 8px 0px var(--ink);
    --shadow-xl: 12px 12px 0px var(--ink);

    --radius: 0px;
    --nav-h: 72px;
    --max-w: 1080px;
    --gap: 24px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    text-transform: uppercase;
}

/* ---- Layout ---- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gap);
    width: 100%;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-label,
.section-marker {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.65;
    display: inline-block;
    margin-bottom: 24px;
    padding: 5px 10px;
    border: 2px solid var(--ink);
    background: var(--bg);
}

.section-title {
    font-size: clamp(36px, 6vw, 76px);
    line-height: 0.92;
    letter-spacing: -2.5px;
    margin-bottom: 56px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    min-height: 48px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--ink);
    border: var(--border);
    box-shadow: var(--shadow-md);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
    background-color: transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1;
}

.btn-primary  { background-color: var(--yellow); }
.btn-outline  { background-color: var(--bg); }
.btn-dark     { background-color: var(--ink); color: #fff; }
.btn-sm       { padding: 9px 18px; min-height: 42px; font-size: 0.78rem; }

.btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px var(--ink);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--ink);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-md);
}

/* ---- Badges & Tags ---- */
.badge, .pill-tag, .stack-badge {
    display: inline-block;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0px var(--ink);
    background-color: var(--bg);
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-yellow { background-color: var(--yellow); color: var(--ink); }
.badge-red    { background-color: var(--red);    color: #fff; }
.badge-blue   { background-color: var(--blue);   color: #fff; }
.badge-dark   { background-color: var(--ink);    color: #fff; }

/* ---- Accessibility ---- */
.skip-link {
    position: absolute;
    top: -120px;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    min-height: 44px;
    background-color: var(--yellow);
    color: var(--ink);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    border: var(--border);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

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

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    box-shadow: 3px 3px 0 var(--yellow);
}

/* ---- Scroll-reveal ---- */
.fade-in-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-up.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* ---- Utils ---- */
.hidden { display: none !important; }
