/* ThreadsTraffic Base Styles
   CSS Reset, Core Document Settings, Base Typography & Scrollbars */

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

html, body {
    background-color: var(--canvas-bg);
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: var(--lh-normal);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    position: relative;
}

/* Touch responsiveness & Tap highlights (PWA-IOS-01) */
button, a, input, select, textarea, [role="button"], .tab-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Background Subtle Gradient Glow */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: 10%;
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, var(--overlay-lime-04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--canvas-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bento-border);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--overlay-white-15);
}

/* Base Typography Elements */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
}

p {
    color: var(--text-zinc-200);
    line-height: var(--lh-relaxed);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--motion-fast) var(--ease-out);
}

a:hover {
    color: var(--brand-hover);
}

code, kbd, samp, pre {
    font-family: var(--font-mono);
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}
