/* Explain: Base reset and typography defaults for the entire application. */
* { box-sizing: border-box; }

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    background: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.25;
    color: var(--mocha-dark);
    margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

::selection { background: var(--honey-gold); color: var(--white); }

[x-cloak] { display: none !important; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--honey-gold); border-radius: 99px; border: 3px solid var(--surface-2); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: fadeUp .8s cubic-bezier(.16, 1, .3, 1) both; }

.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-color) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; }
    .js .reveal.is-visible { animation: none; }
    .ticker-track { animation: none !important; }
    .comment-marquee-track { animation: none !important; }
}