/* byeKevin — base / reset */

/* DM Sans — self-hosted would be ideal; for Day-2 we use Google fonts.
 * Keep these weights consistent across the app. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

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

html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-md);
    font-weight: var(--fw-regular);
    line-height: 1.55;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Subtle ambient glow behind the app — gives it warmth without noise. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(255, 138, 107, 0.05), transparent 60%),
        radial-gradient(900px 500px at -10% 100%, rgba(125, 189, 255, 0.035), transparent 60%);
    z-index: 0;
}

#app, main, nav, header { position: relative; z-index: 1; }

h1, h2, h3, h4 {
    font-weight: var(--fw-semi);
    letter-spacing: -0.01em;
    color: var(--text-strong);
    line-height: 1.25;
}

p { color: var(--text-muted); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

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

button { cursor: pointer; background: none; border: none; }

:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
    border-radius: var(--r-sm);
}

input, textarea, select { outline: none; }

/* Hide scrollbar chrome on dark backgrounds, keep functionality. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--r-full);
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #354268; }

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

.stack-2 > * + * { margin-top: var(--sp-2); }
.stack-3 > * + * { margin-top: var(--sp-3); }
.stack-4 > * + * { margin-top: var(--sp-4); }

.row { display: flex; align-items: center; gap: var(--sp-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.grow { flex: 1; min-width: 0; }

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.truncate {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.fade-in {
    animation: fadeIn var(--t-slow) var(--ease-out);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}
