*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--color-text, var(--text));
    background: var(--color-bg, var(--white));
    font-family: var(--font-body, var(--font));
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading, var(--heading)); margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--blue-600);
    color: #fff;
    padding: 8px 12px;
    z-index: 100;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    line-height: 1;
    font-family: var(--font-button, var(--heading));
}
.btn:hover { transform: translateY(-1px); }
.btn .btn-icon, .card-link .btn-icon { width: 16px; height: 16px; }
.icon { width: 1em; height: 1em; }

:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 3px;
}

[data-animate] {
    animation: fade-up .55s ease both;
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
