/* Explain: Base reset, typography, and global styles for the website. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--background-color);
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

::selection {
    background: rgba(22, 163, 74, 0.20);
    color: var(--text-color);
}

.abook-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--surface-soft);
    border-radius: 0.75rem;
}

.skeleton::after {
    position: absolute;
    inset: 0;
    content: '';
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    animation: abook-shimmer 1.4s infinite;
}

@keyframes abook-shimmer {
    100% {
        transform: translateX(100%);
    }
}